#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for Open MPI 1.1.1.
#
# Report bugs to <http://www.open-mpi.org/community/help/>.
#
# 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



# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}

case X$ECHO in
X*--fallback-echo)
  # Remove one level of quotation (which was required for Make).
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  ;;
esac

echo=${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 <<EOF
$*
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 "$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 &&
       echo_test_string=`eval $cmd` &&
       (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.
ECHO=$echo
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi




tagnames=${tagnames+${tagnames},}CXX

tagnames=${tagnames+${tagnames},}F77

# 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.1.1'
PACKAGE_STRING='Open MPI 1.1.1'
PACKAGE_BUGREPORT='http://www.open-mpi.org/community/help/'

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#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 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 OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE CPP EGREP 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 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 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 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 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 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 pls_bproc_CPPFLAGS pls_bproc_LDFLAGS pls_bproc_LIBS OMPI_BUILD_pls_bproc_DSO_TRUE OMPI_BUILD_pls_bproc_DSO_FALSE pls_bproc_orted_CPPFLAGS pls_bproc_orted_LDFLAGS pls_bproc_orted_LIBS OMPI_BUILD_pls_bproc_orted_DSO_TRUE OMPI_BUILD_pls_bproc_orted_DSO_FALSE OMPI_BUILD_pls_fork_DSO_TRUE OMPI_BUILD_pls_fork_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_hostfile_DSO_TRUE OMPI_BUILD_ras_hostfile_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 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 OMPI_BUILD_ras_poe_DSO_TRUE OMPI_BUILD_ras_poe_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_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 soh_bproc_CPPFLAGS soh_bproc_LDFLAGS soh_bproc_LIBS OMPI_BUILD_soh_bproc_DSO_TRUE OMPI_BUILD_soh_bproc_DSO_FALSE MCA_soh_ALL_COMPONENTS MCA_soh_STATIC_COMPONENTS MCA_soh_DSO_COMPONENTS MCA_soh_STATIC_LTLIBS MCA_soh_ALL_SUBDIRS MCA_soh_STATIC_SUBDIRS MCA_soh_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 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_hierarch_DSO_TRUE OMPI_BUILD_coll_hierarch_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 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 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_sm_DSO_TRUE OMPI_BUILD_mpool_sm_DSO_FALSE mpool_gm_CFLAGS mpool_gm_CPPFLAGS mpool_gm_LDFLAGS mpool_gm_LIBS OMPI_BUILD_mpool_gm_DSO_TRUE OMPI_BUILD_mpool_gm_DSO_FALSE mpool_mvapi_CFLAGS mpool_mvapi_CPPFLAGS mpool_mvapi_LDFLAGS mpool_mvapi_LIBS OMPI_BUILD_mpool_mvapi_DSO_TRUE OMPI_BUILD_mpool_mvapi_DSO_FALSE mpool_openib_CFLAGS mpool_openib_CPPFLAGS mpool_openib_LDFLAGS mpool_openib_LIBS OMPI_BUILD_mpool_openib_DSO_TRUE OMPI_BUILD_mpool_openib_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 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_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_rb_DSO_TRUE OMPI_BUILD_rcache_rb_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_PROJECT_SUBDIRS OMPI_LIBEVENT_SOURCES LTDLINCL LIBLTDL ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL 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 OPAL_PREFIX OPAL_EXEC_PREFIX OPAL_BINDIR OPAL_SBINDIR OPAL_LIBEXECDIR OPAL_DATADIR OPAL_SYSCONFDIR OPAL_SHAREDSTATEDIR OPAL_LOCALSTATEDIR OPAL_LIBDIR OPAL_INCLUDEDIR OPAL_INFODIR OPAL_MANDIR 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.1.1 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.1.1:";;
   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)
  --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-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-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 <type>-<component> 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)
  --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=<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-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 OpenIB (InfiniBand) support, searching for
                          libraries in DIR
  --with-openib-libdir=DIR
                          Search for OpenIB (InfiniBand) libraries in DIR
  --with-portals-config   configuration to use for Portals support. One of
                          "utcp", "redstorm". (default: utcp)
  --with-portals-libs=LIBS
                          Libraries to link with for portals
  --with-io-romio-flags=FLAGS
                          Pass FLAGS to the ROMIO distribution configuration
                          script
  --with-event-rtsig      compile with support for real time signals
                          (experimental)
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-tags[=TAGS]
                          include additional configurations [automatic]

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  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 <http://www.open-mpi.org/community/help/>.
_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.1.1
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.1.1, 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:1762: 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:1784: Loaded platform arguments for $platform_loaded" >&5
else
    echo Loaded platform arguments for $platform_loaded >&5
fi
    fi


#
# Init automake
#

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.1.1'


# 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 <<EOF

============================================================================
== ${1}
============================================================================
EOF
}


ompi_show_subtitle() {
  cat <<EOF

*** ${1}
EOF
}


ompi_show_subsubtitle() {
  cat <<EOF

+++ ${1}
EOF
}

ompi_show_subsubsubtitle() {
  cat <<EOF

--- ${1}
EOF
}

#
# Save some stats about this build
#

OMPI_CONFIGURE_USER="`whoami`"
OMPI_CONFIGURE_HOST="`hostname | head -n 1`"
OMPI_CONFIGURE_DATE="`date`"

#
# Save these details so that they can be used in ompi_info later
#



ompi_show_title "Configuring Open MPI"

ompi_show_subtitle "Checking versions"

# Get the version of OMPI that we are installing



    : ${ompi_ver_need_svn=1}
    : ${srcdir=.}
    : ${svnversion_result=-1}

        if test -f "$srcdir/VERSION"; then
        eval "`sed -n \"\
	t clear
	: clear
	s/^major/OMPI_MAJOR_VERSION/
	s/^minor/OMPI_MINOR_VERSION/
	s/^release/OMPI_RELEASE_VERSION/
	s/^greek/OMPI_GREEK_VERSION/
	s/^want_svn/OMPI_WANT_SVN/
	s/^svn_r/OMPI_SVN_R/
	t print
	b
	: print
	p\" < \"\$srcdir/VERSION\"`"

        # Only print release version if it isn't 0
        if test $OMPI_RELEASE_VERSION -ne 0 ; then
            OMPI_VERSION="$OMPI_MAJOR_VERSION.$OMPI_MINOR_VERSION.$OMPI_RELEASE_VERSION"
        else
            OMPI_VERSION="$OMPI_MAJOR_VERSION.$OMPI_MINOR_VERSION"
        fi
        OMPI_VERSION="${OMPI_VERSION}${OMPI_GREEK_VERSION}"
        OMPI_BASE_VERSION=$OMPI_VERSION

        if test $OMPI_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then
            if test "$svnversion_result" != "-1" ; then
                OMPI_SVN_R=$svnversion_result
            fi
            if test "$OMPI_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
                    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



#
# 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
    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

# This is effectively ignored in v1.1 because the "large" bindings are
# not ready for prime time


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


#
# 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:3509: 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



############################################################################
# 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 </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&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 <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* 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 <stdlib.h>
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



    # 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"


    # 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
            CLEANFILES="*.bb *.bbg *.da *.*.gcov ${CLEANFILES}"
             { echo "$as_me:$LINENO: WARNING: -fprofile-arcs -ftest-coverage has been added to CFLAGS (--enable-coverage)" >&5
echo "$as_me: WARNING: -fprofile-arcs -ftest-coverage has been added to CFLAGS (--enable-coverage)" >&2;}
            WANT_DEBUG=1
            CFLAGS="-ftest-coverage -fprofile-arcs ${CFLAGS}"
            WRAPPER_EXTRA_CFLAGS="-ftest-coverage -fprofile-arcs ${WRAPPER_EXTRA_CFLAGS}"
        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"; then
        if test "$ompi_c_vendor" = "gnu"; then
            CFLAGS="$CFLAGS -g3"
        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="$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_restruct_cflags" = "yes" ; then
            add="$RESTRUCT_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

    # 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 "$GCC" = yes; then
        OPTFLAGS="-O3"
    else
        OPTFLAGS="-O"
    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
#

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 <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> 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 <limits.h>
#else
# include <assert.h>
#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 <ac_nonexistent.h>
_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 <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> 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 <limits.h>
#else
# include <assert.h>
#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 <ac_nonexistent.h>
_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


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 <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.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_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 <string.h>

_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 <stdlib.h>

_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 <ctype.h>
#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

# 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



#
# 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 <stdio.h>
#include <stdlib.h>
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 <stdio.h>
#include <stdlib.h>
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 <stdio.h>
#include <stdlib.h>
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 <stdio.h>
#include <stdlib.h>
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 <stdio.h>
#include <stdlib.h>
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 <stdio.h>
#include <stdlib.h>
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 <stdio.h>
#include <stdlib.h>
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 <stdio.h>
#include <stdlib.h>
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 <stdio.h>
#include <stdlib.h>
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 <stdio.h>
#include <stdlib.h>
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



#
# 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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; char x; };
int main(int argc, char* argv[])
{
    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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; short x; };
int main(int argc, char* argv[])
{
    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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; wchar_t x; };
int main(int argc, char* argv[])
{
    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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; int x; };
int main(int argc, char* argv[])
{
    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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; long x; };
int main(int argc, char* argv[])
{
    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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; long long x; };
int main(int argc, char* argv[])
{
    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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; float x; };
int main(int argc, char* argv[])
{
    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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; double x; };
int main(int argc, char* argv[])
{
    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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; long double x; };
int main(int argc, char* argv[])
{
    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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; void * x; };
int main(int argc, char* argv[])
{
    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
# <stdbool.h> 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

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


    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 <<EOF
extern int real(int i);
extern int fake(int i);
#pragma weak fake = real
int real(int i) { return i; }
EOF

    cat > conftest.c <<EOF
extern int fake(int i);
extern int real(int i);
int main(int argc, char *argv) { return fake(3); }
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:17151: $CC $CFLAGS  -c conftest_weak.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:17158: \$? = $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:17168: $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:17175: \$? = $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 <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

void func (int c, char * f, ...)
{
  va_list arglist;
  va_start (arglist, f);
  /* vprintf (f, arglist); */
  va_end (arglist);
}

int main (int argc, char * argv[])
{
  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 </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&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 <stdlib.h>
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 <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> 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 <limits.h>
#else
# include <assert.h>
#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 <ac_nonexistent.h>
_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 <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> 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 <limits.h>
#else
# include <assert.h>
#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 <ac_nonexistent.h>
_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`"


    # 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.


    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
  ompi_cv_Cpp_works="cross compiling"
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
  ;
  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 <<EOF >&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












    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"


    # Do we want code coverage
    if test "$WANT_COVERAGE" = "1"; then
        if test "$ompi_cxx_vendor" = "gnu" ; then
            { echo "$as_me:$LINENO: WARNING: -fprofile-arcs -ftest-coverage has been added to CFLAGS (--enable-coverage)" >&5
echo "$as_me: WARNING: -fprofile-arcs -ftest-coverage has been added to CFLAGS (--enable-coverage)" >&2;}
            WANT_DEBUG=1
            CXXFLAGS="-ftest-coverage -fprofile-arcs ${CXXFLAGS}"
            WRAPPER_EXTRA_CXXFLAGS="-ftest-coverage -fprofile-arcs ${WRAPPER_EXTRA_CXXFLAGS}"
        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"; 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


    # 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 <<EOF
template <class T>
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 <<EOF
#include "conftest.h"

void
some_other_function(void)
{
  foo<bar> var1(6);
  foo< foo<bar> > var2(var1);
}
EOF

cat > conftest1.C <<EOF
#include "conftest.h"

void some_other_function(void);

template <class T>
void
foo<T>::member(int i)
{
  i += 2;
}

int
main(int argc, char *argv)
{
  foo<bar> var1(6);
  foo< foo<bar> > var2(var1);

  some_other_function();
  return 0;
}
EOF

ompi_template_failed=
echo configure:20197: $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:20201: here is the program that failed: >&5
    cat conftest1.C >&5
    echo configure:20203: here is conftest.h: >&5
    cat conftest.h >&5
    ompi_template_failed=1
else
    echo configure:20207: $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:20211: here is the program that failed: >&5
	cat conftest2.C >&5
	echo configure:20213: 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


    # 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<int(*)[3]>(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 "$GXX" = yes; then
        OPTFLAGS="-O3"
    else
        OPTFLAGS="-O"
    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 <stdio.h>
#include <stdlib.h>
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 <stdio.h>
#include <stdlib.h>
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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
struct foo { char c; bool x; };
int main(int argc, char* argv[])
{
    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-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible 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
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi
fi
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
echo "${ECHO_T}$lt_cv_path_NM" >&6
NM="$lt_cv_path_NM"

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 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 <<EOF
int testfunc() {return 0; }
EOF

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:21581: $CC $CFLAGS -c conftest.c -o conftest.$OBJEXT" >&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:21588: \$? = $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:21601: 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 <<EOF
#ifdef __cplusplus
extern "C" {
#endif
void gsym_test_func(void);
#ifdef __cplusplus
}
#endif
int
main(int argc, char *argv[])
{
    gsym_test_func();
    return 0;
}
EOF
        cat >conftest.s <<EOF

$ompi_cv_asm_text
$ompi_cv_asm_global ${sym}gsym_test_func
${sym}gsym_test_func${ompi_cv_asm_label_suffix}
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&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 <<EOF
foobar$ompi_cv_asm_label_suffix
${sym}mytestlabel$ompi_cv_asm_label_suffix
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&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 <<EOF
     .type mysym, ${type}function
mysym:
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&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 <<EOF
     .size mysym, 1
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&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 <<EOF
        $ompi_cv_asm_text
        .align 4
        $ompi_cv_asm_global foo
        .byte 1
        .align 4
foo$ompi_cv_asm_label_suffix
        .byte 2
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&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-*)
            ompi_cv_asm_arch="ALPHA"
            OMPI_ASM_SUPPORT_64BIT=1
            OMPI_GCC_INLINE_ASSIGN='"bis zero,zero,%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 <<EOF
$ompi_cv_asm_text
        addi 1,1,0
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&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 <<EOF
$ompi_cv_asm_text
        addi r1,r1,0
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&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 <<EOF
$ompi_cv_asm_text
        $ldarx_asm
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&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 <<EOF
$ompi_cv_asm_text
	casa [%o0] 0x80, %o1, %o2
EOF
if test "$CC" = "$CCAS" ; then
    ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
else
    ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&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 <c_asm.h>
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 <c_asm.h>
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}"
         OMPI_ASSEMBLY_FORMAT="$ompi_cv_asm_format"

        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_ASSEMBLY_FORMAT" >&5
echo "${ECHO_T}$OMPI_ASSEMBLY_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:23114:" \
     "checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&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"
    BASEF77="`basename $OMPI_F77`"
    OMPI_F77_ABSOLUTE="`which $F77`"

    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
  ompi_cv_Fortran_77_works="cross compiling"
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 <<EOF >&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



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






    # 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 <<EOF
       subroutine FOO_bar(a)
       integer a
       a = 1
       return
       end
EOF

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:23406: $F77 $FFLAGS -c conftest.f $LDFLAGS $LIBS" >&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:23413: \$? = $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:23435: 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.*


# 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 <<EOF
       program fsize
       external size
       LOGICAL x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:23690: $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:23697: \$? = $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:23707: $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:23714: \$? = $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:23745: ./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:23752: \$? = $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:23765: 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_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       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

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 <<EOF
      program falign
      external align
      LOGICAL  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:23955: $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:23962: \$? = $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:23972: $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:23979: \$? = $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:24010: ./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:24017: \$? = $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, int, int32_t" != ""; 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 <<EOF
       program fsize
       external size
       INTEGER x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:24255: $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:24262: \$? = $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:24272: $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:24279: \$? = $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:24310: ./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:24317: \$? = $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:24330: 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_r" = "$oft_target_size" ; then
                           oft_real_type="int64_r"
                       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 <<EOF
      program falign
      external align
      INTEGER  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:24530: $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:24537: \$? = $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:24547: $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:24554: \$? = $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:24585: ./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:24592: \$? = $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_r, 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 <<EOF
       program fsize
       external size
       INTEGER*1 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:24830: $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:24837: \$? = $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:24847: $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:24854: \$? = $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:24885: ./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:24892: \$? = $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:24905: 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 <<EOF
      program falign
      external align
      INTEGER*1  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:25115: $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:25122: \$? = $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:25132: $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:25139: \$? = $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:25170: ./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:25177: \$? = $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 <<EOF
       program fsize
       external size
       INTEGER*2 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:25415: $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:25422: \$? = $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:25432: $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:25439: \$? = $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:25470: ./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:25477: \$? = $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:25490: 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 <<EOF
      program falign
      external align
      INTEGER*2  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:25700: $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:25707: \$? = $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:25717: $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:25724: \$? = $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:25755: ./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:25762: \$? = $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 <<EOF
       program fsize
       external size
       INTEGER*4 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:26000: $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:26007: \$? = $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:26017: $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:26024: \$? = $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:26055: ./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:26062: \$? = $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:26075: 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 <<EOF
      program falign
      external align
      INTEGER*4  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:26275: $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:26282: \$? = $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:26292: $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:26299: \$? = $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:26330: ./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:26337: \$? = $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 <<EOF
       program fsize
       external size
       INTEGER*8 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:26575: $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:26582: \$? = $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:26592: $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:26599: \$? = $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:26630: ./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:26637: \$? = $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:26650: 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 <<EOF
      program falign
      external align
      INTEGER*8  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:26845: $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:26852: \$? = $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:26862: $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:26869: \$? = $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:26900: ./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:26907: \$? = $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 <<EOF
       program fsize
       external size
       INTEGER*16 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:27145: $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:27152: \$? = $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:27162: $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:27169: \$? = $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:27200: ./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:27207: \$? = $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:27220: 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 <<EOF
      program falign
      external align
      INTEGER*16  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:27415: $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:27422: \$? = $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:27432: $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:27439: \$? = $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:27470: ./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:27477: \$? = $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 <<EOF
       program fsize
       external size
       REAL x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:27716: $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:27723: \$? = $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:27733: $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:27740: \$? = $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:27771: ./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:27778: \$? = $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:27791: 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 <<EOF
      program falign
      external align
      REAL  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:27981: $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:27988: \$? = $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:27998: $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:28005: \$? = $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:28036: ./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:28043: \$? = $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 <<EOF
       program fsize
       external size
       REAL*4 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:28281: $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:28288: \$? = $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:28298: $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:28305: \$? = $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:28336: ./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:28343: \$? = $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:28356: 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 <<EOF
      program falign
      external align
      REAL*4  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:28546: $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:28553: \$? = $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:28563: $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:28570: \$? = $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:28601: ./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:28608: \$? = $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 <<EOF
       program fsize
       external size
       REAL*8 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:28846: $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:28853: \$? = $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:28863: $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:28870: \$? = $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:28901: ./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:28908: \$? = $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:28921: 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 <<EOF
      program falign
      external align
      REAL*8  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:29111: $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:29118: \$? = $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:29128: $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:29135: \$? = $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:29166: ./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:29173: \$? = $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 <<EOF
       program fsize
       external size
       REAL*16 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:29411: $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:29418: \$? = $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:29428: $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:29435: \$? = $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:29466: ./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:29473: \$? = $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:29486: 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 <<EOF
      program falign
      external align
      REAL*16  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:29676: $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:29683: \$? = $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:29693: $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:29700: \$? = $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:29731: ./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:29738: \$? = $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 <<EOF
       program fsize
       external size
       DOUBLE PRECISION x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:29976: $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:29983: \$? = $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:29993: $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:30000: \$? = $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:30031: ./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:30038: \$? = $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:30051: 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 <<EOF
      program falign
      external align
      DOUBLE PRECISION  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:30241: $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:30248: \$? = $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:30258: $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:30265: \$? = $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:30296: ./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:30303: \$? = $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 <<EOF
       program fsize
       external size
       COMPLEX x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:30542: $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:30549: \$? = $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:30559: $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:30566: \$? = $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:30597: ./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:30604: \$? = $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:30617: 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 <<EOF
      program falign
      external align
      COMPLEX  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:30742: $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:30749: \$? = $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:30759: $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:30766: \$? = $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:30797: ./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:30804: \$? = $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 <<EOF
       program fsize
       external size
       COMPLEX*8 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:31054: $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:31061: \$? = $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:31071: $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:31078: \$? = $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:31109: ./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:31116: \$? = $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:31129: 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 <<EOF
      program falign
      external align
      COMPLEX*8  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:31254: $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:31261: \$? = $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:31271: $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:31278: \$? = $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*8" >&5
echo "$as_me: error: Could not determine alignment of COMPLEX*8" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*8 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment 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:31309: ./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:31316: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_COMPLEXp8=`cat conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*8" >&5
echo "$as_me: error: Could not determine alignment of COMPLEX*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_COMPLEXp8" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp8" >&6

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp8

            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_COMPLEX8 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_COMPLEX8 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_COMPLEX8 $ofc_type_alignment
_ACEOF

    if test "" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_complex8_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_COMPLEX8_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_COMPLEX8=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_COMPLEX8=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_COMPLEX8=$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 COMPLEX*16" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*16... $ECHO_C" >&6
if test "${ompi_cv_f77_have_COMPLEXp16+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*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_COMPLEXp16="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f77_have_COMPLEXp16="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_COMPLEXp16" >&5
echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp16" >&6

    if test "$ompi_cv_f77_have_COMPLEXp16" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*16" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*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 COMPLEX*16" >&5
echo $ECHO_N "checking size of Fortran 77 COMPLEX*16... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_COMPLEXp16+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 <<EOF
       program fsize
       external size
       COMPLEX*16 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:31554: $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:31561: \$? = $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:31571: $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:31578: \$? = $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*16" >&5
echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*16 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of COMPLEX*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:31609: ./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:31616: \$? = $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_COMPLEXp16=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:31629: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
echo "$as_me: error: Could not determine size of COMPLEX*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_COMPLEXp16" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp16" >&6

    ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp16

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 COMPLEX*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 COMPLEX*16" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*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=


            # Get the alignment of the type
            if test "$ofc_have_type" = "1"; then



    echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*16" >&5
echo $ECHO_N "checking alignment of Fortran COMPLEX*16... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_COMPLEXp16+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 <<EOF
      program falign
      external align
      COMPLEX*16  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:31754: $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:31761: \$? = $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:31771: $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:31778: \$? = $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*16" >&5
echo "$as_me: error: Could not determine alignment of COMPLEX*16" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*16 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of COMPLEX*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:31809: ./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:31816: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_COMPLEXp16=`cat conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*16" >&5
echo "$as_me: error: Could not determine alignment of COMPLEX*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_COMPLEXp16" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp16" >&6

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp16

            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_COMPLEX16 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_COMPLEX16 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_COMPLEX16 $ofc_type_alignment
_ACEOF

    if test "" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_complex16_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_COMPLEX16_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_COMPLEX16=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_COMPLEX16=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_COMPLEX16=$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=32
    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*32" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*32... $ECHO_C" >&6
if test "${ompi_cv_f77_have_COMPLEXp32+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*32 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_COMPLEXp32="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f77_have_COMPLEXp32="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_COMPLEXp32" >&5
echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp32" >&6

    if test "$ompi_cv_f77_have_COMPLEXp32" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*32" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*32... $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*32" >&5
echo $ECHO_N "checking size of Fortran 77 COMPLEX*32... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_COMPLEXp32+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 <<EOF
       program fsize
       external size
       COMPLEX*32 x(2)
       call size(x(1),x(2))
       end
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:32054: $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:32061: \$? = $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:32071: $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:32078: \$? = $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*32" >&5
echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*32 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of COMPLEX*32 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:32109: ./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:32116: \$? = $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_COMPLEXp32=`cat conftestval`
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:32129: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
echo "$as_me: error: Could not determine size of COMPLEX*32" >&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_COMPLEXp32" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp32" >&6

    ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp32

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 COMPLEX*32 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*32" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*32" >&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*32" >&5
echo $ECHO_N "checking alignment of Fortran COMPLEX*32... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_COMPLEXp32+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 <<EOF
      program falign
      external align
      COMPLEX*32  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call align(w,x,y,z)
      end
EOF

        # C module
        if test -f conftest.h; then
            ompi_conftest_h="#include \"conftest.h\""
        else
            ompi_conftest_h=""
        fi
        cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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:32254: $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:32261: \$? = $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:32271: $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:32278: \$? = $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*32" >&5
echo "$as_me: error: Could not determine alignment of COMPLEX*32" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*32 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of COMPLEX*32 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:32309: ./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:32316: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_COMPLEXp32=`cat conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*32" >&5
echo "$as_me: error: Could not determine alignment of COMPLEX*32" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conf
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp32" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp32" >&6

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp32

            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_COMPLEX32 $ofc_have_type
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_COMPLEX32 $ofc_type_size
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_COMPLEX32 $ofc_type_alignment
_ACEOF

    if test "" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_complex32_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_COMPLEX32_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_COMPLEX32=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_COMPLEX32=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_COMPLEX32=$ofc_type_alignment

    # Clean up
    unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
    unset ofc_expected_size


# Regardless of whether we have fortran bindings, or even a fortran
# compiler, get the max value for a fortran MPI handle (this macro
# handles the case where we don't have a fortran compiler).


    echo "$as_me:$LINENO: checking for max Fortran MPI handle index" >&5
echo $ECHO_N "checking for max Fortran MPI handle index... $ECHO_C" >&6
if test "${ompi_cv_f77_fortran_handle_max+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
   # Find max fortran INTEGER value.  Set to sentinel value if we don't
         # have a Fortran compiler (e.g., if --disable-f77 was given).
         if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
             ompi_fint_max=0
         else
             # Calculate the number of f's that we need to append to the hex
             # value.  Do one less than we really need becaue we assume the
             # top nybble is 0x7 to avoid sign issues.
             ompi_numf=`expr $OMPI_SIZEOF_FORTRAN_INTEGER \* 2 - 1`
             ompi_fint_max=0x7
             while test "$ompi_numf" -gt "0"; do
                 ompi_fint_max=${ompi_fint_max}f
                 ompi_numf=`expr $ompi_numf - 1`
             done
         fi

         # Get INT_MAX.  Compute a SWAG if we are cross compiling or something
         # goes wrong.
         rm -f conftest.out >/dev/null 2>&1
         if test "$cross_compiling" = yes; then
   #cross compiling is fun.  compute INT_MAX same as INTEGER max
              ompi_numf=`expr $ac_cv_sizeof_int \* 2 - 1`
              ompi_cint_max=0x7
              while test "$ompi_numf" -gt "0" ; do
                  ompi_cint_max=${ompi_cint_max}f
                  ompi_numf=`expr $ompi_numf - 1`
              done
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>
#include <limits.h>

int
main ()
{
FILE *fp = fopen("conftest.out", "w");
long cint = INT_MAX;
fprintf(fp, "%ld", cint);
fclose(fp);
  ;
  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_cint_max=`cat conftest.out`
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_cint_max=0
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

         if test "$ompi_cint_max" = "0" ; then
             # wow - something went really wrong.  Be conservative
             ompi_cv_f77_fortran_handle_max=32767
         elif test "$ompi_fint_max" = "0" ; then
             # we aren't compiling Fortran - just set it to C INT_MAX
             ompi_cv_f77_fortran_handle_max=$ompi_cint_max
         else
             # take the lesser of C INT_MAX and Fortran INTEGER
             # max.  The resulting value will then be storable in
             # either type.  There's no easy way to do this in
             # the shell, so make the preprocessor do it.
             ompi_cv_f77_fortran_handle_max="( $ompi_fint_max < $ompi_cint_max ? $ompi_fint_max : $ompi_cint_max )"
          fi
          rm -f conftest.out > /dev/null 2>&1
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_fortran_handle_max" >&5
echo "${ECHO_T}$ompi_cv_f77_fortran_handle_max" >&6


cat >>confdefs.h <<_ACEOF
#define OMPI_FORTRAN_HANDLE_MAX $ompi_cv_f77_fortran_handle_max
_ACEOF



#
# Check for Fortran compilers value of TRUE and for the correct assumption
# on LOGICAL for conversion into what C considers to be a true value
#

    # invalidate cache if result came from a run where F77 was disabled
    if test "$ompi_cv_f77_true_value" = "0" ; then
        unset ompi_cv_f77_true_value
    fi

    echo "$as_me:$LINENO: checking FORTRAN value for .TRUE. logical type" >&5
echo $ECHO_N "checking FORTRAN value for .TRUE. logical type... $ECHO_C" >&6
if test "${ompi_cv_f77_true_value+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0" ; then
             ompi_cv_f77_true_value=0
         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 print | grep _ >/dev/null 2>&1 ; then
            ompi_print_logical_fn=print__
        else
            ompi_print_logical_fn=print_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_print_logical_fn=print_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_print_logical_fn=print
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_print_logical_fn=print
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_print_logical_fn=PRINT
    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


             #
             # C module
             # We really need the confdefs.h Header file for
             # the ompi_fortran_logical_t definition
             #
             if test \! -f confdefs.h ; 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: *** Cannot find confdefs.h file for config test" >&5
echo "$as_me: WARNING: *** Cannot find confdefs.h file for config 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

             cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include "confdefs.h"

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_print_logical_fn(ompi_fortran_logical_t * logical);

void $ompi_print_logical_fn(ompi_fortran_logical_t * logical)
{
    int result = 0;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);

    if( SIZEOF_INT >= sizeof(ompi_fortran_logical_t) ) {
        fprintf(f, "%d\n", (int)*logical);
    } else {
        exit(1);
    }
}

#ifdef __cplusplus
}
#endif
EOF

             cat > conftestf.f <<EOF
      program main
      logical value
      value=.TRUE.
      CALL print(value)
      end
EOF

             #
             # Try the compilation and run.
             #

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32592: $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:32599: \$? = $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:32609: $F77 $FFLAGS -o conftest conftest.o conftestf.f $LDFLAGS $LIBS" >&5
$F77 $FFLAGS -o conftest conftest.o conftestf.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:32616: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy=1
else
    unset ompi_status
    happy=0
fi
else
    unset ompi_status
    happy=0
fi

             if test "$happy" = "0" ; then
                 { { echo "$as_me:$LINENO: error: Could not determine value of Fotran .TRUE..  Aborting." >&5
echo "$as_me: error: Could not determine value of Fotran .TRUE..  Aborting." >&2;}
   { (exit 1); exit 1; }; }
             fi

             if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine value of .TRUE. when cross-compiling" >&5
echo "$as_me: error: Can not determine value of .TRUE. 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:32647: ./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:32654: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_true_value=`sed 's/  *//' conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine value of Fotran .TRUE..  Aborting." >&5
echo "$as_me: error: Could not determine value of Fotran .TRUE..  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi
fi

         fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_true_value" >&5
echo "${ECHO_T}$ompi_cv_f77_true_value" >&6


cat >>confdefs.h <<_ACEOF
#define OMPI_FORTRAN_VALUE_TRUE $ompi_cv_f77_true_value
_ACEOF


    unset happy ompi_print_logical_fn
    /bin/rm -f conftest*


    echo "$as_me:$LINENO: checking for correct handling of FORTRAN logical arrays" >&5
echo $ECHO_N "checking for correct handling of FORTRAN logical arrays... $ECHO_C" >&6
if test "${ompi_cv_f77_logical_array_correct+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then
             ompi_cv_f77_logical_array_correct=yes
         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 check | grep _ >/dev/null 2>&1 ; then
            ompi_check_logical_fn=check__
        else
            ompi_check_logical_fn=check_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_check_logical_fn=check_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_check_logical_fn=check
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_check_logical_fn=check
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_check_logical_fn=CHECK
    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 <<EOF
        program check_logical_array
        external check
        logical l(2)
        l(1)=.FALSE.
        l(2)=.TRUE.
        CALL check(l)
        end
EOF

             # C module
             # We really need the confdefs.h Header file for
             # the ompi_fortran_logical_t definition
             if test \! -f confdefs.h ; 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: *** Cannot find confdefs.h file for config test" >&5
echo "$as_me: WARNING: *** Cannot find confdefs.h file for config 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

             cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include "confdefs.h"

#ifdef __cplusplus
  extern "C" {
#endif
void $ompi_check_logical_fn(ompi_fortran_logical_t * logical);

void $ompi_check_logical_fn(ompi_fortran_logical_t * logical)
{
    int result = 0;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);

    if (logical[0] == 0 &&
        logical[1] == $ompi_cv_f77_true_value)
      result = 1;
    fprintf(f, "%d\n", result);
}
#ifdef __cplusplus
}
#endif
EOF

             # Try the compilation and run.  Can't use AC_TRY_RUN
             # because it's two module files.

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32776: $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:32783: \$? = $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:32793: $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:32800: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy=1
else
    unset ompi_status
    happy=0
fi
else
    unset ompi_status
    happy=0
fi
             if test "$happy" = "0" ; then
                 { { echo "$as_me:$LINENO: error: Error determining if arrays of logical values work properly." >&5
echo "$as_me: error: Error determining if arrays of logical values work properly." >&2;}
   { (exit 1); exit 1; }; }
             fi

             if test "$cross_compiling" = "yes"; then
   # assume we're ok
                  ompi_cv_f77_logical_array_correct=yes
else

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32829: ./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:32836: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test "`cat conftestval`" = "1" ; then
                           ompi_cv_f77_logical_array_correct=yes
                       else
                           ompi_cv_f77_logical_array_correct=no
                       fi
else
    unset ompi_status
    ompi_cv_f77_logical_array_correct=no
fi
fi

    fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_logical_array_correct" >&5
echo "${ECHO_T}$ompi_cv_f77_logical_array_correct" >&6

    if test "$ompi_cv_f77_logical_array_correct" = "no" ; then
        { { echo "$as_me:$LINENO: error: Error determining if arrays of logical values work properly." >&5
echo "$as_me: error: Error determining if arrays of logical values work properly." >&2;}
   { (exit 1); exit 1; }; }
    fi

    unset happy ompi_check_logical_fn
    /bin/rm -f conftest*


#
# There are 2 layers to the MPI f77 layer. The only extra thing that
# determine f77 bindings is that fortran can be disabled by user. In
# such cases, we need to not build the target at all.  One layer
# generates MPI_f77* bindings. The other layer generates PMPI_f77*
# bindings. The following conditions determine whether each (or both)
# these layers are built.
#
# Superceeding clause:
#   - fortran77 bindings should be enabled, else everything is
#     disabled
# 1. MPI_f77* 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 \) -a "$OMPI_WANT_F77_BINDINGS" = 1; then
  WANT_MPI_F77_BINDINGS_LAYER_TRUE=
  WANT_MPI_F77_BINDINGS_LAYER_FALSE='#'
else
  WANT_MPI_F77_BINDINGS_LAYER_TRUE='#'
  WANT_MPI_F77_BINDINGS_LAYER_FALSE=
fi




if test "$OMPI_WANT_F77_BINDINGS" = 1 -a "$WANT_MPI_PROFILING" = 1; then
  WANT_PMPI_F77_BINDINGS_LAYER_TRUE=
  WANT_PMPI_F77_BINDINGS_LAYER_FALSE='#'
else
  WANT_PMPI_F77_BINDINGS_LAYER_TRUE='#'
  WANT_PMPI_F77_BINDINGS_LAYER_FALSE=
fi


#-----------
# Fortran 90
#-----------




# Modularize this setup so that sub-configure.in scripts can use this
# same setup code.

ompi_show_subtitle "Fortran 90/95 compiler"

if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
    { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&5
echo "$as_me: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&2;}
    { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings were disabled)" >&5
echo "$as_me: WARNING: *** Fortran 77 bindings were disabled)" >&2;}

    OMPI_WANT_F90_BINDINGS=0
    OMPI_F90="none"
    BASEF90="none"
    OMPI_F90_ABSOLUTE="none"
    if test "$enable_f90" = "yes"; then
        { echo "$as_me:$LINENO: WARNING: *** but --enable-f90 was explicitly specified" >&5
echo "$as_me: WARNING: *** but --enable-f90 was explicitly specified" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi
elif test "$OMPI_WANT_F90_BINDINGS" = "0" ; then
    { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings disabled by user" >&5
echo "$as_me: WARNING: *** Fortran 90/95 bindings disabled by user" >&2;}
    OMPI_WANT_F90_BINDINGS=0
    OMPI_F90="none"
    BASEF90="none"
    OMPI_F90_ABSOLUTE="none"
else

    #
    # 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 mpif90.
    #
    # Note that AC_PROG_FC will look for *any* fortran compiler, and
    # we don't want it to find an F77 compiler.  The AC docs don't
    # recommend using the "dialect" feature of AC_PROG_FC (and you can
    # only look for one of Fortran 90 or 95 -- not both), so instead
    # use the optional first parameter and steal the list of Fortran
    # compilers (excluding the f77 compiler names) from AC's default
    # list of 95 and 90 compilers and use it here.
    #

    ompi_fcflags_save="$FCFLAGS"
    ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgf95 lf95 f90 xlf90 pgf90 epcf90
  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_FC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$FC"; then
  ac_cv_prog_FC="$FC" # 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_FC="$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
FC=$ac_cv_prog_FC
if test -n "$FC"; then
  echo "$as_me:$LINENO: result: $FC" >&5
echo "${ECHO_T}$FC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$FC" && break
  done
fi
if test -z "$FC"; then
  ac_ct_FC=$FC
  for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgf95 lf95 f90 xlf90 pgf90 epcf90
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_FC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_FC"; then
  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # 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_FC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_FC=$ac_cv_prog_ac_ct_FC
if test -n "$ac_ct_FC"; then
  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
echo "${ECHO_T}$ac_ct_FC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_FC" && break
done

  FC=$ac_ct_FC
fi


# Provide some information about the compiler.
echo "$as_me:33057:" \
     "checking for Fortran compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&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 compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
if test "${ac_cv_fc_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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_fc_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FCFLAGS+set}
ac_save_FFLAGS=$FCFLAGS
FCFLAGS=
echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_fc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  FCFLAGS=-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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_fc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_fc_g=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext

fi
echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
if test "$ac_test_FFLAGS" = set; then
  FCFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_fc_g = yes; then
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
    FCFLAGS="-g -O2"
  else
    FCFLAGS="-g"
  fi
else
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
    FCFLAGS="-O2"
  else
    FCFLAGS=
  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

    FCFLAGS="$ompi_fcflags_save"
    if test -z "$FC"; then
        { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&5
echo "$as_me: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&2;}
        OMPI_WANT_F90_BINDINGS=0
        OMPI_F90="none"
        BASEF90="none"
        OMPI_F90_ABSOLUTE="none"
    else
        OMPI_WANT_F90_BINDINGS=1
        OMPI_F90="$FC"
        BASEF90="`basename $FC`"
        OMPI_F90_ABSOLUTE="`which $FC`"
    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_F90_BINDINGS -eq 1; then


    echo "$as_me:$LINENO: checking if Fortran compiler works" >&5
echo $ECHO_N "checking if Fortran compiler works... $ECHO_C" >&6
if test "${ompi_cv_Fortran_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         if test "$cross_compiling" = yes; then
  ompi_cv_Fortran_works="cross compiling"
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_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_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_works" >&5
echo "${ECHO_T}$ompi_cv_Fortran_works" >&6
    if test "$ompi_cv_Fortran_works" = "no"; then
  cat <<EOF >&2
**********************************************************************
* It appears that your Fortran 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 program.  Aborting." >&5
echo "$as_me: error: Could not run a simple Fortran program.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi



fi


# check to see if the F77 and F90 compilers are compatible
if test $OMPI_WANT_F90_BINDINGS -eq 1; then
  echo "$as_me:$LINENO: checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible" >&5
echo $ECHO_N "checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible... $ECHO_C" >&6

# make sure that we can combine F90 and F77 code
ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

# Fortran module
cat > conftestf77.f <<EOF
        subroutine Conf1_test()
        end
EOF
cat > conftestf90.f <<EOF
        program main
        call Conf1_test()
        end
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33319: $OMPI_F90 $FCFLAGS $FCFLAGS_f -c conftestf90.f" >&5
$OMPI_F90 $FCFLAGS $FCFLAGS_f -c conftestf90.f 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:33326: \$? = $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:33336: $OMPI_F77 $FFLAGS -c conftestf77.f" >&5
$OMPI_F77 $FFLAGS -c conftestf77.f 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:33343: \$? = $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:33353: $OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LIBS" >&5
$OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $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:33360: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   fortran_goodness=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33387: here is the F77 program:" >&5
else
    echo here is the F77 program: >&5
fi

# 1 is the filename
if test -n "conftestf77.f" -a -f "conftestf77.f"; then
    cat conftestf77.f >&5
fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33400: here is the F90 program:" >&5
else
    echo here is the F90 program: >&5
fi

# 1 is the filename
if test -n "conftestf90.f" -a -f "conftestf90.f"; then
    cat conftestf90.f >&5
fi
    fortran_goodness=0
fi

unset HAPPY ompi_conftest_h
/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


     if test "$fortran_goodness" = "0" ; then
         echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
         { echo "$as_me:$LINENO: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&5
echo "$as_me: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&2;}
         { echo "$as_me:$LINENO: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&5
echo "$as_me: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&2;}
         OMPI_WANT_F90_BINDINGS=0
     else
         echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
     fi

fi


# if we're still good, then save the extra file types.  Do this last
# because it implies tests that should be invoked by the above tests
# (e.g., running the fortran compiler).
if test $OMPI_WANT_F90_BINDINGS -eq 1; then
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

        echo "$as_me:$LINENO: checking for Fortran flag to compile .f files" >&5
echo $ECHO_N "checking for Fortran flag to compile .f files... $ECHO_C" >&6
if test "${ac_cv_fc_srcext_f+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=f
ac_fc_srcext_FCFLAGS_SRCEXT_save=$FCFLAGS_SRCEXT
FCFLAGS_SRCEXT=""
ac_cv_fc_srcext_f=unknown
for ac_flag in none -qsuffix=f=f -Tf; do
  test "x$ac_flag" != xnone && FCFLAGS_SRCEXT="$ac_flag"
  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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_fc_srcext_f=$ac_flag; 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.$ac_objext conftest.f
FCFLAGS_SRCEXT=$ac_fc_srcext_FCFLAGS_SRCEXT_save

fi
echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_f" >&5
echo "${ECHO_T}$ac_cv_fc_srcext_f" >&6
if test "x$ac_cv_fc_srcext_f" = xunknown; then
  { { echo "$as_me:$LINENO: error: Fortran could not compile .f files" >&5
echo "$as_me: error: Fortran could not compile .f files" >&2;}
   { (exit 1); exit 1; }; }
else
  FC_SRCEXT=f
  if test "x$ac_cv_fc_srcext_f" = xnone; then
    FCFLAGS_SRCEXT=""
    FCFLAGS_f=""
  else
    FCFLAGS_SRCEXT=$ac_cv_fc_srcext_f
    FCFLAGS_f=$ac_cv_fc_srcext_f
  fi


fi

        echo "$as_me:$LINENO: checking for Fortran flag to compile .f90 files" >&5
echo $ECHO_N "checking for Fortran flag to compile .f90 files... $ECHO_C" >&6
if test "${ac_cv_fc_srcext_f90+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=f90
ac_fc_srcext_FCFLAGS_SRCEXT_save=$FCFLAGS_SRCEXT
FCFLAGS_SRCEXT=""
ac_cv_fc_srcext_f90=unknown
for ac_flag in none -qsuffix=f=f90 -Tf; do
  test "x$ac_flag" != xnone && FCFLAGS_SRCEXT="$ac_flag"
  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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_fc_srcext_f90=$ac_flag; 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.$ac_objext conftest.f90
FCFLAGS_SRCEXT=$ac_fc_srcext_FCFLAGS_SRCEXT_save

fi
echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_f90" >&5
echo "${ECHO_T}$ac_cv_fc_srcext_f90" >&6
if test "x$ac_cv_fc_srcext_f90" = xunknown; then
  { { echo "$as_me:$LINENO: error: Fortran could not compile .f90 files" >&5
echo "$as_me: error: Fortran could not compile .f90 files" >&2;}
   { (exit 1); exit 1; }; }
else
  FC_SRCEXT=f90
  if test "x$ac_cv_fc_srcext_f90" = xnone; then
    FCFLAGS_SRCEXT=""
    FCFLAGS_f90=""
  else
    FCFLAGS_SRCEXT=$ac_cv_fc_srcext_f90
    FCFLAGS_f90=$ac_cv_fc_srcext_f90
  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

fi


# All done -- save values

cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_F90_BINDINGS $OMPI_WANT_F90_BINDINGS
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_F90 "$OMPI_F90"
_ACEOF



if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
  OMPI_WANT_F90_BINDINGS_TRUE=
  OMPI_WANT_F90_BINDINGS_FALSE='#'
else
  OMPI_WANT_F90_BINDINGS_TRUE='#'
  OMPI_WANT_F90_BINDINGS_FALSE=
fi


unset fortran_goodness


# Look for the fortran module compiler flag



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        echo "$as_me:$LINENO: checking for Fortran 90 compiler module include flag" >&5
echo $ECHO_N "checking for Fortran 90 compiler module include flag... $ECHO_C" >&6
if test "${ompi_cv_f90_module_include_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ofi_possible_flags="-I -p -M"
            mkdir conftest.$$
            cd conftest.$$

            # Try to compile an F90 module
            mkdir subdir
            cd subdir
            cat > conftest-module.f90 <<EOF
module OMPI_MOD_FLAG

  type OMPI_MOD_FLAG_TYPE
    integer :: i
  end type OMPI_MOD_FLAG_TYPE

end module OMPI_MOD_FLAG
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33650: $FC $FCFLAGS $FCFLAGS_f90 -c conftest-module.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -c conftest-module.f90 $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:33657: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

else
    unset ompi_status
    cd  ..
                 rm -rf conftest.$$
                 echo "$as_me:$LINENO: result: Whoops!" >&5
echo "${ECHO_T}Whoops!" >&6
                 { echo "$as_me:$LINENO: WARNING: *** Cannot seem to compile an f90 module" >&5
echo "$as_me: WARNING: *** Cannot seem to compile an f90 module" >&2;}
                 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
fi
            cd ..

            #
            # Now try to compile a simple program usinng that module, iterating
            # through the possible flags that the compiler might use
            #

            cat > conftest.f90 <<EOF
program f90usemodule
  use OMPI_MOD_FLAG
end program f90usemodule
EOF

            ofi_module_flag=
            for flag in $ofi_possible_flags; do
                if test "$ofi_module_flag" = ""; then

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33696: $FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $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:33703: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_module_include_flag=$flag
                            ofi_module_flag="$flag"
else
    unset ompi_status

fi
                fi
            done
            cd ..
            rm -rf conftest.$$

fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_module_include_flag" >&5
echo "${ECHO_T}$ompi_cv_f90_module_include_flag" >&6

        OMPI_FC_MODULE_FLAG=$ompi_cv_f90_module_include_flag
        if test "$OMPI_FC_MODULE_FLAG" = ""; then
        { echo "$as_me:$LINENO: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&5
echo "$as_me: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&2;}
        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    else
        OMPI_FC_MODULE_FLAG=
    fi




# Look for all the types
OMPI_F90_IKINDS=""
OMPI_F90_RKINDS=""
OMPI_F90_CKINDS=""

# LOGICAL and friends

    ofc_fortran_type="LOGICAL"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports LOGICAL" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL... $ECHO_C" >&6
if test "${ompi_cv_f90_have_LOGICAL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    LOGICAL :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_LOGICAL="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_LOGICAL" >&5
echo "${ECHO_T}$ompi_cv_f90_have_LOGICAL" >&6

    if test "$ompi_cv_f90_have_LOGICAL" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 LOGICAL" >&5
echo $ECHO_N "checking size of Fortran 90 LOGICAL... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   LOGICAL :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33918: $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:33925: \$? = $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:33935: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:33942: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:33963: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL" >&5
echo "$as_me: WARNING: Could not determine size of LOGICAL" >&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

         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:33990: ./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:33997: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_LOGICAL=`cat conftestval`
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_f90_sizeof_LOGICAL" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICAL" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_LOGICAL

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=L
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_LOGICAL $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_LOGICAL=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


# INTEGER and friends

    ofc_fortran_type="INTEGER"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports INTEGER" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER... $ECHO_C" >&6
if test "${ompi_cv_f90_have_INTEGER+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    INTEGER :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_INTEGER="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_INTEGER" >&5
echo "${ECHO_T}$ompi_cv_f90_have_INTEGER" >&6

    if test "$ompi_cv_f90_have_INTEGER" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 INTEGER" >&5
echo $ECHO_N "checking size of Fortran 90 INTEGER... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   INTEGER :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:34286: $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:34293: \$? = $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:34303: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:34310: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34331: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER" >&5
echo "$as_me: WARNING: Could not determine size of INTEGER" >&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

         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:34358: ./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:34365: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGER=`cat conftestval`
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_f90_sizeof_INTEGER" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGER" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGER

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="INTEGER*1"
    ofc_expected_size="1"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports INTEGER*1" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*1... $ECHO_C" >&6
if test "${ompi_cv_f90_have_INTEGERp1+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    INTEGER*1 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_INTEGERp1="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_INTEGERp1" >&5
echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp1" >&6

    if test "$ompi_cv_f90_have_INTEGERp1" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 INTEGER*1" >&5
echo $ECHO_N "checking size of Fortran 90 INTEGER*1... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   INTEGER*1 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:34652: $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:34659: \$? = $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:34669: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:34676: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:34697: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*1" >&5
echo "$as_me: WARNING: Could not determine size of INTEGER*1" >&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

         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:34724: ./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:34731: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGERp1=`cat conftestval`
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_f90_sizeof_INTEGERp1" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp1" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp1

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER1
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER1
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER1 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER1=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="INTEGER*2"
    ofc_expected_size="2"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports INTEGER*2" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*2... $ECHO_C" >&6
if test "${ompi_cv_f90_have_INTEGERp2+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    INTEGER*2 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_INTEGERp2="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_INTEGERp2" >&5
echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp2" >&6

    if test "$ompi_cv_f90_have_INTEGERp2" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 INTEGER*2" >&5
echo $ECHO_N "checking size of Fortran 90 INTEGER*2... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   INTEGER*2 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35018: $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:35025: \$? = $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:35035: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:35042: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35063: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*2" >&5
echo "$as_me: WARNING: Could not determine size of INTEGER*2" >&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

         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:35090: ./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:35097: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGERp2=`cat conftestval`
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_f90_sizeof_INTEGERp2" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp2" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp2

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER2
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER2
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER2 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER2=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="INTEGER*4"
    ofc_expected_size="4"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports INTEGER*4" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*4... $ECHO_C" >&6
if test "${ompi_cv_f90_have_INTEGERp4+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    INTEGER*4 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_INTEGERp4="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_INTEGERp4" >&5
echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp4" >&6

    if test "$ompi_cv_f90_have_INTEGERp4" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 INTEGER*4" >&5
echo $ECHO_N "checking size of Fortran 90 INTEGER*4... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   INTEGER*4 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35384: $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:35391: \$? = $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:35401: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:35408: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35429: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*4" >&5
echo "$as_me: WARNING: Could not determine size of INTEGER*4" >&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

         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:35456: ./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:35463: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGERp4=`cat conftestval`
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_f90_sizeof_INTEGERp4" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp4" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp4

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER4
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER4
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER4 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER4=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="INTEGER*8"
    ofc_expected_size="8"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports INTEGER*8" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*8... $ECHO_C" >&6
if test "${ompi_cv_f90_have_INTEGERp8+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    INTEGER*8 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_INTEGERp8="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_INTEGERp8" >&5
echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp8" >&6

    if test "$ompi_cv_f90_have_INTEGERp8" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 INTEGER*8" >&5
echo $ECHO_N "checking size of Fortran 90 INTEGER*8... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   INTEGER*8 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:35750: $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:35757: \$? = $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:35767: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:35774: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:35795: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*8" >&5
echo "$as_me: WARNING: Could not determine size of INTEGER*8" >&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

         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:35822: ./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:35829: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGERp8=`cat conftestval`
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_f90_sizeof_INTEGERp8" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp8" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp8

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER8
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER8
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER8 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER8=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="INTEGER*16"
    ofc_expected_size="16"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports INTEGER*16" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*16... $ECHO_C" >&6
if test "${ompi_cv_f90_have_INTEGERp16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    INTEGER*16 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_INTEGERp16="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_INTEGERp16" >&5
echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp16" >&6

    if test "$ompi_cv_f90_have_INTEGERp16" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 INTEGER*16" >&5
echo $ECHO_N "checking size of Fortran 90 INTEGER*16... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   INTEGER*16 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36116: $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:36123: \$? = $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:36133: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:36140: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36161: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*16" >&5
echo "$as_me: WARNING: Could not determine size of INTEGER*16" >&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

         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:36188: ./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:36195: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_INTEGERp16=`cat conftestval`
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_f90_sizeof_INTEGERp16" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp16" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp16

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER16
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER16
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=I
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_INTEGER16 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_INTEGER16=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


# REAL, DOUBLE PRECISION, REAL*4, *8, *16

    ofc_fortran_type="REAL"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports REAL" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports REAL... $ECHO_C" >&6
if test "${ompi_cv_f90_have_REAL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    REAL :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_REAL="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_REAL" >&5
echo "${ECHO_T}$ompi_cv_f90_have_REAL" >&6

    if test "$ompi_cv_f90_have_REAL" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 REAL" >&5
echo $ECHO_N "checking size of Fortran 90 REAL... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   REAL :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36484: $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:36491: \$? = $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:36501: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:36508: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36529: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL" >&5
echo "$as_me: WARNING: Could not determine size of REAL" >&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

         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:36556: ./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:36563: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_REAL=`cat conftestval`
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_f90_sizeof_REAL" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_REAL" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_REAL

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=R
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_REAL $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_REAL=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="REAL*4"
    ofc_expected_size="4"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports REAL*4" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports REAL*4... $ECHO_C" >&6
if test "${ompi_cv_f90_have_REALp4+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    REAL*4 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_REALp4="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_REALp4" >&5
echo "${ECHO_T}$ompi_cv_f90_have_REALp4" >&6

    if test "$ompi_cv_f90_have_REALp4" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 REAL*4" >&5
echo $ECHO_N "checking size of Fortran 90 REAL*4... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   REAL*4 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:36850: $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:36857: \$? = $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:36867: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:36874: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:36895: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*4" >&5
echo "$as_me: WARNING: Could not determine size of REAL*4" >&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

         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:36922: ./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:36929: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_REALp4=`cat conftestval`
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_f90_sizeof_REALp4" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp4" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_REALp4

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL4
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL4
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=R
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_REAL4 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_REAL4=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="REAL*8"
    ofc_expected_size="8"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports REAL*8" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports REAL*8... $ECHO_C" >&6
if test "${ompi_cv_f90_have_REALp8+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    REAL*8 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_REALp8="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_REALp8" >&5
echo "${ECHO_T}$ompi_cv_f90_have_REALp8" >&6

    if test "$ompi_cv_f90_have_REALp8" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 REAL*8" >&5
echo $ECHO_N "checking size of Fortran 90 REAL*8... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   REAL*8 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37216: $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:37223: \$? = $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:37233: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:37240: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37261: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*8" >&5
echo "$as_me: WARNING: Could not determine size of REAL*8" >&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

         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:37288: ./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:37295: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_REALp8=`cat conftestval`
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_f90_sizeof_REALp8" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp8" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_REALp8

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL8
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL8
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=R
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_REAL8 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_REAL8=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="REAL*16"
    ofc_expected_size="16"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports REAL*16" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports REAL*16... $ECHO_C" >&6
if test "${ompi_cv_f90_have_REALp16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    REAL*16 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_REALp16="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_REALp16" >&5
echo "${ECHO_T}$ompi_cv_f90_have_REALp16" >&6

    if test "$ompi_cv_f90_have_REALp16" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 REAL*16" >&5
echo $ECHO_N "checking size of Fortran 90 REAL*16... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   REAL*16 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37582: $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:37589: \$? = $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:37599: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:37606: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37627: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*16" >&5
echo "$as_me: WARNING: Could not determine size of REAL*16" >&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

         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:37654: ./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:37661: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_REALp16=`cat conftestval`
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_f90_sizeof_REALp16" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp16" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_REALp16

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL16
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL16
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=R
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_REAL16 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_REAL16=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="DOUBLE PRECISION"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports DOUBLE PRECISION" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports DOUBLE PRECISION... $ECHO_C" >&6
if test "${ompi_cv_f90_have_DOUBLE_PRECISION+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    DOUBLE PRECISION :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_DOUBLE_PRECISION="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_DOUBLE_PRECISION" >&5
echo "${ECHO_T}$ompi_cv_f90_have_DOUBLE_PRECISION" >&6

    if test "$ompi_cv_f90_have_DOUBLE_PRECISION" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 DOUBLE PRECISION" >&5
echo $ECHO_N "checking size of Fortran 90 DOUBLE PRECISION... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   DOUBLE PRECISION :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:37948: $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:37955: \$? = $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:37965: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:37972: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:37993: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of DOUBLE PRECISION" >&5
echo "$as_me: WARNING: Could not determine size of DOUBLE PRECISION" >&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

         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:38020: ./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:38027: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_DOUBLE_PRECISION=`cat conftestval`
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_f90_sizeof_DOUBLE_PRECISION" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_DOUBLE_PRECISION" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_DOUBLE_PRECISION

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_DOUBLE_PRECISION
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=D
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_DOUBLE_PRECISION $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_DOUBLE_PRECISION=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


# COMPLEX, DOUBLE COMPLEX, COMPLEX*8, *16, *32

    ofc_fortran_type="COMPLEX"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports COMPLEX" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX... $ECHO_C" >&6
if test "${ompi_cv_f90_have_COMPLEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    COMPLEX :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_COMPLEX="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_COMPLEX" >&5
echo "${ECHO_T}$ompi_cv_f90_have_COMPLEX" >&6

    if test "$ompi_cv_f90_have_COMPLEX" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 COMPLEX" >&5
echo $ECHO_N "checking size of Fortran 90 COMPLEX... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   COMPLEX :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38316: $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:38323: \$? = $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:38333: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:38340: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38361: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX" >&5
echo "$as_me: WARNING: Could not determine size of COMPLEX" >&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

         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:38388: ./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:38395: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_COMPLEX=`cat conftestval`
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_f90_sizeof_COMPLEX" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEX" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_COMPLEX

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=C
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_COMPLEX $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_COMPLEX=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="COMPLEX*8"
    ofc_expected_size="8"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports COMPLEX*8" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*8... $ECHO_C" >&6
if test "${ompi_cv_f90_have_COMPLEXp8+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    COMPLEX*8 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_COMPLEXp8="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_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_f90_have_COMPLEXp8" >&5
echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp8" >&6

    if test "$ompi_cv_f90_have_COMPLEXp8" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 COMPLEX*8" >&5
echo $ECHO_N "checking size of Fortran 90 COMPLEX*8... $ECHO_C" >&6
if test "${ompi_cv_f90_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.f90 <<EOF
program fsize
   external size
   COMPLEX*8 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:38682: $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:38689: \$? = $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:38699: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:38706: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:38727: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*8" >&5
echo "$as_me: WARNING: Could not determine size of COMPLEX*8" >&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

         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:38754: ./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:38761: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_COMPLEXp8=`cat conftestval`
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_f90_sizeof_COMPLEXp8" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp8" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp8

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX8
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX8
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=C
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_COMPLEX8 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_COMPLEX8=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="COMPLEX*16"
    ofc_expected_size="16"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports COMPLEX*16" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*16... $ECHO_C" >&6
if test "${ompi_cv_f90_have_COMPLEXp16+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    COMPLEX*16 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_COMPLEXp16="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_have_COMPLEXp16="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_f90_have_COMPLEXp16" >&5
echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp16" >&6

    if test "$ompi_cv_f90_have_COMPLEXp16" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 COMPLEX*16" >&5
echo $ECHO_N "checking size of Fortran 90 COMPLEX*16... $ECHO_C" >&6
if test "${ompi_cv_f90_sizeof_COMPLEXp16+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.f90 <<EOF
program fsize
   external size
   COMPLEX*16 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39048: $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:39055: \$? = $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:39065: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:39072: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39093: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*16" >&5
echo "$as_me: WARNING: Could not determine size of COMPLEX*16" >&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

         if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*16 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of COMPLEX*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:39120: ./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:39127: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_COMPLEXp16=`cat conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp16" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp16" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp16

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX16
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX16
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=C
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_COMPLEX16 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_COMPLEX16=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="COMPLEX*32"
    ofc_expected_size="32"

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports COMPLEX*32" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*32... $ECHO_C" >&6
if test "${ompi_cv_f90_have_COMPLEXp32+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    COMPLEX*32 :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_COMPLEXp32="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_have_COMPLEXp32="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_f90_have_COMPLEXp32" >&5
echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp32" >&6

    if test "$ompi_cv_f90_have_COMPLEXp32" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 COMPLEX*32" >&5
echo $ECHO_N "checking size of Fortran 90 COMPLEX*32... $ECHO_C" >&6
if test "${ompi_cv_f90_sizeof_COMPLEXp32+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.f90 <<EOF
program fsize
   external size
   COMPLEX*32 :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39414: $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:39421: \$? = $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:39431: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:39438: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39459: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*32" >&5
echo "$as_me: WARNING: Could not determine size of COMPLEX*32" >&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

         if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*32 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of COMPLEX*32 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:39486: ./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:39493: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_COMPLEXp32=`cat conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp32" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp32" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp32

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX32
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX32
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=C
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_COMPLEX32 $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_COMPLEX32=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof


    ofc_fortran_type="DOUBLE COMPLEX"
    ofc_expected_size=""

    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int

    # Only check if we actually want the F90 bindings / have a F90
    # compiler.  This allows us to call this macro even if there is
    # no F90 compiler.  If we have no f90 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F90_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 90 compiler supports DOUBLE COMPLEX" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports DOUBLE COMPLEX... $ECHO_C" >&6
if test "${ompi_cv_f90_have_DOUBLE_COMPLEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=${FC_SRCEXT-f}
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
program main
    DOUBLE COMPLEX :: x
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_fc_werror_flag"
			 || test ! -s conftest.err'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_f90_have_DOUBLE_COMPLEX="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_f90_have_DOUBLE_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_f90_have_DOUBLE_COMPLEX" >&5
echo "${ECHO_T}$ompi_cv_f90_have_DOUBLE_COMPLEX" >&6

    if test "$ompi_cv_f90_have_DOUBLE_COMPLEX" = "yes"; then
  ofc_have_type=1
else
  ofc_have_type=0
fi


    else
        echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $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 90 DOUBLE COMPLEX" >&5
echo $ECHO_N "checking size of Fortran 90 DOUBLE COMPLEX... $ECHO_C" >&6
if test "${ompi_cv_f90_sizeof_DOUBLE_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.f90 <<EOF
program fsize
   external size
   DOUBLE COMPLEX :: x(2)
   call size(x(1),x(2))
end program
EOF

         # C module
         if test -f conftest.h; then
             ompi_conftest_h="#include \"conftest.h\""
         else
             ompi_conftest_h=""
         fi
         cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
$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);
}
#ifdef __cplusplus
}
#endif
EOF


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:39780: $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:39787: \$? = $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:39797: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 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:39804: \$? = $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

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:39825: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
             { echo "$as_me:$LINENO: WARNING: Could not determine size of DOUBLE COMPLEX" >&5
echo "$as_me: WARNING: Could not determine size of DOUBLE COMPLEX" >&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

         if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE COMPLEX when cross-compiling" >&5
echo "$as_me: error: Can not determine size of DOUBLE 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:39852: ./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:39859: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_sizeof_DOUBLE_COMPLEX=`cat conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE COMPLEX" >&5
echo "$as_me: error: Could not determine size of DOUBLE COMPLEX" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&5
echo "${ECHO_T}$ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&6

    ofc_type_size=$ompi_cv_f90_sizeof_DOUBLE_COMPLEX

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type 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 $ofc_fortran_type" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
            ofc_have_type=0
        else
            # If this type has an F77 counterpart, see if it's
            # supported.
            ofc_f77_have_type=$OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX
            if test "$ofc_f77_have_type" = "0"; then
                { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&5
echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&2;}
                { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&5
echo "$as_me: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_DOUBLE_COMPLEX
                if test "$ofc_f77_sizeof" != ""; then
                    echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&5
echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&2;}
                        { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&5
echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&2;}
                        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    fi
                fi

                # If we passed in the expected size, then also add the
                # type to the relevant list of types found.
                if test "$ofc_expected_size" != ""; then
                    ofc_letter=D
                    ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
                    eval $ofc_str
                fi
            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*.  Note that the bpatsubst's are the same as used
    # above (see comment above), but we added a translit to make them
    # uppercase.

    # If we got a pretty name, use that as the basis.  If not, use the
    # first part of the provided fortran type (e.g.,
    # "logical(selected_int_kind(2))" -> logical1")

    # Note that there is no need to AC_DEFINE the size of the F90
    # datatype.  We have ensured (above) that they are the same as the
    # corresponding F77 datatypes, and that's good enough (i.e., the
    # DDT engine only looks at the F77 sizes).

    # Finally, note that it is necessary to use the Big Long Ugly m4
    # expressions in the AC_DEFINE_UNQUOTEDs.  If you don't (e.g., put
    # the result of the BLUm4E in a shell variable and use that in
    # AC_DEFINE_UNQUOTED), autoheader won't put them in the
    # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_F90_DOUBLE_COMPLEX $ofc_have_type
_ACEOF


    # Save some in shell variables for later use.  Have to use m4
    # functions here (vs. $ompi_upper_var_name, defined above) because
    # these need to be set at autoconf time, not configure time.
    OMPI_SIZEOF_F90_DOUBLE_COMPLEX=$ofc_type_size


    # Clean up
    unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
    unset ofc_have_type ofc_type_size ofc_letter ofc_str
    unset ofc_type_range ofc_type_precision
    unset ofc_f77_sizeof






# get kind value for Fortran MPI_INTEGER_KIND (corresponding to
# whatever is the same size as a F77 INTEGER -- for the
# most-likely-will-never-occur case where F77 INTEGER is smaller than
# an F90 INTEGER; see MPI-2 4.12.6.5
if test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "2"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))" >&5
echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))... $ECHO_C" >&6
if test "${ompi_cv_f90_int_kind_4+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(4)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40005: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $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:40012: \$? = $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

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40029: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&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

            if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) 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:40056: ./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:40063: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_4=`sed 's/  *//' conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_4" >&5
echo "${ECHO_T}$ompi_cv_f90_int_kind_4" >&6

        OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_4
    else
        OMPI_MPI_INTEGER_KIND=0
    fi

elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "4"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))" >&5
echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))... $ECHO_C" >&6
if test "${ompi_cv_f90_int_kind_9+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(9)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40113: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $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:40120: \$? = $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

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40137: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&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

            if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) 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:40164: ./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:40171: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_9=`sed 's/  *//' conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_9" >&5
echo "${ECHO_T}$ompi_cv_f90_int_kind_9" >&6

        OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_9
    else
        OMPI_MPI_INTEGER_KIND=0
    fi

elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "8"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))" >&5
echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))... $ECHO_C" >&6
if test "${ompi_cv_f90_int_kind_18+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(18)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40221: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $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:40228: \$? = $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

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40245: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&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

            if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) 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:40272: ./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:40279: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_18=`sed 's/  *//' conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5
echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6

        OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_18
    else
        OMPI_MPI_INTEGER_KIND=0
    fi

elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "16"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))" >&5
echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))... $ECHO_C" >&6
if test "${ompi_cv_f90_int_kind_19+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(19)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40329: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $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:40336: \$? = $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

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40353: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&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

            if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) 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:40380: ./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:40387: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_19=`sed 's/  *//' conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_19" >&5
echo "${ECHO_T}$ompi_cv_f90_int_kind_19" >&6

        OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_19
    else
        OMPI_MPI_INTEGER_KIND=0
    fi

    { { echo "$as_me:$LINENO: error: Cannot support Fortran MPI_INTEGER_KIND!" >&5
echo "$as_me: error: Cannot support Fortran MPI_INTEGER_KIND!" >&2;}
   { (exit 1); exit 1; }; }
fi


# get kind value for Fortran MPI_ADDRESS_KIND (corresponding to
# whatever is big enough to hold (void*))
if test "$ac_cv_sizeof_void_p" = "2"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))" >&5
echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))... $ECHO_C" >&6
if test "${ompi_cv_f90_int_kind_4+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(4)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40445: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $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:40452: \$? = $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

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40469: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&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

            if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) 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:40496: ./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:40503: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_4=`sed 's/  *//' conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_4" >&5
echo "${ECHO_T}$ompi_cv_f90_int_kind_4" >&6

        OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_4
    else
        OMPI_MPI_ADDRESS_KIND=0
    fi

elif test "$ac_cv_sizeof_void_p" = "4"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))" >&5
echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))... $ECHO_C" >&6
if test "${ompi_cv_f90_int_kind_9+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(9)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40553: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $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:40560: \$? = $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

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40577: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&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

            if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) 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:40604: ./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:40611: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_9=`sed 's/  *//' conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_9" >&5
echo "${ECHO_T}$ompi_cv_f90_int_kind_9" >&6

        OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_9
    else
        OMPI_MPI_ADDRESS_KIND=0
    fi

elif test "$ac_cv_sizeof_void_p" = "8"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))" >&5
echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))... $ECHO_C" >&6
if test "${ompi_cv_f90_int_kind_18+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(18)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40661: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $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:40668: \$? = $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

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40685: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&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

            if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) 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:40712: ./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:40719: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_18=`sed 's/  *//' conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5
echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6

        OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_18
    else
        OMPI_MPI_ADDRESS_KIND=0
    fi

elif test "$ac_cv_sizeof_void_p" = "16"; then



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))" >&5
echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))... $ECHO_C" >&6
if test "${ompi_cv_f90_int_kind_19+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(19)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40769: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $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:40776: \$? = $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

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40793: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&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

            if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) 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:40820: ./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:40827: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_19=`sed 's/  *//' conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_19" >&5
echo "${ECHO_T}$ompi_cv_f90_int_kind_19" >&6

        OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_19
    else
        OMPI_MPI_ADDRESS_KIND=0
    fi

else
    { { echo "$as_me:$LINENO: error: Cannot support Fortran MPI_ADDRESS_KIND!" >&5
echo "$as_me: error: Cannot support Fortran MPI_ADDRESS_KIND!" >&2;}
   { (exit 1); exit 1; }; }
fi


# get kind value for Fortran MPI_OFFSET_KIND (corresponding to INTEGER*8)



    if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
        echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))" >&5
echo $ECHO_N "checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))... $ECHO_C" >&6
if test "${ompi_cv_f90_int_kind_18+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat > conftestf.f90 <<EOF
program f90findintkind
    open(8, file="conftestval")
    write(8, fmt="(I5)") selected_int_kind(18)
    close(8)
end program
EOF

            # Try to compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:40884: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
$FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $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:40891: \$? = $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

            if test "$happy" = "no"; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:40908: here is the fortran 90 program:" >&5
else
    echo here is the fortran 90 program: >&5
fi

# 1 is the filename
if test -n "conftestf.f90" -a -f "conftestf.f90"; then
    cat conftestf.f90 >&5
fi
                { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&5
echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&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

            if test "$cross_compiling" = "yes"; then
  { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_OFFSET_KIND) when cross-compiling" >&5
echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_OFFSET_KIND) 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:40935: ./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:40942: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f90_int_kind_18=`sed 's/  *//' conftestval`
else
    unset ompi_status
    { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)" >&5
echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5
echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6

        OMPI_MPI_OFFSET_KIND=$ompi_cv_f90_int_kind_18
    else
        OMPI_MPI_OFFSET_KIND=0
    fi



# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

##################################
# Header files
##################################

ompi_show_title "Header file tests"



















































for ac_header in alloca.h aio.h arpa/inet.h dirent.h \
    dlfcn.h execinfo.h err.h fcntl.h grp.h inttypes.h libgen.h \
    libutil.h netdb.h netinet/in.h netinet/tcp.h \
    poll.h pthread.h pty.h pwd.h sched.h stdint.h \
    string.h strings.h stropts.h sys/fcntl.h sys/ipc.h \
    sys/ioctl.h sys/mman.h  sys/param.h sys/queue.h \
    sys/resource.h sys/select.h sys/socket.h sys/sockio.h \
    sys/stat.h sys/statvfs.h sys/time.h sys/tree.h \
    sys/types.h sys/uio.h sys/utsname.h sys/wait.h syslog.h \
    time.h termios.h ulimit.h unistd.h util.h utmp.h malloc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
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


# Needed to work around Darwin requiring sys/socket.h for
# net/if.h

for ac_header in net/if.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.  */
#include <stdio.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif


#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


# Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
# have both Portland and GNU installed; using pgcc will find GNU's
# <stdbool.h>, which all it does -- by standard -- is define "bool" to
# "_Bool" [see
# http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html],
# and Portland has no idea what to do with _Bool).

# So first figure out if we have <stdbool.h> (i.e., check the value of
# the macro HAVE_STDBOOL_H from the result of AC_CHECK_HEADERS,
# above).  If we do have it, then check to see if it actually works.
# Define OMPI_USE_STDBOOL_H as approrpaite.

for ac_header in stdbool.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 have_stdbool_h=1
else
  have_stdbool_h=0
fi

done

echo "$as_me:$LINENO: checking if <stdbool.h> works" >&5
echo $ECHO_N "checking if <stdbool.h> works... $ECHO_C" >&6
if test "$have_stdbool_h" = "1"; 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
#if HAVE_STDBOOL_H
#include <stdbool.h>
#endif
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_USE_STDBOOL_H=1 MSG=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

OMPI_USE_STDBOOL_H=0 MSG=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
else
    OMPI_USE_STDBOOL_H=0
    MSG="no (don't have <stdbool.h>)"
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_USE_STDBOOL_H $OMPI_USE_STDBOOL_H
_ACEOF

echo "$as_me:$LINENO: result: $MSG" >&5
echo "${ECHO_T}$MSG" >&6

# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


##################################
# Types
##################################

ompi_show_title "Type tests"

# Size of pid_t
echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_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 ((pid_t *) 0)
  return 0;
if (sizeof (pid_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_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_pid_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6

echo "$as_me:$LINENO: checking size of pid_t" >&5
echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6
if test "${ac_cv_sizeof_pid_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_pid_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 (pid_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 (pid_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 (pid_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 (pid_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 (pid_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_pid_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (pid_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 (pid_t)); }
unsigned long ulongval () { return (long) (sizeof (pid_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (pid_t))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (pid_t))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (pid_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_pid_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 (pid_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (pid_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_pid_t=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
_ACEOF



echo "$as_me:$LINENO: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_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
#include <sys/socket.h>

int
main ()
{
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_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_socklen_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_socklen_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SOCKLEN_T 1
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define HAVE_SOCKLEN_T 1
_ACEOF

fi


echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5
echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_in+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
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if ((struct sockaddr_in *) 0)
  return 0;
if (sizeof (struct sockaddr_in))
  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_struct_sockaddr_in=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_struct_sockaddr_in=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6
if test $ac_cv_type_struct_sockaddr_in = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN 1
_ACEOF


fi


# SA_RESTART in signal.h
echo "$as_me:$LINENO: checking if SA_RESTART defined in signal.h" >&5
echo $ECHO_N "checking if SA_RESTART defined in signal.h... $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.  */

#include <signal.h>
#ifdef SA_RESTART
    yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  MSG=yes VALUE=1
else
  MSG=no VALUE=0
fi
rm -f conftest*


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_SA_RESTART $VALUE
_ACEOF

echo "$as_me:$LINENO: result: $MSG" >&5
echo "${ECHO_T}$MSG" >&6

# sa_len in struct sockaddr
echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $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.  */
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
struct sockaddr s; s.sa_len;
  ;
  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
  MSG=yes VALUE=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

MSG=no VALUE=0
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_SA_LEN $VALUE
_ACEOF

echo "$as_me:$LINENO: result: $MSG" >&5
echo "${ECHO_T}$MSG" >&6

echo "$as_me:$LINENO: checking for struct dirent.d_type" >&5
echo $ECHO_N "checking for struct dirent.d_type... $ECHO_C" >&6
if test "${ac_cv_member_struct_dirent_d_type+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 <sys/types.h>
#include <dirent.h>

int
main ()
{
static struct dirent ac_aggr;
if (ac_aggr.d_type)
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_member_struct_dirent_d_type=yes
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.  */

#include <sys/types.h>
#include <dirent.h>

int
main ()
{
static struct dirent ac_aggr;
if (sizeof ac_aggr.d_type)
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_member_struct_dirent_d_type=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_member_struct_dirent_d_type=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_type" >&5
echo "${ECHO_T}$ac_cv_member_struct_dirent_d_type" >&6
if test $ac_cv_member_struct_dirent_d_type = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_DIRENT_D_TYPE 1
_ACEOF


fi


echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
if test "${ac_cv_member_siginfo_t_si_fd+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 <signal.h>

int
main ()
{
static siginfo_t ac_aggr;
if (ac_aggr.si_fd)
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_member_siginfo_t_si_fd=yes
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.  */
#include <signal.h>

int
main ()
{
static siginfo_t ac_aggr;
if (sizeof ac_aggr.si_fd)
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_member_siginfo_t_si_fd=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_member_siginfo_t_si_fd=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
if test $ac_cv_member_siginfo_t_si_fd = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SIGINFO_T_SI_FD 1
_ACEOF


fi

echo "$as_me:$LINENO: checking for siginfo_t.si_band" >&5
echo $ECHO_N "checking for siginfo_t.si_band... $ECHO_C" >&6
if test "${ac_cv_member_siginfo_t_si_band+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 <signal.h>

int
main ()
{
static siginfo_t ac_aggr;
if (ac_aggr.si_band)
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_member_siginfo_t_si_band=yes
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.  */
#include <signal.h>

int
main ()
{
static siginfo_t ac_aggr;
if (sizeof ac_aggr.si_band)
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_member_siginfo_t_si_band=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_member_siginfo_t_si_band=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_band" >&5
echo "${ECHO_T}$ac_cv_member_siginfo_t_si_band" >&6
if test $ac_cv_member_siginfo_t_si_band = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_SIGINFO_T_SI_BAND 1
_ACEOF


fi



# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


##################################
# Libraries
##################################

ompi_show_title "Library and Function tests"


echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
if test "${ac_cv_lib_util_openpty+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lutil  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char openpty ();
int
main ()
{
openpty ();
  ;
  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
  ac_cv_lib_util_openpty=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_util_openpty=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
if test $ac_cv_lib_util_openpty = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBUTIL 1
_ACEOF

  LIBS="-lutil $LIBS"

fi



echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  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
  ac_cv_lib_nsl_gethostbyname=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_nsl_gethostbyname=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test $ac_cv_lib_nsl_gethostbyname = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNSL 1
_ACEOF

  LIBS="-lnsl $LIBS"

fi



echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char socket ();
int
main ()
{
socket ();
  ;
  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
  ac_cv_lib_socket_socket=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_socket_socket=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
if test $ac_cv_lib_socket_socket = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSOCKET 1
_ACEOF

  LIBS="-lsocket $LIBS"

fi


# Solaris has sched_yeild in -lrt, usually in libc

        echo "$as_me:$LINENO: checking if we need -lrt for sched_yield" >&5
echo $ECHO_N "checking if we need -lrt for sched_yield... $ECHO_C" >&6
if test "${ompi_cv_func_lib_sched_yield_rt+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.  */
/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sched_yield innocuous_sched_yield

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_yield (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sched_yield

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
choke me
#else
char (*f) () = sched_yield;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != sched_yield;
  ;
  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_func_lib_sched_yield_rt="no"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

LIBS_save="$LIBS"
             LIBS="$LIBS -lrt"
             cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sched_yield innocuous_sched_yield

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_yield (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sched_yield

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_yield ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
choke me
#else
char (*f) () = sched_yield;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != sched_yield;
  ;
  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_func_lib_sched_yield_rt="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_func_lib_sched_yield_rt="not found"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_func_lib_sched_yield_rt" >&5
echo "${ECHO_T}$ompi_cv_func_lib_sched_yield_rt" >&6
    if test "$ompi_cv_func_lib_sched_yield_rt" = "yes"; then
  LIBS="$LIBS -lrt"
fi


    # see if we actually have sched_yield.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lrt if we decided we needed it above

for ac_func in sched_yield
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



# FreeBSD has backtrace in -lexecinfo, usually in libc

        echo "$as_me:$LINENO: checking if we need -lexecinfo for backtrace" >&5
echo $ECHO_N "checking if we need -lexecinfo for backtrace... $ECHO_C" >&6
if test "${ompi_cv_func_lib_backtrace_execinfo+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.  */
/* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define backtrace innocuous_backtrace

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char backtrace (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef backtrace

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char backtrace ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_backtrace) || defined (__stub___backtrace)
choke me
#else
char (*f) () = backtrace;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != backtrace;
  ;
  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_func_lib_backtrace_execinfo="no"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

LIBS_save="$LIBS"
             LIBS="$LIBS -lexecinfo"
             cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define backtrace innocuous_backtrace

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char backtrace (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef backtrace

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char backtrace ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_backtrace) || defined (__stub___backtrace)
choke me
#else
char (*f) () = backtrace;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != backtrace;
  ;
  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_func_lib_backtrace_execinfo="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_func_lib_backtrace_execinfo="not found"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_func_lib_backtrace_execinfo" >&5
echo "${ECHO_T}$ompi_cv_func_lib_backtrace_execinfo" >&6
    if test "$ompi_cv_func_lib_backtrace_execinfo" = "yes"; then
  LIBS="$LIBS -lexecinfo"
fi


    # see if we actually have backtrace.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lexecinfo if we decided we needed it above

for ac_func in backtrace
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



# IRIX has dirname in -lgen, usually in libc

        echo "$as_me:$LINENO: checking if we need -lgen for dirname" >&5
echo $ECHO_N "checking if we need -lgen for dirname... $ECHO_C" >&6
if test "${ompi_cv_func_lib_dirname_gen+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.  */
/* Define dirname to an innocuous variant, in case <limits.h> declares dirname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dirname innocuous_dirname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dirname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dirname

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dirname ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dirname) || defined (__stub___dirname)
choke me
#else
char (*f) () = dirname;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != dirname;
  ;
  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_func_lib_dirname_gen="no"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

LIBS_save="$LIBS"
             LIBS="$LIBS -lgen"
             cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define dirname to an innocuous variant, in case <limits.h> declares dirname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dirname innocuous_dirname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dirname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dirname

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dirname ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dirname) || defined (__stub___dirname)
choke me
#else
char (*f) () = dirname;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != dirname;
  ;
  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_func_lib_dirname_gen="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_func_lib_dirname_gen="not found"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_func_lib_dirname_gen" >&5
echo "${ECHO_T}$ompi_cv_func_lib_dirname_gen" >&6
    if test "$ompi_cv_func_lib_dirname_gen" = "yes"; then
  LIBS="$LIBS -lgen"
fi


    # see if we actually have dirname.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lgen if we decided we needed it above

for ac_func in dirname
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



# Darwin doesn't need -lm, as it's a symlink to libSystem.dylib

        echo "$as_me:$LINENO: checking if we need -lm for ceil" >&5
echo $ECHO_N "checking if we need -lm for ceil... $ECHO_C" >&6
if test "${ompi_cv_func_lib_ceil_m+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.  */
/* Define ceil to an innocuous variant, in case <limits.h> declares ceil.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define ceil innocuous_ceil

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ceil (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef ceil

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ceil ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ceil) || defined (__stub___ceil)
choke me
#else
char (*f) () = ceil;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != ceil;
  ;
  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_func_lib_ceil_m="no"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

LIBS_save="$LIBS"
             LIBS="$LIBS -lm"
             cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define ceil to an innocuous variant, in case <limits.h> declares ceil.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define ceil innocuous_ceil

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ceil (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef ceil

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ceil ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ceil) || defined (__stub___ceil)
choke me
#else
char (*f) () = ceil;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != ceil;
  ;
  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_func_lib_ceil_m="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_func_lib_ceil_m="not found"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_func_lib_ceil_m" >&5
echo "${ECHO_T}$ompi_cv_func_lib_ceil_m" >&6
    if test "$ompi_cv_func_lib_ceil_m" = "yes"; then
  LIBS="$LIBS -lm"
fi


    # see if we actually have ceil.  Use AC_CHECK_FUNCS so that it
    # does the glibc "not implemented" check.  Will use the current LIBS,
    # so will check in -lm if we decided we needed it above

for ac_func in ceil
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done























for ac_func in asprintf snprintf vasprintf vsnprintf openpty isatty htonl ntohl htons ntohs getpwuid fork waitpid execve pipe ptsname setsid mmap mallopt tcgetpgrp
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


#
# Make sure we can copy va_lists (need check declared, not linkable)
#

echo "$as_me:$LINENO: checking whether va_copy is declared" >&5
echo $ECHO_N "checking whether va_copy is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_va_copy+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 <stdarg.h>

int
main ()
{
#ifndef va_copy
  char *p = (char *) va_copy;
#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_cv_have_decl_va_copy=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl_va_copy=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl_va_copy" >&5
echo "${ECHO_T}$ac_cv_have_decl_va_copy" >&6
if test $ac_cv_have_decl_va_copy = yes; then
  OMPI_HAVE_VA_COPY=1
else
  OMPI_HAVE_VA_COPY=0
fi


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_VA_COPY $OMPI_HAVE_VA_COPY
_ACEOF


echo "$as_me:$LINENO: checking whether __va_copy is declared" >&5
echo $ECHO_N "checking whether __va_copy is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl___va_copy+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 <stdarg.h>

int
main ()
{
#ifndef __va_copy
  char *p = (char *) __va_copy;
#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_cv_have_decl___va_copy=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl___va_copy=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl___va_copy" >&5
echo "${ECHO_T}$ac_cv_have_decl___va_copy" >&6
if test $ac_cv_have_decl___va_copy = yes; then
  OMPI_HAVE_UNDERSCORE_VA_COPY=1
else
  OMPI_HAVE_UNDERSCORE_VA_COPY=0
fi


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_UNDERSCORE_VA_COPY $OMPI_HAVE_UNDERSCORE_VA_COPY
_ACEOF


echo "$as_me:$LINENO: checking whether __func__ is declared" >&5
echo $ECHO_N "checking whether __func__ is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl___func__+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 ()
{
#ifndef __func__
  char *p = (char *) __func__;
#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_cv_have_decl___func__=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl___func__=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl___func__" >&5
echo "${ECHO_T}$ac_cv_have_decl___func__" >&6
if test $ac_cv_have_decl___func__ = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL___FUNC__ 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL___FUNC__ 0
_ACEOF


fi



# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


##################################
# System-specific tests
##################################

ompi_show_title "System-specific tests"

#
# Test to determine type of MPI_Offset. This is searched in the following order
# int64_t, long long, long, int. If none of these are 8 bytes, then we should
# search for int32_t, long long, long, int.
#
MPI_OFFSET_TYPE="not found"
MPI_OFFSET_DATATYPE="not found"
echo "$as_me:$LINENO: checking checking for type of MPI_Offset" >&5
echo $ECHO_N "checking checking for type of MPI_Offset... $ECHO_C" >&6
if test "$ac_cv_type_long_long" = "yes" -a "$ac_cv_sizeof_long_long" = 8; then
	MPI_OFFSET_TYPE="long long"
        MPI_OFFSET_DATATYPE=MPI_LONG_LONG
        MPI_OFFSET_SIZE=8
elif test "$ac_cv_type_long" = "yes" -a "$ac_cv_sizeof_long" = 8; then
	MPI_OFFSET_TYPE="long"
        MPI_OFFSET_DATATYPE=MPI_LONG
        MPI_OFFSET_SIZE=8
elif test "ac_cv_sizeof_int" = 8; then
	MPI_OFFSET_TYPE=int
        MPI_OFFSET_DATATYPE=MPI_INT
        MPI_OFFSET_SIZE=8
elif test "$ac_cv_type_long_long" = "yes" -a "$ac_cv_sizeof_long_long" = 4; then
	MPI_OFFSET_TYPE="long long"
        MPI_OFFSET_DATATYPE=MPI_LONG_LONG
        MPI_OFFSET_SIZE=4
elif test "$ac_cv_type_long" = "yes" -a "$ac_cv_sizeof_long" = 4; then
	MPI_OFFSET_TYPE="long"
        MPI_OFFSET_DATATYPE=MPI_LONG
        MPI_OFFSET_SIZE=4
elif test "ac_cv_sizeof_int" = 4; then
	MPI_OFFSET_TYPE=int
        MPI_OFFSET_DATATYPE=MPI_INT
        MPI_OFFSET_SIZE=4
fi
echo "$as_me:$LINENO: result: $MPI_OFFSET_TYPE" >&5
echo "${ECHO_T}$MPI_OFFSET_TYPE" >&6
if test "$MPI_OFFSET_TYPE" = "not found"; then
	{ echo "$as_me:$LINENO: WARNING: *** Unable to find the right definition for MPI_Offset" >&5
echo "$as_me: WARNING: *** Unable to find the right definition for MPI_Offset" >&2;}
	{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_MPI_OFFSET_TYPE $MPI_OFFSET_TYPE
_ACEOF


#
# If we haven't already, figure out an MPI datatype that corresponds
# to the back-end C type of MPI_Offset.
#
echo "$as_me:$LINENO: checking checking for an MPI datatype for MPI_Offset" >&5
echo $ECHO_N "checking checking for an MPI datatype for MPI_Offset... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $MPI_OFFSET_DATATYPE" >&5
echo "${ECHO_T}$MPI_OFFSET_DATATYPE" >&6
if test "$MPI_OFFSET_DATATYPE" = "not found"; then
	{ echo "$as_me:$LINENO: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&5
echo "$as_me: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&2;}
	{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_OFFSET_DATATYPE $MPI_OFFSET_DATATYPE
_ACEOF


# all: endian

echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${ac_cv_c_bigendian+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # See if sys/param.h defines the BYTE_ORDER macro.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/param.h>

int
main ()
{
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#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
  # It does; now see whether it defined to BIG_ENDIAN or not.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#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_cv_c_bigendian=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_c_bigendian=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

# It does not; compile a test program.
if test "$cross_compiling" = yes; then
  # try to guess the endianness by grepping values into an object file
  ac_cv_c_bigendian=unknown
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
int
main ()
{
 _ascii (); _ebcdic ();
  ;
  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
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  ac_cv_c_bigendian=yes
fi
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  if test "$ac_cv_c_bigendian" = unknown; then
    ac_cv_c_bigendian=no
  else
    # finding both strings is unlikely to happen, but who knows?
    ac_cv_c_bigendian=unknown
  fi
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
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 ()
{
  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  exit (u.c[sizeof (long) - 1] == 1);
}
_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_c_bigendian=no
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_c_bigendian=yes
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
case $ac_cv_c_bigendian in
  yes)

cat >>confdefs.h <<\_ACEOF
#define WORDS_BIGENDIAN 1
_ACEOF
 ;;
  no)
     ;;
  *)
    { { echo "$as_me:$LINENO: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
echo "$as_me: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   { (exit 1); exit 1; }; } ;;
esac



    echo "$as_me:$LINENO: checking for broken qsort" >&5
echo $ECHO_N "checking for broken qsort... $ECHO_C" >&6

    result=
    define_result=0
    case "$host" in
	*solaris*)
            result="yes (solaris)"
            define_result=1
        ;;
        *)
            result="no"
            define_result=0
        ;;
    esac

    echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_BROKEN_QSORT $define_result
_ACEOF

unset result define_result

# all: SYSV semaphores
# all: SYSV shared memory
# all: size of FD_SET
# all: sizeof struct stat members
# all: type of getsockopt optlen
# all: type of recvfrom optlen

#
# Check out what thread support we have
#


#
# Arguments: none
#
# Dependencies: None
#
# Modifies:
#  none - see called tests
#
# configure threads
#

# create templates





#
# Check for thread types - add your type here...
#

ompi_pthread_c_success=0
ompi_pthread_f77_success=0
ompi_pthread_cxx_success=0

orig_CFLAGS="$CFLAGS"
orig_FFLAGS="$FFLAGS"
orig_CXXFLAGS="$CXXFLAGS"
orig_CPPFLAGS="$CPPFLAGS"
orig_CXXCPPFLAGS="$CXXCPPFLAGS"
orig_LDFLAGS="$LDFLAGS"
orig_LIBS="$LIBS"

PTRHEAD_CFLAGS=
PTHREAD_FFLAGS=
PTHREAD_CXXFLAGS=
PTHREAD_CPPFLAGS=
PTHREAD_CXXCPPFLAGS=
PTHREAD_LDFLAGS=
PTHREAD_LIBS=

# Try with the basics, mam.

# BEGIN: OMPI_INTL_POSIX_THREADS_PLAIN
#
# Check if can compile without any special flags
# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in
# case.  Some systems (OS X, for example) generally don't need
# the defines, but then will on one system header here or there
# why take chances?
#

# Only run C++ and Fortran if those compilers already configured

#
# C compiler
#
if test "$ompi_pthread_c_success" = "0"; then
  echo "$as_me:$LINENO: checking if C compiler and POSIX threads work as is" >&5
echo $ECHO_N "checking if C compiler and POSIX threads work as is... $ECHO_C" >&6
  if test "$HAVE_POSIX_THREADS" = "1" ; then
    run_this_test=1
  else
    case "${host_cpu}-${host_os}" in
      *solaris*)
        echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5
echo "${ECHO_T}no - Solaris, not checked" >&6
        run_this_test=0
      ;;
      *-aix* | *-freebsd*)
        if test "`echo $CPPFLAGS | grep 'D_THREAD_SAFE'`" = ""; then
          PTRHEAD_CPPFLAGS="-D_THREAD_SAFE"
          CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
        fi
        run_this_test=1
      ;;
      *)
        if test "`echo $CPPFLAGS | grep 'D_REENTRANT'`" = ""; then
          PTHREAD_CPPFLAGS="-D_REENTRANT"
          CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
        fi
        run_this_test=1
      ;;
    esac
  fi

  if test "$run_this_test" = "1" ; then
    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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(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_pthread_c_success=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_pthread_c_success=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    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_pthread_c_success" = "1"; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    else
      PTHREAD_CPPFLAGS=
      CPPFLAGS="$orig_CPPFLAGS"
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
  fi
fi



#
# C++ compiler
#
if test "$ompi_pthread_cxx_success" = "0"; then
  echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work as is" >&5
echo $ECHO_N "checking if C++ compiler and POSIX threads work as is... $ECHO_C" >&6
  if test "$HAVE_POSIX_THREADS" = "1" ; then
    run_this_test=1
  else
    case "${host_cpu}-${host_os}" in
      *solaris*)
        echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5
echo "${ECHO_T}no - Solaris, not checked" >&6
        run_this_test=0
      ;;
      *-aix* | *-freebsd*)
        if test "`echo $CXXCPPFLAGS | grep 'D_THREAD_SAFE'`" = ""; then
          PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE"
          CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
        fi
        run_this_test=1
      ;;
      *)
        if test "`echo $CXXCPPFLAGS | grep 'D_REENTRANT'`" = ""; then
          PTHREAD_CXXCPPFLAGS="-D_REENTRANT"
          CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
        fi
        run_this_test=1
      ;;
    esac
  fi

  if test "$run_this_test" = "1" ; then
    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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(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_pthread_cxx_success=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_pthread_cxx_success=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    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_pthread_cxx_success" = "1"; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    else
      PTHREAD_CXXCPPFLAGS=
      CXXCPPFLAGS="$orig_CXXCPPFLAGS"
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
  fi
fi



#
# Fortran compiler
#
if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then
  echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work as is" >&5
echo $ECHO_N "checking if F77 compiler and POSIX threads work as is... $ECHO_C" >&6
  if test "$HAVE_POSIX_THREADS" = "1" ; then
    run_this_test=1
  else
    case "${host_cpu}-${host_os}" in
      *solaris*)
        echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5
echo "${ECHO_T}no - Solaris, not checked" >&6
        run_this_test=0
      ;;
      *)
        run_this_test=1
      ;;
    esac
  fi

  if test "$run_this_test" = "1" ; then
    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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
#
# Make sure that we can run a small application in Fortran, with
# pthreads living in a C object file

    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 pthreadtest | grep _ >/dev/null 2>&1 ; then
            ompi_ac_thread_fn=pthreadtest__
        else
            ompi_ac_thread_fn=pthreadtest_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_thread_fn=pthreadtest_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_thread_fn=PTHREADTEST
    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 <<EOF
      program fpthread
      call pthreadtest
      end
EOF

# C module
if test -f conftest.h; then
    ompi_conftest_h="#include \"conftest.h\""
else
    ompi_conftest_h=""
fi
cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_thread_fn()
{
  pthread_t th;
  pthread_create(&th, NULL, NULL, NULL);
  pthread_join(th, 0);
  pthread_attr_init(0);
  pthread_cleanup_push(0, 0);
  pthread_create(0,0,0,0);
  pthread_cleanup_pop(0);
}
#ifdef __cplusplus
}
#endif
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:45171: $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:45178: \$? = $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:45188: $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:45195: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   ompi_pthread_f77_success=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45218: here is the C program:" >&5
else
    echo here is the C program: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
    if test -f conftest.h; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45232: here is contest.h:" >&5
else
    echo here is contest.h: >&5
fi

# 1 is the filename
if test -n "conftest.h" -a -f "conftest.h"; then
    cat conftest.h >&5
fi
    fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45246: here is the fortran program:" >&5
else
    echo here is the fortran program: >&5
fi

# 1 is the filename
if test -n "conftestf.f" -a -f "conftestf.f"; then
    cat conftestf.f >&5
fi
    ompi_pthread_f77_success=0
fi

unset HAPPY ompi_conftest_h
/bin/rm -f conftest*
# END: OMPI_INTL_PTHREAD_TRY_LINK_F77

    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_pthread_f77_success" = "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
  fi
fi


# End: OMPI_INTL_POSIX_THREADS_PLAIN


# Try the super-special compiler flags.

# Begin: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS
#
# If above didn't work, try some super-special compiler flags
# that get evaluated to the "right" things.
#
# -Kthread:
# -kthread:  FreeBSD kernel threads
# -pthread:  Modern GCC (most all platforms)
# -pthreads: GCC on solaris
# -mthreads:
# -mt:       Solaris native compilers / HP-UX aCC
#
# Put -mt before -mthreads because HP-UX aCC will properly compile
# with -mthreads (reading as -mt), but emit a warning about unknown
# flags hreads.  Stupid compilers.

case "${host_cpu}-${host_os}" in
  *solaris*)
    pflags="-pthread -pthreads -mt"
  ;;
  *)
    pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads"
  ;;
esac

# Only run C++ and Fortran if those compilers already configured

#
# C compiler
#
if test "$ompi_pthread_c_success" = "0"; then
  for pf in $pflags; do
    echo "$as_me:$LINENO: checking if C compiler and POSIX threads work with $pf" >&5
echo $ECHO_N "checking if C compiler and POSIX threads work with $pf... $ECHO_C" >&6
    CFLAGS="$orig_CFLAGS $pf"
    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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(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_pthread_c_success=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_pthread_c_success=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    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_pthread_c_success" = "1"; then
      PTHREAD_CFLAGS="$pf"
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      break
    else
      PTHREAD_CFLAGS=
      CFLAGS="$orig_CFLAGS"
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
  done
fi



#
# C++ compiler
#
if test "$ompi_pthread_cxx_success" = "0"; then
  for pf in $pflags; do
    echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $pf" >&5
echo $ECHO_N "checking if C++ compiler and POSIX threads work with $pf... $ECHO_C" >&6
    CXXFLAGS="$orig_CXXFLAGS $pf"
    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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(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_pthread_cxx_success=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_pthread_cxx_success=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    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_pthread_cxx_success" = "1"; then
      PTHREAD_CXXFLAGS="$pf"
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      break
    else
      PTHREAD_CXXFLAGS=
      CXXFLAGS="$orig_CXXFLAGS"
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
  done
fi



#
# Fortran compiler
#
if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then
  for pf in $pflags; do
    echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $pf" >&5
echo $ECHO_N "checking if F77 compiler and POSIX threads work with $pf... $ECHO_C" >&6
    FFLAGS="$orig_FFLAGS $pf"
    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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
#
# Make sure that we can run a small application in Fortran, with
# pthreads living in a C object file

    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 pthreadtest | grep _ >/dev/null 2>&1 ; then
            ompi_ac_thread_fn=pthreadtest__
        else
            ompi_ac_thread_fn=pthreadtest_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_thread_fn=pthreadtest_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_thread_fn=PTHREADTEST
    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 <<EOF
      program fpthread
      call pthreadtest
      end
EOF

# C module
if test -f conftest.h; then
    ompi_conftest_h="#include \"conftest.h\""
else
    ompi_conftest_h=""
fi
cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_thread_fn()
{
  pthread_t th;
  pthread_create(&th, NULL, NULL, NULL);
  pthread_join(th, 0);
  pthread_attr_init(0);
  pthread_cleanup_push(0, 0);
  pthread_create(0,0,0,0);
  pthread_cleanup_pop(0);
}
#ifdef __cplusplus
}
#endif
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:45590: $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:45597: \$? = $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:45607: $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:45614: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   ompi_pthread_f77_success=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45637: here is the C program:" >&5
else
    echo here is the C program: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
    if test -f conftest.h; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45651: here is contest.h:" >&5
else
    echo here is contest.h: >&5
fi

# 1 is the filename
if test -n "conftest.h" -a -f "conftest.h"; then
    cat conftest.h >&5
fi
    fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:45665: here is the fortran program:" >&5
else
    echo here is the fortran program: >&5
fi

# 1 is the filename
if test -n "conftestf.f" -a -f "conftestf.f"; then
    cat conftestf.f >&5
fi
    ompi_pthread_f77_success=0
fi

unset HAPPY ompi_conftest_h
/bin/rm -f conftest*
# END: OMPI_INTL_PTHREAD_TRY_LINK_F77

    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_pthread_f77_success" = "1"; then
      PTHREAD_FFLAGS="$pf"
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      break
    else
      PTHREAD_FFLAGS=
      FFLAGS="$orig_FFLAGS"
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
  done
fi


# End: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS


# Try the normal linking methods (that's no fun)

# Begin: OMPI_INTL_POSIX_THREADS_LIBS
#
# if we can't find a super-special compiler flags, try some libraries.
# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in case.  Some
# systems (OS X, for example) generally don't need the defines, but
# then will on one system header here or there why take chances?
#
# libpthreads: AIX - must check before libpthread
# liblthread:  LinuxThreads on FreeBSD
# libpthread:  The usual place (like we can define usual!)
plibs="-lpthreads -llthread -lpthread"

# Only run C++ and Fortran if those compilers already configured

#
# C compiler
#
if test "$ompi_pthread_c_success" = "0"; then
  for pl in $plibs; do
    echo "$as_me:$LINENO: checking if C compiler and POSIX threads work with $pl" >&5
echo $ECHO_N "checking if C compiler and POSIX threads work with $pl... $ECHO_C" >&6
    case "${host_cpu}-${host-_os}" in
      *-aix* | *-freebsd*)
        if test "`echo $CPPFLAGS | grep 'D_THREAD_SAFE'`" = ""; then
          PTRHEAD_CPPFLAGS="-D_THREAD_SAFE"
          CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
        fi
      ;;
      *)
        if test "`echo $CPPFLAGS | grep 'D_REENTRANT'`" = ""; then
          PTHREAD_CPPFLAGS="-D_REENTRANT"
          CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
        fi
      ;;
    esac
    LIBS="$orig_LIBS $pl"
    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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(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_pthread_c_success=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_pthread_c_success=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    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_pthread_c_success" = "1"; then
      PTHREAD_LIBS="$pl"
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    else
      PTHREAD_CPPFLAGS=
      CPPFLAGS="$orig_CPPFLAGS"
      LIBS="$orig_LIBS"
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    fi
  done
fi



#
# C++ compiler
#
if test "$ompi_pthread_cxx_success" = "0"; then
  if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then
    echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS" >&5
echo $ECHO_N "checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS... $ECHO_C" >&6
    case "${host_cpu}-${host-_os}" in
      *-aix* | *-freebsd*)
        if test "`echo $CXXCPPFLAGS | grep 'D_THREAD_SAFE'`" = ""; then
          PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE"
          CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
        fi
      ;;
      *)
        if test "`echo $CXXCPPFLAGS | grep 'D_REENTRANT'`" = ""; then
          PTHREAD_CXXCPPFLAGS="-D_REENTRANT"
          CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
        fi
      ;;
    esac
    LIBS="$orig_LIBS $PTHREAD_LIBS"
    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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(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_pthread_cxx_success=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_pthread_cxx_success=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

    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_pthread_cxx_success" = "1"; then
      PTHREAD_LIBS="$pl"
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    else
      CXXCPPFLAGS="$orig_CXXCPPFLAGS"
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
      { { echo "$as_me:$LINENO: error: Can not find working threads configuration.  aborting" >&5
echo "$as_me: error: Can not find working threads configuration.  aborting" >&2;}
   { (exit 1); exit 1; }; }
    fi
  else
    for pl in $plibs; do
      echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $pl" >&5
echo $ECHO_N "checking if C++ compiler and POSIX threads work with $pl... $ECHO_C" >&6
      case "${host_cpu}-${host-_os}" in
        *-aix* | *-freebsd*)
          if test "`echo $CXXCPPFLAGS | grep 'D_THREAD_SAFE'`" = ""; then
            PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE"
            CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
          fi
        ;;
        *)
          if test "`echo $CXXCPPFLAGS | grep 'D_REENTRANT'`" = ""; then
            PTHREAD_CXXCPPFLAGS="-D_REENTRANT"
            CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
          fi
        ;;
      esac
      LIBS="$orig_LIBS $pl"
      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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
#
# As long as this is not being run....
# pthread_t may be anything from an int to a struct -- init with self-tid.
#
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <pthread.h>
int
main ()
{
pthread_t th=pthread_self(); pthread_join(th, 0);
                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
                 pthread_create(0,0,0,0); pthread_cleanup_pop(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_pthread_cxx_success=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_pthread_cxx_success=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_PTHREAD_TRY_LINK

      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_pthread_cxx_success" = "1"; then
	PTHREAD_LIBS="$pl"
        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      else
        PTHREAD_CXXCPPFLAGS=
        CXXCPPFLAGS="$orig_CXXCPPFLAGS"
        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
      fi
    done
  fi
fi



#
# Fortran compiler
#
if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then
  if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then
    echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS" >&5
echo $ECHO_N "checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS... $ECHO_C" >&6
    LIBS="$orig_LIBS $PTHREAD_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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
#
# Make sure that we can run a small application in Fortran, with
# pthreads living in a C object file

    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 pthreadtest | grep _ >/dev/null 2>&1 ; then
            ompi_ac_thread_fn=pthreadtest__
        else
            ompi_ac_thread_fn=pthreadtest_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_thread_fn=pthreadtest_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_thread_fn=PTHREADTEST
    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 <<EOF
      program fpthread
      call pthreadtest
      end
EOF

# C module
if test -f conftest.h; then
    ompi_conftest_h="#include \"conftest.h\""
else
    ompi_conftest_h=""
fi
cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_thread_fn()
{
  pthread_t th;
  pthread_create(&th, NULL, NULL, NULL);
  pthread_join(th, 0);
  pthread_attr_init(0);
  pthread_cleanup_push(0, 0);
  pthread_create(0,0,0,0);
  pthread_cleanup_pop(0);
}
#ifdef __cplusplus
}
#endif
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46131: $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:46138: \$? = $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:46148: $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:46155: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   ompi_pthread_f77_success=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46178: here is the C program:" >&5
else
    echo here is the C program: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
    if test -f conftest.h; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46192: here is contest.h:" >&5
else
    echo here is contest.h: >&5
fi

# 1 is the filename
if test -n "conftest.h" -a -f "conftest.h"; then
    cat conftest.h >&5
fi
    fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46206: here is the fortran program:" >&5
else
    echo here is the fortran program: >&5
fi

# 1 is the filename
if test -n "conftestf.f" -a -f "conftestf.f"; then
    cat conftestf.f >&5
fi
    ompi_pthread_f77_success=0
fi

unset HAPPY ompi_conftest_h
/bin/rm -f conftest*
# END: OMPI_INTL_PTHREAD_TRY_LINK_F77

    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

    LIBS="$orig_LIBS"
    if test "$ompi_pthread_f77_success" = "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
      { { echo "$as_me:$LINENO: error: Can not find working threads configuration.  aborting" >&5
echo "$as_me: error: Can not find working threads configuration.  aborting" >&2;}
   { (exit 1); exit 1; }; }
    fi
  else
    for pl in $plibs; do
      echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $pl" >&5
echo $ECHO_N "checking if F77 compiler and POSIX threads work with $pl... $ECHO_C" >&6
      LIBS="$orig_LIBS $pl"
      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


# BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
#
# Make sure that we can run a small application in Fortran, with
# pthreads living in a C object file

    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 pthreadtest | grep _ >/dev/null 2>&1 ; then
            ompi_ac_thread_fn=pthreadtest__
        else
            ompi_ac_thread_fn=pthreadtest_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_thread_fn=pthreadtest_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_thread_fn=pthreadtest
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_thread_fn=PTHREADTEST
    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 <<EOF
      program fpthread
      call pthreadtest
      end
EOF

# C module
if test -f conftest.h; then
    ompi_conftest_h="#include \"conftest.h\""
else
    ompi_conftest_h=""
fi
cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_thread_fn()
{
  pthread_t th;
  pthread_create(&th, NULL, NULL, NULL);
  pthread_join(th, 0);
  pthread_attr_init(0);
  pthread_cleanup_push(0, 0);
  pthread_create(0,0,0,0);
  pthread_cleanup_pop(0);
}
#ifdef __cplusplus
}
#endif
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46323: $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:46330: \$? = $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:46340: $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:46347: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   ompi_pthread_f77_success=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46370: here is the C program:" >&5
else
    echo here is the C program: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
    if test -f conftest.h; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46384: here is contest.h:" >&5
else
    echo here is contest.h: >&5
fi

# 1 is the filename
if test -n "conftest.h" -a -f "conftest.h"; then
    cat conftest.h >&5
fi
    fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46398: here is the fortran program:" >&5
else
    echo here is the fortran program: >&5
fi

# 1 is the filename
if test -n "conftestf.f" -a -f "conftestf.f"; then
    cat conftestf.f >&5
fi
    ompi_pthread_f77_success=0
fi

unset HAPPY ompi_conftest_h
/bin/rm -f conftest*
# END: OMPI_INTL_PTHREAD_TRY_LINK_F77

      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

      LIBS="$orig_LIBS"
      if test "$ompi_pthread_f77_success" = "1"; then
	PTHREAD_LIBS="$pl"
        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
        break
      else
        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
      fi
    done
  fi
fi


# End: OMPI_INTL_POSIX_THREADS_LIBS



#
# check to see if we can set error checking mutexes
#

# LinuxThreads
echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
echo $ECHO_N "checking for PTHREAD_MUTEX_ERRORCHECK_NP... $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.  */
#include <pthread.h>
int
main ()
{
pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK_NP);
  ;
  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
  result="yes" defval=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

result="no" defval=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP $defval
_ACEOF


# Mac OS X
echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_ERRORCHECK" >&5
echo $ECHO_N "checking for PTHREAD_MUTEX_ERRORCHECK... $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.  */
#include <pthread.h>
int
main ()
{
pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK);
  ;
  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
  result="yes" defval=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

result="no" defval=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK $defval
_ACEOF


CFLAGS="$orig_CFLAGS"
FFLAGS="$orig_FFLAGS"
CXXFLAGS="$orig_CXXFLAGS"
CPPFLAGS="$orig_CPPFLAGS"
CXXCPPFLAGS="$orig_CXXCPPFLAGS"
LDFLAGS="$orig_LDFLAGS"
LIBS="$orig_LIBS"

if test "$OMPI_WANT_F77_BINDINGS" != "1"; then
  ompi_pthread_f77_success=1
fi

if test "$ompi_pthread_c_success" = "1" -a \
        "$ompi_pthread_cxx_success" = "1" -a \
       "$ompi_pthread_f77_success" = "1"; then
  internal_useless=1
  HAVE_POSIX_THREADS=1
else
  internal_useless=1
  HAVE_POSIX_THREADS=0
fi

unset ompi_pthread_c_success ompi_pthread_f77_success ompi_pthread_cxx_success
unset internal_useless

echo "$as_me:$LINENO: checking for working POSIX threads package" >&5
echo $ECHO_N "checking for working POSIX threads package... $ECHO_C" >&6
if test "$HAVE_POSIX_THREADS" = "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
export HAVE_POSIX_THREADS


ompi_sthread_c_success=0
ompi_sthread_f77_success=0
ompi_sthread_cxx_success=0

orig_CFLAGS="$CFLAGS"
orig_FFLAGS="$FFLAGS"
orig_CXXFLAGS="$CXXFLAGS"
orig_CPPFLAGS="$CPPFLAGS"
orig_CXXCPPFLAGS="$CXXCPPFLAGS"
orig_LDFLAGS="$LDFLAGS"
orig_LIBS="$LIBS"

STHREAD_CFLAGS=
STHREAD_FFLAGS=
STHREAD_CXXFLAGS=
STHREAD_CPPFLAGS=
STHREAD_CXXCPPFLAGS=
STHREAD_LDFLAGS=
STHREAD_LIBS=

# Only run C++ and Fortran if those compilers already configured

if test "$BASECC" = "cc"; then
    STHREAD_CFLAGS="-mt"
    style="Workshop/Forte"
else
    STHREAD_CPPFLAGS="-D_REENTRANT"
    STHREAD_LIBS="-lthread"
    style="-lthread"
fi
echo "$as_me:$LINENO: checking if C compiler and Solaris threads work" >&5
echo $ECHO_N "checking if C compiler and Solaris threads work... $ECHO_C" >&6
CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig"
CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig"
LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig"
LIBS="$STHREAD_LIBS $LIBS_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


# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <thread.h>
int
main ()
{
thread_t th; thr_join(th, 0, 0);
                 thr_create(0,0,0,0,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_sthread_c_success=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_sthread_c_success=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_SOLARIS_TRY_LINK

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_sthread_c_success" = "1"; then
    echo "$as_me:$LINENO: result: yes - $style" >&5
echo "${ECHO_T}yes - $style" >&6
else
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi



if test "$BASECXX" = "CC"; then
    STHREAD_CXXFLAGS="-mt"
    style="Workshop/Forte"
elif test "$BASECXX" = "KCC"; then
    STHREAD_CXXFLAGS="--backend -mt"
    style="KCC"
else
    STHREAD_CXXCPPFLAGS="-D_REENTRANT"
    STHREAD_LIBS="-lthread"
    style="-lthread"
fi
CXXFLAGS="$STHREAD_CXXFLAGS $CXXFLAGS_orig"
CXXCPPFLAGS="$STHREAD_CXXPPFLAGS $CXXPPFLAGS_orig"
LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig"
LIBS="$STHREAD_LIBS $LIBS_orig"
echo "$as_me:$LINENO: checking if C++ compiler and Solaris threads work" >&5
echo $ECHO_N "checking if C++ compiler and Solaris threads work... $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


# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK
#
# Make sure that we can run a small application in C or C++, which
# ever is the current language.  Do make sure that C or C++ is the
# current language.
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <thread.h>
int
main ()
{
thread_t th; thr_join(th, 0, 0);
                 thr_create(0,0,0,0,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_sthread_cxx_success=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_sthread_cxx_success=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
# END: OMPI_INTL_SOLARIS_TRY_LINK

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_sthread_cxx_success" = "1"; then
    echo "$as_me:$LINENO: result: yes - $style" >&5
echo "${ECHO_T}yes - $style" >&6
else
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi



if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
    if test "$BASEFC" = "f77"; then
        STHREAD_FFLAGS="-mt"
        style="Workshop/Forte"
    else
        STHREAD_LIBS="-lthread"
        style="-lthread"
    fi
    FFLAGS="$STHREAD_FFLAGS $FFLAGS_orig"
    CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig"
    CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig"
    LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig"
    LIBS="$STHREAD_LIBS $LIBS_orig"
    echo "$as_me:$LINENO: checking if F77 compiler and Solaris threads work" >&5
echo $ECHO_N "checking if F77 compiler and Solaris threads work... $ECHO_C" >&6
    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


# BEGIN: OMPI_INTL_SOLARIS_TRY_LINK_F77
#
# Make sure that we can run a small application in Fortran, with
# pthreads living in a C object file

# Fortran module
cat > conftestf.f <<EOF
      program fpthread
      INTEGER i
      i = 1
      end
EOF

# C module
if test -f conftest.h; then
    ompi_conftest_h="#include \"conftest.h\""
else
    ompi_conftest_h=""
fi
cat > conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <thread.h>
$ompi_conftest_h

#ifdef __cplusplus
extern "C" {
#endif
void ompi_pthread()
{
  thread_t th;
  thr_join(th, 0, 0);
  thr_create(0,0,0,0,0,0);
}
#ifdef __cplusplus
}
#endif
EOF

# Try the compile

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:46867: $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:46874: \$? = $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:46884: $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:46891: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    HAPPY=1
else
    unset ompi_status
    HAPPY=0
fi
else
    unset ompi_status
    HAPPY=0
fi

if test "$HAPPY" = "1"; then
   ompi_sthread_f77_success=1
else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46914: here is the C program:" >&5
else
    echo here is the C program: >&5
fi

# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
    cat conftest.c >&5
fi
    if test -f conftest.h; then

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46928: here is contest.h:" >&5
else
    echo here is contest.h: >&5
fi

# 1 is the filename
if test -n "conftest.h" -a -f "conftest.h"; then
    cat conftest.h >&5
fi
    fi

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:46942: here is the fortran program:" >&5
else
    echo here is the fortran program: >&5
fi

# 1 is the filename
if test -n "conftestf.f" -a -f "conftestf.f"; then
    cat conftestf.f >&5
fi
    ompi_sthread_f77_success=0
fi

unset HAPPY ompi_conftest_h
/bin/rm -f conftest*
# END: OMPI_INTL_SOLARIS_TRY_LINK_F77

    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_sthread_f77_success" = "1"; then
        echo "$as_me:$LINENO: result: yes - $style" >&5
echo "${ECHO_T}yes - $style" >&6
     else
        echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
     fi
else
  ompi_sthread_f77_success=1
fi


CFLAGS="$orig_CFLAGS"
FFLAGS="$orig_FFLAGS"
CXXFLAGS="$orig_CXXFLAGS"
CPPFLAGS="$orig_CPPFLAGS"
CXXCPPFLAGS="$orig_CXXCPPFLAGS"
LDFLAGS="$orig_LDFLAGS"
LIBS="$orig_LIBS"

if test "$ompi_sthread_c_success" = "1" -a \
        "$ompi_sthread_cxx_success" = "1" -a \
       "$ompi_sthread_f77_success" = "1"; then
  internal_useless=1
  HAVE_SOLARIS_THREADS=1
else
  internal_useless=1
  HAVE_SOLARIS_THREADS=0
fi

unset ompi_sthread_c_success ompi_sthread_f77_success ompi_sthread_cxx_success
unset internal_useless

echo "$as_me:$LINENO: checking for working Solaris threads package" >&5
echo $ECHO_N "checking for working Solaris threads package... $ECHO_C" >&6
if test "$HAVE_SOLARIS_THREADS" = "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
export HAVE_SOLARIS_THREADS

#
# Ask what threading we want (allow solaris / posix right now)
#
echo "$as_me:$LINENO: checking for type of thread support" >&5
echo $ECHO_N "checking for type of thread support... $ECHO_C" >&6

# Check whether --with-threads or --without-threads was given.
if test "${with_threads+set}" = set; then
  withval="$with_threads"
  THREAD_TYPE=$withval
fi;

if test "$THREAD_TYPE" = "solaris"; then

    if test "$HAVE_SOLARIS_THREADS" = "0"; then
	{ echo "$as_me:$LINENO: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&5
echo "$as_me: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&2;}
	{ echo "$as_me:$LINENO: WARNING: \"*** available on your system \"" >&5
echo "$as_me: WARNING: \"*** available on your system \"" >&2;}
	{ { echo "$as_me:$LINENO: error: \"*** Can not continue\"" >&5
echo "$as_me: error: \"*** Can not continue\"" >&2;}
   { (exit 1); exit 1; }; }
    fi
elif test "$THREAD_TYPE" = "posix"; then

    if test "$HAVE_POSIX_THREADS" = "0"; then
	{ echo "$as_me:$LINENO: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&5
echo "$as_me: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&2;}
	{ echo "$as_me:$LINENO: WARNING: \"*** available on your system \"" >&5
echo "$as_me: WARNING: \"*** available on your system \"" >&2;}
	{ { echo "$as_me:$LINENO: error: \"*** Can not continue\"" >&5
echo "$as_me: error: \"*** Can not continue\"" >&2;}
   { (exit 1); exit 1; }; }
    fi
elif test "$THREAD_TYPE" = "no"; then
    THREAD_TYPE="none"
elif test -z "$THREAD_TYPE" -o "$THREAD_TYPE" = "yes"; then

    # Actual logic here - properly set THREAD_TYPE - we go for system
    # optimized where ever possible
    case "$host" in
	*solaris*)
	    if test "$HAVE_SOLARIS_THREADS" = "1"; then
		THREAD_TYPE="solaris"
	    elif test "$HAVE_POSIX_THREADS" = "1"; then
		THREAD_TYPE="posix"
	    else
		THEAD_TYPE="none found"
	    fi
	    ;;
	*)
	    if test "$HAVE_POSIX_THREADS" = "1"; then
		THREAD_TYPE="posix"
	    else
		THREAD_TYPE="none found"
	    fi
	    ;;
    esac
else

    { echo "$as_me:$LINENO: WARNING: \"*** You have specified a thread type that I do not\"" >&5
echo "$as_me: WARNING: \"*** You have specified a thread type that I do not\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: \"*** understand.  Valid options are posix and solaris\"" >&5
echo "$as_me: WARNING: \"*** understand.  Valid options are posix and solaris\"" >&2;}
    { { echo "$as_me:$LINENO: error: \"*** Can not continue.\"" >&5
echo "$as_me: error: \"*** Can not continue.\"" >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: result: $THREAD_TYPE" >&5
echo "${ECHO_T}$THREAD_TYPE" >&6


#
# Ok, now run the configuration for that thread package.
#
# Blah - this should be made better, but I don't know how...
#
if test "$THREAD_TYPE" = "solaris"; then
    cat >>confdefs.h <<\_ACEOF
#define OMPI_HAVE_SOLARIS_THREADS 1
_ACEOF

    cat >>confdefs.h <<\_ACEOF
#define OMPI_HAVE_POSIX_THREADS 0
_ACEOF

    cat >>confdefs.h <<\_ACEOF
#define OMPI_THREADS_HAVE_DIFFERENT_PIDS 0
_ACEOF


    THREAD_CFLAGS="$STHREAD_CFLAGS"
    THREAD_FFLAGS="$STHREAD_FFLAGS"
    THREAD_CXXFLAGS="$STHREAD_CXXFLAGS"
    THREAD_CPPFLAGS="$STHREAD_CPPFLAGS"
    THREAD_CXXCPPFLAGS="$STHREAD_CXXCPPFLAGS"
    THREAD_LDFLAGS="$STHREAD_LDFLAGS"
    THREAD_LIBS="$STHREAD_LIBS"
elif test "$THREAD_TYPE" = "posix"; then
    cat >>confdefs.h <<\_ACEOF
#define OMPI_HAVE_SOLARIS_THREADS 0
_ACEOF

    cat >>confdefs.h <<\_ACEOF
#define OMPI_HAVE_POSIX_THREADS 1
_ACEOF


    THREAD_CFLAGS="$PTHREAD_CFLAGS"
    THREAD_FFLAGS="$PTHREAD_FFLAGS"
    THREAD_CXXFLAGS="$PTHREAD_CXXFLAGS"
    THREAD_CPPFLAGS="$PTHREAD_CPPFLAGS"
    THREAD_CXXCPPFLAGS="$PTHREAD_CXXCPPFLAGS"
    THREAD_LDFLAGS="$PTHREAD_LDFLAGS"
    THREAD_LIBS="$PTHREAD_LIBS"


#
# Arguments: none
#
# Dependencies: None
#
# Sets:
#  OMPI_THREADS_HAVE_DIFFERENT_PIDS (variable)
#
# Test for Linux-like threads in the system. We will need to handle things like
# getpid() differently in the case of a Linux-like threads model.
#




echo "$as_me:$LINENO: checking if threads have different pids (pthreads on linux)" >&5
echo $ECHO_N "checking if threads have different pids (pthreads on linux)... $ECHO_C" >&6
CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
LDFLAGS_save="$LDFLAGS"
LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
LIBS_save="$LIBS"
LIBS="$LIBS $THREAD_LIBS"
if test "$cross_compiling" = yes; then
  case $host in
     *-linux*)
         MSG="cross compiling - assuming yes"
         OMPI_THREADS_HAVE_DIFFERENT_PIDS=1
         ;;
     *)
         MSG="cross compiling - assuming no"
         OMPI_THREADS_HAVE_DIFFERENT_PIDS=0
         ;;
 esac

else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <pthread.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
void *checkpid(void *arg);
int main(int argc, char* argv[]) {
  pthread_t thr;
  int pid, retval;
  pid = getpid();
  pthread_create(&thr, NULL, checkpid, &pid);
  pthread_join(thr, (void **) &retval);
  exit(retval);
}
void *checkpid(void *arg) {
   int ret;
   int ppid = *((int *) arg);
   if (ppid == getpid())
     ret = 0;
   else
     ret = 1;
     pthread_exit((void *) ret);
}
_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
  MSG=no OMPI_THREADS_HAVE_DIFFERENT_PIDS=0
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 )
MSG=yes OMPI_THREADS_HAVE_DIFFERENT_PIDS=1
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

CPPFLAGS="$CPPFLAGS_save"
LDFLAGS="$LDFLAGS_save"
LIBS="$LIBS_save"

echo "$as_me:$LINENO: result: $MSG" >&5
echo "${ECHO_T}$MSG" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_THREADS_HAVE_DIFFERENT_PIDS $OMPI_THREADS_HAVE_DIFFERENT_PIDS
_ACEOF


#
# if pthreads is not available, then the system does not have an insane threads
# model
#
unset MSG
else
    cat >>confdefs.h <<\_ACEOF
#define OMPI_HAVE_SOLARIS_THREADS 0
_ACEOF

    cat >>confdefs.h <<\_ACEOF
#define OMPI_HAVE_POSIX_THREADS 0
_ACEOF

    cat >>confdefs.h <<\_ACEOF
#define OMPI_THREADS_HAVE_DIFFERENT_PIDS 0
_ACEOF


    TRHEAD_CFLAGS=
    THREAD_FFLAGS=
    THREAD_CXXFLAGS=
    THREAD_CPPFLAGS=
    THREAD_CXXCPPFLAGS=
    THREAD_LDFLAGS=
    THREAD_LIBS=
    if test "$THREAD_TYPE" != "none" ; then
        cat <<EOF

************************************************************************

Open MPI was unable to find threading support on your system.  In the
near future, the OMPI development team is considering requiring
threading support for proper OMPI execution.  This is in part because
we are not aware of any users that do not have thread support - so we
need you to e-mail us at ompi@ompi-mpi.org and let us know about this
problem.

************************************************************************

EOF
    fi
fi



if test "$THREAD_TYPE" = "posix"; then
  OMPI_HAVE_POSIX_THREADS_TRUE=
  OMPI_HAVE_POSIX_THREADS_FALSE='#'
else
  OMPI_HAVE_POSIX_THREADS_TRUE='#'
  OMPI_HAVE_POSIX_THREADS_FALSE=
fi



if test "$THREAD_TYPE" = "solaris"; then
  OMPI_HAVE_SOLARIS_THREADS_TRUE=
  OMPI_HAVE_SOLARIS_THREADS_FALSE='#'
else
  OMPI_HAVE_SOLARIS_THREADS_TRUE='#'
  OMPI_HAVE_SOLARIS_THREADS_FALSE=
fi


#
# Now configure the whole MPI and progress thread gorp
#
echo "$as_me:$LINENO: checking if want MPI thread support" >&5
echo $ECHO_N "checking if want MPI thread support... $ECHO_C" >&6
# Check whether --enable-mpi-threads or --disable-mpi-threads was given.
if test "${enable_mpi_threads+set}" = set; then
  enableval="$enable_mpi_threads"
  enable_mpi_threads="$enableval"
fi;

if test "$enable_mpi_threads" = "" ; then
    # no argument - default to no
    OMPI_ENABLE_MPI_THREADS=0
    enable_mpi_threads="no"
elif test "$enable_mpi_threads" = "no" ; then
    OMPI_ENABLE_MPI_THREADS=0
else
    # they want MPI threads.  Make sure we have threads
    if test "$THREAD_TYPE" != "none" ; then
        OMPI_ENABLE_MPI_THREADS=1
        enable_mpi_threads="yes"
    else
        { { echo "$as_me:$LINENO: error: User requested MPI threads, but no threading model supported" >&5
echo "$as_me: error: User requested MPI threads, but no threading model supported" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_MPI_THREADS $OMPI_ENABLE_MPI_THREADS
_ACEOF

echo "$as_me:$LINENO: result: $enable_mpi_threads" >&5
echo "${ECHO_T}$enable_mpi_threads" >&6


echo "$as_me:$LINENO: checking if want asynchronous progress thread support" >&5
echo $ECHO_N "checking if want asynchronous progress thread support... $ECHO_C" >&6
# Check whether --enable-progress-threads or --disable-progress-threads was given.
if test "${enable_progress_threads+set}" = set; then
  enableval="$enable_progress_threads"
  enable_progress_threads="$enableval"
fi;

if test "$enable_progress_threads" = "" ; then
    # no argument given either way.  Default to no.
    OMPI_ENABLE_PROGRESS_THREADS=0
    enable_progress_threads="no"
elif test "$enable_progress_threads" = "no" ; then
    OMPI_ENABLE_PROGRESS_THREADS=0
    enable_progress_threads="no"
else
    # they want threaded progress
    if test "$THREAD_TYPE" != "none" ; then
        OMPI_ENABLE_PROGRESS_THREADS=1
        enable_progress_threads="yes"
    else
        { { echo "$as_me:$LINENO: error: User requested progress threads, but no threading model supported" >&5
echo "$as_me: error: User requested progress threads, but no threading model supported" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_PROGRESS_THREADS $OMPI_ENABLE_PROGRESS_THREADS
_ACEOF

echo "$as_me:$LINENO: result: $enable_progress_threads" >&5
echo "${ECHO_T}$enable_progress_threads" >&6

CFLAGS="$CFLAGS $THREAD_CFLAGS"
CXXFLAGS="$CXXFLAGS $THREAD_CXXFLAGS"
CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
CXXCPPFLAGS="$CXXCPPFLAGS $THREAD_CXXCPPFLAGS"
LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
LIBS="$LIBS $THREAD_LIBS"


WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $THREAD_CPPFLAGS"
WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $THREAD_CFLAGS"
WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $THREAD_CXXFLAGS"
WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $THREAD_FFLAGS"
WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $THREAD_FFLAGS"
WRAPPER_EXTRA_LDFLAGS="$WRAPPER_EXTRA_LDFLAGS $THREAD_LDFLAGS"
# no need to update WRAPPER_EXTRA_LIBS - we'll get it from LT later

#
# What is the local equivalent of "ln -s"
#

echo "$as_me:$LINENO: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi


#
# We need as and lex
#
# By default we simply use the C compiler to build assembly code.

test "${CCAS+set}" = set || CCAS=$CC
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS



for ac_prog in flex lex
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_LEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # 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_LEX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
  echo "$as_me:$LINENO: result: $LEX" >&5
echo "${ECHO_T}$LEX" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$LEX" && break
done
test -n "$LEX" || LEX=":"

if test -z "$LEXLIB"
then
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char yywrap ();
int
main ()
{
yywrap ();
  ;
  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
  ac_cv_lib_fl_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_fl_yywrap=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
if test $ac_cv_lib_fl_yywrap = yes; then
  LEXLIB="-lfl"
else
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
if test "${ac_cv_lib_l_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ll  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char yywrap ();
int
main ()
{
yywrap ();
  ;
  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
  ac_cv_lib_l_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_l_yywrap=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
if test $ac_cv_lib_l_yywrap = yes; then
  LEXLIB="-ll"
fi

fi

fi

if test "x$LEX" != "x:"; then
  echo "$as_me:$LINENO: checking lex output file root" >&5
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
if test "${ac_cv_prog_lex_root+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # The minimal lex program is just a single line: %%.  But some broken lexes
# (Solaris, I think it was) want two %% lines, so accommodate them.
cat >conftest.l <<_ACEOF
%%
%%
_ACEOF
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  (eval $LEX conftest.l) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
else
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
   { (exit 1); exit 1; }; }
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
rm -f conftest.l
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent. Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
ac_save_LIBS=$LIBS
LIBS="$LIBS $LEXLIB"
cat >conftest.$ac_ext <<_ACEOF
`cat $LEX_OUTPUT_ROOT.c`
_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
  ac_cv_prog_lex_yytext_pointer=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_save_LIBS
rm -f "${LEX_OUTPUT_ROOT}.c"

fi
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
if test $ac_cv_prog_lex_yytext_pointer = yes; then

cat >>confdefs.h <<\_ACEOF
#define YYTEXT_POINTER 1
_ACEOF

fi

fi
if test "$LEX" = :; then
  LEX=${am_missing_run}flex
fi

# If we don't have GNU Flex and we don't have a generated .c file
# (distribution tarballs will have the .c file included, but SVN
# checkouts will not), then error.  Must have GNU Flex -- other
# versions of Lex are not workable (all things being equal, since this
# is *only* required for developers, we decided that it really was not
# worth it to be portable between different versions of lex ;-).

if test -z "$LEX" -o -n "`echo $LEX | grep missing`" -o \
    "`basename $LEX`" != "flex"; then
    if test ! -f "$srcdir/opal/util/show_help_lex.c"; then
        { echo "$as_me:$LINENO: WARNING: *** Could not find GNU Flex on your system." >&5
echo "$as_me: WARNING: *** Could not find GNU Flex on your system." >&2;}
        { echo "$as_me:$LINENO: WARNING: *** GNU Flex required for developer builds of Open MPI." >&5
echo "$as_me: WARNING: *** GNU Flex required for developer builds of Open MPI." >&2;}
        { echo "$as_me:$LINENO: WARNING: *** Other versions of Lex are not supported." >&5
echo "$as_me: WARNING: *** Other versions of Lex are not supported." >&2;}
        { echo "$as_me:$LINENO: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&5
echo "$as_me: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&2;}
        { echo "$as_me:$LINENO: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&5
echo "$as_me: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&2;}
        { echo "$as_me:$LINENO: WARNING: *** consider using a distribution tarball, or generate the" >&5
echo "$as_me: WARNING: *** consider using a distribution tarball, or generate the" >&2;}
        { echo "$as_me:$LINENO: WARNING: *** following files on another system (using Flex) and" >&5
echo "$as_me: WARNING: *** following files on another system (using Flex) and" >&2;}
        { echo "$as_me:$LINENO: WARNING: *** copy them here:" >&5
echo "$as_me: WARNING: *** copy them here:" >&2;}
        for lfile in `find . -name \*.l -print`; do
            cfile="`echo $lfile | cut -d. -f-2`"
            { echo "$as_me:$LINENO: WARNING: ***     $cfile.c" >&5
echo "$as_me: WARNING: ***     $cfile.c" >&2;}
        done
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi

#
# File system case sensitivity
#


#
# Arguments: none
#
# Dependencies: None
#
# See if we are on a case sensitive filesystem.  Some filesystems
# (like HFS+ on MacOS X and MS Windows) are not case sensitive - mpicc
# and mpiCC are the same file.
#
# Sets prefix_OS_HAVE_CASE_SENSITIVE_FS to 1 if filesystem is case
# sensitive (ie, mpicc and mpiCC will be different files) or 0 if
# filesystem is not case sensitive (ie, mpicc and mpiCC will be
# the same file).
#
#

have_cs_fs=1

echo "$as_me:$LINENO: checking if build filesystem is case sensitive" >&5
echo $ECHO_N "checking if build filesystem is case sensitive... $ECHO_C" >&6
cat > conf_fs_test.$$ <<EOF
lowercase
EOF

cat > CONF_FS_TEST.$$ <<EOF
uppercase
EOF

if test "`cat conf_fs_test.$$`" = "lowercase"; then
    have_cs_fs=1
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
    have_cs_fs=0
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

rm -f conf_fs_test.$$ CONF_FS_TEST.$$

#
# Now see what the user wants to do...
#
echo "$as_me:$LINENO: checking if configuring for case sensitive filesystem" >&5
echo $ECHO_N "checking if configuring for case sensitive filesystem... $ECHO_C" >&6

# Check whether --with-cs_fs or --without-cs_fs was given.
if test "${with_cs_fs+set}" = set; then
  withval="$with_cs_fs"

fi;

if test "$with_cs_fs" = "yes"; then
    OMPI_WANT_CS_FS=1
elif test -z "$with_cs_fs"; then
    OMPI_WANT_CS_FS=$have_cs_fs
else
    OMPI_WANT_CS_FS=0
fi

if test "$OMPI_WANT_CS_FS" = "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



if test "$OMPI_WANT_CS_FS" = "1"; then
  CASE_SENSITIVE_FS_TRUE=
  CASE_SENSITIVE_FS_FALSE='#'
else
  CASE_SENSITIVE_FS_TRUE='#'
  CASE_SENSITIVE_FS_FALSE=
fi


if test "$OMPI_WANT_CS_FS" = "0"; then
	cat <<EOF

*******************************************************************************
NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
*******************************************************************************

Because Open MPI is being installed on a non-case sensitive file
system, the C++ wrapper compiler will be named mpic++ instead of the
traditional mpiCC.

Please update any makefiles appropriately.

*******************************************************************************
NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
*******************************************************************************

EOF
fi

# Clean up
unset have_cs_fs

# AIX: FIONBIO in sys/ioctl.h
# glibc: memcpy

# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


##################################
# MCA
##################################

ompi_show_title "Modular Component Architecture (MCA) setup"

echo "$as_me:$LINENO: checking for subdir args" >&5
echo $ECHO_N "checking for subdir args... $ECHO_C" >&6

#
# Invoke configure in subdirectories.
#
# ompi_subdir_args is the name of the variable to assign the output to
#

#
# Make a list of command line args --eliminate the --srcdir and
# --cache-file args, because we need to replace them with our own
# values when invoking the sub-configure script.
#

subdirs_args=
subdirs_skip=no

eval "set x $ac_configure_args"
shift
for subdirs_arg
do
    if test "$subdirs_skip" = "yes"; then
	subdirs_skip=no
    else
	case $subdirs_arg in
	-cache-file | --cache-file | -cache | --cache)
	    subdirs_skip=yes
	    ;;
	--config-cache | -C)
	    ;;
	-cache-file=* | --cache-file=*)
	    ;;
	-srcdir | --srcdir)
	    subdirs_skip=yes
	    ;;
	-srcdir=* | --srcdir=*)
	    ;;
	*)
	    case $subdir_arg in
	    *\'*) subdir_arg=`echo "$subdir_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
	    esac
	    subdirs_args="$subdirs_args '$subdirs_arg'"
	    ;;
	esac
    fi
done

#
# Assign the output
#

subdirs_str=ompi_subdir_args=\"$subdirs_args\"
eval "$subdirs_str"

#
# Clean up
#

unset subdirs_str subdirs_skip subdirs_args subdirs_arg
echo "$as_me:$LINENO: result: $ompi_subdir_args" >&5
echo "${ECHO_T}$ompi_subdir_args" >&6




    if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC gcc cc objc
  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_OBJC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$OBJC"; then
  ac_cv_prog_OBJC="$OBJC" # 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_OBJC="$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
OBJC=$ac_cv_prog_OBJC
if test -n "$OBJC"; then
  echo "$as_me:$LINENO: result: $OBJC" >&5
echo "${ECHO_T}$OBJC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$OBJC" && break
  done
fi
if test -z "$OBJC"; then
  ac_ct_OBJC=$OBJC
  for ac_prog in $CCC gcc cc objc
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_OBJC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_OBJC"; then
  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # 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_OBJC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
if test -n "$ac_ct_OBJC"; then
  echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
echo "${ECHO_T}$ac_ct_OBJC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_OBJC" && break
done
test -n "$ac_ct_OBJC" || ac_ct_OBJC="gcc"

  OBJC=$ac_ct_OBJC
fi


depcc="$OBJC" am_compiler_list='gcc3 gcc'

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_OBJC_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_OBJC_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_OBJC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_OBJC_dependencies_compiler_type=none
fi

fi
echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6
OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type



if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  am__fastdepOBJC_TRUE=
  am__fastdepOBJC_FALSE='#'
else
  am__fastdepOBJC_TRUE='#'
  am__fastdepOBJC_FALSE=
fi




    # Find which components should be built as run-time loadable components
    # Acceptable combinations:
    #
    # [default -- no option given]
    # --enable-mca-dso
    # --enable-mca-dso=[.+,]*COMPONENT_TYPE[.+,]*
    # --enable-mca-dso=[.+,]*COMPONENT_TYPE-COMPONENT_NAME[.+,]*
    # --disable-mca-dso
    #
    # Check whether --enable-mca-no-build or --disable-mca-no-build was given.
if test "${enable_mca_no_build+set}" = set; then
  enableval="$enable_mca_no_build"

fi;
    # Check whether --enable-mca-dso or --disable-mca-dso was given.
if test "${enable_mca_dso+set}" = set; then
  enableval="$enable_mca_dso"

fi;
    # Check whether --enable-mca-static or --disable-mca-static was given.
if test "${enable_mca_static+set}" = set; then
  enableval="$enable_mca_static"

fi;
    # Check whether --enable-mca-direct or --disable-mca-direct was given.
if test "${enable_mca_direct+set}" = set; then
  enableval="$enable_mca_direct"

fi;

    echo "$as_me:$LINENO: checking which components should be disabled" >&5
echo $ECHO_N "checking which components should be disabled... $ECHO_C" >&6
    if test "$enable_mca_no_build" = "yes"; then
        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
        { { echo "$as_me:$LINENO: error: *** The enable-mca-no-build flag requires an explicit list
*** of type-component pairs.  For example, --enable-mca-direct=pml-teg" >&5
echo "$as_me: error: *** The enable-mca-no-build flag requires an explicit list
*** of type-component pairs.  For example, --enable-mca-direct=pml-teg" >&2;}
   { (exit 1); exit 1; }; }
    else
        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_mca_no_build; do
            type="`echo $item | cut -f1 -d-`"
            comp="`echo $item | cut -f2- -d-`"
            if test -z $type -o -z $comp ; then
                { { echo "$as_me:$LINENO: error: *** The enable-no-build flag requires a
*** list of type-component pairs.  Invalid input detected." >&5
echo "$as_me: error: *** The enable-no-build flag requires a
*** list of type-component pairs.  Invalid input detected." >&2;}
   { (exit 1); exit 1; }; }
            else
                str="`echo DISABLE_${type}_${comp}=1 | sed s/-/_/g`"
                eval $str
                msg="$item $msg"
            fi
        done
        IFS="$ifs_save"
    fi
    echo "$as_me:$LINENO: result: $msg" >&5
echo "${ECHO_T}$msg" >&6
    unset msg

    #
    # First, add all the mca-direct components / types into the mca-static
    # lists and create a list of component types that are direct compile,
    # in the form DIRECT_[type]=[component]
    #
    echo "$as_me:$LINENO: checking which components should be direct-linked into the library" >&5
echo $ECHO_N "checking which components should be direct-linked into the library... $ECHO_C" >&6
    if test "$enable_mca_direct" = "yes" ; then
        echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
        { { echo "$as_me:$LINENO: error: *** The enable-mca-direct flag requires an explicit list of
*** type-component pairs.  For example, --enable-mca-direct=pml-teg,coll-basic" >&5
echo "$as_me: error: *** The enable-mca-direct flag requires an explicit list of
*** type-component pairs.  For example, --enable-mca-direct=pml-teg,coll-basic" >&2;}
   { (exit 1); exit 1; }; }
    elif test ! -z "$enable_mca_direct" -a "$enable_mca_direct" != "" ; then
        #
        # we need to add this into the static list, unless the static list
        # is everything
        #
        if test "$enable_mca_static" = "no" ; then
            { echo "$as_me:$LINENO: WARNING: *** Re-enabling static component support for direct call" >&5
echo "$as_me: WARNING: *** Re-enabling static component support for direct call" >&2;}
            enable_mca_static="$enable_mca_direct"
        elif test -z "$enable_mca_static" ; then
            enable_mca_static="$enable_mca_direct"
        elif test "$enable_mca_static" != "yes" ; then
            enable_mca_static="$enable_mca_direct,$enable_mca_static"
        fi

        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_mca_direct; do
            type="`echo $item | cut -f1 -d-`"
            comp="`echo $item | cut -f2- -d-`"
            if test -z $type -o -z $comp ; then
                { { echo "$as_me:$LINENO: error: *** The enable-mca-direct flag requires a
*** list of type-component pairs.  Invalid input detected." >&5
echo "$as_me: error: *** The enable-mca-direct flag requires a
*** list of type-component pairs.  Invalid input detected." >&2;}
   { (exit 1); exit 1; }; }
            else
                str="`echo DIRECT_$type=$comp | sed s/-/_/g`"
                eval $str
                msg="$item $msg"
            fi
        done
        IFS="$ifs_save"
    fi
    echo "$as_me:$LINENO: result: $msg" >&5
echo "${ECHO_T}$msg" >&6
    unset msg

    #
    # Second, set the DSO_all and STATIC_all variables.  conflict
    # resolution (prefer static) is done in the big loop below
    #
    echo "$as_me:$LINENO: checking which components should be run-time loadable" >&5
echo $ECHO_N "checking which components should be run-time loadable... $ECHO_C" >&6
    if test "$enable_static" != "no"; then
        DSO_all=0
        msg=none
    elif test -z "$enable_mca_dso" -o "$enable_mca_dso" = "yes"; then
        DSO_all=1
        msg=all
    elif test "$enable_mca_dso" = "no"; then
        DSO_all=0
        msg=none
    else
        DSO_all=0
        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_mca_dso; do
            str="`echo DSO_$item=1 | sed s/-/_/g`"
            eval $str
            msg="$item $msg"
        done
        IFS="$ifs_save"
    fi
    echo "$as_me:$LINENO: result: $msg" >&5
echo "${ECHO_T}$msg" >&6
    unset msg
    if test "$enable_static" != "no"; then
        { echo "$as_me:$LINENO: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&5
echo "$as_me: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&2;}
        { echo "$as_me:$LINENO: WARNING: *** Building MCA components as DSOs automatically disabled" >&5
echo "$as_me: WARNING: *** Building MCA components as DSOs automatically disabled" >&2;}
    fi

    echo "$as_me:$LINENO: checking which components should be static" >&5
echo $ECHO_N "checking which components should be static... $ECHO_C" >&6
    if test "$enable_mca_static" = "yes"; then
        STATIC_all=1
        msg=all
    elif test -z "$enable_mca_static" -o "$enable_mca_static" = "no"; then
        STATIC_all=0
        msg=none
    else
        STATIC_all=0
        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_mca_static; do
            str="`echo STATIC_$item=1 | sed s/-/_/g`"
            eval $str
            msg="$item $msg"
        done
        IFS="$ifs_save"
    fi
    echo "$as_me:$LINENO: result: $msg" >&5
echo "${ECHO_T}$msg" >&6
    unset msg

    echo "$as_me:$LINENO: checking for projects containing MCA frameworks" >&5
echo $ECHO_N "checking for projects containing MCA frameworks... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: opal, orte, ompi" >&5
echo "${ECHO_T}opal, orte, ompi" >&6

    # if there isn't a project list, abort


    # now configre all the projects, frameworks, and components.  Most
    # of the hard stuff is in here
    MCA_PROJECT_SUBDIRS=
    MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS opal"

    # can't use a variable rename here because these need to be evaled
    # at auto* time.

    ompi_show_subtitle "Configuring MCA for opal"

    echo "$as_me:$LINENO: checking for frameworks for opal" >&5
echo $ECHO_N "checking for frameworks for opal... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: maffinity, memcpy, memory, paffinity, timer" >&5
echo "${ECHO_T}maffinity, memcpy, memory, paffinity, timer" >&6

    # iterate through the list of frameworks.  There is something
    # funky with m4 foreach if the list is defined, but empty.  It
    # will call the 3rd argument once with an empty value for the
    # first argument.  Protect against calling MCA_CONFIGURE_FRAMEWORK
    # with an empty second argument.  Grrr....
    # if there isn't a project list, abort
    #
    # Also setup two variables for Makefiles:
    #  MCA_project_FRAMEWORKS     - list of frameworks in that project
    #  MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
    #                               to more libraries) that must be included
    #                               in the project's main library


    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=

    # common has to go up front
                          if test "maffinity" = "common" ; then
                              MCA_opal_FRAMEWORKS="maffinity $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/maffinity $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_maffinity_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_maffinity_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_maffinity_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS maffinity"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/maffinity"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_maffinity_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_maffinity_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_maffinity_STATIC_SUBDIRS)"
                          fi
                          if test "maffinity" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/maffinity/libmca_maffinity.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_maffinity_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework maffinity"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "maffinity" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/maffinity/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework maffinity" >&5
echo $ECHO_N "checking for no configure components in framework maffinity... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: first_use" >&5
echo "${ECHO_T}first_use" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework maffinity" >&5
echo $ECHO_N "checking for m4 configure components in framework maffinity... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: libnuma" >&5
echo "${ECHO_T}libnuma" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component maffinity:first_use (no configuration)"


    project=opal
    framework=maffinity
    component=first_use
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_maffinity" ; then
            if test "$DIRECT_maffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=opal
    framework=maffinity
    component=first_use

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_maffinity" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=opal
    framework=maffinity
    component=first_use

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_maffinity" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_maffinity" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component maffinity:first_use can compile" >&5
echo $ECHO_N "checking if MCA component maffinity:first_use can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_maffinity" = "first_use" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"first_use\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_maffinity" ; then
        if test "$DIRECT_maffinity" = "first_use" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"first_use\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components first_use"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_maffinity_first_use_DSO=1
    else
        BUILD_maffinity_first_use_DSO=0
    fi


if test "$BUILD_maffinity_first_use_DSO" = "1"; then
  OMPI_BUILD_maffinity_first_use_DSO_TRUE=
  OMPI_BUILD_maffinity_first_use_DSO_FALSE='#'
else
  OMPI_BUILD_maffinity_first_use_DSO_TRUE='#'
  OMPI_BUILD_maffinity_first_use_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component maffinity:libnuma (m4 configuration macro)"


    project=opal
    framework=maffinity
    component=libnuma
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_maffinity" ; then
            if test "$DIRECT_maffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=maffinity
    component=libnuma

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_maffinity" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then


# Check whether --with-libnuma or --without-libnuma was given.
if test "${with_libnuma+set}" = set; then
  withval="$with_libnuma"

fi;

    if test "$with_libnuma" = "no"; then
  maffinity_libnuma_happy="no"
else
  maffinity_libnuma_happy="yes"
fi


    if test "$maffinity_libnuma_happy" = "yes"; then

    ompi_check_package_maffinity_libnuma_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_maffinity_libnuma_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_maffinity_libnuma_save_LIBS="$LIBS"

    ompi_check_package_maffinity_libnuma_orig_CPPFLAGS="$maffinity_libnuma_CPPFLAGS"
    ompi_check_package_maffinity_libnuma_orig_LDFLAGS="$maffinity_libnuma_LDFLAGS"
    ompi_check_package_maffinity_libnuma_orig_LIBS="$maffinity_libnuma_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_numa_h

    ompi_check_package_header_happy="no"
    if test "$with_libnuma" = "/usr" -o "$with_libnuma" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_numa_h+set}" = set; then
  echo "$as_me:$LINENO: checking for numa.h" >&5
echo $ECHO_N "checking for numa.h... $ECHO_C" >&6
if test "${ac_cv_header_numa_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
echo "${ECHO_T}$ac_cv_header_numa_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking numa.h usability" >&5
echo $ECHO_N "checking numa.h usability... $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 <numa.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking numa.h presence" >&5
echo $ECHO_N "checking numa.h presence... $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.  */
#include <numa.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: numa.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: numa.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: numa.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: numa.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: numa.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: numa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: numa.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: numa.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for numa.h" >&5
echo $ECHO_N "checking for numa.h... $ECHO_C" >&6
if test "${ac_cv_header_numa_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_numa_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
echo "${ECHO_T}$ac_cv_header_numa_h" >&6

fi
if test $ac_cv_header_numa_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_numa_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$with_libnuma" != ""; then
  maffinity_libnuma_CPPFLAGS="$maffinity_libnuma_CPPFLAGS -I$with_libnuma/include"
                  CPPFLAGS="$CPPFLAGS -I$with_libnuma/include"
fi

           if test "${ac_cv_header_numa_h+set}" = set; then
  echo "$as_me:$LINENO: checking for numa.h" >&5
echo $ECHO_N "checking for numa.h... $ECHO_C" >&6
if test "${ac_cv_header_numa_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
echo "${ECHO_T}$ac_cv_header_numa_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking numa.h usability" >&5
echo $ECHO_N "checking numa.h usability... $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 <numa.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking numa.h presence" >&5
echo $ECHO_N "checking numa.h presence... $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.  */
#include <numa.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: numa.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: numa.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: numa.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: numa.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: numa.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: numa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: numa.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: numa.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: numa.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for numa.h" >&5
echo $ECHO_N "checking for numa.h... $ECHO_C" >&6
if test "${ac_cv_header_numa_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_numa_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
echo "${ECHO_T}$ac_cv_header_numa_h" >&6

fi
if test $ac_cv_header_numa_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_numa_numa_available
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char numa_available ();
int
main ()
{
numa_available ();
  ;
  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
  ac_cv_lib_numa_numa_available=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_numa_numa_available=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6
if test $ac_cv_lib_numa_numa_available = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                  maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                  unset ac_cv_lib_numa_numa_available
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$with_libnuma"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char numa_available ();
int
main ()
{
numa_available ();
  ;
  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
  ac_cv_lib_numa_numa_available=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_numa_numa_available=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6
if test $ac_cv_lib_numa_numa_available = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                     maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                     unset ac_cv_lib_numa_numa_available
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char numa_available ();
int
main ()
{
numa_available ();
  ;
  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
  ac_cv_lib_numa_numa_available=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_numa_numa_available=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6
if test $ac_cv_lib_numa_numa_available = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                          maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                          unset ac_cv_lib_numa_numa_available
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char numa_available ();
int
main ()
{
numa_available ();
  ;
  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
  ac_cv_lib_numa_numa_available=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_numa_numa_available=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6
if test $ac_cv_lib_numa_numa_available = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                          maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                          unset ac_cv_lib_numa_numa_available
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_numa_numa_available
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char numa_available ();
int
main ()
{
numa_available ();
  ;
  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
  ac_cv_lib_numa_numa_available=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_numa_numa_available=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6
if test $ac_cv_lib_numa_numa_available = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                  maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                  unset ac_cv_lib_numa_numa_available
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$with_libnuma"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char numa_available ();
int
main ()
{
numa_available ();
  ;
  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
  ac_cv_lib_numa_numa_available=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_numa_numa_available=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6
if test $ac_cv_lib_numa_numa_available = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                     maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                     unset ac_cv_lib_numa_numa_available
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char numa_available ();
int
main ()
{
numa_available ();
  ;
  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
  ac_cv_lib_numa_numa_available=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_numa_numa_available=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6
if test $ac_cv_lib_numa_numa_available = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                          maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                          unset ac_cv_lib_numa_numa_available
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnuma  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char numa_available ();
int
main ()
{
numa_available ();
  ;
  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
  ac_cv_lib_numa_numa_available=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_numa_numa_available=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6
if test $ac_cv_lib_numa_numa_available = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
                          maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
                          unset ac_cv_lib_numa_numa_available
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  maffinity_libnuma_happy="yes"
           maffinity_libnuma_LIBS="-lnuma "
else
  maffinity_libnuma_CPPFLAGS="$ompi_check_package_maffinity_libnuma_orig_CPPFLAGS"
           maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
           maffinity_libnuma_LIBS="$ompi_check_package_maffinity_libnuma_orig_LIBS"
           maffinity_libnuma_happy="no"
fi


    CPPFLAGS="$ompi_check_package_maffinity_libnuma_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
    LIBS="$ompi_check_package_maffinity_libnuma_save_LIBS"

fi


    if test "$maffinity_libnuma_happy" = "yes"; then
  maffinity_libnuma_WRAPPER_EXTRA_LDFLAGS="$maffinity_libnuma_LDFLAGS"
           maffinity_libnuma_WRAPPER_EXTRA_LIBS="$maffinity_libnuma_LIBS"
           should_build=1
else
  should_build=0
fi


    # sanity check
    if test "$maffinity_libnuma_happy" = "no"; then
  if test "$with_libnuma" != "no" -a ! -z "$with_libnuma"; then
  { { echo "$as_me:$LINENO: error: maffinity:libnuma requested but not found.  Aborting" >&5
echo "$as_me: error: maffinity:libnuma requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

fi


    # substitute in the things needed to build gm




fi


    if test "$should_build" = "1"; then

    project=opal
    framework=maffinity
    component=libnuma

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_maffinity" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_maffinity" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component maffinity:libnuma can compile" >&5
echo $ECHO_N "checking if MCA component maffinity:libnuma can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_maffinity" = "libnuma" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"libnuma\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_maffinity" ; then
        if test "$DIRECT_maffinity" = "libnuma" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"libnuma\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components libnuma"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_maffinity_libnuma_DSO=1
else
  BUILD_maffinity_libnuma_DSO=0
fi



if test "$BUILD_maffinity_libnuma_DSO" = "1"; then
  OMPI_BUILD_maffinity_libnuma_DSO_TRUE=
  OMPI_BUILD_maffinity_libnuma_DSO_FALSE='#'
else
  OMPI_BUILD_maffinity_libnuma_DSO_TRUE='#'
  OMPI_BUILD_maffinity_libnuma_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/opal/mca/maffinity/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component maffinity:$component (need to configure)"


    project=opal
    framework=maffinity
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_maffinity" ; then
            if test "$DIRECT_maffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=opal
    framework=maffinity
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_maffinity" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/maffinity/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="opal/mca/maffinity/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=opal
    framework=maffinity
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_maffinity" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_maffinity" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component maffinity:$component can compile" >&5
echo $ECHO_N "checking if MCA component maffinity:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_maffinity" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_maffinity" ; then
        if test "$DIRECT_maffinity" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_maffinity_ALL_COMPONENTS="$all_components"
    MCA_maffinity_STATIC_COMPONENTS="$static_components"
    MCA_maffinity_DSO_COMPONENTS="$dso_components"
    MCA_maffinity_STATIC_LTLIBS="$static_ltlibs"







    MCA_maffinity_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_maffinity_ALL_SUBDIRS="$MCA_maffinity_ALL_SUBDIRS mca/maffinity/$item"
    done



    MCA_maffinity_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_maffinity_STATIC_SUBDIRS="$MCA_maffinity_STATIC_SUBDIRS mca/maffinity/$item"
    done



    MCA_maffinity_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_maffinity_DSO_SUBDIRS="$MCA_maffinity_DSO_SUBDIRS mca/maffinity/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files opal/mca/maffinity/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "maffinity" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_maffinity_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "memcpy" = "common" ; then
                              MCA_opal_FRAMEWORKS="memcpy $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/memcpy $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memcpy_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memcpy_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memcpy_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memcpy"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memcpy"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memcpy_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memcpy_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memcpy_STATIC_SUBDIRS)"
                          fi
                          if test "memcpy" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memcpy/libmca_memcpy.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memcpy_STATIC_LTLIBS)"

        memcpy_base_include=

        # first, compile all the components

    ompi_show_subsubtitle "Configuring MCA framework memcpy"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "memcpy" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/memcpy/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework memcpy" >&5
echo $ECHO_N "checking for no configure components in framework memcpy... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework memcpy" >&5
echo $ECHO_N "checking for m4 configure components in framework memcpy... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=0

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort



    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/opal/mca/memcpy/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component memcpy:$component (need to configure)"


    project=opal
    framework=memcpy
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_memcpy" ; then
            if test "$DIRECT_memcpy" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=opal
    framework=memcpy
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_memcpy" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/memcpy/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="opal/mca/memcpy/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=opal
    framework=memcpy
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_memcpy" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_memcpy" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component memcpy:$component can compile" >&5
echo $ECHO_N "checking if MCA component memcpy:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memcpy" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_memcpy" ; then
        if test "$DIRECT_memcpy" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_memcpy_ALL_COMPONENTS="$all_components"
    MCA_memcpy_STATIC_COMPONENTS="$static_components"
    MCA_memcpy_DSO_COMPONENTS="$dso_components"
    MCA_memcpy_STATIC_LTLIBS="$static_ltlibs"







    MCA_memcpy_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_memcpy_ALL_SUBDIRS="$MCA_memcpy_ALL_SUBDIRS mca/memcpy/$item"
    done



    MCA_memcpy_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_memcpy_STATIC_SUBDIRS="$MCA_memcpy_STATIC_SUBDIRS mca/memcpy/$item"
    done



    MCA_memcpy_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_memcpy_DSO_SUBDIRS="$MCA_memcpy_DSO_SUBDIRS mca/memcpy/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files opal/mca/memcpy/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "memcpy" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_memcpy_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real


        # someone should have set this...
        if test "$memcpy_base_include" = "" ; then
            memcpy_base_include="base/memcpy_base_default.h"
        fi

                  ac_config_links="$ac_config_links opal/mca/memcpy/base/base_impl.h:opal/mca/memcpy/$memcpy_base_include"

# common has to go up front
                          if test "memory" = "common" ; then
                              MCA_opal_FRAMEWORKS="memory $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/memory $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memory_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memory_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memory_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memory"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memory"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memory_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memory_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memory_STATIC_SUBDIRS)"
                          fi
                          if test "memory" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memory/libmca_memory.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memory_STATIC_LTLIBS)"

        memory_base_found=0

        # first, compile all the components

    ompi_show_subsubtitle "Configuring MCA framework memory"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "memory" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/memory/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework memory" >&5
echo $ECHO_N "checking for no configure components in framework memory... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework memory" >&5
echo $ECHO_N "checking for m4 configure components in framework memory... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: darwin, ptmalloc2, malloc_hooks" >&5
echo "${ECHO_T}darwin, ptmalloc2, malloc_hooks" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=0

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort



    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component memory:darwin (m4 configuration macro)"


    project=opal
    framework=memory
    component=darwin
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_memory" ; then
            if test "$DIRECT_memory" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    echo "$as_me:$LINENO: checking for MCA component memory:darwin compile mode" >&5
echo $ECHO_N "checking for MCA component memory:darwin compile mode... $ECHO_C" >&6
    compile_mode="static"
    echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then


# Check whether --with-memory-manager or --without-memory-manager was given.
if test "${with_memory_manager+set}" = set; then
  withval="$with_memory_manager"

fi;

    if test "$with_memory_manager" = "darwin"; then
  memory_darwin_happy="yes"
           memory_darwin_should_use=1
else
  memory_darwin_should_use=0
           if test "$with_memory_manager" = ""; then
  memory_darwin_happy="yes"
else
  memory_darwin_happy="no"
fi

fi


    if test "$memory_darwin_happy" = "yes"; then
  # check for malloc/malloc.h
           if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
  echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
echo $ECHO_N "checking malloc/malloc.h usability... $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 <malloc/malloc.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
echo $ECHO_N "checking malloc/malloc.h presence... $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.  */
#include <malloc/malloc.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc/malloc.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: malloc/malloc.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc/malloc.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: malloc/malloc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_malloc_malloc_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6

fi
if test $ac_cv_header_malloc_malloc_h = yes; then
  memory_darwin_happy="yes"
else
  memory_darwin_happy="no"
fi


fi


    if test "$memory_darwin_happy" = "yes"; then
  # check for hook to get correct callbacks
           echo "$as_me:$LINENO: checking for malloc_default_zone" >&5
echo $ECHO_N "checking for malloc_default_zone... $ECHO_C" >&6
if test "${ac_cv_func_malloc_default_zone+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.  */
/* Define malloc_default_zone to an innocuous variant, in case <limits.h> declares malloc_default_zone.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define malloc_default_zone innocuous_malloc_default_zone

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char malloc_default_zone (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef malloc_default_zone

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char malloc_default_zone ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_malloc_default_zone) || defined (__stub___malloc_default_zone)
choke me
#else
char (*f) () = malloc_default_zone;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != malloc_default_zone;
  ;
  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
  ac_cv_func_malloc_default_zone=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_malloc_default_zone=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_default_zone" >&5
echo "${ECHO_T}$ac_cv_func_malloc_default_zone" >&6
if test $ac_cv_func_malloc_default_zone = yes; then
  memory_darwin_happy="yes"
else
  memory_darwin_happy="no"
fi

fi


   # this should be true for any reasonably recent version of OS X,
   # but make sure.
    if test "$memory_darwin_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for dlsym" >&5
echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
if test "${ac_cv_func_dlsym+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.  */
/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dlsym innocuous_dlsym

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlsym (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dlsym

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlsym) || defined (__stub___dlsym)
choke me
#else
char (*f) () = dlsym;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != dlsym;
  ;
  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
  ac_cv_func_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_dlsym=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
echo "${ECHO_T}$ac_cv_func_dlsym" >&6
if test $ac_cv_func_dlsym = yes; then
  memory_darwin_happy="yes"
else
  memory_darwin_happy="no"
fi

fi


   if test "$memory_darwin_happy" = "no" -a \
               "$memory_malloc_hoooks_should_use" = "1"; then
  { { echo "$as_me:$LINENO: error: Darwin memory management requested but not available.  Aborting." >&5
echo "$as_me: error: Darwin memory management requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "$memory_darwin_happy" = "yes"; then
  # Yes, we really do want to screw with LDFLAGS here...
           LDFLAGS="$LDFLAGS -Wl,-u,_munmap -Wl,-multiply_defined,suppress"
           memory_darwin_WRAPPER_EXTRA_LDFLAGS="-Wl,-u,_munmap -Wl,-multiply_defined,suppress"
           memory_base_found=1
           should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=memory
    component=darwin

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_memory" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_memory" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component memory:darwin can compile" >&5
echo $ECHO_N "checking if MCA component memory:darwin can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memory" = "darwin" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_memory" ; then
        if test "$DIRECT_memory" = "darwin" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components darwin"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_memory_darwin_DSO=1
else
  BUILD_memory_darwin_DSO=0
fi



if test "$BUILD_memory_darwin_DSO" = "1"; then
  OMPI_BUILD_memory_darwin_DSO_TRUE=
  OMPI_BUILD_memory_darwin_DSO_FALSE='#'
else
  OMPI_BUILD_memory_darwin_DSO_TRUE='#'
  OMPI_BUILD_memory_darwin_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component memory:ptmalloc2 (m4 configuration macro)"


    project=opal
    framework=memory
    component=ptmalloc2
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_memory" ; then
            if test "$DIRECT_memory" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    echo "$as_me:$LINENO: checking for MCA component memory:ptmalloc2 compile mode" >&5
echo $ECHO_N "checking for MCA component memory:ptmalloc2 compile mode... $ECHO_C" >&6
    compile_mode="static"
    echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then


# Check whether --with-memory-manager or --without-memory-manager was given.
if test "${with_memory_manager+set}" = set; then
  withval="$with_memory_manager"

fi;

    # Check whether --enable-ptmalloc2-opt-sbrk or --disable-ptmalloc2-opt-sbrk was given.
if test "${enable_ptmalloc2_opt_sbrk+set}" = set; then
  enableval="$enable_ptmalloc2_opt_sbrk"

fi;

    if test "$enable_ptmalloc2_opt_sbrk" = "no" ; then
        memory_ptmalloc2_opt_sbrk=0
    else
        memory_ptmalloc2_opt_sbrk=1
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_MEMORY_PTMALLOC2_OPT_SBRK $memory_ptmalloc2_opt_sbrk
_ACEOF


    if test "$with_memory_manager" = "ptmalloc2"; then
  if test "`echo $host | grep apple-darwin`" != "" ; then
            { echo "$as_me:$LINENO: WARNING: *** Using ptmalloc with OS X will result in failure." >&5
echo "$as_me: WARNING: *** Using ptmalloc with OS X will result in failure." >&2;}
            { { echo "$as_me:$LINENO: error: *** Aborting to save you the effort" >&5
echo "$as_me: error: *** Aborting to save you the effort" >&2;}
   { (exit 1); exit 1; }; }
           fi
           memory_ptmalloc2_happy="yes"
           memory_ptmalloc2_should_use=1
else
  memory_ptmalloc2_should_use=0
           if test "$with_memory_manager" = ""; then
  memory_ptmalloc2_happy="yes"
else
  memory_ptmalloc2_happy="no"
fi

fi


    # Per ticket #227, Intel 9.0 v20051201 on ia64 with optimization
    # of -O2 or higher will bork ptmalloc2 in strange in mysterious
    # ways.  Doh!  So if the compiler vendor is intel and we're on an
    # ia64 box, run "icc --version" and snarf the version string.  If
    # it's 9.0 and the version is <= 20051201, then disable ptmalloc2.
    # Executive decision: ignore optimization levels (even though -O1
    # and -O0 seem to work).  The upgrade to 9.1 is free, so that's a
    # better path than trying to make a much more complicated test
    # here.

    case $host in
        ia64-*)
            if test "$ompi_c_vendor" = "intel"; then
  # check for v9.0 <= 20051201
                   icc_major_ver="`$CC --version | head -n 1 | awk '{ print $3 }'`"
                   icc_minor_ver="`$CC --version | head -n 1 | awk '{ print $4 }'`"
                   if test "$icc_major_ver" = "9.0" -a "`expr $icc_minor_ver \<= 20051201`" = "1"; then
  memory_ptmalloc2_happy="no"
                          { echo "$as_me:$LINENO: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&5
echo "$as_me: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&2;}
                          { echo "$as_me:$LINENO: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&5
echo "$as_me: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&2;}
                          { echo "$as_me:$LINENO: WARNING: *** Automatically disabling ptmalloc2" >&5
echo "$as_me: WARNING: *** Automatically disabling ptmalloc2" >&2;}
fi

                   unset icc_major_ver icc_minor_ver
fi

            ;;
    esac

    if test "$memory_ptmalloc2_happy" = "yes"; then
  # check for malloc.h
           if test "${ac_cv_header_malloc_h+set}" = set; then
  echo "$as_me:$LINENO: checking for malloc.h" >&5
echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
if test "${ac_cv_header_malloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking malloc.h usability" >&5
echo $ECHO_N "checking malloc.h usability... $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 <malloc.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking malloc.h presence" >&5
echo $ECHO_N "checking malloc.h presence... $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.  */
#include <malloc.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: malloc.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: malloc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for malloc.h" >&5
echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
if test "${ac_cv_header_malloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_malloc_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
echo "${ECHO_T}$ac_cv_header_malloc_h" >&6

fi
if test $ac_cv_header_malloc_h = yes; then
  memory_ptmalloc2_happy="yes"
else
  memory_ptmalloc2_happy="no"
fi


fi


    if test "$memory_ptmalloc2_happy" = "yes"; then
  # check for init hook symbol
           echo "$as_me:$LINENO: checking whether __malloc_initialize_hook is declared" >&5
echo $ECHO_N "checking whether __malloc_initialize_hook is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl___malloc_initialize_hook+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 <malloc.h>

int
main ()
{
#ifndef __malloc_initialize_hook
  char *p = (char *) __malloc_initialize_hook;
#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_cv_have_decl___malloc_initialize_hook=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl___malloc_initialize_hook=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl___malloc_initialize_hook" >&5
echo "${ECHO_T}$ac_cv_have_decl___malloc_initialize_hook" >&6
if test $ac_cv_have_decl___malloc_initialize_hook = yes; then
  memory_ptmalloc2_happy="yes"
else
  memory_ptmalloc2_happy="no"
fi

fi


    #
    # See if we have sbrk prototyped
    #
    echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_sbrk+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 ()
{
#ifndef sbrk
  char *p = (char *) sbrk;
#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_cv_have_decl_sbrk=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl_sbrk=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
if test $ac_cv_have_decl_sbrk = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SBRK 1
_ACEOF


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SBRK 0
_ACEOF


fi



    #
    # Figure out how we're going to call mmap/munmap for real
    #
    if test "$memory_ptmalloc2_happy" = "yes"; then
  memory_ptmalloc2_mmap=0
           memory_ptmalloc2_munmap=1

           # it's nearly impossible to call mmap from syscall(), so
           # only go this route if we can't get at munmap any other
           # way.
           if test "${ac_cv_header_syscall_h+set}" = set; then
  echo "$as_me:$LINENO: checking for syscall.h" >&5
echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6
if test "${ac_cv_header_syscall_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5
echo "${ECHO_T}$ac_cv_header_syscall_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking syscall.h usability" >&5
echo $ECHO_N "checking syscall.h usability... $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 <syscall.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking syscall.h presence" >&5
echo $ECHO_N "checking syscall.h presence... $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.  */
#include <syscall.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: syscall.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: syscall.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: syscall.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: syscall.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: syscall.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: syscall.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: syscall.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: syscall.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: syscall.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: syscall.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: syscall.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: syscall.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for syscall.h" >&5
echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6
if test "${ac_cv_header_syscall_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_syscall_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5
echo "${ECHO_T}$ac_cv_header_syscall_h" >&6

fi
if test $ac_cv_header_syscall_h = yes; then

for ac_func in syscall
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

else
  memory_ptmalloc2_munmap=0
fi
done

fi



           # Always look for __munmap and __mmap

for ac_func in __munmap
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 memory_ptmalloc2_mmap=1
fi
done


for ac_func in __mmap
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


           # only allow dlsym (and therefore add -ldl) if we
           # really need to
           if test "$memory_ptmalloc2_mmap" = "0"; then
  memory_ptmalloc2_LIBS_SAVE="$LIBS"
                  echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlsym+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
int
main ()
{
dlsym ();
  ;
  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
  ac_cv_lib_dl_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlsym=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
if test $ac_cv_lib_dl_dlsym = yes; then
  LIBS="$LIBS -ldl"
                                memory_ptmalloc2_LIBS="-ldl"
                                memory_ptmalloc2_mmap=1
fi


for ac_func in dlsym
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

                  LIBS="$memory_ptmalloc2_LIBS_SAVE"
fi


           if test "$memory_ptmalloc2_mmap" = "0" -a "$memory_ptmalloc2_munmap" = "0"; then
  memory_ptmalloc2_happy="no"
fi

fi


   if test "$memory_ptmalloc2_happy" = "yes"; then
  memory_ptmalloc2_WRAPPER_EXTRA_LIBS="$memory_ptmalloc2_LIBS"
fi


   if test "$memory_ptmalloc2_happy" = "no" -a \
               "$memory_malloc_hoooks_should_use" = "1"; then
  { { echo "$as_me:$LINENO: error: ptmalloc2 memory management requested but not available.  Aborting." >&5
echo "$as_me: error: ptmalloc2 memory management requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi




    if test "$memory_ptmalloc2_happy" = "yes"; then
  memory_base_found=1
           should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=memory
    component=ptmalloc2

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_memory" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_memory" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component memory:ptmalloc2 can compile" >&5
echo $ECHO_N "checking if MCA component memory:ptmalloc2 can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memory" = "ptmalloc2" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_memory" ; then
        if test "$DIRECT_memory" = "ptmalloc2" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components ptmalloc2"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_memory_ptmalloc2_DSO=1
else
  BUILD_memory_ptmalloc2_DSO=0
fi



if test "$BUILD_memory_ptmalloc2_DSO" = "1"; then
  OMPI_BUILD_memory_ptmalloc2_DSO_TRUE=
  OMPI_BUILD_memory_ptmalloc2_DSO_FALSE='#'
else
  OMPI_BUILD_memory_ptmalloc2_DSO_TRUE='#'
  OMPI_BUILD_memory_ptmalloc2_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component memory:malloc_hooks (m4 configuration macro)"


    project=opal
    framework=memory
    component=malloc_hooks
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_memory" ; then
            if test "$DIRECT_memory" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    echo "$as_me:$LINENO: checking for MCA component memory:malloc_hooks compile mode" >&5
echo $ECHO_N "checking for MCA component memory:malloc_hooks compile mode... $ECHO_C" >&6
    compile_mode="static"
    echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then


# Check whether --with-memory-manager or --without-memory-manager was given.
if test "${with_memory_manager+set}" = set; then
  withval="$with_memory_manager"

fi;

    if test "$with_memory_manager" = "malloc_hooks"; then
  memory_malloc_hooks_happy="yes"
           memory_malloc_hooks_should_use=1
else
  memory_malloc_hooks_should_use=0
           if test "$with_memory_manager" = ""; then
  memory_malloc_hooks_happy="yes"
else
  memory_malloc_hooks_happy="no"
fi

fi


    if test "$memory_malloc_hooks_happy" = "yes"; then
  if test "$enable_mpi_threads" = "yes" -o \
                       "$enable_progress_threads" = "yes"; then
  memory_malloc_hooks_happy="no"
fi

fi


    if test "$memory_malloc_hooks_happy" = "yes"; then
  # check for malloc.h
           if test "${ac_cv_header_malloc_h+set}" = set; then
  echo "$as_me:$LINENO: checking for malloc.h" >&5
echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
if test "${ac_cv_header_malloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking malloc.h usability" >&5
echo $ECHO_N "checking malloc.h usability... $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 <malloc.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking malloc.h presence" >&5
echo $ECHO_N "checking malloc.h presence... $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.  */
#include <malloc.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: malloc.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: malloc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for malloc.h" >&5
echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
if test "${ac_cv_header_malloc_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_malloc_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
echo "${ECHO_T}$ac_cv_header_malloc_h" >&6

fi
if test $ac_cv_header_malloc_h = yes; then
  memory_malloc_hooks_happy="yes"
else
  memory_malloc_hooks_happy="no"
fi


fi


    if test "$memory_malloc_hooks_happy" = "yes"; then
  # check for init hook symbol
           echo "$as_me:$LINENO: checking whether __malloc_initialize_hook is declared" >&5
echo $ECHO_N "checking whether __malloc_initialize_hook is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl___malloc_initialize_hook+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 <malloc.h>

int
main ()
{
#ifndef __malloc_initialize_hook
  char *p = (char *) __malloc_initialize_hook;
#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_cv_have_decl___malloc_initialize_hook=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_have_decl___malloc_initialize_hook=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_have_decl___malloc_initialize_hook" >&5
echo "${ECHO_T}$ac_cv_have_decl___malloc_initialize_hook" >&6
if test $ac_cv_have_decl___malloc_initialize_hook = yes; then
  memory_malloc_hooks_happy="yes"
else
  memory_malloc_hooks_happy="no"
fi

fi


    if test "$memory_malloc_hooks_happy" = "yes"; then
  # check for the chunk size function
           echo "$as_me:$LINENO: checking for malloc_usable_size" >&5
echo $ECHO_N "checking for malloc_usable_size... $ECHO_C" >&6
if test "${ac_cv_func_malloc_usable_size+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.  */
/* Define malloc_usable_size to an innocuous variant, in case <limits.h> declares malloc_usable_size.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define malloc_usable_size innocuous_malloc_usable_size

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char malloc_usable_size (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef malloc_usable_size

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char malloc_usable_size ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_malloc_usable_size) || defined (__stub___malloc_usable_size)
choke me
#else
char (*f) () = malloc_usable_size;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != malloc_usable_size;
  ;
  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
  ac_cv_func_malloc_usable_size=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_malloc_usable_size=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_usable_size" >&5
echo "${ECHO_T}$ac_cv_func_malloc_usable_size" >&6
if test $ac_cv_func_malloc_usable_size = yes; then
  memory_malloc_hooks_happy="yes"
else
  memory_malloc_hooks_happy="no"
fi

fi


    memory_malloc_hooks_LIBS_SAVE="$LIBS"
    if test "$memory_malloc_hooks_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlsym+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym ();
int
main ()
{
dlsym ();
  ;
  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
  ac_cv_lib_dl_dlsym=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlsym=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
if test $ac_cv_lib_dl_dlsym = yes; then
  memory_malloc_hooks_happy="yes"
else
  memory_malloc_hooks_happy="no"
fi

fi

   LIBS="$memory_malloc_hooks_LIBS_SAVE"

    if test "$memory_malloc_hooks_happy" = "yes"; then
  memory_malloc_hooks_WRAPPER_EXTRA_LIBS="-ldl"
           memory_malloc_hooks_LIBS="-ldl"
fi


   if test "$memory_malloc_hooks_happy" = "no" -a \
               "$memory_malloc_hoooks_should_use" = "1"; then
  { { echo "$as_me:$LINENO: error: malloc hooks memory management requested but not available.  Aborting." >&5
echo "$as_me: error: malloc hooks memory management requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi




    if test "$memory_malloc_hooks_happy" = "yes"; then
  memory_base_found=1
           should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=memory
    component=malloc_hooks

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_memory" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_memory" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component memory:malloc_hooks can compile" >&5
echo $ECHO_N "checking if MCA component memory:malloc_hooks can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memory" = "malloc_hooks" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"malloc_hooks\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"malloc_hooks\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_memory" ; then
        if test "$DIRECT_memory" = "malloc_hooks" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"malloc_hooks\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"malloc_hooks\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components malloc_hooks"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_memory_malloc_hooks_DSO=1
else
  BUILD_memory_malloc_hooks_DSO=0
fi



if test "$BUILD_memory_malloc_hooks_DSO" = "1"; then
  OMPI_BUILD_memory_malloc_hooks_DSO_TRUE=
  OMPI_BUILD_memory_malloc_hooks_DSO_FALSE='#'
else
  OMPI_BUILD_memory_malloc_hooks_DSO_TRUE='#'
  OMPI_BUILD_memory_malloc_hooks_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/opal/mca/memory/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component memory:$component (need to configure)"


    project=opal
    framework=memory
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_memory" ; then
            if test "$DIRECT_memory" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=opal
    framework=memory
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_memory" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/memory/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="opal/mca/memory/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=opal
    framework=memory
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_memory" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_memory" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component memory:$component can compile" >&5
echo $ECHO_N "checking if MCA component memory:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memory" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_memory" ; then
        if test "$DIRECT_memory" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_memory_ALL_COMPONENTS="$all_components"
    MCA_memory_STATIC_COMPONENTS="$static_components"
    MCA_memory_DSO_COMPONENTS="$dso_components"
    MCA_memory_STATIC_LTLIBS="$static_ltlibs"







    MCA_memory_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_memory_ALL_SUBDIRS="$MCA_memory_ALL_SUBDIRS mca/memory/$item"
    done



    MCA_memory_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_memory_STATIC_SUBDIRS="$MCA_memory_STATIC_SUBDIRS mca/memory/$item"
    done



    MCA_memory_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_memory_DSO_SUBDIRS="$MCA_memory_DSO_SUBDIRS mca/memory/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files opal/mca/memory/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "memory" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_memory_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real



cat >>confdefs.h <<_ACEOF
#define OMPI_MEMORY_HAVE_COMPONENT $memory_base_found
_ACEOF

# common has to go up front
                          if test "paffinity" = "common" ; then
                              MCA_opal_FRAMEWORKS="paffinity $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/paffinity $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_paffinity_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_paffinity_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_paffinity_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS paffinity"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/paffinity"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_paffinity_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_paffinity_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_paffinity_STATIC_SUBDIRS)"
                          fi
                          if test "paffinity" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/paffinity/libmca_paffinity.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_paffinity_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework paffinity"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "paffinity" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/paffinity/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework paffinity" >&5
echo $ECHO_N "checking for no configure components in framework paffinity... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework paffinity" >&5
echo $ECHO_N "checking for m4 configure components in framework paffinity... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: linux, solaris, windows" >&5
echo "${ECHO_T}linux, solaris, windows" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort



    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component paffinity:linux (m4 configuration macro)"


    project=opal
    framework=paffinity
    component=linux
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_paffinity" ; then
            if test "$DIRECT_paffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=paffinity
    component=linux

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_paffinity" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # check for sched_setaffinity(), which originated in Linux kernel
    # 2.5.8, but was back-ported in several distro's 2.4 kernels.
    echo "$as_me:$LINENO: checking for sched_setaffinity" >&5
echo $ECHO_N "checking for sched_setaffinity... $ECHO_C" >&6
if test "${ac_cv_func_sched_setaffinity+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.  */
/* Define sched_setaffinity to an innocuous variant, in case <limits.h> declares sched_setaffinity.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define sched_setaffinity innocuous_sched_setaffinity

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sched_setaffinity (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef sched_setaffinity

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sched_setaffinity ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sched_setaffinity) || defined (__stub___sched_setaffinity)
choke me
#else
char (*f) () = sched_setaffinity;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != sched_setaffinity;
  ;
  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
  ac_cv_func_sched_setaffinity=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_sched_setaffinity=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_sched_setaffinity" >&5
echo "${ECHO_T}$ac_cv_func_sched_setaffinity" >&6
if test $ac_cv_func_sched_setaffinity = yes; then
  should_build=1
else
  should_build=0
fi


    #####################################################################
    # See lengthy comment in paffinity_linux.h for an explanation of
    # these tests.
    #####################################################################



    echo "$as_me:$LINENO: checking for cpu_set_t" >&5
echo $ECHO_N "checking for cpu_set_t... $ECHO_C" >&6
if test "${ac_cv_type_cpu_set_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.  */
#include <sched.h>

int
main ()
{
if ((cpu_set_t *) 0)
  return 0;
if (sizeof (cpu_set_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_cpu_set_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_cpu_set_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_cpu_set_t" >&5
echo "${ECHO_T}$ac_cv_type_cpu_set_t" >&6
if test $ac_cv_type_cpu_set_t = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_CPU_SET_T 1
_ACEOF

cat >>confdefs.h <<\_ACEOF
#define HAVE_cpu_set_t 1
_ACEOF

                    opal_paffinity_linux_have_cpu_set_t=1
else
  opal_paffinity_linux_have_cpu_set_t=0
fi


    if test "$opal_paffinity_linux_have_cpu_set_t" = "1"; then

        # Check to see if CPU_ZERO is functional (see comment in
        # paffinity_linux.h)

        echo "$as_me:$LINENO: checking whether CPU_ZERO is broken" >&5
echo $ECHO_N "checking whether CPU_ZERO is broken... $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.  */
#include <sched.h>
int
main ()
{
cpu_set_t foo; CPU_ZERO(&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
  cat >>confdefs.h <<\_ACEOF
#define HAVE_CPU_ZERO 1
_ACEOF

                            echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext

        # Now check whether sched_setaffinity() takes 2 or 3
        # arguments (see comment in paffinity_linux.h)

        echo "$as_me:$LINENO: checking how many parameters sched_setaffinity() takes" >&5
echo $ECHO_N "checking how many parameters sched_setaffinity() takes... $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.  */
#include <sched.h>
int
main ()
{
cpu_set_t foo; sched_setaffinity(0, sizeof(foo), &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
  opal_paffinity_linux_ssnp=3
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

opal_paffinity_linux_ssnp=2
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext

cat >>confdefs.h <<_ACEOF
#define OPAL_PAFFINITY_LINUX_SCHED_SETAFF_NUM_PARAMS $opal_paffinity_linux_ssnp
_ACEOF

        echo "$as_me:$LINENO: result: $opal_paffinity_linux_ssnp" >&5
echo "${ECHO_T}$opal_paffinity_linux_ssnp" >&6
    fi

    # Clean up (not entirely necessary; just being social)

    unset opal_paffinity_linux_have_cpu_set_t
    unset opal_paffinity_linux_ssnp

fi


    if test "$should_build" = "1"; then

    project=opal
    framework=paffinity
    component=linux

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_paffinity" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_paffinity" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component paffinity:linux can compile" >&5
echo $ECHO_N "checking if MCA component paffinity:linux can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "linux" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_paffinity" ; then
        if test "$DIRECT_paffinity" = "linux" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components linux"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_paffinity_linux_DSO=1
else
  BUILD_paffinity_linux_DSO=0
fi



if test "$BUILD_paffinity_linux_DSO" = "1"; then
  OMPI_BUILD_paffinity_linux_DSO_TRUE=
  OMPI_BUILD_paffinity_linux_DSO_FALSE='#'
else
  OMPI_BUILD_paffinity_linux_DSO_TRUE='#'
  OMPI_BUILD_paffinity_linux_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component paffinity:solaris (m4 configuration macro)"


    project=opal
    framework=paffinity
    component=solaris
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_paffinity" ; then
            if test "$DIRECT_paffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=paffinity
    component=solaris

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_paffinity" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # check for processor_bind()
    echo "$as_me:$LINENO: checking for processor_bind" >&5
echo $ECHO_N "checking for processor_bind... $ECHO_C" >&6
if test "${ac_cv_func_processor_bind+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.  */
/* Define processor_bind to an innocuous variant, in case <limits.h> declares processor_bind.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define processor_bind innocuous_processor_bind

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char processor_bind (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef processor_bind

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char processor_bind ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_processor_bind) || defined (__stub___processor_bind)
choke me
#else
char (*f) () = processor_bind;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != processor_bind;
  ;
  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
  ac_cv_func_processor_bind=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_processor_bind=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_processor_bind" >&5
echo "${ECHO_T}$ac_cv_func_processor_bind" >&6
if test $ac_cv_func_processor_bind = yes; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=paffinity
    component=solaris

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_paffinity" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_paffinity" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component paffinity:solaris can compile" >&5
echo $ECHO_N "checking if MCA component paffinity:solaris can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "solaris" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_paffinity" ; then
        if test "$DIRECT_paffinity" = "solaris" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components solaris"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_paffinity_solaris_DSO=1
else
  BUILD_paffinity_solaris_DSO=0
fi



if test "$BUILD_paffinity_solaris_DSO" = "1"; then
  OMPI_BUILD_paffinity_solaris_DSO_TRUE=
  OMPI_BUILD_paffinity_solaris_DSO_FALSE='#'
else
  OMPI_BUILD_paffinity_solaris_DSO_TRUE='#'
  OMPI_BUILD_paffinity_solaris_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component paffinity:windows (m4 configuration macro)"


    project=opal
    framework=paffinity
    component=windows
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_paffinity" ; then
            if test "$DIRECT_paffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=opal
    framework=paffinity
    component=windows

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_paffinity" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # check for GetProcessAffinityMask, which is defined only for some
    # flavors of Windows. We should first check that the function is defined,
    # and then check for it's presence in the kernel32 library.
    echo "$as_me:$LINENO: checking for working GetProcessAffinityMask" >&5
echo $ECHO_N "checking for working GetProcessAffinityMask... $ECHO_C" >&6
    if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
#include <windows.h>
int main( int argc, char** argv ) {
    DWORD aff, mask;
    GetProcessAffinityMask( NULL, &aff, &mask );
    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
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
         should_build=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
         should_build=0
fi
rm -f conftest.err conftest.$ac_objext 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 <windows.h>
int main( int argc, char** argv ) {
    DWORD aff, mask;
    GetProcessAffinityMask( NULL, &aff, &mask );
    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
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
         should_build=1
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: result: no" >&5
echo "${ECHO_T}no" >&6
         should_build=0
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi

fi


    if test "$should_build" = "1"; then

    project=opal
    framework=paffinity
    component=windows

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_paffinity" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_paffinity" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component paffinity:windows can compile" >&5
echo $ECHO_N "checking if MCA component paffinity:windows can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "windows" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_paffinity" ; then
        if test "$DIRECT_paffinity" = "windows" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components windows"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_paffinity_windows_DSO=1
else
  BUILD_paffinity_windows_DSO=0
fi



if test "$BUILD_paffinity_windows_DSO" = "1"; then
  OMPI_BUILD_paffinity_windows_DSO_TRUE=
  OMPI_BUILD_paffinity_windows_DSO_FALSE='#'
else
  OMPI_BUILD_paffinity_windows_DSO_TRUE='#'
  OMPI_BUILD_paffinity_windows_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/opal/mca/paffinity/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component paffinity:$component (need to configure)"


    project=opal
    framework=paffinity
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_paffinity" ; then
            if test "$DIRECT_paffinity" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=opal
    framework=paffinity
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_paffinity" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/paffinity/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="opal/mca/paffinity/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=opal
    framework=paffinity
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_paffinity" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_paffinity" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component paffinity:$component can compile" >&5
echo $ECHO_N "checking if MCA component paffinity:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_paffinity" ; then
        if test "$DIRECT_paffinity" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_paffinity_ALL_COMPONENTS="$all_components"
    MCA_paffinity_STATIC_COMPONENTS="$static_components"
    MCA_paffinity_DSO_COMPONENTS="$dso_components"
    MCA_paffinity_STATIC_LTLIBS="$static_ltlibs"







    MCA_paffinity_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_paffinity_ALL_SUBDIRS="$MCA_paffinity_ALL_SUBDIRS mca/paffinity/$item"
    done



    MCA_paffinity_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_paffinity_STATIC_SUBDIRS="$MCA_paffinity_STATIC_SUBDIRS mca/paffinity/$item"
    done



    MCA_paffinity_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_paffinity_DSO_SUBDIRS="$MCA_paffinity_DSO_SUBDIRS mca/paffinity/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files opal/mca/paffinity/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "paffinity" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_paffinity_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "timer" = "common" ; then
                              MCA_opal_FRAMEWORKS="timer $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/timer $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_timer_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_timer_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_timer_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS timer"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/timer"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_timer_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_timer_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_timer_STATIC_SUBDIRS)"
                          fi
                          if test "timer" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/timer/libmca_timer.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_timer_STATIC_LTLIBS)"

        timer_base_include=

        # first, compile all the components

    ompi_show_subsubtitle "Configuring MCA framework timer"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "timer" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/timer/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework timer" >&5
echo $ECHO_N "checking for no configure components in framework timer... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework timer" >&5
echo $ECHO_N "checking for m4 configure components in framework timer... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: aix, altix, darwin, solaris, windows, linux" >&5
echo "${ECHO_T}aix, altix, darwin, solaris, windows, linux" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=0

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort



    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component timer:aix (m4 configuration macro)"


    project=opal
    framework=timer
    component=aix
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    echo "$as_me:$LINENO: checking for MCA component timer:aix compile mode" >&5
echo $ECHO_N "checking for MCA component timer:aix compile mode... $ECHO_C" >&6
    compile_mode="static"
    echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then


# Check whether --with-timer or --without-timer was given.
if test "${with_timer+set}" = set; then
  withval="$with_timer"

fi;

    if test "$with_timer" = "aix"; then
  timer_aix_happy="yes"
           timer_aix_should_use=1
else
  timer_aix_should_use=0
           if test "$with_timer" = ""; then
  timer_aix_happy="yes"
else
  timer_aix_happy="no"
fi

fi


    if test "$timer_aix_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for time_base_to_time" >&5
echo $ECHO_N "checking for time_base_to_time... $ECHO_C" >&6
if test "${ac_cv_func_time_base_to_time+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.  */
/* Define time_base_to_time to an innocuous variant, in case <limits.h> declares time_base_to_time.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define time_base_to_time innocuous_time_base_to_time

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char time_base_to_time (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef time_base_to_time

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char time_base_to_time ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_time_base_to_time) || defined (__stub___time_base_to_time)
choke me
#else
char (*f) () = time_base_to_time;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != time_base_to_time;
  ;
  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
  ac_cv_func_time_base_to_time=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_time_base_to_time=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_time_base_to_time" >&5
echo "${ECHO_T}$ac_cv_func_time_base_to_time" >&6
if test $ac_cv_func_time_base_to_time = yes; then
  timer_aix_happy="yes"
else
  timer_aix_happy="no"
fi

fi


    # look to see if -lpmapi is available
    timer_aix_LIBS=
    timer_aix_LIBS_SAVE="$LIBS"
    if test "$timer_aix_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for pm_cycles in -lpmapi" >&5
echo $ECHO_N "checking for pm_cycles in -lpmapi... $ECHO_C" >&6
if test "${ac_cv_lib_pmapi_pm_cycles+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpmapi  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pm_cycles ();
int
main ()
{
pm_cycles ();
  ;
  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
  ac_cv_lib_pmapi_pm_cycles=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pmapi_pm_cycles=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pmapi_pm_cycles" >&5
echo "${ECHO_T}$ac_cv_lib_pmapi_pm_cycles" >&6
if test $ac_cv_lib_pmapi_pm_cycles = yes; then
  LIBS="$LIBS -lpmapi"
                         timer_aix_LIBS="-lpmapi"
else
  timer_aix_LIBS=""
fi

fi


    # get us a HAVE_PM_CYCLES #define
    if test "$timer_aix_happy" = "yes"; then

for ac_func in pm_cycles
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


for ac_header in pmapi.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
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

fi

   LIBS="$timer_aix_LIBS_SAVE"

    if test "$timer_aix_happy" = "no" -a \
                "$timer_aix_should_use" = "1"; then
  { { echo "$as_me:$LINENO: error: AIX timer requested but not available.  Aborting." >&5
echo "$as_me: error: AIX timer requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi




    if test "$timer_aix_happy" = "yes"; then
  timer_aix_WRAPPER_EXTRA_LIBS="$timer_aix_LIBS"
           timer_base_include="aix/timer_aix.h"
           should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=timer
    component=aix

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component timer:aix can compile" >&5
echo $ECHO_N "checking if MCA component timer:aix can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "aix" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"aix\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "aix" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"aix\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components aix"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_timer_aix_DSO=1
else
  BUILD_timer_aix_DSO=0
fi



if test "$BUILD_timer_aix_DSO" = "1"; then
  OMPI_BUILD_timer_aix_DSO_TRUE=
  OMPI_BUILD_timer_aix_DSO_FALSE='#'
else
  OMPI_BUILD_timer_aix_DSO_TRUE='#'
  OMPI_BUILD_timer_aix_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component timer:altix (m4 configuration macro)"


    project=opal
    framework=timer
    component=altix
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    echo "$as_me:$LINENO: checking for MCA component timer:altix compile mode" >&5
echo $ECHO_N "checking for MCA component timer:altix compile mode... $ECHO_C" >&6
    compile_mode="static"
    echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then


# Check whether --with-timer or --without-timer was given.
if test "${with_timer+set}" = set; then
  withval="$with_timer"

fi;

    if test "$with_timer" = "altix"; then
  timer_altix_happy="yes"
           timer_altix_should_use=1
else
  timer_altix_should_use=0
           if test "$with_timer" = ""; then
  timer_altix_happy="yes"
else
  timer_altix_happy="no"
fi

fi


    if test "$timer_altix_happy" = "yes"; then
  if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then
  echo "$as_me:$LINENO: checking for sn/mmtimer.h" >&5
echo $ECHO_N "checking for sn/mmtimer.h... $ECHO_C" >&6
if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_sn_mmtimer_h" >&5
echo "${ECHO_T}$ac_cv_header_sn_mmtimer_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking sn/mmtimer.h usability" >&5
echo $ECHO_N "checking sn/mmtimer.h usability... $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 <sn/mmtimer.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking sn/mmtimer.h presence" >&5
echo $ECHO_N "checking sn/mmtimer.h presence... $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.  */
#include <sn/mmtimer.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: sn/mmtimer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: sn/mmtimer.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: sn/mmtimer.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: sn/mmtimer.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: sn/mmtimer.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: sn/mmtimer.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: sn/mmtimer.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: sn/mmtimer.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for sn/mmtimer.h" >&5
echo $ECHO_N "checking for sn/mmtimer.h... $ECHO_C" >&6
if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_sn_mmtimer_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_sn_mmtimer_h" >&5
echo "${ECHO_T}$ac_cv_header_sn_mmtimer_h" >&6

fi
if test $ac_cv_header_sn_mmtimer_h = yes; then
  timer_altix_happy="yes"
else
  timer_altix_happy="no"
fi


fi


    if test "$timer_altix_happy" = "yes"; then


for ac_header in sys/ioctl.h sys/mman.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
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

fi


    if test "$timer_altix_happy" = "yes"; then
  echo "$as_me:$LINENO: checking if MM timer can be opened" >&5
echo $ECHO_N "checking if MM timer can be opened... $ECHO_C" >&6
if test "${ompi_cv_mm_timer_mmap+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 <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sn/mmtimer.h>

int
main ()
{

    int fd;
    fd = open(MMTIMER_FULLNAME, O_RDONLY);
    if (-1 ==fd) return 1;
  ;
  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_mm_timer_mmap="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_mm_timer_mmap="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_mm_timer_mmap" >&5
echo "${ECHO_T}$ompi_cv_mm_timer_mmap" >&6
           if test "$ompi_cv_mm_timer_mmap" = "yes"; then
  timer_altix_happy="yes"
else
  timer_altix_happy="no"
fi

fi


    if test "$timer_altix_happy" = "no" -a \
                "$timer_altix_should_use" = "1"; then
  { { echo "$as_me:$LINENO: error: Altix timer requested but not available.  Aborting." >&5
echo "$as_me: error: Altix timer requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "$timer_altix_happy" = "yes"; then
  timer_base_include="altix/timer_altix.h"
           should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=timer
    component=altix

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component timer:altix can compile" >&5
echo $ECHO_N "checking if MCA component timer:altix can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "altix" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"altix\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "altix" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"altix\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components altix"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_timer_altix_DSO=1
else
  BUILD_timer_altix_DSO=0
fi



if test "$BUILD_timer_altix_DSO" = "1"; then
  OMPI_BUILD_timer_altix_DSO_TRUE=
  OMPI_BUILD_timer_altix_DSO_FALSE='#'
else
  OMPI_BUILD_timer_altix_DSO_TRUE='#'
  OMPI_BUILD_timer_altix_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component timer:darwin (m4 configuration macro)"


    project=opal
    framework=timer
    component=darwin
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    echo "$as_me:$LINENO: checking for MCA component timer:darwin compile mode" >&5
echo $ECHO_N "checking for MCA component timer:darwin compile mode... $ECHO_C" >&6
    compile_mode="static"
    echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then


# Check whether --with-timer or --without-timer was given.
if test "${with_timer+set}" = set; then
  withval="$with_timer"

fi;

    if test "$with_timer" = "darwin"; then
  timer_darwin_happy="yes"
           timer_darwin_should_use=1
else
  timer_darwin_should_use=0
           if test "$with_timer" = ""; then
  timer_darwin_happy="yes"
else
  timer_darwin_happy="no"
fi

fi


    if test "$timer_darwin_happy" = "yes"; then

for ac_header in mach/mach_time.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
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 mach_absolute_time" >&5
echo $ECHO_N "checking for mach_absolute_time... $ECHO_C" >&6
if test "${ac_cv_func_mach_absolute_time+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.  */
/* Define mach_absolute_time to an innocuous variant, in case <limits.h> declares mach_absolute_time.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define mach_absolute_time innocuous_mach_absolute_time

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mach_absolute_time (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef mach_absolute_time

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mach_absolute_time ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mach_absolute_time) || defined (__stub___mach_absolute_time)
choke me
#else
char (*f) () = mach_absolute_time;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != mach_absolute_time;
  ;
  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
  ac_cv_func_mach_absolute_time=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_mach_absolute_time=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_mach_absolute_time" >&5
echo "${ECHO_T}$ac_cv_func_mach_absolute_time" >&6
if test $ac_cv_func_mach_absolute_time = yes; then
  timer_darwin_happy="yes"
else
  timer_darwin_happy="no"
fi

fi


   if test "$timer_darwin_happy" = "no" -a \
               "$timer_darwin_should_use" = "1"; then
  { { echo "$as_me:$LINENO: error: Darwin timer requested but not available.  Aborting." >&5
echo "$as_me: error: Darwin timer requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "$timer_darwin_happy" = "yes"; then
  timer_base_include="darwin/timer_darwin.h"
           should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=timer
    component=darwin

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component timer:darwin can compile" >&5
echo $ECHO_N "checking if MCA component timer:darwin can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "darwin" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "darwin" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components darwin"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_timer_darwin_DSO=1
else
  BUILD_timer_darwin_DSO=0
fi



if test "$BUILD_timer_darwin_DSO" = "1"; then
  OMPI_BUILD_timer_darwin_DSO_TRUE=
  OMPI_BUILD_timer_darwin_DSO_FALSE='#'
else
  OMPI_BUILD_timer_darwin_DSO_TRUE='#'
  OMPI_BUILD_timer_darwin_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component timer:solaris (m4 configuration macro)"


    project=opal
    framework=timer
    component=solaris
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    echo "$as_me:$LINENO: checking for MCA component timer:solaris compile mode" >&5
echo $ECHO_N "checking for MCA component timer:solaris compile mode... $ECHO_C" >&6
    compile_mode="static"
    echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then


# Check whether --with-timer or --without-timer was given.
if test "${with_timer+set}" = set; then
  withval="$with_timer"

fi;

    if test "$with_timer" = "solaris"; then
  timer_solaris_happy="yes"
           timer_solaris_should_use=1
else
  timer_solaris_should_use=0
           if test "$with_timer" = ""; then
  timer_solaris_happy="yes"
else
  timer_solaris_happy="no"
fi

fi


    if test "$timer_solaris_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for gethrtime" >&5
echo $ECHO_N "checking for gethrtime... $ECHO_C" >&6
if test "${ac_cv_func_gethrtime+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.  */
/* Define gethrtime to an innocuous variant, in case <limits.h> declares gethrtime.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gethrtime innocuous_gethrtime

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethrtime (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gethrtime

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gethrtime ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethrtime) || defined (__stub___gethrtime)
choke me
#else
char (*f) () = gethrtime;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != gethrtime;
  ;
  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
  ac_cv_func_gethrtime=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_gethrtime=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_gethrtime" >&5
echo "${ECHO_T}$ac_cv_func_gethrtime" >&6
if test $ac_cv_func_gethrtime = yes; then
  timer_solaris_happy="yes"
else
  timer_solaris_happy="no"
fi

fi


   if test "$timer_solaris_happy" = "no" -a \
               "$timer_solaris_should_use" = "1"; then
  { { echo "$as_me:$LINENO: error: Solaris timer requested but not available.  Aborting." >&5
echo "$as_me: error: Solaris timer requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "$timer_solaris_happy" = "yes"; then
  timer_base_include="solaris/timer_solaris.h"
           should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=timer
    component=solaris

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component timer:solaris can compile" >&5
echo $ECHO_N "checking if MCA component timer:solaris can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "solaris" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "solaris" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components solaris"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_timer_solaris_DSO=1
else
  BUILD_timer_solaris_DSO=0
fi



if test "$BUILD_timer_solaris_DSO" = "1"; then
  OMPI_BUILD_timer_solaris_DSO_TRUE=
  OMPI_BUILD_timer_solaris_DSO_FALSE='#'
else
  OMPI_BUILD_timer_solaris_DSO_TRUE='#'
  OMPI_BUILD_timer_solaris_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component timer:windows (m4 configuration macro)"


    project=opal
    framework=timer
    component=windows
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    echo "$as_me:$LINENO: checking for MCA component timer:windows compile mode" >&5
echo $ECHO_N "checking for MCA component timer:windows compile mode... $ECHO_C" >&6
    compile_mode="static"
    echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then


# Check whether --with-timer or --without-timer was given.
if test "${with_timer+set}" = set; then
  withval="$with_timer"

fi;

    if test "$with_timer" = "windows"; then
  timer_windows_happy="yes"
           timer_windows_should_use=1
else
  timer_windows_should_use=0
           if test "$with_timer" = ""; then
  timer_windows_happy="yes"
else
  timer_windows_happy="no"
fi

fi


    if test "$timer_windows_happy" = "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 <windows.h>
int
main ()
{
LARGE_INTEGER now;
                           QueryPerformanceCounter( &now );
  ;
  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
  timer_windows_happy="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

timer_windows_happy="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi


   if test "$timer_windows_happy" = "no" -a \
               "$timer_windows_should_use" = "1"; then
  { { echo "$as_me:$LINENO: error: Windows timer requested but not available.  Aborting." >&5
echo "$as_me: error: Windows timer requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "$timer_windows_happy" = "yes"; then
  timer_base_include="windows/timer_windows.h"
           should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=timer
    component=windows

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component timer:windows can compile" >&5
echo $ECHO_N "checking if MCA component timer:windows can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "windows" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "windows" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components windows"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_timer_windows_DSO=1
else
  BUILD_timer_windows_DSO=0
fi



if test "$BUILD_timer_windows_DSO" = "1"; then
  OMPI_BUILD_timer_windows_DSO_TRUE=
  OMPI_BUILD_timer_windows_DSO_FALSE='#'
else
  OMPI_BUILD_timer_windows_DSO_TRUE='#'
  OMPI_BUILD_timer_windows_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component timer:linux (m4 configuration macro)"


    project=opal
    framework=timer
    component=linux
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    echo "$as_me:$LINENO: checking for MCA component timer:linux compile mode" >&5
echo $ECHO_N "checking for MCA component timer:linux compile mode... $ECHO_C" >&6
    compile_mode="static"
    echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then


# Check whether --with-timer or --without-timer was given.
if test "${with_timer+set}" = set; then
  withval="$with_timer"

fi;

    if test "$with_timer" = "linux"; then
  timer_linux_happy="yes"
           timer_linux_should_use=1
else
  timer_linux_should_use=0
           if test "$with_timer" = ""; then
  timer_linux_happy="yes"
else
  timer_linux_happy="no"
fi

fi


    if test "$timer_linux_happy" = "yes"; then
  if test -r "/proc/cpuinfo"; then
  timer_linux_happy="yes"
else
  timer_linux_happy="no"
fi

fi


   if test "$timer_linux_happy" = "no" -a \
               "$timer_linux_should_use" = "1"; then
  { { echo "$as_me:$LINENO: error: Linux timer requested but not available.  Aborting." >&5
echo "$as_me: error: Linux timer requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "$timer_linux_happy" = "yes"; then
  timer_base_include="linux/timer_linux.h"
           should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=timer
    component=linux

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component timer:linux can compile" >&5
echo $ECHO_N "checking if MCA component timer:linux can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "linux" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "linux" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components linux"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_timer_linux_DSO=1
else
  BUILD_timer_linux_DSO=0
fi



if test "$BUILD_timer_linux_DSO" = "1"; then
  OMPI_BUILD_timer_linux_DSO_TRUE=
  OMPI_BUILD_timer_linux_DSO_FALSE='#'
else
  OMPI_BUILD_timer_linux_DSO_TRUE='#'
  OMPI_BUILD_timer_linux_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/opal/mca/timer/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component timer:$component (need to configure)"


    project=opal
    framework=timer
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_timer" ; then
            if test "$DIRECT_timer" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=opal
    framework=timer
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_timer" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/timer/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="opal/mca/timer/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=opal
    framework=timer
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_timer" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_timer" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component timer:$component can compile" >&5
echo $ECHO_N "checking if MCA component timer:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_timer_ALL_COMPONENTS="$all_components"
    MCA_timer_STATIC_COMPONENTS="$static_components"
    MCA_timer_DSO_COMPONENTS="$dso_components"
    MCA_timer_STATIC_LTLIBS="$static_ltlibs"







    MCA_timer_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_timer_ALL_SUBDIRS="$MCA_timer_ALL_SUBDIRS mca/timer/$item"
    done



    MCA_timer_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_timer_STATIC_SUBDIRS="$MCA_timer_STATIC_SUBDIRS mca/timer/$item"
    done



    MCA_timer_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_timer_DSO_SUBDIRS="$MCA_timer_DSO_SUBDIRS mca/timer/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files opal/mca/timer/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "timer" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_timer_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real


        # someone should have set this...
        if test "$timer_base_include" = "" ; then
            timer_base_include="base/timer_base_null.h"
        fi

                  ac_config_links="$ac_config_links opal/mca/timer/base/base_impl.h:opal/mca/timer/$timer_base_include"









MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS orte"

    # can't use a variable rename here because these need to be evaled
    # at auto* time.

    ompi_show_subtitle "Configuring MCA for orte"

    echo "$as_me:$LINENO: checking for frameworks for orte" >&5
echo $ECHO_N "checking for frameworks for orte... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: errmgr, gpr, iof, ns, oob, pls, ras, rds, rmaps, rmgr, rml, schema, sds, soh" >&5
echo "${ECHO_T}errmgr, gpr, iof, ns, oob, pls, ras, rds, rmaps, rmgr, rml, schema, sds, soh" >&6

    # iterate through the list of frameworks.  There is something
    # funky with m4 foreach if the list is defined, but empty.  It
    # will call the 3rd argument once with an empty value for the
    # first argument.  Protect against calling MCA_CONFIGURE_FRAMEWORK
    # with an empty second argument.  Grrr....
    # if there isn't a project list, abort
    #
    # Also setup two variables for Makefiles:
    #  MCA_project_FRAMEWORKS     - list of frameworks in that project
    #  MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
    #                               to more libraries) that must be included
    #                               in the project's main library


    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=

    # common has to go up front
                          if test "errmgr" = "common" ; then
                              MCA_orte_FRAMEWORKS="errmgr $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/errmgr $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_errmgr_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_errmgr_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_errmgr_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS errmgr"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/errmgr"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_errmgr_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_errmgr_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_errmgr_STATIC_SUBDIRS)"
                          fi
                          if test "errmgr" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/errmgr/libmca_errmgr.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_errmgr_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework errmgr"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "errmgr" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/errmgr/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework errmgr" >&5
echo $ECHO_N "checking for no configure components in framework errmgr... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework errmgr" >&5
echo $ECHO_N "checking for m4 configure components in framework errmgr... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort



    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/errmgr/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component errmgr:$component (need to configure)"


    project=orte
    framework=errmgr
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_errmgr" ; then
            if test "$DIRECT_errmgr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=errmgr
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_errmgr" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/errmgr/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/errmgr/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=errmgr
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_errmgr" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_errmgr" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component errmgr:$component can compile" >&5
echo $ECHO_N "checking if MCA component errmgr:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_errmgr" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_errmgr" ; then
        if test "$DIRECT_errmgr" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_errmgr_ALL_COMPONENTS="$all_components"
    MCA_errmgr_STATIC_COMPONENTS="$static_components"
    MCA_errmgr_DSO_COMPONENTS="$dso_components"
    MCA_errmgr_STATIC_LTLIBS="$static_ltlibs"







    MCA_errmgr_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_errmgr_ALL_SUBDIRS="$MCA_errmgr_ALL_SUBDIRS mca/errmgr/$item"
    done



    MCA_errmgr_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_errmgr_STATIC_SUBDIRS="$MCA_errmgr_STATIC_SUBDIRS mca/errmgr/$item"
    done



    MCA_errmgr_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_errmgr_DSO_SUBDIRS="$MCA_errmgr_DSO_SUBDIRS mca/errmgr/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/errmgr/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "errmgr" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_errmgr_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "gpr" = "common" ; then
                              MCA_orte_FRAMEWORKS="gpr $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/gpr $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_gpr_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_gpr_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_gpr_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS gpr"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/gpr"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_gpr_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_gpr_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_gpr_STATIC_SUBDIRS)"
                          fi
                          if test "gpr" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/gpr/libmca_gpr.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_gpr_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework gpr"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "gpr" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/gpr/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework gpr" >&5
echo $ECHO_N "checking for no configure components in framework gpr... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: null, proxy, replica" >&5
echo "${ECHO_T}null, proxy, replica" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework gpr" >&5
echo $ECHO_N "checking for m4 configure components in framework gpr... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component gpr:null (no configuration)"


    project=orte
    framework=gpr
    component=null
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_gpr" ; then
            if test "$DIRECT_gpr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=gpr
    component=null

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_gpr" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=gpr
    component=null

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_gpr" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_gpr" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component gpr:null can compile" >&5
echo $ECHO_N "checking if MCA component gpr:null can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_gpr" = "null" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"null\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"null\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_gpr" ; then
        if test "$DIRECT_gpr" = "null" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"null\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"null\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components null"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_gpr_null_DSO=1
    else
        BUILD_gpr_null_DSO=0
    fi


if test "$BUILD_gpr_null_DSO" = "1"; then
  OMPI_BUILD_gpr_null_DSO_TRUE=
  OMPI_BUILD_gpr_null_DSO_FALSE='#'
else
  OMPI_BUILD_gpr_null_DSO_TRUE='#'
  OMPI_BUILD_gpr_null_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component gpr:proxy (no configuration)"


    project=orte
    framework=gpr
    component=proxy
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_gpr" ; then
            if test "$DIRECT_gpr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=gpr
    component=proxy

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_gpr" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=gpr
    component=proxy

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_gpr" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_gpr" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component gpr:proxy can compile" >&5
echo $ECHO_N "checking if MCA component gpr:proxy can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_gpr" = "proxy" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_gpr" ; then
        if test "$DIRECT_gpr" = "proxy" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components proxy"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_gpr_proxy_DSO=1
    else
        BUILD_gpr_proxy_DSO=0
    fi


if test "$BUILD_gpr_proxy_DSO" = "1"; then
  OMPI_BUILD_gpr_proxy_DSO_TRUE=
  OMPI_BUILD_gpr_proxy_DSO_FALSE='#'
else
  OMPI_BUILD_gpr_proxy_DSO_TRUE='#'
  OMPI_BUILD_gpr_proxy_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component gpr:replica (no configuration)"


    project=orte
    framework=gpr
    component=replica
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_gpr" ; then
            if test "$DIRECT_gpr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=gpr
    component=replica

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_gpr" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=gpr
    component=replica

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_gpr" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_gpr" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component gpr:replica can compile" >&5
echo $ECHO_N "checking if MCA component gpr:replica can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_gpr" = "replica" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"replica\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"replica\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_gpr" ; then
        if test "$DIRECT_gpr" = "replica" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"replica\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"replica\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components replica"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_gpr_replica_DSO=1
    else
        BUILD_gpr_replica_DSO=0
    fi


if test "$BUILD_gpr_replica_DSO" = "1"; then
  OMPI_BUILD_gpr_replica_DSO_TRUE=
  OMPI_BUILD_gpr_replica_DSO_FALSE='#'
else
  OMPI_BUILD_gpr_replica_DSO_TRUE='#'
  OMPI_BUILD_gpr_replica_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/gpr/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component gpr:$component (need to configure)"


    project=orte
    framework=gpr
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_gpr" ; then
            if test "$DIRECT_gpr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=gpr
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_gpr" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/gpr/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/gpr/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=gpr
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_gpr" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_gpr" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component gpr:$component can compile" >&5
echo $ECHO_N "checking if MCA component gpr:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_gpr" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_gpr" ; then
        if test "$DIRECT_gpr" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_gpr_ALL_COMPONENTS="$all_components"
    MCA_gpr_STATIC_COMPONENTS="$static_components"
    MCA_gpr_DSO_COMPONENTS="$dso_components"
    MCA_gpr_STATIC_LTLIBS="$static_ltlibs"







    MCA_gpr_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_gpr_ALL_SUBDIRS="$MCA_gpr_ALL_SUBDIRS mca/gpr/$item"
    done



    MCA_gpr_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_gpr_STATIC_SUBDIRS="$MCA_gpr_STATIC_SUBDIRS mca/gpr/$item"
    done



    MCA_gpr_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_gpr_DSO_SUBDIRS="$MCA_gpr_DSO_SUBDIRS mca/gpr/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/gpr/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "gpr" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_gpr_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "iof" = "common" ; then
                              MCA_orte_FRAMEWORKS="iof $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/iof $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_iof_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_iof_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_iof_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS iof"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/iof"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_iof_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_iof_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_iof_STATIC_SUBDIRS)"
                          fi
                          if test "iof" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/iof/libmca_iof.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_iof_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework iof"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "iof" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/iof/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework iof" >&5
echo $ECHO_N "checking for no configure components in framework iof... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: proxy, svc" >&5
echo "${ECHO_T}proxy, svc" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework iof" >&5
echo $ECHO_N "checking for m4 configure components in framework iof... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component iof:proxy (no configuration)"


    project=orte
    framework=iof
    component=proxy
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_iof" ; then
            if test "$DIRECT_iof" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=iof
    component=proxy

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_iof" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=iof
    component=proxy

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_iof" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_iof" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component iof:proxy can compile" >&5
echo $ECHO_N "checking if MCA component iof:proxy can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "proxy" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_iof" ; then
        if test "$DIRECT_iof" = "proxy" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components proxy"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_iof_proxy_DSO=1
    else
        BUILD_iof_proxy_DSO=0
    fi


if test "$BUILD_iof_proxy_DSO" = "1"; then
  OMPI_BUILD_iof_proxy_DSO_TRUE=
  OMPI_BUILD_iof_proxy_DSO_FALSE='#'
else
  OMPI_BUILD_iof_proxy_DSO_TRUE='#'
  OMPI_BUILD_iof_proxy_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component iof:svc (no configuration)"


    project=orte
    framework=iof
    component=svc
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_iof" ; then
            if test "$DIRECT_iof" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=iof
    component=svc

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_iof" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=iof
    component=svc

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_iof" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_iof" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component iof:svc can compile" >&5
echo $ECHO_N "checking if MCA component iof:svc can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "svc" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"svc\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"svc\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_iof" ; then
        if test "$DIRECT_iof" = "svc" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"svc\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"svc\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components svc"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_iof_svc_DSO=1
    else
        BUILD_iof_svc_DSO=0
    fi


if test "$BUILD_iof_svc_DSO" = "1"; then
  OMPI_BUILD_iof_svc_DSO_TRUE=
  OMPI_BUILD_iof_svc_DSO_FALSE='#'
else
  OMPI_BUILD_iof_svc_DSO_TRUE='#'
  OMPI_BUILD_iof_svc_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/iof/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component iof:$component (need to configure)"


    project=orte
    framework=iof
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_iof" ; then
            if test "$DIRECT_iof" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=iof
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_iof" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/iof/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/iof/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=iof
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_iof" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_iof" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component iof:$component can compile" >&5
echo $ECHO_N "checking if MCA component iof:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_iof" ; then
        if test "$DIRECT_iof" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_iof_ALL_COMPONENTS="$all_components"
    MCA_iof_STATIC_COMPONENTS="$static_components"
    MCA_iof_DSO_COMPONENTS="$dso_components"
    MCA_iof_STATIC_LTLIBS="$static_ltlibs"







    MCA_iof_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_iof_ALL_SUBDIRS="$MCA_iof_ALL_SUBDIRS mca/iof/$item"
    done



    MCA_iof_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_iof_STATIC_SUBDIRS="$MCA_iof_STATIC_SUBDIRS mca/iof/$item"
    done



    MCA_iof_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_iof_DSO_SUBDIRS="$MCA_iof_DSO_SUBDIRS mca/iof/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/iof/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "iof" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_iof_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "ns" = "common" ; then
                              MCA_orte_FRAMEWORKS="ns $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/ns $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ns_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ns_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ns_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ns"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ns"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ns_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ns_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ns_STATIC_SUBDIRS)"
                          fi
                          if test "ns" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ns/libmca_ns.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ns_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework ns"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "ns" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/ns/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework ns" >&5
echo $ECHO_N "checking for no configure components in framework ns... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: proxy, replica" >&5
echo "${ECHO_T}proxy, replica" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework ns" >&5
echo $ECHO_N "checking for m4 configure components in framework ns... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component ns:proxy (no configuration)"


    project=orte
    framework=ns
    component=proxy
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ns" ; then
            if test "$DIRECT_ns" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=ns
    component=proxy

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ns" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=ns
    component=proxy

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ns" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ns" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component ns:proxy can compile" >&5
echo $ECHO_N "checking if MCA component ns:proxy can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ns" = "proxy" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ns" ; then
        if test "$DIRECT_ns" = "proxy" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components proxy"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_ns_proxy_DSO=1
    else
        BUILD_ns_proxy_DSO=0
    fi


if test "$BUILD_ns_proxy_DSO" = "1"; then
  OMPI_BUILD_ns_proxy_DSO_TRUE=
  OMPI_BUILD_ns_proxy_DSO_FALSE='#'
else
  OMPI_BUILD_ns_proxy_DSO_TRUE='#'
  OMPI_BUILD_ns_proxy_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component ns:replica (no configuration)"


    project=orte
    framework=ns
    component=replica
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ns" ; then
            if test "$DIRECT_ns" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=ns
    component=replica

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ns" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=ns
    component=replica

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ns" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ns" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component ns:replica can compile" >&5
echo $ECHO_N "checking if MCA component ns:replica can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ns" = "replica" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"replica\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"replica\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ns" ; then
        if test "$DIRECT_ns" = "replica" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"replica\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"replica\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components replica"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_ns_replica_DSO=1
    else
        BUILD_ns_replica_DSO=0
    fi


if test "$BUILD_ns_replica_DSO" = "1"; then
  OMPI_BUILD_ns_replica_DSO_TRUE=
  OMPI_BUILD_ns_replica_DSO_FALSE='#'
else
  OMPI_BUILD_ns_replica_DSO_TRUE='#'
  OMPI_BUILD_ns_replica_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/ns/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component ns:$component (need to configure)"


    project=orte
    framework=ns
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ns" ; then
            if test "$DIRECT_ns" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=ns
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ns" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/ns/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/ns/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=ns
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ns" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ns" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component ns:$component can compile" >&5
echo $ECHO_N "checking if MCA component ns:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ns" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ns" ; then
        if test "$DIRECT_ns" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_ns_ALL_COMPONENTS="$all_components"
    MCA_ns_STATIC_COMPONENTS="$static_components"
    MCA_ns_DSO_COMPONENTS="$dso_components"
    MCA_ns_STATIC_LTLIBS="$static_ltlibs"







    MCA_ns_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_ns_ALL_SUBDIRS="$MCA_ns_ALL_SUBDIRS mca/ns/$item"
    done



    MCA_ns_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_ns_STATIC_SUBDIRS="$MCA_ns_STATIC_SUBDIRS mca/ns/$item"
    done



    MCA_ns_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_ns_DSO_SUBDIRS="$MCA_ns_DSO_SUBDIRS mca/ns/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/ns/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "ns" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_ns_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "oob" = "common" ; then
                              MCA_orte_FRAMEWORKS="oob $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/oob $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_oob_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_oob_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_oob_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS oob"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/oob"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_oob_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_oob_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_oob_STATIC_SUBDIRS)"
                          fi
                          if test "oob" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/oob/libmca_oob.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_oob_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework oob"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "oob" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/oob/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework oob" >&5
echo $ECHO_N "checking for no configure components in framework oob... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework oob" >&5
echo $ECHO_N "checking for m4 configure components in framework oob... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: tcp" >&5
echo "${ECHO_T}tcp" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort



    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component oob:tcp (m4 configuration macro)"


    project=orte
    framework=oob
    component=tcp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_oob" ; then
            if test "$DIRECT_oob" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=oob
    component=tcp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_oob" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # check for sockaddr_in (a good sign we have TCP)
    echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5
echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_in+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
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if ((struct sockaddr_in *) 0)
  return 0;
if (sizeof (struct sockaddr_in))
  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_struct_sockaddr_in=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_struct_sockaddr_in=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6
if test $ac_cv_type_struct_sockaddr_in = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN 1
_ACEOF

should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=oob
    component=tcp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_oob" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_oob" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component oob:tcp can compile" >&5
echo $ECHO_N "checking if MCA component oob:tcp can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_oob" = "tcp" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_oob" ; then
        if test "$DIRECT_oob" = "tcp" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components tcp"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_oob_tcp_DSO=1
else
  BUILD_oob_tcp_DSO=0
fi



if test "$BUILD_oob_tcp_DSO" = "1"; then
  OMPI_BUILD_oob_tcp_DSO_TRUE=
  OMPI_BUILD_oob_tcp_DSO_FALSE='#'
else
  OMPI_BUILD_oob_tcp_DSO_TRUE='#'
  OMPI_BUILD_oob_tcp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/oob/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component oob:$component (need to configure)"


    project=orte
    framework=oob
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_oob" ; then
            if test "$DIRECT_oob" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=oob
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_oob" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/oob/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/oob/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=oob
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_oob" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_oob" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component oob:$component can compile" >&5
echo $ECHO_N "checking if MCA component oob:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_oob" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_oob" ; then
        if test "$DIRECT_oob" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_oob_ALL_COMPONENTS="$all_components"
    MCA_oob_STATIC_COMPONENTS="$static_components"
    MCA_oob_DSO_COMPONENTS="$dso_components"
    MCA_oob_STATIC_LTLIBS="$static_ltlibs"







    MCA_oob_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_oob_ALL_SUBDIRS="$MCA_oob_ALL_SUBDIRS mca/oob/$item"
    done



    MCA_oob_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_oob_STATIC_SUBDIRS="$MCA_oob_STATIC_SUBDIRS mca/oob/$item"
    done



    MCA_oob_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_oob_DSO_SUBDIRS="$MCA_oob_DSO_SUBDIRS mca/oob/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/oob/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "oob" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_oob_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "pls" = "common" ; then
                              MCA_orte_FRAMEWORKS="pls $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/pls $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pls_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pls_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pls_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS pls"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/pls"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pls_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pls_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pls_STATIC_SUBDIRS)"
                          fi
                          if test "pls" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/pls/libmca_pls.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_pls_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework pls"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "pls" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/pls/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework pls" >&5
echo $ECHO_N "checking for no configure components in framework pls... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework pls" >&5
echo $ECHO_N "checking for m4 configure components in framework pls... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: bproc, bproc_orted, fork, poe, rsh, slurm, tm, xgrid" >&5
echo "${ECHO_T}bproc, bproc_orted, fork, poe, rsh, slurm, tm, xgrid" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort



    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component pls:bproc (m4 configuration macro)"


    project=orte
    framework=pls
    component=bproc
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pls" ; then
            if test "$DIRECT_pls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=pls
    component=bproc

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pls" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-bproc or --without-bproc was given.
if test "${with_bproc+set}" = set; then
  withval="$with_bproc"

fi;

    if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
  pls_bproc_good=0
else

        ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
        ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
        ompi_check_bproc_save_LIBS="$LIBS"

        if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
               LDFLAGS="$LDFLAGS -L$with_bproc/lib"
fi


for ac_header in sys/bproc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6
if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbproc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bproc_numnodes ();
int
main ()
{
bproc_numnodes ();
  ;
  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
  ac_cv_lib_bproc_bproc_numnodes=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_bproc_bproc_numnodes=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6
if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
  ompi_check_bproc_happy="yes"
else
  ompi_check_bproc_happy="no"
fi

else
  ompi_check_bproc_happy="no"
fi

done


        # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
        if test "$ompi_check_bproc_happy" = "yes"; then

for ac_header in sys/bproc_common.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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#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
 ompi_check_bproc_happy="new"
else
  ompi_check_bproc_happy="old"
fi

done

fi


        CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
        LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
        LIBS="$ompi_check_bproc_save_LIBS"

        if test "$ompi_check_bproc_happy" != "no"; then
  if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  pls_bproc_CPPFLAGS="$pls_bproc_CPPFLAGS -I$with_bproc/include"
                      pls_bproc_LDFLAGS="$pls_bproc_LDFLAGS -L$with_bproc/lib"
fi

               pls_bproc_LIBS="$pls_bproc_LIBS -lbproc"
               if test "$ompi_check_bproc_happy" = "new"; then
  pls_bproc_good=2
else
  pls_bproc_good=1
fi

else
  if test ! -z "$with_bproc"; then
  { { echo "$as_me:$LINENO: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&5
echo "$as_me: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&2;}
   { (exit 1); exit 1; }; }
fi

               pls_bproc_good=0
fi


fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$pls_bproc_good" = "1"; then

cat >>confdefs.h <<_ACEOF
#define MCA_pls_bproc_scyld 1
_ACEOF

fi


    if test "$pls_bproc_good" != "0"; then
  pls_bproc_WRAPPER_EXTRA_LDFLAGS="$pls_bproc_LDFLAGS"
           pls_bproc_WRAPPER_EXTRA_LIBS="$pls_bproc_LIBS"
           should_build=1
else
  should_build=0
fi


    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=pls
    component=bproc

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pls" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pls" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component pls:bproc can compile" >&5
echo $ECHO_N "checking if MCA component pls:bproc can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pls" = "bproc" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pls" ; then
        if test "$DIRECT_pls" = "bproc" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components bproc"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pls_bproc_DSO=1
else
  BUILD_pls_bproc_DSO=0
fi



if test "$BUILD_pls_bproc_DSO" = "1"; then
  OMPI_BUILD_pls_bproc_DSO_TRUE=
  OMPI_BUILD_pls_bproc_DSO_FALSE='#'
else
  OMPI_BUILD_pls_bproc_DSO_TRUE='#'
  OMPI_BUILD_pls_bproc_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component pls:bproc_orted (m4 configuration macro)"


    project=orte
    framework=pls
    component=bproc_orted
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pls" ; then
            if test "$DIRECT_pls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=pls
    component=bproc_orted

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pls" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-bproc or --without-bproc was given.
if test "${with_bproc+set}" = set; then
  withval="$with_bproc"

fi;

    if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
  pls_bproc_orted_good=0
else

        ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
        ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
        ompi_check_bproc_save_LIBS="$LIBS"

        if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
               LDFLAGS="$LDFLAGS -L$with_bproc/lib"
fi


for ac_header in sys/bproc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6
if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbproc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bproc_numnodes ();
int
main ()
{
bproc_numnodes ();
  ;
  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
  ac_cv_lib_bproc_bproc_numnodes=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_bproc_bproc_numnodes=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6
if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
  ompi_check_bproc_happy="yes"
else
  ompi_check_bproc_happy="no"
fi

else
  ompi_check_bproc_happy="no"
fi

done


        # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
        if test "$ompi_check_bproc_happy" = "yes"; then

for ac_header in sys/bproc_common.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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#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
 ompi_check_bproc_happy="new"
else
  ompi_check_bproc_happy="old"
fi

done

fi


        CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
        LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
        LIBS="$ompi_check_bproc_save_LIBS"

        if test "$ompi_check_bproc_happy" != "no"; then
  if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  pls_bproc_orted_CPPFLAGS="$pls_bproc_orted_CPPFLAGS -I$with_bproc/include"
                      pls_bproc_orted_LDFLAGS="$pls_bproc_orted_LDFLAGS -L$with_bproc/lib"
fi

               pls_bproc_orted_LIBS="$pls_bproc_orted_LIBS -lbproc"
               if test "$ompi_check_bproc_happy" = "new"; then
  pls_bproc_orted_good=1
else
  pls_bproc_orted_good=1
fi

else
  if test ! -z "$with_bproc"; then
  { { echo "$as_me:$LINENO: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&5
echo "$as_me: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&2;}
   { (exit 1); exit 1; }; }
fi

               pls_bproc_orted_good=0
fi


fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$pls_bproc_orted_good" = "1"; then
  pls_bproc_orted_WRAPPER_EXTRA_LDFLAGS="$pls_bproc_orted_LDFLAGS"
           pls_bproc_orted_WRAPPER_EXTRA_LIBS="$pls_bproc_orted_LIBS"
           should_build=1
else
  should_build=0
fi


    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=pls
    component=bproc_orted

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pls" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pls" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component pls:bproc_orted can compile" >&5
echo $ECHO_N "checking if MCA component pls:bproc_orted can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pls" = "bproc_orted" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"bproc_orted\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bproc_orted\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pls" ; then
        if test "$DIRECT_pls" = "bproc_orted" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"bproc_orted\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bproc_orted\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components bproc_orted"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pls_bproc_orted_DSO=1
else
  BUILD_pls_bproc_orted_DSO=0
fi



if test "$BUILD_pls_bproc_orted_DSO" = "1"; then
  OMPI_BUILD_pls_bproc_orted_DSO_TRUE=
  OMPI_BUILD_pls_bproc_orted_DSO_FALSE='#'
else
  OMPI_BUILD_pls_bproc_orted_DSO_TRUE='#'
  OMPI_BUILD_pls_bproc_orted_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component pls:fork (m4 configuration macro)"


    project=orte
    framework=pls
    component=fork
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pls" ; then
            if test "$DIRECT_pls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=pls
    component=fork

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pls" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    echo "$as_me:$LINENO: checking for fork" >&5
echo $ECHO_N "checking for fork... $ECHO_C" >&6
if test "${ac_cv_func_fork+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.  */
/* Define fork to an innocuous variant, in case <limits.h> declares fork.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fork innocuous_fork

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fork (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fork

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fork ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fork) || defined (__stub___fork)
choke me
#else
char (*f) () = fork;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != fork;
  ;
  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
  ac_cv_func_fork=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_fork=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
echo "${ECHO_T}$ac_cv_func_fork" >&6
if test $ac_cv_func_fork = yes; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=pls
    component=fork

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pls" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pls" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component pls:fork can compile" >&5
echo $ECHO_N "checking if MCA component pls:fork can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pls" = "fork" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"fork\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"fork\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pls" ; then
        if test "$DIRECT_pls" = "fork" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"fork\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"fork\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components fork"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pls_fork_DSO=1
else
  BUILD_pls_fork_DSO=0
fi



if test "$BUILD_pls_fork_DSO" = "1"; then
  OMPI_BUILD_pls_fork_DSO_TRUE=
  OMPI_BUILD_pls_fork_DSO_FALSE='#'
else
  OMPI_BUILD_pls_fork_DSO_TRUE='#'
  OMPI_BUILD_pls_fork_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component pls:poe (m4 configuration macro)"


    project=orte
    framework=pls
    component=poe
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pls" ; then
            if test "$DIRECT_pls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=pls
    component=poe

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pls" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # POE is only supported on AIX.  We only need executables (no
    # header files or libraries), but those can be found (or not) at
    # run-time.  So if we're on AIX, build this component.
    echo "$as_me:$LINENO: checking if on AIX" >&5
echo $ECHO_N "checking if on AIX... $ECHO_C" >&6
    case $host_os in
    aix3* | aix4* | aix5*)
        happy=yes
        ;;
    *)
        happy=no
        ;;
    esac
    echo "$as_me:$LINENO: result: $happy" >&5
echo "${ECHO_T}$happy" >&6
    if test "$happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=pls
    component=poe

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pls" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pls" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component pls:poe can compile" >&5
echo $ECHO_N "checking if MCA component pls:poe can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pls" = "poe" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"poe\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"poe\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pls" ; then
        if test "$DIRECT_pls" = "poe" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"poe\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"poe\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components poe"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pls_poe_DSO=1
else
  BUILD_pls_poe_DSO=0
fi



if test "$BUILD_pls_poe_DSO" = "1"; then
  OMPI_BUILD_pls_poe_DSO_TRUE=
  OMPI_BUILD_pls_poe_DSO_FALSE='#'
else
  OMPI_BUILD_pls_poe_DSO_TRUE='#'
  OMPI_BUILD_pls_poe_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component pls:rsh (m4 configuration macro)"


    project=orte
    framework=pls
    component=rsh
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pls" ; then
            if test "$DIRECT_pls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=pls
    component=rsh

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pls" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    echo "$as_me:$LINENO: checking for fork" >&5
echo $ECHO_N "checking for fork... $ECHO_C" >&6
if test "${ac_cv_func_fork+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.  */
/* Define fork to an innocuous variant, in case <limits.h> declares fork.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fork innocuous_fork

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fork (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fork

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fork ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fork) || defined (__stub___fork)
choke me
#else
char (*f) () = fork;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != fork;
  ;
  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
  ac_cv_func_fork=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_fork=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
echo "${ECHO_T}$ac_cv_func_fork" >&6
if test $ac_cv_func_fork = yes; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=pls
    component=rsh

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pls" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pls" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component pls:rsh can compile" >&5
echo $ECHO_N "checking if MCA component pls:rsh can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pls" = "rsh" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pls" ; then
        if test "$DIRECT_pls" = "rsh" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components rsh"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pls_rsh_DSO=1
else
  BUILD_pls_rsh_DSO=0
fi



if test "$BUILD_pls_rsh_DSO" = "1"; then
  OMPI_BUILD_pls_rsh_DSO_TRUE=
  OMPI_BUILD_pls_rsh_DSO_FALSE='#'
else
  OMPI_BUILD_pls_rsh_DSO_TRUE='#'
  OMPI_BUILD_pls_rsh_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component pls:slurm (m4 configuration macro)"


    project=orte
    framework=pls
    component=slurm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pls" ; then
            if test "$DIRECT_pls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=pls
    component=slurm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pls" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-slurm or --without-slurm was given.
if test "${with_slurm+set}" = set; then
  withval="$with_slurm"

fi;

    if test "$with_slurm" = "no" ; then
        ompi_check_slurm_happy="no"
    elif test "$with_slurm" = "" ; then
        # unless user asked, only build slurm component on
        # linux systems.
        case $host in
            *-linux*|*-aix*)
                ompi_check_slurm_happy="yes"
                ;;
            *)
                ompi_check_slurm_happy="no"
                ;;
        esac
    else
        ompi_check_slurm_happy="yes"
    fi

    if test "$ompi_check_slurm_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for fork" >&5
echo $ECHO_N "checking for fork... $ECHO_C" >&6
if test "${ac_cv_func_fork+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.  */
/* Define fork to an innocuous variant, in case <limits.h> declares fork.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fork innocuous_fork

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fork (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fork

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fork ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fork) || defined (__stub___fork)
choke me
#else
char (*f) () = fork;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != fork;
  ;
  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
  ac_cv_func_fork=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_fork=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
echo "${ECHO_T}$ac_cv_func_fork" >&6
if test $ac_cv_func_fork = yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for execve" >&5
echo $ECHO_N "checking for execve... $ECHO_C" >&6
if test "${ac_cv_func_execve+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.  */
/* Define execve to an innocuous variant, in case <limits.h> declares execve.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define execve innocuous_execve

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char execve (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef execve

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char execve ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_execve) || defined (__stub___execve)
choke me
#else
char (*f) () = execve;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != execve;
  ;
  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
  ac_cv_func_execve=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_execve=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5
echo "${ECHO_T}$ac_cv_func_execve" >&6
if test $ac_cv_func_execve = yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for setpgid" >&5
echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
if test "${ac_cv_func_setpgid+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.  */
/* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setpgid innocuous_setpgid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setpgid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setpgid

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setpgid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setpgid) || defined (__stub___setpgid)
choke me
#else
char (*f) () = setpgid;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != setpgid;
  ;
  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
  ac_cv_func_setpgid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_setpgid=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
echo "${ECHO_T}$ac_cv_func_setpgid" >&6
if test $ac_cv_func_setpgid = yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  pls_slurm_good=1
else
  pls_slurm_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$pls_slurm_good" = "1"; then
  pls_slurm_WRAPPER_EXTRA_LDFLAGS="$pls_slurm_LDFLAGS"
           pls_slurm_WRAPPER_EXTRA_LIBS="$pls_slurm_LIBS"
           should_build=1
else
  should_build=0
fi


    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=pls
    component=slurm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pls" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pls" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component pls:slurm can compile" >&5
echo $ECHO_N "checking if MCA component pls:slurm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pls" = "slurm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pls" ; then
        if test "$DIRECT_pls" = "slurm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components slurm"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pls_slurm_DSO=1
else
  BUILD_pls_slurm_DSO=0
fi



if test "$BUILD_pls_slurm_DSO" = "1"; then
  OMPI_BUILD_pls_slurm_DSO_TRUE=
  OMPI_BUILD_pls_slurm_DSO_FALSE='#'
else
  OMPI_BUILD_pls_slurm_DSO_TRUE='#'
  OMPI_BUILD_pls_slurm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component pls:tm (m4 configuration macro)"


    project=orte
    framework=pls
    component=tm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pls" ; then
            if test "$DIRECT_pls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=pls
    component=tm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pls" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-tm or --without-tm was given.
if test "${with_tm+set}" = set; then
  withval="$with_tm"

fi;

    if test "$with_tm" = "no"; then
  ompi_check_tm_hapy="no"
else
  ompi_check_tm_happy="yes"
           if test ! -z "$with_tm" -a "$with_tm" != "yes"; then
  ompi_check_tm_dir="$with_tm"
else
  ompi_check_tm_dir=""
fi

fi


    # Note that Torque 2.1.0 changed the name of their back-end
    # library to "libtorque".  So we have to check for both libpbs and
    # libtorque.  First, check for libpbs.

    if test "$ompi_check_tm_happy" = "yes"; then

    ompi_check_package_pls_tm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_pls_tm_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_pls_tm_save_LIBS="$LIBS"

    ompi_check_package_pls_tm_orig_CPPFLAGS="$pls_tm_CPPFLAGS"
    ompi_check_package_pls_tm_orig_LDFLAGS="$pls_tm_LDFLAGS"
    ompi_check_package_pls_tm_orig_LIBS="$pls_tm_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_tm_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_tm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking tm.h usability" >&5
echo $ECHO_N "checking tm.h usability... $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 <tm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking tm.h presence" >&5
echo $ECHO_N "checking tm.h presence... $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.  */
#include <tm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6

fi
if test $ac_cv_header_tm_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_tm_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_tm_dir" != ""; then
  pls_tm_CPPFLAGS="$pls_tm_CPPFLAGS -I$ompi_check_tm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include"
fi

           if test "${ac_cv_header_tm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking tm.h usability" >&5
echo $ECHO_N "checking tm.h usability... $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 <tm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking tm.h presence" >&5
echo $ECHO_N "checking tm.h presence... $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.  */
#include <tm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6

fi
if test $ac_cv_header_tm_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_pbs_tm_init
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                  pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                  unset ac_cv_lib_pbs_tm_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                     pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                     unset ac_cv_lib_pbs_tm_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                          pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                          pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_pbs_tm_init
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                  pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                  unset ac_cv_lib_pbs_tm_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                     pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                     unset ac_cv_lib_pbs_tm_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                          pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                          pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_tm_happy="yes"
           pls_tm_LIBS="-lpbs "
else
  pls_tm_CPPFLAGS="$ompi_check_package_pls_tm_orig_CPPFLAGS"
           pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
           pls_tm_LIBS="$ompi_check_package_pls_tm_orig_LIBS"
           ompi_check_tm_happy="no"
fi


    CPPFLAGS="$ompi_check_package_pls_tm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
    LIBS="$ompi_check_package_pls_tm_save_LIBS"

fi


    # If that failed, check for libtorque.  Admittedly, this is
    # sub-optimal -- the above may have failed because tm.h was not
    # found.  If so, we'll check for it again.  Life is hard.

    if test "$ompi_check_tm_happy" = "no"; then

    ompi_check_package_pls_tm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_pls_tm_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_pls_tm_save_LIBS="$LIBS"

    ompi_check_package_pls_tm_orig_CPPFLAGS="$pls_tm_CPPFLAGS"
    ompi_check_package_pls_tm_orig_LDFLAGS="$pls_tm_LDFLAGS"
    ompi_check_package_pls_tm_orig_LIBS="$pls_tm_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_tm_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_tm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking tm.h usability" >&5
echo $ECHO_N "checking tm.h usability... $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 <tm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking tm.h presence" >&5
echo $ECHO_N "checking tm.h presence... $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.  */
#include <tm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6

fi
if test $ac_cv_header_tm_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_tm_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_tm_dir" != ""; then
  pls_tm_CPPFLAGS="$pls_tm_CPPFLAGS -I$ompi_check_tm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include"
fi

           if test "${ac_cv_header_tm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking tm.h usability" >&5
echo $ECHO_N "checking tm.h usability... $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 <tm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking tm.h presence" >&5
echo $ECHO_N "checking tm.h presence... $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.  */
#include <tm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6

fi
if test $ac_cv_header_tm_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_torque_tm_finalize
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                  pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                  unset ac_cv_lib_torque_tm_finalize
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                     pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                     unset ac_cv_lib_torque_tm_finalize
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                          pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_finalize
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                          pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_finalize
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_torque_tm_finalize
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                  pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                  unset ac_cv_lib_torque_tm_finalize
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                     pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                     unset ac_cv_lib_torque_tm_finalize
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                          pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_finalize
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
                          pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_finalize
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_tm_happy="yes"
           pls_tm_LIBS="-ltorque "
else
  pls_tm_CPPFLAGS="$ompi_check_package_pls_tm_orig_CPPFLAGS"
           pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
           pls_tm_LIBS="$ompi_check_package_pls_tm_orig_LIBS"
           ompi_check_tm_happy="no"
fi


    CPPFLAGS="$ompi_check_package_pls_tm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
    LIBS="$ompi_check_package_pls_tm_save_LIBS"

fi


    if test "$ompi_check_tm_happy" = "yes"; then
  pls_tm_good=1
else
  if test ! -z "$with_tm" -a "$with_tm" != "no"; then
  { { echo "$as_me:$LINENO: error: TM support requested but not found.  Aborting" >&5
echo "$as_me: error: TM support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           pls_tm_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$pls_tm_good" = "1"; then
  pls_tm_WRAPPER_EXTRA_LDFLAGS="$pls_tm_LDFLAGS"
           pls_tm_WRAPPER_EXTRA_LIBS="$pls_tm_LIBS"
           should_build=1
else
  should_build=0
fi


    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=pls
    component=tm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pls" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pls" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component pls:tm can compile" >&5
echo $ECHO_N "checking if MCA component pls:tm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pls" = "tm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pls" ; then
        if test "$DIRECT_pls" = "tm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components tm"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pls_tm_DSO=1
else
  BUILD_pls_tm_DSO=0
fi



if test "$BUILD_pls_tm_DSO" = "1"; then
  OMPI_BUILD_pls_tm_DSO_TRUE=
  OMPI_BUILD_pls_tm_DSO_FALSE='#'
else
  OMPI_BUILD_pls_tm_DSO_TRUE='#'
  OMPI_BUILD_pls_tm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component pls:xgrid (m4 configuration macro)"


    project=orte
    framework=pls
    component=xgrid
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pls" ; then
            if test "$DIRECT_pls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=pls
    component=xgrid

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pls" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then





# Check whether --with-xgrid or --without-xgrid was given.
if test "${with_xgrid+set}" = set; then
  withval="$with_xgrid"

fi;

    echo "$as_me:$LINENO: checking for XGridFoundation Framework" >&5
echo $ECHO_N "checking for XGridFoundation Framework... $ECHO_C" >&6
if test "${ompi_cv_check_xgrid_foundation+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$with_xgrid" != "no"; then

    # ok, so in environments where this is going to work, the objc and
    # c compilers are the same thing.  Because our ompi_prog_objc is
    # really lame, you can't push/pop languages into and out of
    # objective-C (as soon as something post Autoconf 2.59 comes out,
    # it will have Objective C support, and this will all be much
    # simpler).  We modify CFLAGS because AC_TRY_LINK is going to use
    # the C compiler.  Automake, however, is smart enough to know what
    # Objective C is, so in the end, we put things in OBJCFLAGS and
    # the right things will happen.  *sigh*

    if test "$ac_cv_sizeof_long" = "8"; then
   # can't compile in 64 bit mode
            ompi_cv_check_xgrid_foundation="no"
else
  ompi_check_xgrid_save_CFLAGS="$CFLAGS"
           CFLAGS="$CFLAGS -framework XGridFoundation"
           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 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_check_xgrid_happy="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_check_xgrid_happy="no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
           CFLAGS="$ompi_check_xgrid_save_CFLAGS"
           if test "$ompi_check_xgrid_happy" = "no"; then
  ompi_cv_check_xgrid_foundation="no"
else
  ompi_cv_check_xgrid_foundation="yes"
fi

fi


else
  ompi_cv_check_xgrid_foundation="no"
fi

fi
echo "$as_me:$LINENO: result: $ompi_cv_check_xgrid_foundation" >&5
echo "${ECHO_T}$ompi_cv_check_xgrid_foundation" >&6

    if test "$ompi_cv_check_xgrid_foundation" = "yes"; then
  pls_xgrid_OBJCFLAGS="$pls_xgrid_OBJCFLAGS -F XGridFoundation"
           pls_xgrid_LDFLAGS="$pls_xgrid_LDFLAGS -framework XGridFoundation"
           pls_xgrid_good=1
else
  pls_xgrid_good=0
fi



    # For very dumb reasons involving linking, it's near impossible
    # to build the XGrid components as static libraries.  Disable if that's
    # the case.
    if test "$pls_xgrid_good" = "0"; then
  should_build=0
else
  if test "$compile_mode" = "dso"; then
   # pls_xgrid_LDFLAGS will be set by OMPI_CHECK_XGRID
                   pls_xgrid_WRAPPER_EXTRA_LDFLAGS="$pls_xgrid_LDFLAGS"
                   should_build=1
else
  { echo "$as_me:$LINENO: WARNING: XGrid components must be built as DSOs.  Disabling" >&5
echo "$as_me: WARNING: XGrid components must be built as DSOs.  Disabling" >&2;}
                   should_build=0
fi

fi


    # set build flags to use in makefile



fi


    if test "$should_build" = "1"; then

    project=orte
    framework=pls
    component=xgrid

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pls" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pls" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component pls:xgrid can compile" >&5
echo $ECHO_N "checking if MCA component pls:xgrid can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pls" = "xgrid" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pls" ; then
        if test "$DIRECT_pls" = "xgrid" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components xgrid"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pls_xgrid_DSO=1
else
  BUILD_pls_xgrid_DSO=0
fi



if test "$BUILD_pls_xgrid_DSO" = "1"; then
  OMPI_BUILD_pls_xgrid_DSO_TRUE=
  OMPI_BUILD_pls_xgrid_DSO_FALSE='#'
else
  OMPI_BUILD_pls_xgrid_DSO_TRUE='#'
  OMPI_BUILD_pls_xgrid_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/pls/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component pls:$component (need to configure)"


    project=orte
    framework=pls
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pls" ; then
            if test "$DIRECT_pls" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=pls
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pls" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/pls/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/pls/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=pls
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pls" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pls" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component pls:$component can compile" >&5
echo $ECHO_N "checking if MCA component pls:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pls" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pls" ; then
        if test "$DIRECT_pls" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_pls_ALL_COMPONENTS="$all_components"
    MCA_pls_STATIC_COMPONENTS="$static_components"
    MCA_pls_DSO_COMPONENTS="$dso_components"
    MCA_pls_STATIC_LTLIBS="$static_ltlibs"







    MCA_pls_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_pls_ALL_SUBDIRS="$MCA_pls_ALL_SUBDIRS mca/pls/$item"
    done



    MCA_pls_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_pls_STATIC_SUBDIRS="$MCA_pls_STATIC_SUBDIRS mca/pls/$item"
    done



    MCA_pls_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_pls_DSO_SUBDIRS="$MCA_pls_DSO_SUBDIRS mca/pls/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/pls/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "pls" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_pls_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "ras" = "common" ; then
                              MCA_orte_FRAMEWORKS="ras $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/ras $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ras_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ras_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ras_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ras"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ras"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ras_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ras_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ras_STATIC_SUBDIRS)"
                          fi
                          if test "ras" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ras/libmca_ras.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ras_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework ras"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "ras" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/ras/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework ras" >&5
echo $ECHO_N "checking for no configure components in framework ras... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: dash_host, hostfile, localhost" >&5
echo "${ECHO_T}dash_host, hostfile, localhost" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework ras" >&5
echo $ECHO_N "checking for m4 configure components in framework ras... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: bjs, lsf_bproc, poe, slurm, tm, xgrid" >&5
echo "${ECHO_T}bjs, lsf_bproc, poe, slurm, tm, xgrid" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component ras:dash_host (no configuration)"


    project=orte
    framework=ras
    component=dash_host
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=ras
    component=dash_host

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ras" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=ras
    component=dash_host

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component ras:dash_host can compile" >&5
echo $ECHO_N "checking if MCA component ras:dash_host can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "dash_host" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"dash_host\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"dash_host\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "dash_host" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"dash_host\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"dash_host\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components dash_host"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_ras_dash_host_DSO=1
    else
        BUILD_ras_dash_host_DSO=0
    fi


if test "$BUILD_ras_dash_host_DSO" = "1"; then
  OMPI_BUILD_ras_dash_host_DSO_TRUE=
  OMPI_BUILD_ras_dash_host_DSO_FALSE='#'
else
  OMPI_BUILD_ras_dash_host_DSO_TRUE='#'
  OMPI_BUILD_ras_dash_host_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component ras:hostfile (no configuration)"


    project=orte
    framework=ras
    component=hostfile
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=ras
    component=hostfile

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ras" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=ras
    component=hostfile

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component ras:hostfile can compile" >&5
echo $ECHO_N "checking if MCA component ras:hostfile can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "hostfile" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"hostfile\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"hostfile\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "hostfile" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"hostfile\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"hostfile\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components hostfile"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_ras_hostfile_DSO=1
    else
        BUILD_ras_hostfile_DSO=0
    fi


if test "$BUILD_ras_hostfile_DSO" = "1"; then
  OMPI_BUILD_ras_hostfile_DSO_TRUE=
  OMPI_BUILD_ras_hostfile_DSO_FALSE='#'
else
  OMPI_BUILD_ras_hostfile_DSO_TRUE='#'
  OMPI_BUILD_ras_hostfile_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component ras:localhost (no configuration)"


    project=orte
    framework=ras
    component=localhost
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=ras
    component=localhost

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ras" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=ras
    component=localhost

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component ras:localhost can compile" >&5
echo $ECHO_N "checking if MCA component ras:localhost can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "localhost" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"localhost\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"localhost\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "localhost" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"localhost\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"localhost\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components localhost"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_ras_localhost_DSO=1
    else
        BUILD_ras_localhost_DSO=0
    fi


if test "$BUILD_ras_localhost_DSO" = "1"; then
  OMPI_BUILD_ras_localhost_DSO_TRUE=
  OMPI_BUILD_ras_localhost_DSO_FALSE='#'
else
  OMPI_BUILD_ras_localhost_DSO_TRUE='#'
  OMPI_BUILD_ras_localhost_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component ras:bjs (m4 configuration macro)"


    project=orte
    framework=ras
    component=bjs
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=bjs

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ras" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-bproc or --without-bproc was given.
if test "${with_bproc+set}" = set; then
  withval="$with_bproc"

fi;

    if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
  ras_bjs_good=0
else

        ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
        ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
        ompi_check_bproc_save_LIBS="$LIBS"

        if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
               LDFLAGS="$LDFLAGS -L$with_bproc/lib"
fi


for ac_header in sys/bproc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6
if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbproc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bproc_numnodes ();
int
main ()
{
bproc_numnodes ();
  ;
  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
  ac_cv_lib_bproc_bproc_numnodes=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_bproc_bproc_numnodes=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6
if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
  ompi_check_bproc_happy="yes"
else
  ompi_check_bproc_happy="no"
fi

else
  ompi_check_bproc_happy="no"
fi

done


        # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
        if test "$ompi_check_bproc_happy" = "yes"; then

for ac_header in sys/bproc_common.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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#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
 ompi_check_bproc_happy="new"
else
  ompi_check_bproc_happy="old"
fi

done

fi


        CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
        LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
        LIBS="$ompi_check_bproc_save_LIBS"

        if test "$ompi_check_bproc_happy" != "no"; then
  if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  ras_bjs_CPPFLAGS="$ras_bjs_CPPFLAGS -I$with_bproc/include"
                      ras_bjs_LDFLAGS="$ras_bjs_LDFLAGS -L$with_bproc/lib"
fi

               ras_bjs_LIBS="$ras_bjs_LIBS -lbproc"
               if test "$ompi_check_bproc_happy" = "new"; then
  ras_bjs_good=1
else
  ras_bjs_good=1
fi

else
  if test ! -z "$with_bproc"; then
  { { echo "$as_me:$LINENO: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&5
echo "$as_me: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&2;}
   { (exit 1); exit 1; }; }
fi

               ras_bjs_good=0
fi


fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ras_bjs_good" = "1"; then
  ras_bjs_WRAPPER_EXTRA_LDFLAGS="$ras_bjs_LDFLAGS"
           ras_bjs_WRAPPER_EXTRA_LIBS="$ras_bjs_LIBS"
           should_build=1
else
  should_build=0
fi


    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=ras
    component=bjs

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component ras:bjs can compile" >&5
echo $ECHO_N "checking if MCA component ras:bjs can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "bjs" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"bjs\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bjs\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "bjs" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"bjs\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bjs\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components bjs"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_bjs_DSO=1
else
  BUILD_ras_bjs_DSO=0
fi



if test "$BUILD_ras_bjs_DSO" = "1"; then
  OMPI_BUILD_ras_bjs_DSO_TRUE=
  OMPI_BUILD_ras_bjs_DSO_FALSE='#'
else
  OMPI_BUILD_ras_bjs_DSO_TRUE='#'
  OMPI_BUILD_ras_bjs_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component ras:lsf_bproc (m4 configuration macro)"


    project=orte
    framework=ras
    component=lsf_bproc
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=lsf_bproc

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ras" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-bproc or --without-bproc was given.
if test "${with_bproc+set}" = set; then
  withval="$with_bproc"

fi;

    if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
  ras_lsf_bproc_good=0
else

        ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
        ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
        ompi_check_bproc_save_LIBS="$LIBS"

        if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
               LDFLAGS="$LDFLAGS -L$with_bproc/lib"
fi


for ac_header in sys/bproc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6
if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbproc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bproc_numnodes ();
int
main ()
{
bproc_numnodes ();
  ;
  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
  ac_cv_lib_bproc_bproc_numnodes=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_bproc_bproc_numnodes=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6
if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
  ompi_check_bproc_happy="yes"
else
  ompi_check_bproc_happy="no"
fi

else
  ompi_check_bproc_happy="no"
fi

done


        # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
        if test "$ompi_check_bproc_happy" = "yes"; then

for ac_header in sys/bproc_common.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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#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
 ompi_check_bproc_happy="new"
else
  ompi_check_bproc_happy="old"
fi

done

fi


        CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
        LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
        LIBS="$ompi_check_bproc_save_LIBS"

        if test "$ompi_check_bproc_happy" != "no"; then
  if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  ras_lsf_bproc_CPPFLAGS="$ras_lsf_bproc_CPPFLAGS -I$with_bproc/include"
                      ras_lsf_bproc_LDFLAGS="$ras_lsf_bproc_LDFLAGS -L$with_bproc/lib"
fi

               ras_lsf_bproc_LIBS="$ras_lsf_bproc_LIBS -lbproc"
               if test "$ompi_check_bproc_happy" = "new"; then
  ras_lsf_bproc_good=1
else
  ras_lsf_bproc_good=1
fi

else
  if test ! -z "$with_bproc"; then
  { { echo "$as_me:$LINENO: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&5
echo "$as_me: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&2;}
   { (exit 1); exit 1; }; }
fi

               ras_lsf_bproc_good=0
fi


fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ras_lsf_bproc_good" = "1"; then
  ras_lsf_bproc_WRAPPER_EXTRA_LDFLAGS="$ras_lsf_bproc_LDFLAGS"
           ras_lsf_bproc_WRAPPER_EXTRA_LIBS="$ras_lsf_bproc_LIBS"
           should_build=1
else
  should_build=0
fi


    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=ras
    component=lsf_bproc

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component ras:lsf_bproc can compile" >&5
echo $ECHO_N "checking if MCA component ras:lsf_bproc can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "lsf_bproc" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"lsf_bproc\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"lsf_bproc\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "lsf_bproc" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"lsf_bproc\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"lsf_bproc\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components lsf_bproc"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_lsf_bproc_DSO=1
else
  BUILD_ras_lsf_bproc_DSO=0
fi



if test "$BUILD_ras_lsf_bproc_DSO" = "1"; then
  OMPI_BUILD_ras_lsf_bproc_DSO_TRUE=
  OMPI_BUILD_ras_lsf_bproc_DSO_FALSE='#'
else
  OMPI_BUILD_ras_lsf_bproc_DSO_TRUE='#'
  OMPI_BUILD_ras_lsf_bproc_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component ras:poe (m4 configuration macro)"


    project=orte
    framework=ras
    component=poe
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=poe

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ras" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # POE is only supported on AIX.  We only need executables (no
    # header files or libraries), but those can be found (or not) at
    # run-time.  So if we're on AIX, build this component.
    echo "$as_me:$LINENO: checking if on AIX" >&5
echo $ECHO_N "checking if on AIX... $ECHO_C" >&6
    case $host_os in
    aix3* | aix4* | aix5*)
        happy=yes
        ;;
    *)
        happy=no
        ;;
    esac
    echo "$as_me:$LINENO: result: $happy" >&5
echo "${ECHO_T}$happy" >&6
    if test "$happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=ras
    component=poe

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component ras:poe can compile" >&5
echo $ECHO_N "checking if MCA component ras:poe can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "poe" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"poe\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"poe\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "poe" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"poe\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"poe\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components poe"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_poe_DSO=1
else
  BUILD_ras_poe_DSO=0
fi



if test "$BUILD_ras_poe_DSO" = "1"; then
  OMPI_BUILD_ras_poe_DSO_TRUE=
  OMPI_BUILD_ras_poe_DSO_FALSE='#'
else
  OMPI_BUILD_ras_poe_DSO_TRUE='#'
  OMPI_BUILD_ras_poe_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component ras:slurm (m4 configuration macro)"


    project=orte
    framework=ras
    component=slurm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=slurm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ras" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-slurm or --without-slurm was given.
if test "${with_slurm+set}" = set; then
  withval="$with_slurm"

fi;

    if test "$with_slurm" = "no" ; then
        ompi_check_slurm_happy="no"
    elif test "$with_slurm" = "" ; then
        # unless user asked, only build slurm component on
        # linux systems.
        case $host in
            *-linux*|*-aix*)
                ompi_check_slurm_happy="yes"
                ;;
            *)
                ompi_check_slurm_happy="no"
                ;;
        esac
    else
        ompi_check_slurm_happy="yes"
    fi

    if test "$ompi_check_slurm_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for fork" >&5
echo $ECHO_N "checking for fork... $ECHO_C" >&6
if test "${ac_cv_func_fork+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.  */
/* Define fork to an innocuous variant, in case <limits.h> declares fork.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fork innocuous_fork

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fork (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fork

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fork ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fork) || defined (__stub___fork)
choke me
#else
char (*f) () = fork;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != fork;
  ;
  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
  ac_cv_func_fork=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_fork=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
echo "${ECHO_T}$ac_cv_func_fork" >&6
if test $ac_cv_func_fork = yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for execve" >&5
echo $ECHO_N "checking for execve... $ECHO_C" >&6
if test "${ac_cv_func_execve+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.  */
/* Define execve to an innocuous variant, in case <limits.h> declares execve.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define execve innocuous_execve

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char execve (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef execve

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char execve ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_execve) || defined (__stub___execve)
choke me
#else
char (*f) () = execve;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != execve;
  ;
  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
  ac_cv_func_execve=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_execve=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5
echo "${ECHO_T}$ac_cv_func_execve" >&6
if test $ac_cv_func_execve = yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for setpgid" >&5
echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
if test "${ac_cv_func_setpgid+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.  */
/* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setpgid innocuous_setpgid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setpgid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setpgid

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setpgid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setpgid) || defined (__stub___setpgid)
choke me
#else
char (*f) () = setpgid;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != setpgid;
  ;
  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
  ac_cv_func_setpgid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_setpgid=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
echo "${ECHO_T}$ac_cv_func_setpgid" >&6
if test $ac_cv_func_setpgid = yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  ras_slurm_good=1
else
  ras_slurm_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ras_slurm_good" = "1"; then
  ras_slurm_WRAPPER_EXTRA_LDFLAGS="$ras_slurm_LDFLAGS"
           ras_slurm_WRAPPER_EXTRA_LIBS="$ras_slurm_LIBS"
           should_build=1
else
  should_build=0
fi


    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=ras
    component=slurm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component ras:slurm can compile" >&5
echo $ECHO_N "checking if MCA component ras:slurm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "slurm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "slurm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components slurm"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_slurm_DSO=1
else
  BUILD_ras_slurm_DSO=0
fi



if test "$BUILD_ras_slurm_DSO" = "1"; then
  OMPI_BUILD_ras_slurm_DSO_TRUE=
  OMPI_BUILD_ras_slurm_DSO_FALSE='#'
else
  OMPI_BUILD_ras_slurm_DSO_TRUE='#'
  OMPI_BUILD_ras_slurm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component ras:tm (m4 configuration macro)"


    project=orte
    framework=ras
    component=tm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=tm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ras" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-tm or --without-tm was given.
if test "${with_tm+set}" = set; then
  withval="$with_tm"

fi;

    if test "$with_tm" = "no"; then
  ompi_check_tm_hapy="no"
else
  ompi_check_tm_happy="yes"
           if test ! -z "$with_tm" -a "$with_tm" != "yes"; then
  ompi_check_tm_dir="$with_tm"
else
  ompi_check_tm_dir=""
fi

fi


    # Note that Torque 2.1.0 changed the name of their back-end
    # library to "libtorque".  So we have to check for both libpbs and
    # libtorque.  First, check for libpbs.

    if test "$ompi_check_tm_happy" = "yes"; then

    ompi_check_package_ras_tm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_ras_tm_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_ras_tm_save_LIBS="$LIBS"

    ompi_check_package_ras_tm_orig_CPPFLAGS="$ras_tm_CPPFLAGS"
    ompi_check_package_ras_tm_orig_LDFLAGS="$ras_tm_LDFLAGS"
    ompi_check_package_ras_tm_orig_LIBS="$ras_tm_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_tm_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_tm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking tm.h usability" >&5
echo $ECHO_N "checking tm.h usability... $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 <tm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking tm.h presence" >&5
echo $ECHO_N "checking tm.h presence... $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.  */
#include <tm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6

fi
if test $ac_cv_header_tm_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_tm_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_tm_dir" != ""; then
  ras_tm_CPPFLAGS="$ras_tm_CPPFLAGS -I$ompi_check_tm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include"
fi

           if test "${ac_cv_header_tm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking tm.h usability" >&5
echo $ECHO_N "checking tm.h usability... $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 <tm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking tm.h presence" >&5
echo $ECHO_N "checking tm.h presence... $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.  */
#include <tm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6

fi
if test $ac_cv_header_tm_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_pbs_tm_init
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                  ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                  unset ac_cv_lib_pbs_tm_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                     ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                     unset ac_cv_lib_pbs_tm_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_pbs_tm_init
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                  ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                  unset ac_cv_lib_pbs_tm_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                     ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                     unset ac_cv_lib_pbs_tm_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpbs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_init ();
int
main ()
{
tm_init ();
  ;
  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
  ac_cv_lib_pbs_tm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_pbs_tm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6
if test $ac_cv_lib_pbs_tm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_tm_happy="yes"
           ras_tm_LIBS="-lpbs "
else
  ras_tm_CPPFLAGS="$ompi_check_package_ras_tm_orig_CPPFLAGS"
           ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
           ras_tm_LIBS="$ompi_check_package_ras_tm_orig_LIBS"
           ompi_check_tm_happy="no"
fi


    CPPFLAGS="$ompi_check_package_ras_tm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
    LIBS="$ompi_check_package_ras_tm_save_LIBS"

fi


    # If that failed, check for libtorque.  Admittedly, this is
    # sub-optimal -- the above may have failed because tm.h was not
    # found.  If so, we'll check for it again.  Life is hard.

    if test "$ompi_check_tm_happy" = "no"; then

    ompi_check_package_ras_tm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_ras_tm_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_ras_tm_save_LIBS="$LIBS"

    ompi_check_package_ras_tm_orig_CPPFLAGS="$ras_tm_CPPFLAGS"
    ompi_check_package_ras_tm_orig_LDFLAGS="$ras_tm_LDFLAGS"
    ompi_check_package_ras_tm_orig_LIBS="$ras_tm_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_tm_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_tm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking tm.h usability" >&5
echo $ECHO_N "checking tm.h usability... $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 <tm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking tm.h presence" >&5
echo $ECHO_N "checking tm.h presence... $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.  */
#include <tm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6

fi
if test $ac_cv_header_tm_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_tm_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_tm_dir" != ""; then
  ras_tm_CPPFLAGS="$ras_tm_CPPFLAGS -I$ompi_check_tm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include"
fi

           if test "${ac_cv_header_tm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking tm.h usability" >&5
echo $ECHO_N "checking tm.h usability... $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 <tm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking tm.h presence" >&5
echo $ECHO_N "checking tm.h presence... $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.  */
#include <tm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for tm.h" >&5
echo $ECHO_N "checking for tm.h... $ECHO_C" >&6
if test "${ac_cv_header_tm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
echo "${ECHO_T}$ac_cv_header_tm_h" >&6

fi
if test $ac_cv_header_tm_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_torque_tm_finalize
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                  ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                  unset ac_cv_lib_torque_tm_finalize
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                     ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                     unset ac_cv_lib_torque_tm_finalize
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_finalize
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_finalize
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_torque_tm_finalize
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                  ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                  unset ac_cv_lib_torque_tm_finalize
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_tm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                     ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                     unset ac_cv_lib_torque_tm_finalize
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_finalize
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6
if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltorque  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char tm_finalize ();
int
main ()
{
tm_finalize ();
  ;
  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
  ac_cv_lib_torque_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_torque_tm_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6
if test $ac_cv_lib_torque_tm_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
                          ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_finalize
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_tm_happy="yes"
           ras_tm_LIBS="-ltorque "
else
  ras_tm_CPPFLAGS="$ompi_check_package_ras_tm_orig_CPPFLAGS"
           ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
           ras_tm_LIBS="$ompi_check_package_ras_tm_orig_LIBS"
           ompi_check_tm_happy="no"
fi


    CPPFLAGS="$ompi_check_package_ras_tm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
    LIBS="$ompi_check_package_ras_tm_save_LIBS"

fi


    if test "$ompi_check_tm_happy" = "yes"; then
  ras_tm_good=1
else
  if test ! -z "$with_tm" -a "$with_tm" != "no"; then
  { { echo "$as_me:$LINENO: error: TM support requested but not found.  Aborting" >&5
echo "$as_me: error: TM support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           ras_tm_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ras_tm_good" = "1"; then
  ras_tm_WRAPPER_EXTRA_LDFLAGS="$ras_tm_LDFLAGS"
           ras_tm_WRAPPER_EXTRA_LIBS="$ras_tm_LIBS"
           should_build=1
else
  should_build=0
fi


    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=ras
    component=tm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component ras:tm can compile" >&5
echo $ECHO_N "checking if MCA component ras:tm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "tm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "tm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components tm"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_tm_DSO=1
else
  BUILD_ras_tm_DSO=0
fi



if test "$BUILD_ras_tm_DSO" = "1"; then
  OMPI_BUILD_ras_tm_DSO_TRUE=
  OMPI_BUILD_ras_tm_DSO_FALSE='#'
else
  OMPI_BUILD_ras_tm_DSO_TRUE='#'
  OMPI_BUILD_ras_tm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component ras:xgrid (m4 configuration macro)"


    project=orte
    framework=ras
    component=xgrid
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=ras
    component=xgrid

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ras" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then





# Check whether --with-xgrid or --without-xgrid was given.
if test "${with_xgrid+set}" = set; then
  withval="$with_xgrid"

fi;

    echo "$as_me:$LINENO: checking for XGridFoundation Framework" >&5
echo $ECHO_N "checking for XGridFoundation Framework... $ECHO_C" >&6
if test "${ompi_cv_check_xgrid_foundation+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$with_xgrid" != "no"; then

    # ok, so in environments where this is going to work, the objc and
    # c compilers are the same thing.  Because our ompi_prog_objc is
    # really lame, you can't push/pop languages into and out of
    # objective-C (as soon as something post Autoconf 2.59 comes out,
    # it will have Objective C support, and this will all be much
    # simpler).  We modify CFLAGS because AC_TRY_LINK is going to use
    # the C compiler.  Automake, however, is smart enough to know what
    # Objective C is, so in the end, we put things in OBJCFLAGS and
    # the right things will happen.  *sigh*

    if test "$ac_cv_sizeof_long" = "8"; then
   # can't compile in 64 bit mode
            ompi_cv_check_xgrid_foundation="no"
else
  ompi_check_xgrid_save_CFLAGS="$CFLAGS"
           CFLAGS="$CFLAGS -framework XGridFoundation"
           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 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_check_xgrid_happy="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_check_xgrid_happy="no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
           CFLAGS="$ompi_check_xgrid_save_CFLAGS"
           if test "$ompi_check_xgrid_happy" = "no"; then
  ompi_cv_check_xgrid_foundation="no"
else
  ompi_cv_check_xgrid_foundation="yes"
fi

fi


else
  ompi_cv_check_xgrid_foundation="no"
fi

fi
echo "$as_me:$LINENO: result: $ompi_cv_check_xgrid_foundation" >&5
echo "${ECHO_T}$ompi_cv_check_xgrid_foundation" >&6

    if test "$ompi_cv_check_xgrid_foundation" = "yes"; then
  ras_xgrid_OBJCFLAGS="$ras_xgrid_OBJCFLAGS -F XGridFoundation"
           ras_xgrid_LDFLAGS="$ras_xgrid_LDFLAGS -framework XGridFoundation"
           ras_xgrid_good=1
else
  ras_xgrid_good=0
fi



    # don't need to set any flags - there's no XGrid-using code in this
    # component.  For very dumb reasons involving linking, it's near impossible
    # to build the XGrid components as static libraries.  Disable if that's
    # the case.
    if test "$ras_xgrid_good" = "0"; then
  should_build=0
else
  if test "$compile_mode" = "dso"; then
  should_build=1
else
  { echo "$as_me:$LINENO: WARNING: XGrid components must be built as DSOs.  Disabling" >&5
echo "$as_me: WARNING: XGrid components must be built as DSOs.  Disabling" >&2;}
                  should_build=0
fi

fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=ras
    component=xgrid

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component ras:xgrid can compile" >&5
echo $ECHO_N "checking if MCA component ras:xgrid can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "xgrid" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "xgrid" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components xgrid"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_xgrid_DSO=1
else
  BUILD_ras_xgrid_DSO=0
fi



if test "$BUILD_ras_xgrid_DSO" = "1"; then
  OMPI_BUILD_ras_xgrid_DSO_TRUE=
  OMPI_BUILD_ras_xgrid_DSO_FALSE='#'
else
  OMPI_BUILD_ras_xgrid_DSO_TRUE='#'
  OMPI_BUILD_ras_xgrid_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/ras/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component ras:$component (need to configure)"


    project=orte
    framework=ras
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_ras" ; then
            if test "$DIRECT_ras" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=ras
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_ras" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/ras/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/ras/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=ras
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_ras" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_ras" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component ras:$component can compile" >&5
echo $ECHO_N "checking if MCA component ras:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_ras_ALL_COMPONENTS="$all_components"
    MCA_ras_STATIC_COMPONENTS="$static_components"
    MCA_ras_DSO_COMPONENTS="$dso_components"
    MCA_ras_STATIC_LTLIBS="$static_ltlibs"







    MCA_ras_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_ras_ALL_SUBDIRS="$MCA_ras_ALL_SUBDIRS mca/ras/$item"
    done



    MCA_ras_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_ras_STATIC_SUBDIRS="$MCA_ras_STATIC_SUBDIRS mca/ras/$item"
    done



    MCA_ras_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_ras_DSO_SUBDIRS="$MCA_ras_DSO_SUBDIRS mca/ras/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/ras/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "ras" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_ras_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "rds" = "common" ; then
                              MCA_orte_FRAMEWORKS="rds $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/rds $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rds_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rds_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rds_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rds"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rds"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rds_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rds_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rds_STATIC_SUBDIRS)"
                          fi
                          if test "rds" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rds/libmca_rds.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rds_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework rds"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "rds" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/rds/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework rds" >&5
echo $ECHO_N "checking for no configure components in framework rds... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: hostfile, resfile" >&5
echo "${ECHO_T}hostfile, resfile" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework rds" >&5
echo $ECHO_N "checking for m4 configure components in framework rds... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component rds:hostfile (no configuration)"


    project=orte
    framework=rds
    component=hostfile
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rds" ; then
            if test "$DIRECT_rds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=rds
    component=hostfile

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=rds
    component=hostfile

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component rds:hostfile can compile" >&5
echo $ECHO_N "checking if MCA component rds:hostfile can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rds" = "hostfile" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"hostfile\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"hostfile\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rds" ; then
        if test "$DIRECT_rds" = "hostfile" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"hostfile\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"hostfile\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components hostfile"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rds_hostfile_DSO=1
    else
        BUILD_rds_hostfile_DSO=0
    fi


if test "$BUILD_rds_hostfile_DSO" = "1"; then
  OMPI_BUILD_rds_hostfile_DSO_TRUE=
  OMPI_BUILD_rds_hostfile_DSO_FALSE='#'
else
  OMPI_BUILD_rds_hostfile_DSO_TRUE='#'
  OMPI_BUILD_rds_hostfile_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component rds:resfile (no configuration)"


    project=orte
    framework=rds
    component=resfile
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rds" ; then
            if test "$DIRECT_rds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=rds
    component=resfile

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=rds
    component=resfile

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component rds:resfile can compile" >&5
echo $ECHO_N "checking if MCA component rds:resfile can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rds" = "resfile" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"resfile\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"resfile\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rds" ; then
        if test "$DIRECT_rds" = "resfile" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"resfile\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"resfile\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components resfile"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rds_resfile_DSO=1
    else
        BUILD_rds_resfile_DSO=0
    fi


if test "$BUILD_rds_resfile_DSO" = "1"; then
  OMPI_BUILD_rds_resfile_DSO_TRUE=
  OMPI_BUILD_rds_resfile_DSO_FALSE='#'
else
  OMPI_BUILD_rds_resfile_DSO_TRUE='#'
  OMPI_BUILD_rds_resfile_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/rds/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component rds:$component (need to configure)"


    project=orte
    framework=rds
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rds" ; then
            if test "$DIRECT_rds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=rds
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/rds/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/rds/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=rds
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component rds:$component can compile" >&5
echo $ECHO_N "checking if MCA component rds:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rds" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rds" ; then
        if test "$DIRECT_rds" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_rds_ALL_COMPONENTS="$all_components"
    MCA_rds_STATIC_COMPONENTS="$static_components"
    MCA_rds_DSO_COMPONENTS="$dso_components"
    MCA_rds_STATIC_LTLIBS="$static_ltlibs"







    MCA_rds_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_rds_ALL_SUBDIRS="$MCA_rds_ALL_SUBDIRS mca/rds/$item"
    done



    MCA_rds_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_rds_STATIC_SUBDIRS="$MCA_rds_STATIC_SUBDIRS mca/rds/$item"
    done



    MCA_rds_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_rds_DSO_SUBDIRS="$MCA_rds_DSO_SUBDIRS mca/rds/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/rds/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "rds" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_rds_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "rmaps" = "common" ; then
                              MCA_orte_FRAMEWORKS="rmaps $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/rmaps $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rmaps_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rmaps_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rmaps_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rmaps"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rmaps"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rmaps_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rmaps_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rmaps_STATIC_SUBDIRS)"
                          fi
                          if test "rmaps" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rmaps/libmca_rmaps.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rmaps_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework rmaps"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "rmaps" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/rmaps/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework rmaps" >&5
echo $ECHO_N "checking for no configure components in framework rmaps... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: round_robin" >&5
echo "${ECHO_T}round_robin" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework rmaps" >&5
echo $ECHO_N "checking for m4 configure components in framework rmaps... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component rmaps:round_robin (no configuration)"


    project=orte
    framework=rmaps
    component=round_robin
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmaps" ; then
            if test "$DIRECT_rmaps" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=rmaps
    component=round_robin

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rmaps" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=rmaps
    component=round_robin

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmaps" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmaps" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component rmaps:round_robin can compile" >&5
echo $ECHO_N "checking if MCA component rmaps:round_robin can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "round_robin" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"round_robin\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "round_robin" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"round_robin\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components round_robin"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmaps_round_robin_DSO=1
    else
        BUILD_rmaps_round_robin_DSO=0
    fi


if test "$BUILD_rmaps_round_robin_DSO" = "1"; then
  OMPI_BUILD_rmaps_round_robin_DSO_TRUE=
  OMPI_BUILD_rmaps_round_robin_DSO_FALSE='#'
else
  OMPI_BUILD_rmaps_round_robin_DSO_TRUE='#'
  OMPI_BUILD_rmaps_round_robin_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/rmaps/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component rmaps:$component (need to configure)"


    project=orte
    framework=rmaps
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmaps" ; then
            if test "$DIRECT_rmaps" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=rmaps
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rmaps" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/rmaps/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/rmaps/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=rmaps
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmaps" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmaps" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component rmaps:$component can compile" >&5
echo $ECHO_N "checking if MCA component rmaps:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_rmaps_ALL_COMPONENTS="$all_components"
    MCA_rmaps_STATIC_COMPONENTS="$static_components"
    MCA_rmaps_DSO_COMPONENTS="$dso_components"
    MCA_rmaps_STATIC_LTLIBS="$static_ltlibs"







    MCA_rmaps_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_rmaps_ALL_SUBDIRS="$MCA_rmaps_ALL_SUBDIRS mca/rmaps/$item"
    done



    MCA_rmaps_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_rmaps_STATIC_SUBDIRS="$MCA_rmaps_STATIC_SUBDIRS mca/rmaps/$item"
    done



    MCA_rmaps_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_rmaps_DSO_SUBDIRS="$MCA_rmaps_DSO_SUBDIRS mca/rmaps/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/rmaps/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "rmaps" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_rmaps_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "rmgr" = "common" ; then
                              MCA_orte_FRAMEWORKS="rmgr $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/rmgr $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rmgr_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rmgr_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rmgr_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rmgr"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rmgr"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rmgr_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rmgr_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rmgr_STATIC_SUBDIRS)"
                          fi
                          if test "rmgr" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rmgr/libmca_rmgr.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rmgr_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework rmgr"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "rmgr" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/rmgr/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework rmgr" >&5
echo $ECHO_N "checking for no configure components in framework rmgr... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: proxy, urm" >&5
echo "${ECHO_T}proxy, urm" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework rmgr" >&5
echo $ECHO_N "checking for m4 configure components in framework rmgr... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: cnos" >&5
echo "${ECHO_T}cnos" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component rmgr:proxy (no configuration)"


    project=orte
    framework=rmgr
    component=proxy
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmgr" ; then
            if test "$DIRECT_rmgr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=rmgr
    component=proxy

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rmgr" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=rmgr
    component=proxy

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmgr" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmgr" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component rmgr:proxy can compile" >&5
echo $ECHO_N "checking if MCA component rmgr:proxy can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmgr" = "proxy" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rmgr" ; then
        if test "$DIRECT_rmgr" = "proxy" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components proxy"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmgr_proxy_DSO=1
    else
        BUILD_rmgr_proxy_DSO=0
    fi


if test "$BUILD_rmgr_proxy_DSO" = "1"; then
  OMPI_BUILD_rmgr_proxy_DSO_TRUE=
  OMPI_BUILD_rmgr_proxy_DSO_FALSE='#'
else
  OMPI_BUILD_rmgr_proxy_DSO_TRUE='#'
  OMPI_BUILD_rmgr_proxy_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component rmgr:urm (no configuration)"


    project=orte
    framework=rmgr
    component=urm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmgr" ; then
            if test "$DIRECT_rmgr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=rmgr
    component=urm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rmgr" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=rmgr
    component=urm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmgr" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmgr" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component rmgr:urm can compile" >&5
echo $ECHO_N "checking if MCA component rmgr:urm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmgr" = "urm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"urm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"urm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rmgr" ; then
        if test "$DIRECT_rmgr" = "urm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"urm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"urm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components urm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmgr_urm_DSO=1
    else
        BUILD_rmgr_urm_DSO=0
    fi


if test "$BUILD_rmgr_urm_DSO" = "1"; then
  OMPI_BUILD_rmgr_urm_DSO_TRUE=
  OMPI_BUILD_rmgr_urm_DSO_FALSE='#'
else
  OMPI_BUILD_rmgr_urm_DSO_TRUE='#'
  OMPI_BUILD_rmgr_urm_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component rmgr:cnos (m4 configuration macro)"


    project=orte
    framework=rmgr
    component=cnos
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmgr" ; then
            if test "$DIRECT_rmgr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=rmgr
    component=cnos

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rmgr" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    rmgr_cnos_happy="no"
    # see if we should enable super secret utcp support
    if test "$with_rmgr_cnos" = "utcp" ; then
        rmgr_cnos_happy="yes"
    else
        # check for cnos functions
        echo "$as_me:$LINENO: checking for cnos_barrier" >&5
echo $ECHO_N "checking for cnos_barrier... $ECHO_C" >&6
if test "${ac_cv_func_cnos_barrier+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.  */
/* Define cnos_barrier to an innocuous variant, in case <limits.h> declares cnos_barrier.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define cnos_barrier innocuous_cnos_barrier

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cnos_barrier (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef cnos_barrier

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char cnos_barrier ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_cnos_barrier) || defined (__stub___cnos_barrier)
choke me
#else
char (*f) () = cnos_barrier;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != cnos_barrier;
  ;
  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
  ac_cv_func_cnos_barrier=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_cnos_barrier=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_cnos_barrier" >&5
echo "${ECHO_T}$ac_cv_func_cnos_barrier" >&6
if test $ac_cv_func_cnos_barrier = yes; then
  rmgr_cnos_happy="yes"
else
  rmgr_cnos_happy="no"
fi

    fi



for ac_func in killrank cnos_pm_barrier
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    if test "$rmgr_cnos_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=rmgr
    component=cnos

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmgr" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmgr" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component rmgr:cnos can compile" >&5
echo $ECHO_N "checking if MCA component rmgr:cnos can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmgr" = "cnos" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rmgr" ; then
        if test "$DIRECT_rmgr" = "cnos" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components cnos"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_rmgr_cnos_DSO=1
else
  BUILD_rmgr_cnos_DSO=0
fi



if test "$BUILD_rmgr_cnos_DSO" = "1"; then
  OMPI_BUILD_rmgr_cnos_DSO_TRUE=
  OMPI_BUILD_rmgr_cnos_DSO_FALSE='#'
else
  OMPI_BUILD_rmgr_cnos_DSO_TRUE='#'
  OMPI_BUILD_rmgr_cnos_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/rmgr/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component rmgr:$component (need to configure)"


    project=orte
    framework=rmgr
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rmgr" ; then
            if test "$DIRECT_rmgr" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=rmgr
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rmgr" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/rmgr/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/rmgr/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=rmgr
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rmgr" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rmgr" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component rmgr:$component can compile" >&5
echo $ECHO_N "checking if MCA component rmgr:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmgr" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rmgr" ; then
        if test "$DIRECT_rmgr" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_rmgr_ALL_COMPONENTS="$all_components"
    MCA_rmgr_STATIC_COMPONENTS="$static_components"
    MCA_rmgr_DSO_COMPONENTS="$dso_components"
    MCA_rmgr_STATIC_LTLIBS="$static_ltlibs"







    MCA_rmgr_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_rmgr_ALL_SUBDIRS="$MCA_rmgr_ALL_SUBDIRS mca/rmgr/$item"
    done



    MCA_rmgr_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_rmgr_STATIC_SUBDIRS="$MCA_rmgr_STATIC_SUBDIRS mca/rmgr/$item"
    done



    MCA_rmgr_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_rmgr_DSO_SUBDIRS="$MCA_rmgr_DSO_SUBDIRS mca/rmgr/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/rmgr/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "rmgr" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_rmgr_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "rml" = "common" ; then
                              MCA_orte_FRAMEWORKS="rml $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/rml $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rml_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rml_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rml_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rml"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rml"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rml_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rml_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rml_STATIC_SUBDIRS)"
                          fi
                          if test "rml" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rml/libmca_rml.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rml_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework rml"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "rml" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/rml/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework rml" >&5
echo $ECHO_N "checking for no configure components in framework rml... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: oob" >&5
echo "${ECHO_T}oob" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework rml" >&5
echo $ECHO_N "checking for m4 configure components in framework rml... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: cnos" >&5
echo "${ECHO_T}cnos" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component rml:oob (no configuration)"


    project=orte
    framework=rml
    component=oob
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rml" ; then
            if test "$DIRECT_rml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=rml
    component=oob

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rml" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=rml
    component=oob

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rml" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rml" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component rml:oob can compile" >&5
echo $ECHO_N "checking if MCA component rml:oob can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rml" = "oob" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"oob\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rml" ; then
        if test "$DIRECT_rml" = "oob" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"oob\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components oob"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rml_oob_DSO=1
    else
        BUILD_rml_oob_DSO=0
    fi


if test "$BUILD_rml_oob_DSO" = "1"; then
  OMPI_BUILD_rml_oob_DSO_TRUE=
  OMPI_BUILD_rml_oob_DSO_FALSE='#'
else
  OMPI_BUILD_rml_oob_DSO_TRUE='#'
  OMPI_BUILD_rml_oob_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component rml:cnos (m4 configuration macro)"


    project=orte
    framework=rml
    component=cnos
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rml" ; then
            if test "$DIRECT_rml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=rml
    component=cnos

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rml" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    rml_cnos_happy="no"
    # see if we should enable super secret utcp support
    if test "$with_rml_cnos" = "utcp" ; then
        rml_cnos_happy="yes"
        rml_cnos_barrier=0
    else
        # check for cnos functions
        echo "$as_me:$LINENO: checking for cnos_barrier" >&5
echo $ECHO_N "checking for cnos_barrier... $ECHO_C" >&6
if test "${ac_cv_func_cnos_barrier+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.  */
/* Define cnos_barrier to an innocuous variant, in case <limits.h> declares cnos_barrier.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define cnos_barrier innocuous_cnos_barrier

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cnos_barrier (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef cnos_barrier

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char cnos_barrier ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_cnos_barrier) || defined (__stub___cnos_barrier)
choke me
#else
char (*f) () = cnos_barrier;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != cnos_barrier;
  ;
  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
  ac_cv_func_cnos_barrier=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_cnos_barrier=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_cnos_barrier" >&5
echo "${ECHO_T}$ac_cv_func_cnos_barrier" >&6
if test $ac_cv_func_cnos_barrier = yes; then
  rml_cnos_happy="yes"
                       rml_cnos_barrier=1
else
  rml_cnos_happy="no"
                       rml_cnos_barrier=0
fi

    fi


cat >>confdefs.h <<_ACEOF
#define OMPI_RML_CNOS_HAVE_BARRIER $rml_cnos_barrier
_ACEOF

    if test "$rml_cnos_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=rml
    component=cnos

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rml" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rml" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component rml:cnos can compile" >&5
echo $ECHO_N "checking if MCA component rml:cnos can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rml" = "cnos" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rml" ; then
        if test "$DIRECT_rml" = "cnos" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components cnos"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_rml_cnos_DSO=1
else
  BUILD_rml_cnos_DSO=0
fi



if test "$BUILD_rml_cnos_DSO" = "1"; then
  OMPI_BUILD_rml_cnos_DSO_TRUE=
  OMPI_BUILD_rml_cnos_DSO_FALSE='#'
else
  OMPI_BUILD_rml_cnos_DSO_TRUE='#'
  OMPI_BUILD_rml_cnos_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/rml/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component rml:$component (need to configure)"


    project=orte
    framework=rml
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rml" ; then
            if test "$DIRECT_rml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=rml
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rml" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/rml/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/rml/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=rml
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rml" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rml" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component rml:$component can compile" >&5
echo $ECHO_N "checking if MCA component rml:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rml" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rml" ; then
        if test "$DIRECT_rml" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_rml_ALL_COMPONENTS="$all_components"
    MCA_rml_STATIC_COMPONENTS="$static_components"
    MCA_rml_DSO_COMPONENTS="$dso_components"
    MCA_rml_STATIC_LTLIBS="$static_ltlibs"







    MCA_rml_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_rml_ALL_SUBDIRS="$MCA_rml_ALL_SUBDIRS mca/rml/$item"
    done



    MCA_rml_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_rml_STATIC_SUBDIRS="$MCA_rml_STATIC_SUBDIRS mca/rml/$item"
    done



    MCA_rml_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_rml_DSO_SUBDIRS="$MCA_rml_DSO_SUBDIRS mca/rml/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/rml/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "rml" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_rml_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "schema" = "common" ; then
                              MCA_orte_FRAMEWORKS="schema $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/schema $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_schema_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_schema_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_schema_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS schema"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/schema"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_schema_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_schema_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_schema_STATIC_SUBDIRS)"
                          fi
                          if test "schema" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/schema/libmca_schema.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_schema_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework schema"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "schema" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/schema/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework schema" >&5
echo $ECHO_N "checking for no configure components in framework schema... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework schema" >&5
echo $ECHO_N "checking for m4 configure components in framework schema... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort



    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/schema/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component schema:$component (need to configure)"


    project=orte
    framework=schema
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_schema" ; then
            if test "$DIRECT_schema" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=schema
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_schema" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/schema/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/schema/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=schema
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_schema" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_schema" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component schema:$component can compile" >&5
echo $ECHO_N "checking if MCA component schema:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_schema" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_schema" ; then
        if test "$DIRECT_schema" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_schema_ALL_COMPONENTS="$all_components"
    MCA_schema_STATIC_COMPONENTS="$static_components"
    MCA_schema_DSO_COMPONENTS="$dso_components"
    MCA_schema_STATIC_LTLIBS="$static_ltlibs"







    MCA_schema_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_schema_ALL_SUBDIRS="$MCA_schema_ALL_SUBDIRS mca/schema/$item"
    done



    MCA_schema_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_schema_STATIC_SUBDIRS="$MCA_schema_STATIC_SUBDIRS mca/schema/$item"
    done



    MCA_schema_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_schema_DSO_SUBDIRS="$MCA_schema_DSO_SUBDIRS mca/schema/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/schema/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "schema" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_schema_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "sds" = "common" ; then
                              MCA_orte_FRAMEWORKS="sds $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/sds $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_sds_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_sds_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_sds_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS sds"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/sds"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_sds_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_sds_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_sds_STATIC_SUBDIRS)"
                          fi
                          if test "sds" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/sds/libmca_sds.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_sds_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework sds"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "sds" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/sds/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework sds" >&5
echo $ECHO_N "checking for no configure components in framework sds... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: env, seed, singleton" >&5
echo "${ECHO_T}env, seed, singleton" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework sds" >&5
echo $ECHO_N "checking for m4 configure components in framework sds... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: bproc, cnos, pipe, portals_utcp, slurm" >&5
echo "${ECHO_T}bproc, cnos, pipe, portals_utcp, slurm" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component sds:env (no configuration)"


    project=orte
    framework=sds
    component=env
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sds" ; then
            if test "$DIRECT_sds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=sds
    component=env

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_sds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=sds
    component=env

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component sds:env can compile" >&5
echo $ECHO_N "checking if MCA component sds:env can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sds" = "env" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_sds" ; then
        if test "$DIRECT_sds" = "env" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components env"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_sds_env_DSO=1
    else
        BUILD_sds_env_DSO=0
    fi


if test "$BUILD_sds_env_DSO" = "1"; then
  OMPI_BUILD_sds_env_DSO_TRUE=
  OMPI_BUILD_sds_env_DSO_FALSE='#'
else
  OMPI_BUILD_sds_env_DSO_TRUE='#'
  OMPI_BUILD_sds_env_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component sds:seed (no configuration)"


    project=orte
    framework=sds
    component=seed
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sds" ; then
            if test "$DIRECT_sds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=sds
    component=seed

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_sds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=sds
    component=seed

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component sds:seed can compile" >&5
echo $ECHO_N "checking if MCA component sds:seed can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sds" = "seed" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"seed\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"seed\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_sds" ; then
        if test "$DIRECT_sds" = "seed" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"seed\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"seed\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components seed"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_sds_seed_DSO=1
    else
        BUILD_sds_seed_DSO=0
    fi


if test "$BUILD_sds_seed_DSO" = "1"; then
  OMPI_BUILD_sds_seed_DSO_TRUE=
  OMPI_BUILD_sds_seed_DSO_FALSE='#'
else
  OMPI_BUILD_sds_seed_DSO_TRUE='#'
  OMPI_BUILD_sds_seed_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component sds:singleton (no configuration)"


    project=orte
    framework=sds
    component=singleton
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sds" ; then
            if test "$DIRECT_sds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=sds
    component=singleton

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_sds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=orte
    framework=sds
    component=singleton

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component sds:singleton can compile" >&5
echo $ECHO_N "checking if MCA component sds:singleton can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sds" = "singleton" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"singleton\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_sds" ; then
        if test "$DIRECT_sds" = "singleton" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"singleton\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components singleton"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_sds_singleton_DSO=1
    else
        BUILD_sds_singleton_DSO=0
    fi


if test "$BUILD_sds_singleton_DSO" = "1"; then
  OMPI_BUILD_sds_singleton_DSO_TRUE=
  OMPI_BUILD_sds_singleton_DSO_FALSE='#'
else
  OMPI_BUILD_sds_singleton_DSO_TRUE='#'
  OMPI_BUILD_sds_singleton_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component sds:bproc (m4 configuration macro)"


    project=orte
    framework=sds
    component=bproc
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sds" ; then
            if test "$DIRECT_sds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=sds
    component=bproc

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_sds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-bproc or --without-bproc was given.
if test "${with_bproc+set}" = set; then
  withval="$with_bproc"

fi;

    if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
  sds_bproc_good=0
else

        ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
        ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
        ompi_check_bproc_save_LIBS="$LIBS"

        if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
               LDFLAGS="$LDFLAGS -L$with_bproc/lib"
fi


for ac_header in sys/bproc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6
if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbproc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bproc_numnodes ();
int
main ()
{
bproc_numnodes ();
  ;
  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
  ac_cv_lib_bproc_bproc_numnodes=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_bproc_bproc_numnodes=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6
if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
  ompi_check_bproc_happy="yes"
else
  ompi_check_bproc_happy="no"
fi

else
  ompi_check_bproc_happy="no"
fi

done


        # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
        if test "$ompi_check_bproc_happy" = "yes"; then

for ac_header in sys/bproc_common.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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#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
 ompi_check_bproc_happy="new"
else
  ompi_check_bproc_happy="old"
fi

done

fi


        CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
        LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
        LIBS="$ompi_check_bproc_save_LIBS"

        if test "$ompi_check_bproc_happy" != "no"; then
  if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  sds_bproc_CPPFLAGS="$sds_bproc_CPPFLAGS -I$with_bproc/include"
                      sds_bproc_LDFLAGS="$sds_bproc_LDFLAGS -L$with_bproc/lib"
fi

               sds_bproc_LIBS="$sds_bproc_LIBS -lbproc"
               if test "$ompi_check_bproc_happy" = "new"; then
  sds_bproc_good=1
else
  sds_bproc_good=1
fi

else
  if test ! -z "$with_bproc"; then
  { { echo "$as_me:$LINENO: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&5
echo "$as_me: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&2;}
   { (exit 1); exit 1; }; }
fi

               sds_bproc_good=0
fi


fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$sds_bproc_good" = "1"; then
  sds_bproc_WRAPPER_EXTRA_LDFLAGS="$sds_bproc_LDFLAGS"
           sds_bproc_WRAPPER_EXTRA_LIBS="$sds_bproc_LIBS"
           should_build=1
else
  should_build=0
fi

    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=sds
    component=bproc

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component sds:bproc can compile" >&5
echo $ECHO_N "checking if MCA component sds:bproc can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sds" = "bproc" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_sds" ; then
        if test "$DIRECT_sds" = "bproc" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components bproc"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_sds_bproc_DSO=1
else
  BUILD_sds_bproc_DSO=0
fi



if test "$BUILD_sds_bproc_DSO" = "1"; then
  OMPI_BUILD_sds_bproc_DSO_TRUE=
  OMPI_BUILD_sds_bproc_DSO_FALSE='#'
else
  OMPI_BUILD_sds_bproc_DSO_TRUE='#'
  OMPI_BUILD_sds_bproc_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component sds:cnos (m4 configuration macro)"


    project=orte
    framework=sds
    component=cnos
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sds" ; then
            if test "$DIRECT_sds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=sds
    component=cnos

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_sds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # check for cnos functions
    echo "$as_me:$LINENO: checking for cnos_get_rank" >&5
echo $ECHO_N "checking for cnos_get_rank... $ECHO_C" >&6
if test "${ac_cv_func_cnos_get_rank+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.  */
/* Define cnos_get_rank to an innocuous variant, in case <limits.h> declares cnos_get_rank.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define cnos_get_rank innocuous_cnos_get_rank

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cnos_get_rank (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef cnos_get_rank

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char cnos_get_rank ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_cnos_get_rank) || defined (__stub___cnos_get_rank)
choke me
#else
char (*f) () = cnos_get_rank;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != cnos_get_rank;
  ;
  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
  ac_cv_func_cnos_get_rank=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_cnos_get_rank=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_cnos_get_rank" >&5
echo "${ECHO_T}$ac_cv_func_cnos_get_rank" >&6
if test $ac_cv_func_cnos_get_rank = yes; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=sds
    component=cnos

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component sds:cnos can compile" >&5
echo $ECHO_N "checking if MCA component sds:cnos can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sds" = "cnos" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_sds" ; then
        if test "$DIRECT_sds" = "cnos" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components cnos"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_sds_cnos_DSO=1
else
  BUILD_sds_cnos_DSO=0
fi



if test "$BUILD_sds_cnos_DSO" = "1"; then
  OMPI_BUILD_sds_cnos_DSO_TRUE=
  OMPI_BUILD_sds_cnos_DSO_FALSE='#'
else
  OMPI_BUILD_sds_cnos_DSO_TRUE='#'
  OMPI_BUILD_sds_cnos_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component sds:pipe (m4 configuration macro)"


    project=orte
    framework=sds
    component=pipe
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sds" ; then
            if test "$DIRECT_sds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=sds
    component=pipe

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_sds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # check for pipe
    echo "$as_me:$LINENO: checking for pipe" >&5
echo $ECHO_N "checking for pipe... $ECHO_C" >&6
if test "${ac_cv_func_pipe+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.  */
/* Define pipe to an innocuous variant, in case <limits.h> declares pipe.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define pipe innocuous_pipe

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pipe (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef pipe

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pipe ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pipe) || defined (__stub___pipe)
choke me
#else
char (*f) () = pipe;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != pipe;
  ;
  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
  ac_cv_func_pipe=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_pipe=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_pipe" >&5
echo "${ECHO_T}$ac_cv_func_pipe" >&6
if test $ac_cv_func_pipe = yes; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=sds
    component=pipe

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component sds:pipe can compile" >&5
echo $ECHO_N "checking if MCA component sds:pipe can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sds" = "pipe" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"pipe\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"pipe\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_sds" ; then
        if test "$DIRECT_sds" = "pipe" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"pipe\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"pipe\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components pipe"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_sds_pipe_DSO=1
else
  BUILD_sds_pipe_DSO=0
fi



if test "$BUILD_sds_pipe_DSO" = "1"; then
  OMPI_BUILD_sds_pipe_DSO_TRUE=
  OMPI_BUILD_sds_pipe_DSO_FALSE='#'
else
  OMPI_BUILD_sds_pipe_DSO_TRUE='#'
  OMPI_BUILD_sds_pipe_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component sds:portals_utcp (m4 configuration macro)"


    project=orte
    framework=sds
    component=portals_utcp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sds" ; then
            if test "$DIRECT_sds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=sds
    component=portals_utcp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_sds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # save compiler flags so that we don't alter them for later
    # components.
    sds_portals_utcp_save_CPPFLAGS="$CPPFLAGS"
    sds_portals_utcp_save_LDFLAGS="$LDFLAGS"
    sds_portals_utcp_save_LIBS="$LIBS"

    # allow user a way to say where the Portals installation is

# Check whether --with-portals or --without-portals was given.
if test "${with_portals+set}" = set; then
  withval="$with_portals"

fi;

    if test -n "$with_portals"; then
  if test -d "$with_portals/include"; then
  sds_portals_utcp_CPPFLAGS="-I$with_portals/include"
                  CPPFLAGS="$CPPFLAGS $sds_portals_utcp_CPPFLAGS"
fi

           if test -d "$with_portals/lib"; then
  sds_portals_utcp_LDFLAGS="-L$with_portals/lib"
                  LDFLAGS="$LDFLAGS $sds_portals_utcp_LDFLAGS"
fi

fi


    # Try to find all the portals libraries (this is not fun!)

# Check whether --with-portals-libs or --without-portals-libs was given.
if test "${with_portals_libs+set}" = set; then
  withval="$with_portals_libs"

fi;
    if test -n "$with_portals_libs" ; then
        sds_portals_utcp_LIBS=""
        for lib in $with_portals_libs ; do
            sds_portals_utcp_LIBS="$sds_portals_utcp_LIBS -l$lib"
        done
    fi

    sds_portals_utcp_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"

    # check for portals
    LIBS="$LIBS $sds_portals_utcp_LIBS"
    echo "$as_me:$LINENO: checking for PtlGetRank" >&5
echo $ECHO_N "checking for PtlGetRank... $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.  */
#include <portals3.h>
#include <stdio.h>
#include <p3nal_utcp.h>
#include <p3rt/p3rt.h>
#include <p3api/debug.h>
FILE *utcp_api_out;
FILE *utcp_lib_out;
int
main ()
{
unsigned int nprocs, rank;
int dummy;
PtlInit(&dummy);
PtlNIInit(PTL_IFACE_DEFAULT, PTL_PID_ANY, NULL, NULL, NULL);
PtlGetRank(PTL_INVALID_HANDLE, &rank, &nprocs);
  ;
  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
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                    should_build=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                    should_build=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext

    # substitute in the things needed to build Portals




    # reset the flags for the next test
    CPPFLAGS="$sds_portals_utcp_save_CPPFLAGS"
    LDFLAGS="$sds_portals_utcp_save_LDFLAGS"
    LIBS="$sds_portals_utcp_save_LIBS"

fi


    if test "$should_build" = "1"; then

    project=orte
    framework=sds
    component=portals_utcp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component sds:portals_utcp can compile" >&5
echo $ECHO_N "checking if MCA component sds:portals_utcp can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sds" = "portals_utcp" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_sds" ; then
        if test "$DIRECT_sds" = "portals_utcp" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components portals_utcp"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_sds_portals_utcp_DSO=1
else
  BUILD_sds_portals_utcp_DSO=0
fi



if test "$BUILD_sds_portals_utcp_DSO" = "1"; then
  OMPI_BUILD_sds_portals_utcp_DSO_TRUE=
  OMPI_BUILD_sds_portals_utcp_DSO_FALSE='#'
else
  OMPI_BUILD_sds_portals_utcp_DSO_TRUE='#'
  OMPI_BUILD_sds_portals_utcp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component sds:slurm (m4 configuration macro)"


    project=orte
    framework=sds
    component=slurm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sds" ; then
            if test "$DIRECT_sds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=sds
    component=slurm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_sds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-slurm or --without-slurm was given.
if test "${with_slurm+set}" = set; then
  withval="$with_slurm"

fi;

    if test "$with_slurm" = "no" ; then
        ompi_check_slurm_happy="no"
    elif test "$with_slurm" = "" ; then
        # unless user asked, only build slurm component on
        # linux systems.
        case $host in
            *-linux*|*-aix*)
                ompi_check_slurm_happy="yes"
                ;;
            *)
                ompi_check_slurm_happy="no"
                ;;
        esac
    else
        ompi_check_slurm_happy="yes"
    fi

    if test "$ompi_check_slurm_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for fork" >&5
echo $ECHO_N "checking for fork... $ECHO_C" >&6
if test "${ac_cv_func_fork+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.  */
/* Define fork to an innocuous variant, in case <limits.h> declares fork.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define fork innocuous_fork

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fork (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef fork

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char fork ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fork) || defined (__stub___fork)
choke me
#else
char (*f) () = fork;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != fork;
  ;
  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
  ac_cv_func_fork=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_fork=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
echo "${ECHO_T}$ac_cv_func_fork" >&6
if test $ac_cv_func_fork = yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for execve" >&5
echo $ECHO_N "checking for execve... $ECHO_C" >&6
if test "${ac_cv_func_execve+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.  */
/* Define execve to an innocuous variant, in case <limits.h> declares execve.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define execve innocuous_execve

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char execve (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef execve

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char execve ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_execve) || defined (__stub___execve)
choke me
#else
char (*f) () = execve;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != execve;
  ;
  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
  ac_cv_func_execve=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_execve=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5
echo "${ECHO_T}$ac_cv_func_execve" >&6
if test $ac_cv_func_execve = yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  echo "$as_me:$LINENO: checking for setpgid" >&5
echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
if test "${ac_cv_func_setpgid+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.  */
/* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define setpgid innocuous_setpgid

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setpgid (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef setpgid

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setpgid ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_setpgid) || defined (__stub___setpgid)
choke me
#else
char (*f) () = setpgid;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != setpgid;
  ;
  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
  ac_cv_func_setpgid=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_setpgid=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
echo "${ECHO_T}$ac_cv_func_setpgid" >&6
if test $ac_cv_func_setpgid = yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  sds_slurm_good=1
else
  sds_slurm_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$sds_slurm_good" = "1"; then
  sds_slurm_WRAPPER_EXTRA_LDFLAGS="$sds_slurm_LDFLAGS"
           sds_slurm_WRAPPER_EXTRA_LIBS="$sds_slurm_LIBS"
           should_build=1
else
  should_build=0
fi


    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=sds
    component=slurm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component sds:slurm can compile" >&5
echo $ECHO_N "checking if MCA component sds:slurm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sds" = "slurm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_sds" ; then
        if test "$DIRECT_sds" = "slurm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components slurm"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_sds_slurm_DSO=1
else
  BUILD_sds_slurm_DSO=0
fi



if test "$BUILD_sds_slurm_DSO" = "1"; then
  OMPI_BUILD_sds_slurm_DSO_TRUE=
  OMPI_BUILD_sds_slurm_DSO_FALSE='#'
else
  OMPI_BUILD_sds_slurm_DSO_TRUE='#'
  OMPI_BUILD_sds_slurm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/sds/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component sds:$component (need to configure)"


    project=orte
    framework=sds
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_sds" ; then
            if test "$DIRECT_sds" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=sds
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_sds" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/sds/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/sds/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=sds
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_sds" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_sds" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component sds:$component can compile" >&5
echo $ECHO_N "checking if MCA component sds:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_sds" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_sds" ; then
        if test "$DIRECT_sds" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_sds_ALL_COMPONENTS="$all_components"
    MCA_sds_STATIC_COMPONENTS="$static_components"
    MCA_sds_DSO_COMPONENTS="$dso_components"
    MCA_sds_STATIC_LTLIBS="$static_ltlibs"







    MCA_sds_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_sds_ALL_SUBDIRS="$MCA_sds_ALL_SUBDIRS mca/sds/$item"
    done



    MCA_sds_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_sds_STATIC_SUBDIRS="$MCA_sds_STATIC_SUBDIRS mca/sds/$item"
    done



    MCA_sds_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_sds_DSO_SUBDIRS="$MCA_sds_DSO_SUBDIRS mca/sds/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/sds/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "sds" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_sds_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "soh" = "common" ; then
                              MCA_orte_FRAMEWORKS="soh $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/soh $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_soh_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_soh_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_soh_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS soh"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/soh"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_soh_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_soh_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_soh_STATIC_SUBDIRS)"
                          fi
                          if test "soh" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/soh/libmca_soh.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_soh_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework soh"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "soh" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/soh/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework soh" >&5
echo $ECHO_N "checking for no configure components in framework soh... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework soh" >&5
echo $ECHO_N "checking for m4 configure components in framework soh... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: bproc" >&5
echo "${ECHO_T}bproc" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort



    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component soh:bproc (m4 configuration macro)"


    project=orte
    framework=soh
    component=bproc
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_soh" ; then
            if test "$DIRECT_soh" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=orte
    framework=soh
    component=bproc

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_soh" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-bproc or --without-bproc was given.
if test "${with_bproc+set}" = set; then
  withval="$with_bproc"

fi;

    if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
  soh_bproc_good=0
else

        ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
        ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
        ompi_check_bproc_save_LIBS="$LIBS"

        if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
               LDFLAGS="$LDFLAGS -L$with_bproc/lib"
fi


for ac_header in sys/bproc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6
if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbproc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char bproc_numnodes ();
int
main ()
{
bproc_numnodes ();
  ;
  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
  ac_cv_lib_bproc_bproc_numnodes=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_bproc_bproc_numnodes=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6
if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
  ompi_check_bproc_happy="yes"
else
  ompi_check_bproc_happy="no"
fi

else
  ompi_check_bproc_happy="no"
fi

done


        # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
        if test "$ompi_check_bproc_happy" = "yes"; then

for ac_header in sys/bproc_common.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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#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
 ompi_check_bproc_happy="new"
else
  ompi_check_bproc_happy="old"
fi

done

fi


        CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
        LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
        LIBS="$ompi_check_bproc_save_LIBS"

        if test "$ompi_check_bproc_happy" != "no"; then
  if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
  soh_bproc_CPPFLAGS="$soh_bproc_CPPFLAGS -I$with_bproc/include"
                      soh_bproc_LDFLAGS="$soh_bproc_LDFLAGS -L$with_bproc/lib"
fi

               soh_bproc_LIBS="$soh_bproc_LIBS -lbproc"
               if test "$ompi_check_bproc_happy" = "new"; then
  soh_bproc_good=1
else
  soh_bproc_good=0
fi

else
  if test ! -z "$with_bproc"; then
  { { echo "$as_me:$LINENO: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&5
echo "$as_me: error: BProc support request but not found.  Perhaps
you need to specify the location of the BProc libraries." >&2;}
   { (exit 1); exit 1; }; }
fi

               soh_bproc_good=0
fi


fi



    #BPROC_API_VERSION was added in bproc 4.0.0, and this component
    #will only compile with >= bproc 4.0.0
    if test "$soh_bproc_good" = "1"; then
  echo "$as_me:$LINENO: checking for BPROC_API_VERSION" >&5
echo $ECHO_N "checking for BPROC_API_VERSION... $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.  */
#include <sys/bproc.h>
int
main ()
{
int foo = BPROC_API_VERSION;
  ;
  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
  have_bproc_api_ver_msg=yes soh_bproc_good=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

have_bproc_api_ver_msg=no  soh_bproc_good=0
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
       echo "$as_me:$LINENO: result: $have_bproc_api_ver_msg" >&5
echo "${ECHO_T}$have_bproc_api_ver_msg" >&6
fi


    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$soh_bproc_good" = "1"; then
  soh_bproc_WRAPPER_EXTRA_LDFLAGS="$soh_bproc_LDFLAGS"
           soh_bproc_WRAPPER_EXTRA_LIBS="$soh_bproc_LIBS"
           should_build=1
else
  should_build=0
fi


    # set build flags to use in makefile




fi


    if test "$should_build" = "1"; then

    project=orte
    framework=soh
    component=bproc

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_soh" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_soh" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component soh:bproc can compile" >&5
echo $ECHO_N "checking if MCA component soh:bproc can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_soh" = "bproc" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_soh" ; then
        if test "$DIRECT_soh" = "bproc" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components bproc"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_soh_bproc_DSO=1
else
  BUILD_soh_bproc_DSO=0
fi



if test "$BUILD_soh_bproc_DSO" = "1"; then
  OMPI_BUILD_soh_bproc_DSO_TRUE=
  OMPI_BUILD_soh_bproc_DSO_FALSE='#'
else
  OMPI_BUILD_soh_bproc_DSO_TRUE='#'
  OMPI_BUILD_soh_bproc_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/orte/mca/soh/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component soh:$component (need to configure)"


    project=orte
    framework=soh
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_soh" ; then
            if test "$DIRECT_soh" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=orte
    framework=soh
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_soh" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/soh/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="orte/mca/soh/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=orte
    framework=soh
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_soh" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_soh" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component soh:$component can compile" >&5
echo $ECHO_N "checking if MCA component soh:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_soh" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_soh" ; then
        if test "$DIRECT_soh" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_soh_ALL_COMPONENTS="$all_components"
    MCA_soh_STATIC_COMPONENTS="$static_components"
    MCA_soh_DSO_COMPONENTS="$dso_components"
    MCA_soh_STATIC_LTLIBS="$static_ltlibs"







    MCA_soh_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_soh_ALL_SUBDIRS="$MCA_soh_ALL_SUBDIRS mca/soh/$item"
    done



    MCA_soh_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_soh_STATIC_SUBDIRS="$MCA_soh_STATIC_SUBDIRS mca/soh/$item"
    done



    MCA_soh_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_soh_DSO_SUBDIRS="$MCA_soh_DSO_SUBDIRS mca/soh/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files orte/mca/soh/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "soh" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_soh_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real








MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS ompi"

    # can't use a variable rename here because these need to be evaled
    # at auto* time.

    ompi_show_subtitle "Configuring MCA for ompi"

    echo "$as_me:$LINENO: checking for frameworks for ompi" >&5
echo $ECHO_N "checking for frameworks for ompi... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: allocator, bml, btl, coll, common, io, mpool, osc, pml, rcache, topo" >&5
echo "${ECHO_T}allocator, bml, btl, coll, common, io, mpool, osc, pml, rcache, topo" >&6

    # iterate through the list of frameworks.  There is something
    # funky with m4 foreach if the list is defined, but empty.  It
    # will call the 3rd argument once with an empty value for the
    # first argument.  Protect against calling MCA_CONFIGURE_FRAMEWORK
    # with an empty second argument.  Grrr....
    # if there isn't a project list, abort
    #
    # Also setup two variables for Makefiles:
    #  MCA_project_FRAMEWORKS     - list of frameworks in that project
    #  MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
    #                               to more libraries) that must be included
    #                               in the project's main library


    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=

    # common has to go up front
                          if test "allocator" = "common" ; then
                              MCA_ompi_FRAMEWORKS="allocator $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/allocator $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_allocator_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_allocator_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_allocator_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS allocator"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/allocator"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_allocator_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_allocator_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_allocator_STATIC_SUBDIRS)"
                          fi
                          if test "allocator" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/allocator/libmca_allocator.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_allocator_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework allocator"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "allocator" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/allocator/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework allocator" >&5
echo $ECHO_N "checking for no configure components in framework allocator... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: basic, bucket" >&5
echo "${ECHO_T}basic, bucket" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework allocator" >&5
echo $ECHO_N "checking for m4 configure components in framework allocator... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component allocator:basic (no configuration)"


    project=ompi
    framework=allocator
    component=basic
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_allocator" ; then
            if test "$DIRECT_allocator" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=allocator
    component=basic

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_allocator" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=allocator
    component=basic

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_allocator" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_allocator" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component allocator:basic can compile" >&5
echo $ECHO_N "checking if MCA component allocator:basic can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_allocator" = "basic" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_allocator" ; then
        if test "$DIRECT_allocator" = "basic" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components basic"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_allocator_basic_DSO=1
    else
        BUILD_allocator_basic_DSO=0
    fi


if test "$BUILD_allocator_basic_DSO" = "1"; then
  OMPI_BUILD_allocator_basic_DSO_TRUE=
  OMPI_BUILD_allocator_basic_DSO_FALSE='#'
else
  OMPI_BUILD_allocator_basic_DSO_TRUE='#'
  OMPI_BUILD_allocator_basic_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component allocator:bucket (no configuration)"


    project=ompi
    framework=allocator
    component=bucket
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_allocator" ; then
            if test "$DIRECT_allocator" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=allocator
    component=bucket

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_allocator" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=allocator
    component=bucket

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_allocator" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_allocator" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component allocator:bucket can compile" >&5
echo $ECHO_N "checking if MCA component allocator:bucket can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_allocator" = "bucket" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"bucket\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_allocator" ; then
        if test "$DIRECT_allocator" = "bucket" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"bucket\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components bucket"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_allocator_bucket_DSO=1
    else
        BUILD_allocator_bucket_DSO=0
    fi


if test "$BUILD_allocator_bucket_DSO" = "1"; then
  OMPI_BUILD_allocator_bucket_DSO_TRUE=
  OMPI_BUILD_allocator_bucket_DSO_FALSE='#'
else
  OMPI_BUILD_allocator_bucket_DSO_TRUE='#'
  OMPI_BUILD_allocator_bucket_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/allocator/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component allocator:$component (need to configure)"


    project=ompi
    framework=allocator
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_allocator" ; then
            if test "$DIRECT_allocator" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=allocator
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_allocator" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/allocator/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/allocator/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=allocator
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_allocator" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_allocator" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component allocator:$component can compile" >&5
echo $ECHO_N "checking if MCA component allocator:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_allocator" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_allocator" ; then
        if test "$DIRECT_allocator" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_allocator_ALL_COMPONENTS="$all_components"
    MCA_allocator_STATIC_COMPONENTS="$static_components"
    MCA_allocator_DSO_COMPONENTS="$dso_components"
    MCA_allocator_STATIC_LTLIBS="$static_ltlibs"







    MCA_allocator_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_allocator_ALL_SUBDIRS="$MCA_allocator_ALL_SUBDIRS mca/allocator/$item"
    done



    MCA_allocator_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_allocator_STATIC_SUBDIRS="$MCA_allocator_STATIC_SUBDIRS mca/allocator/$item"
    done



    MCA_allocator_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_allocator_DSO_SUBDIRS="$MCA_allocator_DSO_SUBDIRS mca/allocator/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/allocator/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "allocator" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_allocator_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "bml" = "common" ; then
                              MCA_ompi_FRAMEWORKS="bml $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/bml $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_bml_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_bml_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_bml_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS bml"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/bml"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_bml_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_bml_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_bml_STATIC_SUBDIRS)"
                          fi
                          if test "bml" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/bml/libmca_bml.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_bml_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework bml"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "bml" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/bml/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework bml" >&5
echo $ECHO_N "checking for no configure components in framework bml... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: r2" >&5
echo "${ECHO_T}r2" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework bml" >&5
echo $ECHO_N "checking for m4 configure components in framework bml... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component bml:r2 (no configuration)"


    project=ompi
    framework=bml
    component=r2
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_bml" ; then
            if test "$DIRECT_bml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=bml
    component=r2

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_bml" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=bml
    component=r2

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_bml" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_bml" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component bml:r2 can compile" >&5
echo $ECHO_N "checking if MCA component bml:r2 can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_bml" = "r2" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"r2\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_bml" ; then
        if test "$DIRECT_bml" = "r2" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"r2\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components r2"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_bml_r2_DSO=1
    else
        BUILD_bml_r2_DSO=0
    fi


if test "$BUILD_bml_r2_DSO" = "1"; then
  OMPI_BUILD_bml_r2_DSO_TRUE=
  OMPI_BUILD_bml_r2_DSO_FALSE='#'
else
  OMPI_BUILD_bml_r2_DSO_TRUE='#'
  OMPI_BUILD_bml_r2_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/bml/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component bml:$component (need to configure)"


    project=ompi
    framework=bml
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_bml" ; then
            if test "$DIRECT_bml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=bml
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_bml" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/bml/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/bml/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=bml
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_bml" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_bml" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component bml:$component can compile" >&5
echo $ECHO_N "checking if MCA component bml:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_bml" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_bml" ; then
        if test "$DIRECT_bml" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_bml_ALL_COMPONENTS="$all_components"
    MCA_bml_STATIC_COMPONENTS="$static_components"
    MCA_bml_DSO_COMPONENTS="$dso_components"
    MCA_bml_STATIC_LTLIBS="$static_ltlibs"







    MCA_bml_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_bml_ALL_SUBDIRS="$MCA_bml_ALL_SUBDIRS mca/bml/$item"
    done



    MCA_bml_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_bml_STATIC_SUBDIRS="$MCA_bml_STATIC_SUBDIRS mca/bml/$item"
    done



    MCA_bml_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_bml_DSO_SUBDIRS="$MCA_bml_DSO_SUBDIRS mca/bml/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/bml/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "bml" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_bml_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "btl" = "common" ; then
                              MCA_ompi_FRAMEWORKS="btl $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/btl $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_btl_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_btl_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_btl_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS btl"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/btl"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_btl_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_btl_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_btl_STATIC_SUBDIRS)"
                          fi
                          if test "btl" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/btl/libmca_btl.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_btl_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework btl"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "btl" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/btl/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework btl" >&5
echo $ECHO_N "checking for no configure components in framework btl... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: self, sm" >&5
echo "${ECHO_T}self, sm" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework btl" >&5
echo $ECHO_N "checking for m4 configure components in framework btl... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: gm, mvapi, mx, openib, portals, tcp" >&5
echo "${ECHO_T}gm, mvapi, mx, openib, portals, tcp" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component btl:self (no configuration)"


    project=ompi
    framework=btl
    component=self
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=btl
    component=self

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_btl" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=btl
    component=self

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component btl:self can compile" >&5
echo $ECHO_N "checking if MCA component btl:self can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "self" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "self" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components self"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_btl_self_DSO=1
    else
        BUILD_btl_self_DSO=0
    fi


if test "$BUILD_btl_self_DSO" = "1"; then
  OMPI_BUILD_btl_self_DSO_TRUE=
  OMPI_BUILD_btl_self_DSO_FALSE='#'
else
  OMPI_BUILD_btl_self_DSO_TRUE='#'
  OMPI_BUILD_btl_self_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component btl:sm (no configuration)"


    project=ompi
    framework=btl
    component=sm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=btl
    component=sm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_btl" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=btl
    component=sm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component btl:sm can compile" >&5
echo $ECHO_N "checking if MCA component btl:sm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "sm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "sm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components sm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_btl_sm_DSO=1
    else
        BUILD_btl_sm_DSO=0
    fi


if test "$BUILD_btl_sm_DSO" = "1"; then
  OMPI_BUILD_btl_sm_DSO_TRUE=
  OMPI_BUILD_btl_sm_DSO_FALSE='#'
else
  OMPI_BUILD_btl_sm_DSO_TRUE='#'
  OMPI_BUILD_btl_sm_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component btl:gm (m4 configuration macro)"


    project=ompi
    framework=btl
    component=gm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=gm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_btl" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-gm or --without-gm was given.
if test "${with_gm+set}" = set; then
  withval="$with_gm"

fi;

# Check whether --with-gm-libdir or --without-gm-libdir was given.
if test "${with_gm_libdir+set}" = set; then
  withval="$with_gm_libdir"

fi;

    if test "$with_gm" != "no"; then
  if test ! -z "$with_gm" -a "$with_gm" != "yes"; then
  ompi_check_gm_dir="$with_gm"
fi

           if test ! -z "$with_gm_libdir" -a "$with_gm_libdir" != "yes"; then
  ompi_check_gm_libdir="$with_gm_libdir"
fi



    ompi_check_package_btl_gm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_gm_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_gm_save_LIBS="$LIBS"

    ompi_check_package_btl_gm_orig_CPPFLAGS="$btl_gm_CPPFLAGS"
    ompi_check_package_btl_gm_orig_LDFLAGS="$btl_gm_LDFLAGS"
    ompi_check_package_btl_gm_orig_LIBS="$btl_gm_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_gm_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_gm_dir" = "/usr" -o "$ompi_check_gm_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_gm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for gm.h" >&5
echo $ECHO_N "checking for gm.h... $ECHO_C" >&6
if test "${ac_cv_header_gm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
echo "${ECHO_T}$ac_cv_header_gm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking gm.h usability" >&5
echo $ECHO_N "checking gm.h usability... $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 <gm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking gm.h presence" >&5
echo $ECHO_N "checking gm.h presence... $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.  */
#include <gm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: gm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for gm.h" >&5
echo $ECHO_N "checking for gm.h... $ECHO_C" >&6
if test "${ac_cv_header_gm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_gm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
echo "${ECHO_T}$ac_cv_header_gm_h" >&6

fi
if test $ac_cv_header_gm_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_gm_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_gm_dir" != ""; then
  btl_gm_CPPFLAGS="$btl_gm_CPPFLAGS -I$ompi_check_gm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_gm_dir/include"
fi

           if test "${ac_cv_header_gm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for gm.h" >&5
echo $ECHO_N "checking for gm.h... $ECHO_C" >&6
if test "${ac_cv_header_gm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
echo "${ECHO_T}$ac_cv_header_gm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking gm.h usability" >&5
echo $ECHO_N "checking gm.h usability... $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 <gm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking gm.h presence" >&5
echo $ECHO_N "checking gm.h presence... $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.  */
#include <gm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: gm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for gm.h" >&5
echo $ECHO_N "checking for gm.h... $ECHO_C" >&6
if test "${ac_cv_header_gm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_gm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
echo "${ECHO_T}$ac_cv_header_gm_h" >&6

fi
if test $ac_cv_header_gm_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_gm_gm_init
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_gm_libdir" != ""; then
   # libdir was specified - search only there
           btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_gm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir"
           echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
                  btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
                  unset ac_cv_lib_gm_gm_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_gm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
                     btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
                     unset ac_cv_lib_gm_gm_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
                          btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
                          unset ac_cv_lib_gm_gm_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
                          btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
                          unset ac_cv_lib_gm_gm_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_gm_gm_init
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_gm_libdir" != ""; then
   # libdir was specified - search only there
           btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_gm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir"
           echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
                  btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
                  unset ac_cv_lib_gm_gm_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_gm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
                     btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
                     unset ac_cv_lib_gm_gm_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
                          btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
                          unset ac_cv_lib_gm_gm_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
                          btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
                          unset ac_cv_lib_gm_gm_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_gm_happy="yes"
           btl_gm_LIBS="-lgm "
else
  btl_gm_CPPFLAGS="$ompi_check_package_btl_gm_orig_CPPFLAGS"
           btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
           btl_gm_LIBS="$ompi_check_package_btl_gm_orig_LIBS"
           ompi_check_gm_happy="no"
fi


    CPPFLAGS="$ompi_check_package_btl_gm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_gm_save_LIBS"

else
  ompi_check_gm_happy="no"
fi


    if test "$ompi_check_gm_happy" = "yes"; then

    u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS="$CPPFLAGS"
    u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS="$LDFLAGS"
    u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS="$LIBS"

    CPPFLAGS="$CPPFLAGS $btl_gm_CPPFLAGS"
    LDFLAGS="$LDFLAGS $btl_gm_LDFLAGS"
    LIBS="$LIBS $btl_gm_LIBS"

    #
    # See if we have GM_API_VERSION.  If we do, use it.  If not, find the
    # highest one available.  It seems that GM_API_VERSION was introduced
    # somewhere after 1.3 but before 1.6. :-\
    #
    echo "$as_me:$LINENO: checking for GM_API_VERSION" >&5
echo $ECHO_N "checking for GM_API_VERSION... $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.  */
#include<gm.h>
int
main ()
{
int foo = GM_API_VERSION;
  ;
  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
  have_gm_api_ver_msg=yes gm_api_ver=GM_API_VERSION
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

have_gm_api_ver_msg=no  gm_api_ver=""
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    echo "$as_me:$LINENO: result: $have_gm_api_ver_msg" >&5
echo "${ECHO_T}$have_gm_api_ver_msg" >&6
    if test "$gm_api_ver" = ""; then
        found=0
        for val in 5 4 3; do
            if test "$found" = "0"; then
                var="GM_API_VERSION_1_$val"
                echo "$as_me:$LINENO: checking for $var" >&5
echo $ECHO_N "checking for $var... $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.  */
#include<gm.h>
int
main ()
{
int foo = $var;
  ;
  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
  msg=yes found=1 gm_api_ver=$var
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

msg=no found=0 gm_api_ver=""
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                echo "$as_me:$LINENO: result: $msg" >&5
echo "${ECHO_T}$msg" >&6
            fi
        done
    fi
    if test "$gm_api_ver" = ""; then
        { echo "$as_me:$LINENO: WARNING: *** Could not find a supported GM_API_VERSION" >&5
echo "$as_me: WARNING: *** Could not find a supported GM_API_VERSION" >&2;}
        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_BTL_GM_API_VERSION $gm_api_ver
_ACEOF

    unset gm_api_ver have_gm_api_ver_msg found val msg

    #
    # Do we have gm_put()?
    # gm_put() was introduced in gm 2.0, and is exactly identical to gm
    # 1.6's gm_directed_send_with_callback().  The name was simply changed
    # for consistency/symmtery with gm_get().
    #
    echo "$as_me:$LINENO: checking for gm_put()" >&5
echo $ECHO_N "checking for gm_put()... $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.  */
#include<gm.h>

int
main ()
{
gm_put(0, 0, 0, 0, 0, 0, 0, 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
  HAVE_RDMA_PUT=1 MSG=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

HAVE_RDMA_PUT=0 MSG="no, use gm_directed_send_with_callback()"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_BTL_GM_HAVE_RDMA_PUT $HAVE_RDMA_PUT
_ACEOF

    echo "$as_me:$LINENO: result: $MSG" >&5
echo "${ECHO_T}$MSG" >&6

    #
    # Do we have gm_get()?
    # gm_get() was introduced in gm 2.0.
    #
    echo "$as_me:$LINENO: checking for gm_get()" >&5
echo $ECHO_N "checking for gm_get()... $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.  */
#include<gm.h>

int
main ()
{
gm_get(0, 0, 0, 0, 0, 0, 0, 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
  HAVE_RDMA_GET=1 MSG=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

HAVE_RDMA_GET=0 MSG=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_BTL_GM_HAVE_RDMA_GET $HAVE_RDMA_GET
_ACEOF

    echo "$as_me:$LINENO: result: $MSG" >&5
echo "${ECHO_T}$MSG" >&6

    # Now test to see if the targetted GM is a broken one broken gm builds
    echo "$as_me:$LINENO: checking for broken GM 2.x RDMA gets build" >&5
echo $ECHO_N "checking for broken GM 2.x RDMA gets build... $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.  */

        #include <gm.h>

int
main ()
{

        #if GM_API_VERSION_2_0 &&                                 \
           ((GM_API_VERSION_2_1_0 && GM_API_VERSION < 0x20102) || \
             GM_API_VERSION < 0x2000c)
          #error GM build is broken
        #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
   mca_gm_broken=0 gm_build_broken=no
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 mca_gm_broken=1 gm_build_broken=yes
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    echo "$as_me:$LINENO: result: $gm_build_broken " >&5
echo "${ECHO_T}$gm_build_broken " >&6

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_BTL_GM_GET_BROKEN $mca_gm_broken
_ACEOF

    unset gm_build_broken mca_gm_broken


cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_BTL_GM_SUPPORT_REGISTERING 1
_ACEOF


    CPPFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS"
    LDFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS"
    LIBS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS"

           btl_gm_happy="yes"
else
  if test ! -z "$with_gm" -a "$with_gm" != "no"; then
  { { echo "$as_me:$LINENO: error: GM support requested but not found.  Aborting" >&5
echo "$as_me: error: GM support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           btl_gm_happy="no"
fi



    if test "$btl_gm_happy" = "yes"; then
  btl_gm_WRAPPER_EXTRA_LDFLAGS="$btl_gm_LDFLAGS"
           btl_gm_WRAPPER_EXTRA_LIBS="$btl_gm_LIBS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build gm





fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=btl
    component=gm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component btl:gm can compile" >&5
echo $ECHO_N "checking if MCA component btl:gm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "gm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "gm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components gm"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_btl_gm_DSO=1
else
  BUILD_btl_gm_DSO=0
fi



if test "$BUILD_btl_gm_DSO" = "1"; then
  OMPI_BUILD_btl_gm_DSO_TRUE=
  OMPI_BUILD_btl_gm_DSO_FALSE='#'
else
  OMPI_BUILD_btl_gm_DSO_TRUE='#'
  OMPI_BUILD_btl_gm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component btl:mvapi (m4 configuration macro)"


    project=ompi
    framework=btl
    component=mvapi
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=mvapi

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_btl" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-mvapi or --without-mvapi was given.
if test "${with_mvapi+set}" = set; then
  withval="$with_mvapi"

fi;

# Check whether --with-mvapi-libdir or --without-mvapi-libdir was given.
if test "${with_mvapi_libdir+set}" = set; then
  withval="$with_mvapi_libdir"

fi;

    if test ! -z "$with_mvapi" -a "$with_mvapi" != "yes"; then
  ompi_check_mvapi_dir="$with_mvapi"
fi

    if test ! -z "$with_mvapi_libdir" -a "$with_mvapi_libdir" != "yes"; then
  ompi_check_mvapi_libdir="$with_mvapi_libdir"
fi


    if test "$with_mvapi" != "no"; then
   # check for pthreads and emit a warning that
            # things might go south...
           if test "$HAVE_POSIX_THREADS" != "1"; then
  { echo "$as_me:$LINENO: WARNING: POSIX threads not enabled.  May not be able to link with mvapi" >&5
echo "$as_me: WARNING: POSIX threads not enabled.  May not be able to link with mvapi" >&2;}
fi


           ompi_check_mvapibtl_mvapi_save_CFLAGS="$CFLAGS"
           ompi_check_mvapibtl_mvapi_save_CPPFLAGS="$CPPFLAGS"

           # ugly hack for topspin which stores include files in include/vapi
           if test -d "$ompi_check_mvapi_dir/include/vapi"; then
  CPPFLAGS="$CPPFLAGS -I $ompi_check_mvapi_dir/include/vapi"
                  btl_mvapi_CPPFLAGS="$btl_mvapi_CPPFLAGS -I $ompi_check_mvapi_dir/include/vapi"
fi


           # some mellanox vapi implemenations only need lvapi and lmosal

    ompi_check_package_btl_mvapi_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_mvapi_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_mvapi_save_LIBS="$LIBS"

    ompi_check_package_btl_mvapi_orig_CPPFLAGS="$btl_mvapi_CPPFLAGS"
    ompi_check_package_btl_mvapi_orig_LDFLAGS="$btl_mvapi_LDFLAGS"
    ompi_check_package_btl_mvapi_orig_LIBS="$btl_mvapi_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_vapi_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_mvapi_dir" = "/usr" -o "$ompi_check_mvapi_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_vapi_h+set}" = set; then
  echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking vapi.h usability" >&5
echo $ECHO_N "checking vapi.h usability... $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 <vapi.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking vapi.h presence" >&5
echo $ECHO_N "checking vapi.h presence... $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.  */
#include <vapi.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: vapi.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_vapi_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6

fi
if test $ac_cv_header_vapi_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_vapi_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_mvapi_dir" != ""; then
  btl_mvapi_CPPFLAGS="$btl_mvapi_CPPFLAGS -I$ompi_check_mvapi_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_mvapi_dir/include"
fi

           if test "${ac_cv_header_vapi_h+set}" = set; then
  echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking vapi.h usability" >&5
echo $ECHO_N "checking vapi.h usability... $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 <vapi.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking vapi.h presence" >&5
echo $ECHO_N "checking vapi.h presence... $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.  */
#include <vapi.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: vapi.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_vapi_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6

fi
if test $ac_cv_header_vapi_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_vapi_VAPI_open_hca
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mvapi_libdir" != ""; then
   # libdir was specified - search only there
           btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
           echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                  btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                  unset ac_cv_lib_vapi_VAPI_open_hca
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mvapi_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                     btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                     unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                          btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                          btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_vapi_VAPI_open_hca
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mvapi_libdir" != ""; then
   # libdir was specified - search only there
           btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
           echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                  btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                  unset ac_cv_lib_vapi_VAPI_open_hca
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mvapi_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                     btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                     unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                          btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                          btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_mvapi_happy="yes"
           btl_mvapi_LIBS="-lvapi -lmosal"
else
  btl_mvapi_CPPFLAGS="$ompi_check_package_btl_mvapi_orig_CPPFLAGS"
           btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
           btl_mvapi_LIBS="$ompi_check_package_btl_mvapi_orig_LIBS"
           ompi_check_mvapi_happy="no"
fi


    CPPFLAGS="$ompi_check_package_btl_mvapi_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_mvapi_save_LIBS"


           # if needed use both lmpga and lmtl_common
           if test "$ompi_check_mvapi_happy" = "no"; then

    ompi_check_package_btl_mvapi_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_mvapi_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_mvapi_save_LIBS="$LIBS"

    ompi_check_package_btl_mvapi_orig_CPPFLAGS="$btl_mvapi_CPPFLAGS"
    ompi_check_package_btl_mvapi_orig_LDFLAGS="$btl_mvapi_LDFLAGS"
    ompi_check_package_btl_mvapi_orig_LIBS="$btl_mvapi_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_vapi_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_mvapi_dir" = "/usr" -o "$ompi_check_mvapi_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_vapi_h+set}" = set; then
  echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking vapi.h usability" >&5
echo $ECHO_N "checking vapi.h usability... $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 <vapi.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking vapi.h presence" >&5
echo $ECHO_N "checking vapi.h presence... $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.  */
#include <vapi.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: vapi.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_vapi_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6

fi
if test $ac_cv_header_vapi_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_vapi_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_mvapi_dir" != ""; then
  btl_mvapi_CPPFLAGS="$btl_mvapi_CPPFLAGS -I$ompi_check_mvapi_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_mvapi_dir/include"
fi

           if test "${ac_cv_header_vapi_h+set}" = set; then
  echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking vapi.h usability" >&5
echo $ECHO_N "checking vapi.h usability... $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 <vapi.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking vapi.h presence" >&5
echo $ECHO_N "checking vapi.h presence... $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.  */
#include <vapi.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: vapi.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_vapi_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6

fi
if test $ac_cv_header_vapi_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_vapi_VAPI_open_hca
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mvapi_libdir" != ""; then
   # libdir was specified - search only there
           btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
           echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                  btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                  unset ac_cv_lib_vapi_VAPI_open_hca
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mvapi_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                     btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                     unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                          btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                          btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_vapi_VAPI_open_hca
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mvapi_libdir" != ""; then
   # libdir was specified - search only there
           btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
           echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                  btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                  unset ac_cv_lib_vapi_VAPI_open_hca
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mvapi_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                     btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                     unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                          btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
                          btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_mvapi_happy="yes"
           btl_mvapi_LIBS="-lvapi -lmosal -lmpga -lmtl_common"
else
  btl_mvapi_CPPFLAGS="$ompi_check_package_btl_mvapi_orig_CPPFLAGS"
           btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
           btl_mvapi_LIBS="$ompi_check_package_btl_mvapi_orig_LIBS"
           ompi_check_mvapi_happy="no"
fi


    CPPFLAGS="$ompi_check_package_btl_mvapi_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_mvapi_save_LIBS"

fi


           if test "$ompi_check_mvapi_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
  { echo "$as_me:$LINENO: WARNING: MVAPI driver does not currently support progress threads.  Disabling BTL." >&5
echo "$as_me: WARNING: MVAPI driver does not currently support progress threads.  Disabling BTL." >&2;}
                  ompi_check_mvapi_happy="no"
fi


           CPPFLAGS="$ompi_check_mvapibtl_mvapi_save_CPPFLAGS"
else
  ompi_check_mvapi_happy="no"
fi


    if test "$ompi_check_mvapi_happy" = "yes"; then
  btl_mvapi_happy="yes"
else
  if test ! -z "$with_mvapi" -a "$with_mvapi" != "no"; then
  { { echo "$as_me:$LINENO: error: MVAPI support requested but not found.  Aborting" >&5
echo "$as_me: error: MVAPI support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           btl_mvapi_happy="no"
fi



    if test "$btl_mvapi_happy" = "yes"; then
  btl_mvapi_WRAPPER_EXTRA_LDFLAGS="$btl_mvapi_LDFLAGS"
           btl_mvapi_WRAPPER_EXTRA_LIBS="$btl_mvapi_LIBS"
           should_build=1
else
  should_build=0
fi


    # Many of the vapi.h files floating around don't obey ISO99 C
    # standard, so cause oodles of warnings with -pedantic and
    # -Wundef.  Remove them from CFLAGS, which is then used to
    # forcefully override CFLAGS in the makefile for MVAPI
    # components
    btl_mvapi_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`"
    btl_mvapi_CFLAGS="`echo $btl_mvapi_CFLAGS | sed 's/-Wundef//g'`"
    if test "$btl_mvapi_CFLAGS" != "$CFLAGS" -a "$btl_mvapi_happy" = "yes"; then
  { echo "$as_me:$LINENO: WARNING: Removed -pedantic and -Wundef from CFLAGS for
mvapi component because some vapi.h files are not really ANSI C" >&5
echo "$as_me: WARNING: Removed -pedantic and -Wundef from CFLAGS for
mvapi component because some vapi.h files are not really ANSI C" >&2;}
fi


    # substitute in the things needed to build mvapi





fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=btl
    component=mvapi

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component btl:mvapi can compile" >&5
echo $ECHO_N "checking if MCA component btl:mvapi can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "mvapi" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"mvapi\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"mvapi\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "mvapi" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"mvapi\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"mvapi\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components mvapi"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_btl_mvapi_DSO=1
else
  BUILD_btl_mvapi_DSO=0
fi



if test "$BUILD_btl_mvapi_DSO" = "1"; then
  OMPI_BUILD_btl_mvapi_DSO_TRUE=
  OMPI_BUILD_btl_mvapi_DSO_FALSE='#'
else
  OMPI_BUILD_btl_mvapi_DSO_TRUE='#'
  OMPI_BUILD_btl_mvapi_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component btl:mx (m4 configuration macro)"


    project=ompi
    framework=btl
    component=mx
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=mx

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_btl" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-mx or --without-mx was given.
if test "${with_mx+set}" = set; then
  withval="$with_mx"

fi;

# Check whether --with-mx-libdir or --without-mx-libdir was given.
if test "${with_mx_libdir+set}" = set; then
  withval="$with_mx_libdir"

fi;

    ompi_check_mx_btl_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_mx_btl_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_mx_btl_mx_save_LIBS="$LIBS"

    if test "$with_mx" != "no"; then
  if test ! -z "$with_mx" -a "$with_mx" != "yes"; then
  ompi_check_mx_dir="$with_mx"
fi

           if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then
  ompi_check_mx_libdir="$with_mx_libdir"
fi



    ompi_check_package_btl_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_mx_save_LIBS="$LIBS"

    ompi_check_package_btl_mx_orig_CPPFLAGS="$btl_mx_CPPFLAGS"
    ompi_check_package_btl_mx_orig_LDFLAGS="$btl_mx_LDFLAGS"
    ompi_check_package_btl_mx_orig_LIBS="$btl_mx_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_myriexpress_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_myriexpress_h+set}" = set; then
  echo "$as_me:$LINENO: checking for myriexpress.h" >&5
echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking myriexpress.h usability" >&5
echo $ECHO_N "checking myriexpress.h usability... $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 <myriexpress.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking myriexpress.h presence" >&5
echo $ECHO_N "checking myriexpress.h presence... $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.  */
#include <myriexpress.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for myriexpress.h" >&5
echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_myriexpress_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6

fi
if test $ac_cv_header_myriexpress_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_myriexpress_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_mx_dir" != ""; then
  btl_mx_CPPFLAGS="$btl_mx_CPPFLAGS -I$ompi_check_mx_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include"
fi

           if test "${ac_cv_header_myriexpress_h+set}" = set; then
  echo "$as_me:$LINENO: checking for myriexpress.h" >&5
echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking myriexpress.h usability" >&5
echo $ECHO_N "checking myriexpress.h usability... $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 <myriexpress.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking myriexpress.h presence" >&5
echo $ECHO_N "checking myriexpress.h presence... $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.  */
#include <myriexpress.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for myriexpress.h" >&5
echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_myriexpress_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6

fi
if test $ac_cv_header_myriexpress_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_myriexpress_mx_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mx_libdir" != ""; then
   # libdir was specified - search only there
           btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_mx_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir"
           echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mx_finalize ();
int
main ()
{
mx_finalize ();
  ;
  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
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6
if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                  btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                  unset ac_cv_lib_myriexpress_mx_finalize
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mx_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mx_finalize ();
int
main ()
{
mx_finalize ();
  ;
  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
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6
if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                     btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                     unset ac_cv_lib_myriexpress_mx_finalize
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mx_finalize ();
int
main ()
{
mx_finalize ();
  ;
  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
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6
if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                          btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mx_finalize ();
int
main ()
{
mx_finalize ();
  ;
  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
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6
if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                          btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_myriexpress_mx_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mx_libdir" != ""; then
   # libdir was specified - search only there
           btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_mx_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir"
           echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mx_finalize ();
int
main ()
{
mx_finalize ();
  ;
  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
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6
if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                  btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                  unset ac_cv_lib_myriexpress_mx_finalize
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mx_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mx_finalize ();
int
main ()
{
mx_finalize ();
  ;
  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
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6
if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                     btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                     unset ac_cv_lib_myriexpress_mx_finalize
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mx_finalize ();
int
main ()
{
mx_finalize ();
  ;
  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
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6
if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                          btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmyriexpress  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mx_finalize ();
int
main ()
{
mx_finalize ();
  ;
  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
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_myriexpress_mx_finalize=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6
if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
                          btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
                          unset ac_cv_lib_myriexpress_mx_finalize
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_mx_happy="yes"
           btl_mx_LIBS="-lmyriexpress "
else
  btl_mx_CPPFLAGS="$ompi_check_package_btl_mx_orig_CPPFLAGS"
           btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
           btl_mx_LIBS="$ompi_check_package_btl_mx_orig_LIBS"
           ompi_check_mx_happy="no"
fi


    CPPFLAGS="$ompi_check_package_btl_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_mx_save_LIBS"

else
  ompi_check_mx_happy="no"
fi


    if test "$ompi_check_mx_happy" = "yes"; then

    #
    # See if we have MX_API. OpenMPI require a MX version bigger than
    # the first MX relase (0x300)
    #

    # restored at end of OMPI_CHECK_MX
    CPPFLAGS="$ompi_check_mx_btl_mx_save_CPPFLAGS $btl_mx_CPPFLAGS"
    LDFLAGS="$ompi_check_mx_btl_mx_save_LDFLAGS $btl_mx_LDFLAGS"
    LIBS="$ompi_check_mx_btl_mx_save_LIBS $btl_mx_LIBS"

    echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5
echo $ECHO_N "checking for MX version 1.0 or later... $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.  */
#include <myriexpress.h>
int
main ()
{
#if MX_API < 0x300
         #error "Version less than 0x300"
         #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
  have_recent_api="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

have_recent_api="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    echo "$as_me:$LINENO: result: $have_recent_api" >&5
echo "${ECHO_T}$have_recent_api" >&6

    echo "$as_me:$LINENO: checking for MX_API" >&5
echo $ECHO_N "checking for MX_API... $ECHO_C" >&6
    if test x"$have_recent_api" = "xyes"; then

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_BTL_MX_API_VERSION $mx_api_ver
_ACEOF

           unset mx_api_ver have_mx_api_ver_msg found val msg
           ompi_check_mx_happy="yes"
else
  ompi_check_mx_happy="no"
fi


fi


    CPPFLAGS="$ompi_check_mx_btl_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_mx_btl_mx_save_LDFLAGS"
    LIBS="$ompi_check_mx_btl_mx_save_LIBS"

    if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
  { echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&5
echo "$as_me: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&2;}
           ompi_check_mx_happy="no"
fi


    if test "$ompi_check_mx_happy" = "yes"; then
  btl_mx_happy="yes"
else
  if test ! -z "$with_mx" -a "$with_mx" != "no"; then
  { { echo "$as_me:$LINENO: error: MX support requested but not found.  Aborting" >&5
echo "$as_me: error: MX support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           btl_mx_happy="no"
fi



    if test "$btl_mx_happy" = "yes"; then
  btl_mx_WRAPPER_EXTRA_LDFLAGS="$btl_mx_LDFLAGS"
           btl_mx_WRAPPER_EXTRA_LIBS="$btl_mx_LIBS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build mx





fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=btl
    component=mx

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component btl:mx can compile" >&5
echo $ECHO_N "checking if MCA component btl:mx can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "mx" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "mx" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components mx"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_btl_mx_DSO=1
else
  BUILD_btl_mx_DSO=0
fi



if test "$BUILD_btl_mx_DSO" = "1"; then
  OMPI_BUILD_btl_mx_DSO_TRUE=
  OMPI_BUILD_btl_mx_DSO_FALSE='#'
else
  OMPI_BUILD_btl_mx_DSO_TRUE='#'
  OMPI_BUILD_btl_mx_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component btl:openib (m4 configuration macro)"


    project=ompi
    framework=btl
    component=openib
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=openib

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_btl" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-openib or --without-openib was given.
if test "${with_openib+set}" = set; then
  withval="$with_openib"

fi;

# Check whether --with-openib-libdir or --without-openib-libdir was given.
if test "${with_openib_libdir+set}" = set; then
  withval="$with_openib_libdir"

fi;

    if test ! -z "$with_openib" -a "$with_openib" != "yes"; then
  ompi_check_openib_dir="$with_openib"
fi

    if test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"; then
  ompi_check_openib_libdir="$with_openib_libdir"
fi

    if test "$with_openib" != "no"; then
   # check for pthreads and emit a warning that things might go south...
         if test "$HAVE_POSIX_THREADS" != "1"; then
  { echo "$as_me:$LINENO: WARNING: POSIX threads not enabled.  May not be able to link with OpenIB" >&5
echo "$as_me: WARNING: POSIX threads not enabled.  May not be able to link with OpenIB" >&2;}
fi


         ompi_check_openib_btl_openib_save_CPPFLAGS="$CPPFLAGS"
         ompi_check_openib_btl_openib_save_LDFLAGS="$LDFLAGS"
         ompi_check_openib_btl_openib_save_LIBS="$LIBS"

         echo "$as_me:$LINENO: checking for sysfs_open_class in -lsysfs" >&5
echo $ECHO_N "checking for sysfs_open_class in -lsysfs... $ECHO_C" >&6
if test "${ac_cv_lib_sysfs_sysfs_open_class+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsysfs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sysfs_open_class ();
int
main ()
{
sysfs_open_class ();
  ;
  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
  ac_cv_lib_sysfs_sysfs_open_class=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_sysfs_sysfs_open_class=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_sysfs_sysfs_open_class" >&5
echo "${ECHO_T}$ac_cv_lib_sysfs_sysfs_open_class" >&6
if test $ac_cv_lib_sysfs_sysfs_open_class = yes; then
  ompi_check_openib_sysfs=yes
                       LIBS="$LIBS -lsysfs"
                       btl_openib_LIBS="-lsysfs"
else
  ompi_check_openib_sysfs=no
fi


         if test "$ompi_check_openib_sysfs" != "yes"; then
  if test ! -z "$with_openib" -a "$with_openib" != "no"; then
  { { echo "$as_me:$LINENO: error: OpenIB support requested but required sysfs not found.  Aborting" >&5
echo "$as_me: error: OpenIB support requested but required sysfs not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

fi


         if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
  echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6
if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking sysfs/libsysfs.h usability" >&5
echo $ECHO_N "checking sysfs/libsysfs.h usability... $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 <sysfs/libsysfs.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking sysfs/libsysfs.h presence" >&5
echo $ECHO_N "checking sysfs/libsysfs.h presence... $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.  */
#include <sysfs/libsysfs.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6
if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_sysfs_libsysfs_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6

fi
if test $ac_cv_header_sysfs_libsysfs_h = yes; then
  ompi_check_openib_sysfs_h=yes
else
  ompi_check_openib_sysfs_h=no
fi



         if test "$ompi_check_openib_sysfs_h" != "yes"; then
  if test ! -z "$with_openib" -a "$with_openib" != "no"; then
  { { echo "$as_me:$LINENO: error: OpenIB support requested but required sysfs/libsysfs.h not found.  Aborting" >&5
echo "$as_me: error: OpenIB support requested but required sysfs/libsysfs.h not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

fi


         if test "$ompi_check_openib_libdir" = ""; then
  ompi_check_openib_my_libdir=$ompi_check_openib_dir
else
  ompi_check_openib_my_libdir=$ompi_check_openib_libdir
fi


         if test -d "$ompi_check_openib_my_libdir/lib64/infiniband"; then
  ompi_check_openib_libflag=" -L$ompi_check_openib_my_libdir/lib64/infiniband"
	        LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib64/infiniband"
else
  if test -d "$ompi_check_openib_my_libdir/lib/infiniband"; then
  ompi_check_openib_libflag=" -L$ompi_check_openib_my_libdir/lib/infiniband"
		       LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib/infiniband"
fi

fi


         if test -d "$ompi_check_openib_my_libdir/lib64"; then
  ompi_check_openib_libflag="$ompi_check_openib_libflag -L$ompi_check_openib_my_libdir/lib64"
	        LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib64"
else
  if test -d "$ompi_check_openib_my_libdir/lib"; then
  ompi_check_openib_libflag="$ompi_check_openib_libflag -L$ompi_check_openib_my_libdir/lib"
		       LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib"
fi

fi


         echo "$as_me:$LINENO: checking for cm_timeout in -lcm" >&5
echo $ECHO_N "checking for cm_timeout in -lcm... $ECHO_C" >&6
if test "${ac_cv_lib_cm_cm_timeout+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char cm_timeout ();
int
main ()
{
cm_timeout ();
  ;
  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
  ac_cv_lib_cm_cm_timeout=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_cm_cm_timeout=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_cm_cm_timeout" >&5
echo "${ECHO_T}$ac_cv_lib_cm_cm_timeout" >&6
if test $ac_cv_lib_cm_cm_timeout = yes; then
  ompi_check_openib_libdeps="-lcm"
                      ompi_check_openib_libdeps=""
fi



    ompi_check_package_btl_openib_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_openib_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_openib_save_LIBS="$LIBS"

    ompi_check_package_btl_openib_orig_CPPFLAGS="$btl_openib_CPPFLAGS"
    ompi_check_package_btl_openib_orig_LDFLAGS="$btl_openib_LDFLAGS"
    ompi_check_package_btl_openib_orig_LIBS="$btl_openib_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_infiniband_verbs_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_openib_dir" = "/usr" -o "$ompi_check_openib_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
echo $ECHO_N "checking infiniband/verbs.h usability... $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 <infiniband/verbs.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
echo $ECHO_N "checking infiniband/verbs.h presence... $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.  */
#include <infiniband/verbs.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_infiniband_verbs_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6

fi
if test $ac_cv_header_infiniband_verbs_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_infiniband_verbs_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_openib_dir" != ""; then
  btl_openib_CPPFLAGS="$btl_openib_CPPFLAGS -I$ompi_check_openib_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_openib_dir/include"
fi

           if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
echo $ECHO_N "checking infiniband/verbs.h usability... $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 <infiniband/verbs.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
echo $ECHO_N "checking infiniband/verbs.h presence... $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.  */
#include <infiniband/verbs.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_infiniband_verbs_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6

fi
if test $ac_cv_header_infiniband_verbs_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ibverbs_ibv_open_device
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_openib_libdir" != ""; then
   # libdir was specified - search only there
           btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_openib_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
           echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                  btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                  unset ac_cv_lib_ibverbs_ibv_open_device
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_openib_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                     btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                     unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                          btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                          btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ibverbs_ibv_open_device
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_openib_libdir" != ""; then
   # libdir was specified - search only there
           btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_openib_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
           echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                  btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                  unset ac_cv_lib_ibverbs_ibv_open_device
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_openib_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                     btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                     unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                          btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
                          btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_openib_happy="yes"
           btl_openib_LIBS="-libverbs $ompi_check_openib_libdeps"
else
  btl_openib_CPPFLAGS="$ompi_check_package_btl_openib_orig_CPPFLAGS"
           btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
           btl_openib_LIBS="$ompi_check_package_btl_openib_orig_LIBS"
           ompi_check_openib_happy="no"
fi


    CPPFLAGS="$ompi_check_package_btl_openib_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_openib_save_LIBS"


         # ok, now see if ibv_create_cq takes 3 arguments or 6
         CPPFLAGS="$CPPFLAGS $btl_openib_CPPFLAGS"
         LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS"
         LIBS="$LIBS $btl_openib_LIBS"

         if test "$ompi_check_openib_happy" = "yes"; then
  echo "$as_me:$LINENO: checking number of arguments to ibv_create_cq" >&5
echo $ECHO_N "checking number of arguments to ibv_create_cq... $ECHO_C" >&6
if test "${ompi_cv_func_ibv_create_cq_args+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 <infiniband/verbs.h>
int
main ()
{
ibv_create_cq(NULL, 0, NULL, NULL, 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_func_ibv_create_cq_args=5
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.  */
#include <infiniband/verbs.h>
int
main ()
{
ibv_create_cq(NULL, 0, NULL);
  ;
  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_func_ibv_create_cq_args=3
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_func_ibv_create_cq_args="unknown"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_func_ibv_create_cq_args" >&5
echo "${ECHO_T}$ompi_cv_func_ibv_create_cq_args" >&6
            if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then
  { { echo "$as_me:$LINENO: error: Can not determine number of args to ibv_create_cq.  Aborting" >&5
echo "$as_me: error: Can not determine number of args to ibv_create_cq.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
else

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_BTL_OPENIB_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args
_ACEOF

fi

fi



for ac_func in ibv_create_srq
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 ompi_check_openib_have_srq=1
else
  ompi_check_openib_have_srq=0
fi
done


cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_BTL_OPENIB_HAVE_SRQ $ompi_check_openib_have_srq
_ACEOF



for ac_func in ibv_get_device_list
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 ompi_check_openib_have_device_list=1
else
  ompi_check_openib_have_device_list=0
fi
done


cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_BTL_OPENIB_HAVE_DEVICE_LIST $ompi_check_openib_have_device_list
_ACEOF


         CPPFLAGS="$ompi_check_openib_btl_openib_save_CPPFLAGS"
         LDFLAGS="$ompi_check_openib_btl_openib_save_LDFLAGS"
         LIBS="$ompi_check_openib_btl_openib_save_LIBS"
else
  ompi_check_openib_happy="no"
fi


    if test "$ompi_check_openib_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
  { echo "$as_me:$LINENO: WARNING: OpenIB driver does not currently support progress threads.  Disabling BTL." >&5
echo "$as_me: WARNING: OpenIB driver does not currently support progress threads.  Disabling BTL." >&2;}
           ompi_check_openib_happy="no"
fi


    if test "$ompi_check_openib_happy" = "yes"; then
  btl_openib_happy="yes"
else
  if test ! -z "$with_openib" -a "$with_openib" != "no"; then
  { { echo "$as_me:$LINENO: error: OpenIB support requested but not found.  Aborting" >&5
echo "$as_me: error: OpenIB support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           btl_openib_happy="no"
fi


    btl_openib_LDFLAGS="$btl_openib_LDFLAGS $ompi_check_openib_libflag"


    if test "$btl_openib_happy" = "yes"; then
  btl_openib_WRAPPER_EXTRA_LDFLAGS="$btl_openib_LDFLAGS"
           btl_openib_WRAPPER_EXTRA_LIBS="$btl_openib_LIBS"
           should_build=1
else
  should_build=0
fi



    # substitute in the things needed to build openib





fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=btl
    component=openib

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component btl:openib can compile" >&5
echo $ECHO_N "checking if MCA component btl:openib can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "openib" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "openib" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components openib"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_btl_openib_DSO=1
else
  BUILD_btl_openib_DSO=0
fi



if test "$BUILD_btl_openib_DSO" = "1"; then
  OMPI_BUILD_btl_openib_DSO_TRUE=
  OMPI_BUILD_btl_openib_DSO_FALSE='#'
else
  OMPI_BUILD_btl_openib_DSO_TRUE='#'
  OMPI_BUILD_btl_openib_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component btl:portals (m4 configuration macro)"


    project=ompi
    framework=btl
    component=portals
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=portals

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_btl" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # save compiler flags so that we don't alter them for later
    # components.
    btl_portals_save_CPPFLAGS="$CPPFLAGS"
    btl_portals_save_LDFLAGS="$LDFLAGS"
    btl_portals_save_LIBS="$LIBS"

    # allow user a way to say where the Portals installation is

# Check whether --with-portals or --without-portals was given.
if test "${with_portals+set}" = set; then
  withval="$with_portals"

fi;

    if test -n "$with_portals"; then
  if test -d "$with_portals/include"; then
  btl_portals_CPPFLAGS="-I$with_portals/include"
                  CPPFLAGS="$CPPFLAGS $btl_portals_CPPFLAGS"
fi

           if test -d "$with_portals/lib"; then
  btl_portals_LDFLAGS="-L$with_portals/lib"
                  LDFLAGS="$LDFLAGS $btl_portals_LDFLAGS"
fi

fi


    # try to get our platform configuration

    # Configure Portals for our local environment
    BTL_PORTALS_UTCP=0
    BTL_PORTALS_REDSTORM=0
    BTL_PORTALS_COMPAT=""
    BTL_PORTALS_HAVE_EVENT_UNLINK=0
    btl_portals_compat="none"
    btl_portals_header_prefix=
    btl_portals_starting_table_id=0

# Check whether --with-portals-config or --without-portals-config was given.
if test "${with_portals_config+set}" = set; then
  withval="$with_portals_config"

fi;
    echo "$as_me:$LINENO: checking for Portals configuration" >&5
echo $ECHO_N "checking for Portals configuration... $ECHO_C" >&6
    if test "$with_portals_config" = "" ; then
        with_portals_config="utcp"
    fi
    case "$with_portals_config" in
        "utcp")
            BTL_PORTALS_UTCP=1
            BTL_PORTALS_HAVE_EVENT_UNLINK=1
            btl_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"
            btl_portals_compat="utcp"
            btl_portals_header_prefix=
            btl_portals_starting_table_id=0
            echo "$as_me:$LINENO: result: utcp" >&5
echo "${ECHO_T}utcp" >&6
            ;;
        "redstorm")
            BTL_PORTALS_REDSTORM=1
            BTL_PORTALS_HAVE_EVENT_UNLINK=0
            btl_portals_LIBS=
            btl_portals_compat="redstorm"
            btl_portals_header_prefix="portals/"
            btl_portals_starting_table_id=30
            echo "$as_me:$LINENO: result: red storm" >&5
echo "${ECHO_T}red storm" >&6
            ;;
        *)
            # ok to call ERROR here - the user specified something invalid.
            # that should be brought to his attention
            { { echo "$as_me:$LINENO: error: unknown Portals configuration.  Can not continue" >&5
echo "$as_me: error: unknown Portals configuration.  Can not continue" >&2;}
   { (exit 1); exit 1; }; }
            ;;
    esac

    # Try to find all the portals libraries (this is not fun!)

# Check whether --with-portals-libs or --without-portals-libs was given.
if test "${with_portals_libs+set}" = set; then
  withval="$with_portals_libs"

fi;
    if test -n "$with_portals_libs" ; then
        btl_portals_LIBS=""
        for lib in $with_portals_libs ; do
            btl_portals_LIBS="$btl_portals_LIBS -l$lib"
        done
    fi


cat >>confdefs.h <<_ACEOF
#define OMPI_BTL_PORTALS_HAVE_EVENT_UNLINK $BTL_PORTALS_HAVE_EVENT_UNLINK
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_BTL_PORTALS_UTCP $BTL_PORTALS_UTCP
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_BTL_PORTALS_REDSTORM $BTL_PORTALS_REDSTORM
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OMPI_BTL_PORTALS_STARTING_TABLE_ID $btl_portals_starting_table_id
_ACEOF


              ac_config_links="$ac_config_links ompi/mca/btl/portals/btl_portals_compat.c:ompi/mca/btl/portals/btl_portals_compat_${btl_portals_compat}.c"



    # check for portals
    LIBS="$LIBS $btl_portals_LIBS"

for ac_header in ${btl_portals_header_prefix}portals3.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 echo "$as_me:$LINENO: checking if possible to link Portals application" >&5
echo $ECHO_N "checking if possible to link Portals application... $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.  */
#include <${btl_portals_header_prefix}portals3.h>
int
main ()
{
int i; PtlInit(&i);
  ;
  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
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
               btl_portals_WRAPPER_EXTRA_LDFLAGS="$btl_portals_LDFLAGS"
               btl_portals_WRAPPER_EXTRA_LIBS="$btl_portals_LIBS"
               should_build=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
               should_build=0
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
else
  should_build=0
fi

done


    # substitute in the things needed to build Portals




    # reset the flags for the next test
    CPPFLAGS="$btl_portals_save_CPPFLAGS"
    LDFLAGS="$btl_portals_save_LDFLAGS"
    LIBS="$btl_portals_save_LIBS"

fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=btl
    component=portals

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component btl:portals can compile" >&5
echo $ECHO_N "checking if MCA component btl:portals can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "portals" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "portals" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components portals"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_btl_portals_DSO=1
else
  BUILD_btl_portals_DSO=0
fi



if test "$BUILD_btl_portals_DSO" = "1"; then
  OMPI_BUILD_btl_portals_DSO_TRUE=
  OMPI_BUILD_btl_portals_DSO_FALSE='#'
else
  OMPI_BUILD_btl_portals_DSO_TRUE='#'
  OMPI_BUILD_btl_portals_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component btl:tcp (m4 configuration macro)"


    project=ompi
    framework=btl
    component=tcp
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=btl
    component=tcp

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_btl" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # check for sockaddr_in (a good sign we have TCP)
    echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5
echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_in+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
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if ((struct sockaddr_in *) 0)
  return 0;
if (sizeof (struct sockaddr_in))
  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_struct_sockaddr_in=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_struct_sockaddr_in=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6
if test $ac_cv_type_struct_sockaddr_in = yes; then

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN 1
_ACEOF

should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=btl
    component=tcp

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component btl:tcp can compile" >&5
echo $ECHO_N "checking if MCA component btl:tcp can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "tcp" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "tcp" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components tcp"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_btl_tcp_DSO=1
else
  BUILD_btl_tcp_DSO=0
fi



if test "$BUILD_btl_tcp_DSO" = "1"; then
  OMPI_BUILD_btl_tcp_DSO_TRUE=
  OMPI_BUILD_btl_tcp_DSO_FALSE='#'
else
  OMPI_BUILD_btl_tcp_DSO_TRUE='#'
  OMPI_BUILD_btl_tcp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/btl/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component btl:$component (need to configure)"


    project=ompi
    framework=btl
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_btl" ; then
            if test "$DIRECT_btl" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=btl
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_btl" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/btl/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/btl/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=btl
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_btl" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_btl" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component btl:$component can compile" >&5
echo $ECHO_N "checking if MCA component btl:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_btl_ALL_COMPONENTS="$all_components"
    MCA_btl_STATIC_COMPONENTS="$static_components"
    MCA_btl_DSO_COMPONENTS="$dso_components"
    MCA_btl_STATIC_LTLIBS="$static_ltlibs"







    MCA_btl_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_btl_ALL_SUBDIRS="$MCA_btl_ALL_SUBDIRS mca/btl/$item"
    done



    MCA_btl_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_btl_STATIC_SUBDIRS="$MCA_btl_STATIC_SUBDIRS mca/btl/$item"
    done



    MCA_btl_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_btl_DSO_SUBDIRS="$MCA_btl_DSO_SUBDIRS mca/btl/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/btl/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "btl" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_btl_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "coll" = "common" ; then
                              MCA_ompi_FRAMEWORKS="coll $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/coll $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_coll_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_coll_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_coll_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS coll"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/coll"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_coll_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_coll_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_coll_STATIC_SUBDIRS)"
                          fi
                          if test "coll" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/coll/libmca_coll.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_coll_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework coll"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "coll" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/coll/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework coll" >&5
echo $ECHO_N "checking for no configure components in framework coll... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: basic, hierarch, self, sm, tuned" >&5
echo "${ECHO_T}basic, hierarch, self, sm, tuned" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework coll" >&5
echo $ECHO_N "checking for m4 configure components in framework coll... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component coll:basic (no configuration)"


    project=ompi
    framework=coll
    component=basic
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=coll
    component=basic

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_coll" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=coll
    component=basic

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component coll:basic can compile" >&5
echo $ECHO_N "checking if MCA component coll:basic can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "basic" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "basic" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components basic"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_basic_DSO=1
    else
        BUILD_coll_basic_DSO=0
    fi


if test "$BUILD_coll_basic_DSO" = "1"; then
  OMPI_BUILD_coll_basic_DSO_TRUE=
  OMPI_BUILD_coll_basic_DSO_FALSE='#'
else
  OMPI_BUILD_coll_basic_DSO_TRUE='#'
  OMPI_BUILD_coll_basic_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:hierarch (no configuration)"


    project=ompi
    framework=coll
    component=hierarch
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=coll
    component=hierarch

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_coll" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=coll
    component=hierarch

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component coll:hierarch can compile" >&5
echo $ECHO_N "checking if MCA component coll:hierarch can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "hierarch" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"hierarch\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "hierarch" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"hierarch\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components hierarch"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_hierarch_DSO=1
    else
        BUILD_coll_hierarch_DSO=0
    fi


if test "$BUILD_coll_hierarch_DSO" = "1"; then
  OMPI_BUILD_coll_hierarch_DSO_TRUE=
  OMPI_BUILD_coll_hierarch_DSO_FALSE='#'
else
  OMPI_BUILD_coll_hierarch_DSO_TRUE='#'
  OMPI_BUILD_coll_hierarch_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:self (no configuration)"


    project=ompi
    framework=coll
    component=self
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=coll
    component=self

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_coll" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=coll
    component=self

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component coll:self can compile" >&5
echo $ECHO_N "checking if MCA component coll:self can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "self" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "self" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components self"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_self_DSO=1
    else
        BUILD_coll_self_DSO=0
    fi


if test "$BUILD_coll_self_DSO" = "1"; then
  OMPI_BUILD_coll_self_DSO_TRUE=
  OMPI_BUILD_coll_self_DSO_FALSE='#'
else
  OMPI_BUILD_coll_self_DSO_TRUE='#'
  OMPI_BUILD_coll_self_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:sm (no configuration)"


    project=ompi
    framework=coll
    component=sm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=coll
    component=sm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_coll" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=coll
    component=sm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component coll:sm can compile" >&5
echo $ECHO_N "checking if MCA component coll:sm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "sm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "sm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components sm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_sm_DSO=1
    else
        BUILD_coll_sm_DSO=0
    fi


if test "$BUILD_coll_sm_DSO" = "1"; then
  OMPI_BUILD_coll_sm_DSO_TRUE=
  OMPI_BUILD_coll_sm_DSO_FALSE='#'
else
  OMPI_BUILD_coll_sm_DSO_TRUE='#'
  OMPI_BUILD_coll_sm_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:tuned (no configuration)"


    project=ompi
    framework=coll
    component=tuned
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=coll
    component=tuned

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_coll" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=coll
    component=tuned

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component coll:tuned can compile" >&5
echo $ECHO_N "checking if MCA component coll:tuned can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "tuned" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"tuned\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "tuned" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"tuned\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components tuned"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_tuned_DSO=1
    else
        BUILD_coll_tuned_DSO=0
    fi


if test "$BUILD_coll_tuned_DSO" = "1"; then
  OMPI_BUILD_coll_tuned_DSO_TRUE=
  OMPI_BUILD_coll_tuned_DSO_FALSE='#'
else
  OMPI_BUILD_coll_tuned_DSO_TRUE='#'
  OMPI_BUILD_coll_tuned_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/coll/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component coll:$component (need to configure)"


    project=ompi
    framework=coll
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_coll" ; then
            if test "$DIRECT_coll" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=coll
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_coll" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/coll/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/coll/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=coll
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_coll" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_coll" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component coll:$component can compile" >&5
echo $ECHO_N "checking if MCA component coll:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_coll_ALL_COMPONENTS="$all_components"
    MCA_coll_STATIC_COMPONENTS="$static_components"
    MCA_coll_DSO_COMPONENTS="$dso_components"
    MCA_coll_STATIC_LTLIBS="$static_ltlibs"







    MCA_coll_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_coll_ALL_SUBDIRS="$MCA_coll_ALL_SUBDIRS mca/coll/$item"
    done



    MCA_coll_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_coll_STATIC_SUBDIRS="$MCA_coll_STATIC_SUBDIRS mca/coll/$item"
    done



    MCA_coll_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_coll_DSO_SUBDIRS="$MCA_coll_DSO_SUBDIRS mca/coll/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/coll/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "coll" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_coll_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "common" = "common" ; then
                              MCA_ompi_FRAMEWORKS="common $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/common $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_common_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_common_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_common_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS common"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/common"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_common_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_common_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_common_STATIC_SUBDIRS)"
                          fi
                          if test "common" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/common/libmca_common.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_common_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework common"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "common" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/common/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework common" >&5
echo $ECHO_N "checking for no configure components in framework common... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: sm" >&5
echo "${ECHO_T}sm" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework common" >&5
echo $ECHO_N "checking for m4 configure components in framework common... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component common:sm (no configuration)"


    project=ompi
    framework=common
    component=sm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_common" ; then
            if test "$DIRECT_common" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=common
    component=sm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_common" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=common
    component=sm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_common" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_common" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component common:sm can compile" >&5
echo $ECHO_N "checking if MCA component common:sm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_common" = "sm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_common" ; then
        if test "$DIRECT_common" = "sm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components sm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_common_sm_DSO=1
    else
        BUILD_common_sm_DSO=0
    fi


if test "$BUILD_common_sm_DSO" = "1"; then
  OMPI_BUILD_common_sm_DSO_TRUE=
  OMPI_BUILD_common_sm_DSO_FALSE='#'
else
  OMPI_BUILD_common_sm_DSO_TRUE='#'
  OMPI_BUILD_common_sm_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/common/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component common:$component (need to configure)"


    project=ompi
    framework=common
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_common" ; then
            if test "$DIRECT_common" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=common
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_common" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/common/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/common/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=common
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_common" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_common" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component common:$component can compile" >&5
echo $ECHO_N "checking if MCA component common:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_common" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_common" ; then
        if test "$DIRECT_common" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_common_ALL_COMPONENTS="$all_components"
    MCA_common_STATIC_COMPONENTS="$static_components"
    MCA_common_DSO_COMPONENTS="$dso_components"
    MCA_common_STATIC_LTLIBS="$static_ltlibs"







    MCA_common_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_common_ALL_SUBDIRS="$MCA_common_ALL_SUBDIRS mca/common/$item"
    done



    MCA_common_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_common_STATIC_SUBDIRS="$MCA_common_STATIC_SUBDIRS mca/common/$item"
    done



    MCA_common_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_common_DSO_SUBDIRS="$MCA_common_DSO_SUBDIRS mca/common/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/common/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "common" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_common_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "io" = "common" ; then
                              MCA_ompi_FRAMEWORKS="io $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/io $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_io_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_io_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_io_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS io"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/io"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_io_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_io_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_io_STATIC_SUBDIRS)"
                          fi
                          if test "io" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/io/libmca_io.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_io_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework io"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "io" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/io/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework io" >&5
echo $ECHO_N "checking for no configure components in framework io... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework io" >&5
echo $ECHO_N "checking for m4 configure components in framework io... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: romio" >&5
echo "${ECHO_T}romio" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort



    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component io:romio (m4 configuration macro)"


    project=ompi
    framework=io
    component=romio
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_io" ; then
            if test "$DIRECT_io" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=io
    component=romio

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_io" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then

    # Check whether --enable-io-romio or --disable-io-romio was given.
if test "${enable_io_romio+set}" = set; then
  enableval="$enable_io_romio"

fi;

# Check whether --with-io-romio-flags or --without-io-romio-flags was given.
if test "${with_io_romio_flags+set}" = set; then
  withval="$with_io_romio_flags"

fi;
    echo "$as_me:$LINENO: checking if want ROMIO component" >&5
echo $ECHO_N "checking if want ROMIO component... $ECHO_C" >&6
    if test "$enable_io_romio" = "no"; then
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
            should_build=0
else
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
            echo "$as_me:$LINENO: checking if MPI profiling is enabled" >&5
echo $ECHO_N "checking if MPI profiling is enabled... $ECHO_C" >&6
            if test "$enable_mpi_profile" = "no"; then
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                   { echo "$as_me:$LINENO: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&5
echo "$as_me: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&2;}
                   if test "$enable_io_romio" = "yes"; then
  { { echo "$as_me:$LINENO: error: *** ROMIO requested but not available.  Aborting" >&5
echo "$as_me: error: *** ROMIO requested but not available.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

                   should_build=0
else
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

                   if test -n "$with_io_romio_flags" -a "$with_io_romio_flags" != "no"; then
  io_romio_flags="$with_io_romio_flags $io_romio_flags"
else
  io_romio_flags=
fi

                   # If ROMIO is going to end up in a DSO, all we need is
                   # shared library-ized objects, as we're only building a
                   # DSO (which is always shared).  Otherwise, build with
                   # same flags as OMPI, as we might need any combination of
                   # shared and static-ized objects...
                   if test "$compile_mode" = "dso"; then
  io_romio_shared=enable
                          io_romio_static=disable
else
  if test "$enable_shared" = "yes"; then
  io_romio_shared=enable
else
  io_romio_shared=disable
fi

                          if test "$enable_static" = "yes"; then
  io_romio_static=enable
else
  io_romio_static=disable
fi

fi

                   if test -n "$prefix" -a "$prefix" != "NONE"; then
  io_romio_prefix_arg="--prefix=$prefix"
else
  io_romio_prefix_arg=
fi


                   if test "$cross_compiling" = "yes"; then
  if test ! -z $build; then
  io_romio_flags="$io_romio_flags --build=$build"
fi

                        if test ! -z $host; then
  io_romio_flags="$io_romio_flags --host=$host"
fi

                        if test ! -z $target; then
  io_romio_flags="$io_romio_flags --target=$target"
fi

fi

                   io_romio_flags="$io_romio_flags CFLAGS="'"'"$CFLAGS"'"'" CPPFLAGS="'"'"$CPPFLAGS"'"'" FFLAGS="'"'"$FFLAGS"'"'" LDFLAGS="'"'"$LDFLAGS"'"'" --$io_romio_shared-shared --$io_romio_static-static $io_romio_flags $io_romio_prefix_arg --with-mpi=open_mpi"

                   ompi_show_subtitle "Configuring ROMIO distribution"

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/io/romio/romio is the directory to invoke in
# $io_romio_flags is the list of arguments to pass
# io_romio_happy=1 is actions to execute upon success
# io_romio_happy=0 is actions to execute upon failure
#
subdir_dir="ompi/mca/io/romio/romio"
subdir_args="$io_romio_flags"
subdir_success="io_romio_happy=1"
subdir_failure="io_romio_happy=0"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp

                   if test "$io_romio_happy" = "1"; then
   # grab the libraries list from ROMIO.  We don't
                           # need this for building the component, as libtool
                           # will figure that part out.  But we do need it for
                           # the wrapper settings
                          io_romio_save_LIBS="$LIBS"
                          LIBS=
                          . ompi/mca/io/romio/romio/localdefs
                          io_romio_LIBS="$LIBS"
                          LIBS="$io_romio_save_LIBS"

                          echo "ROMIO distribution configured successfully"
                          io_romio_WRAPPER_EXTRA_LIBS="$io_romio_LIBS"
                          should_build=1
else
  if test "$enable_io_romio" = "yes"; then
  { { echo "$as_me:$LINENO: error: ROMIO distribution did not configure successfully" >&5
echo "$as_me: error: ROMIO distribution did not configure successfully" >&2;}
   { (exit 1); exit 1; }; }
else
  { echo "$as_me:$LINENO: WARNING: ROMIO distribution did not configure successfully" >&5
echo "$as_me: WARNING: ROMIO distribution did not configure successfully" >&2;}
fi

                          should_build=0
fi

fi

fi


fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=io
    component=romio

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_io" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_io" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component io:romio can compile" >&5
echo $ECHO_N "checking if MCA component io:romio can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_io" = "romio" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"romio\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_io" ; then
        if test "$DIRECT_io" = "romio" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"romio\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components romio"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_io_romio_DSO=1
else
  BUILD_io_romio_DSO=0
fi



if test "$BUILD_io_romio_DSO" = "1"; then
  OMPI_BUILD_io_romio_DSO_TRUE=
  OMPI_BUILD_io_romio_DSO_FALSE='#'
else
  OMPI_BUILD_io_romio_DSO_TRUE='#'
  OMPI_BUILD_io_romio_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/io/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component io:$component (need to configure)"


    project=ompi
    framework=io
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_io" ; then
            if test "$DIRECT_io" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=io
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_io" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/io/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/io/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=io
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_io" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_io" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component io:$component can compile" >&5
echo $ECHO_N "checking if MCA component io:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_io" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_io" ; then
        if test "$DIRECT_io" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_io_ALL_COMPONENTS="$all_components"
    MCA_io_STATIC_COMPONENTS="$static_components"
    MCA_io_DSO_COMPONENTS="$dso_components"
    MCA_io_STATIC_LTLIBS="$static_ltlibs"







    MCA_io_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_io_ALL_SUBDIRS="$MCA_io_ALL_SUBDIRS mca/io/$item"
    done



    MCA_io_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_io_STATIC_SUBDIRS="$MCA_io_STATIC_SUBDIRS mca/io/$item"
    done



    MCA_io_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_io_DSO_SUBDIRS="$MCA_io_DSO_SUBDIRS mca/io/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/io/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "io" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_io_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "mpool" = "common" ; then
                              MCA_ompi_FRAMEWORKS="mpool $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/mpool $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_mpool_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_mpool_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_mpool_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS mpool"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/mpool"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_mpool_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_mpool_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_mpool_STATIC_SUBDIRS)"
                          fi
                          if test "mpool" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/mpool/libmca_mpool.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_mpool_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework mpool"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "mpool" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/mpool/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework mpool" >&5
echo $ECHO_N "checking for no configure components in framework mpool... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: sm" >&5
echo "${ECHO_T}sm" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework mpool" >&5
echo $ECHO_N "checking for m4 configure components in framework mpool... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: gm, mvapi, openib" >&5
echo "${ECHO_T}gm, mvapi, openib" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component mpool:sm (no configuration)"


    project=ompi
    framework=mpool
    component=sm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mpool" ; then
            if test "$DIRECT_mpool" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=mpool
    component=sm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_mpool" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=mpool
    component=sm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mpool" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mpool" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component mpool:sm can compile" >&5
echo $ECHO_N "checking if MCA component mpool:sm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "sm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "sm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components sm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_mpool_sm_DSO=1
    else
        BUILD_mpool_sm_DSO=0
    fi


if test "$BUILD_mpool_sm_DSO" = "1"; then
  OMPI_BUILD_mpool_sm_DSO_TRUE=
  OMPI_BUILD_mpool_sm_DSO_FALSE='#'
else
  OMPI_BUILD_mpool_sm_DSO_TRUE='#'
  OMPI_BUILD_mpool_sm_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component mpool:gm (m4 configuration macro)"


    project=ompi
    framework=mpool
    component=gm
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mpool" ; then
            if test "$DIRECT_mpool" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=mpool
    component=gm

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_mpool" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-gm or --without-gm was given.
if test "${with_gm+set}" = set; then
  withval="$with_gm"

fi;

# Check whether --with-gm-libdir or --without-gm-libdir was given.
if test "${with_gm_libdir+set}" = set; then
  withval="$with_gm_libdir"

fi;

    if test "$with_gm" != "no"; then
  if test ! -z "$with_gm" -a "$with_gm" != "yes"; then
  ompi_check_gm_dir="$with_gm"
fi

           if test ! -z "$with_gm_libdir" -a "$with_gm_libdir" != "yes"; then
  ompi_check_gm_libdir="$with_gm_libdir"
fi



    ompi_check_package_mpool_gm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_mpool_gm_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_mpool_gm_save_LIBS="$LIBS"

    ompi_check_package_mpool_gm_orig_CPPFLAGS="$mpool_gm_CPPFLAGS"
    ompi_check_package_mpool_gm_orig_LDFLAGS="$mpool_gm_LDFLAGS"
    ompi_check_package_mpool_gm_orig_LIBS="$mpool_gm_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_gm_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_gm_dir" = "/usr" -o "$ompi_check_gm_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_gm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for gm.h" >&5
echo $ECHO_N "checking for gm.h... $ECHO_C" >&6
if test "${ac_cv_header_gm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
echo "${ECHO_T}$ac_cv_header_gm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking gm.h usability" >&5
echo $ECHO_N "checking gm.h usability... $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 <gm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking gm.h presence" >&5
echo $ECHO_N "checking gm.h presence... $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.  */
#include <gm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: gm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for gm.h" >&5
echo $ECHO_N "checking for gm.h... $ECHO_C" >&6
if test "${ac_cv_header_gm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_gm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
echo "${ECHO_T}$ac_cv_header_gm_h" >&6

fi
if test $ac_cv_header_gm_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_gm_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_gm_dir" != ""; then
  mpool_gm_CPPFLAGS="$mpool_gm_CPPFLAGS -I$ompi_check_gm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_gm_dir/include"
fi

           if test "${ac_cv_header_gm_h+set}" = set; then
  echo "$as_me:$LINENO: checking for gm.h" >&5
echo $ECHO_N "checking for gm.h... $ECHO_C" >&6
if test "${ac_cv_header_gm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
echo "${ECHO_T}$ac_cv_header_gm_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking gm.h usability" >&5
echo $ECHO_N "checking gm.h usability... $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 <gm.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking gm.h presence" >&5
echo $ECHO_N "checking gm.h presence... $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.  */
#include <gm.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: gm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for gm.h" >&5
echo $ECHO_N "checking for gm.h... $ECHO_C" >&6
if test "${ac_cv_header_gm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_gm_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
echo "${ECHO_T}$ac_cv_header_gm_h" >&6

fi
if test $ac_cv_header_gm_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_gm_gm_init
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_gm_libdir" != ""; then
   # libdir was specified - search only there
           mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_gm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir"
           echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
                  mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
                  unset ac_cv_lib_gm_gm_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_gm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
                     mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
                     unset ac_cv_lib_gm_gm_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
                          mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
                          unset ac_cv_lib_gm_gm_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
                          mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
                          unset ac_cv_lib_gm_gm_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_gm_gm_init
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_gm_libdir" != ""; then
   # libdir was specified - search only there
           mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_gm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir"
           echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
                  mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
                  unset ac_cv_lib_gm_gm_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_gm_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
                     mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
                     unset ac_cv_lib_gm_gm_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
                          mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
                          unset ac_cv_lib_gm_gm_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gm_init ();
int
main ()
{
gm_init ();
  ;
  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
  ac_cv_lib_gm_gm_init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_gm_gm_init=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6
if test $ac_cv_lib_gm_gm_init = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
                          mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
                          unset ac_cv_lib_gm_gm_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_gm_happy="yes"
           mpool_gm_LIBS="-lgm "
else
  mpool_gm_CPPFLAGS="$ompi_check_package_mpool_gm_orig_CPPFLAGS"
           mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
           mpool_gm_LIBS="$ompi_check_package_mpool_gm_orig_LIBS"
           ompi_check_gm_happy="no"
fi


    CPPFLAGS="$ompi_check_package_mpool_gm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
    LIBS="$ompi_check_package_mpool_gm_save_LIBS"

else
  ompi_check_gm_happy="no"
fi


    if test "$ompi_check_gm_happy" = "yes"; then

    u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS="$CPPFLAGS"
    u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS="$LDFLAGS"
    u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS="$LIBS"

    CPPFLAGS="$CPPFLAGS $mpool_gm_CPPFLAGS"
    LDFLAGS="$LDFLAGS $mpool_gm_LDFLAGS"
    LIBS="$LIBS $mpool_gm_LIBS"

    #
    # See if we have GM_API_VERSION.  If we do, use it.  If not, find the
    # highest one available.  It seems that GM_API_VERSION was introduced
    # somewhere after 1.3 but before 1.6. :-\
    #
    echo "$as_me:$LINENO: checking for GM_API_VERSION" >&5
echo $ECHO_N "checking for GM_API_VERSION... $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.  */
#include<gm.h>
int
main ()
{
int foo = GM_API_VERSION;
  ;
  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
  have_gm_api_ver_msg=yes gm_api_ver=GM_API_VERSION
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

have_gm_api_ver_msg=no  gm_api_ver=""
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    echo "$as_me:$LINENO: result: $have_gm_api_ver_msg" >&5
echo "${ECHO_T}$have_gm_api_ver_msg" >&6
    if test "$gm_api_ver" = ""; then
        found=0
        for val in 5 4 3; do
            if test "$found" = "0"; then
                var="GM_API_VERSION_1_$val"
                echo "$as_me:$LINENO: checking for $var" >&5
echo $ECHO_N "checking for $var... $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.  */
#include<gm.h>
int
main ()
{
int foo = $var;
  ;
  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
  msg=yes found=1 gm_api_ver=$var
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

msg=no found=0 gm_api_ver=""
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
                echo "$as_me:$LINENO: result: $msg" >&5
echo "${ECHO_T}$msg" >&6
            fi
        done
    fi
    if test "$gm_api_ver" = ""; then
        { echo "$as_me:$LINENO: WARNING: *** Could not find a supported GM_API_VERSION" >&5
echo "$as_me: WARNING: *** Could not find a supported GM_API_VERSION" >&2;}
        { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_MPOOL_GM_API_VERSION $gm_api_ver
_ACEOF

    unset gm_api_ver have_gm_api_ver_msg found val msg

    #
    # Do we have gm_put()?
    # gm_put() was introduced in gm 2.0, and is exactly identical to gm
    # 1.6's gm_directed_send_with_callback().  The name was simply changed
    # for consistency/symmtery with gm_get().
    #
    echo "$as_me:$LINENO: checking for gm_put()" >&5
echo $ECHO_N "checking for gm_put()... $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.  */
#include<gm.h>

int
main ()
{
gm_put(0, 0, 0, 0, 0, 0, 0, 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
  HAVE_RDMA_PUT=1 MSG=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

HAVE_RDMA_PUT=0 MSG="no, use gm_directed_send_with_callback()"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_MPOOL_GM_HAVE_RDMA_PUT $HAVE_RDMA_PUT
_ACEOF

    echo "$as_me:$LINENO: result: $MSG" >&5
echo "${ECHO_T}$MSG" >&6

    #
    # Do we have gm_get()?
    # gm_get() was introduced in gm 2.0.
    #
    echo "$as_me:$LINENO: checking for gm_get()" >&5
echo $ECHO_N "checking for gm_get()... $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.  */
#include<gm.h>

int
main ()
{
gm_get(0, 0, 0, 0, 0, 0, 0, 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
  HAVE_RDMA_GET=1 MSG=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

HAVE_RDMA_GET=0 MSG=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_MPOOL_GM_HAVE_RDMA_GET $HAVE_RDMA_GET
_ACEOF

    echo "$as_me:$LINENO: result: $MSG" >&5
echo "${ECHO_T}$MSG" >&6

    # Now test to see if the targetted GM is a broken one broken gm builds
    echo "$as_me:$LINENO: checking for broken GM 2.x RDMA gets build" >&5
echo $ECHO_N "checking for broken GM 2.x RDMA gets build... $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.  */

        #include <gm.h>

int
main ()
{

        #if GM_API_VERSION_2_0 &&                                 \
           ((GM_API_VERSION_2_1_0 && GM_API_VERSION < 0x20102) || \
             GM_API_VERSION < 0x2000c)
          #error GM build is broken
        #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
   mca_gm_broken=0 gm_build_broken=no
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 mca_gm_broken=1 gm_build_broken=yes
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    echo "$as_me:$LINENO: result: $gm_build_broken " >&5
echo "${ECHO_T}$gm_build_broken " >&6

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_MPOOL_GM_GET_BROKEN $mca_gm_broken
_ACEOF

    unset gm_build_broken mca_gm_broken


cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_MPOOL_GM_SUPPORT_REGISTERING 1
_ACEOF


    CPPFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS"
    LDFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS"
    LIBS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS"

           mpool_gm_happy="yes"
else
  if test ! -z "$with_gm" -a "$with_gm" != "no"; then
  { { echo "$as_me:$LINENO: error: GM support requested but not found.  Aborting" >&5
echo "$as_me: error: GM support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           mpool_gm_happy="no"
fi



    if test "$mpool_gm_happy" = "yes"; then
  mpool_gm_WRAPPER_EXTRA_LDFLAGS="$mpool_gm_LDFLAGS"
           mpool_gm_WRAPPER_EXTRA_LIBS="$mpool_gm_LIBS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build gm





fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=mpool
    component=gm

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mpool" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mpool" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component mpool:gm can compile" >&5
echo $ECHO_N "checking if MCA component mpool:gm can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "gm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "gm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components gm"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_mpool_gm_DSO=1
else
  BUILD_mpool_gm_DSO=0
fi



if test "$BUILD_mpool_gm_DSO" = "1"; then
  OMPI_BUILD_mpool_gm_DSO_TRUE=
  OMPI_BUILD_mpool_gm_DSO_FALSE='#'
else
  OMPI_BUILD_mpool_gm_DSO_TRUE='#'
  OMPI_BUILD_mpool_gm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component mpool:mvapi (m4 configuration macro)"


    project=ompi
    framework=mpool
    component=mvapi
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mpool" ; then
            if test "$DIRECT_mpool" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=mpool
    component=mvapi

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_mpool" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-mvapi or --without-mvapi was given.
if test "${with_mvapi+set}" = set; then
  withval="$with_mvapi"

fi;

# Check whether --with-mvapi-libdir or --without-mvapi-libdir was given.
if test "${with_mvapi_libdir+set}" = set; then
  withval="$with_mvapi_libdir"

fi;

    if test ! -z "$with_mvapi" -a "$with_mvapi" != "yes"; then
  ompi_check_mvapi_dir="$with_mvapi"
fi

    if test ! -z "$with_mvapi_libdir" -a "$with_mvapi_libdir" != "yes"; then
  ompi_check_mvapi_libdir="$with_mvapi_libdir"
fi


    if test "$with_mvapi" != "no"; then
   # check for pthreads and emit a warning that
            # things might go south...
           if test "$HAVE_POSIX_THREADS" != "1"; then
  { echo "$as_me:$LINENO: WARNING: POSIX threads not enabled.  May not be able to link with mvapi" >&5
echo "$as_me: WARNING: POSIX threads not enabled.  May not be able to link with mvapi" >&2;}
fi


           ompi_check_mvapimpool_mvapi_save_CFLAGS="$CFLAGS"
           ompi_check_mvapimpool_mvapi_save_CPPFLAGS="$CPPFLAGS"

           # ugly hack for topspin which stores include files in include/vapi
           if test -d "$ompi_check_mvapi_dir/include/vapi"; then
  CPPFLAGS="$CPPFLAGS -I $ompi_check_mvapi_dir/include/vapi"
                  mpool_mvapi_CPPFLAGS="$mpool_mvapi_CPPFLAGS -I $ompi_check_mvapi_dir/include/vapi"
fi


           # some mellanox vapi implemenations only need lvapi and lmosal

    ompi_check_package_mpool_mvapi_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_mpool_mvapi_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_mpool_mvapi_save_LIBS="$LIBS"

    ompi_check_package_mpool_mvapi_orig_CPPFLAGS="$mpool_mvapi_CPPFLAGS"
    ompi_check_package_mpool_mvapi_orig_LDFLAGS="$mpool_mvapi_LDFLAGS"
    ompi_check_package_mpool_mvapi_orig_LIBS="$mpool_mvapi_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_vapi_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_mvapi_dir" = "/usr" -o "$ompi_check_mvapi_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_vapi_h+set}" = set; then
  echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking vapi.h usability" >&5
echo $ECHO_N "checking vapi.h usability... $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 <vapi.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking vapi.h presence" >&5
echo $ECHO_N "checking vapi.h presence... $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.  */
#include <vapi.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: vapi.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_vapi_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6

fi
if test $ac_cv_header_vapi_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_vapi_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_mvapi_dir" != ""; then
  mpool_mvapi_CPPFLAGS="$mpool_mvapi_CPPFLAGS -I$ompi_check_mvapi_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_mvapi_dir/include"
fi

           if test "${ac_cv_header_vapi_h+set}" = set; then
  echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking vapi.h usability" >&5
echo $ECHO_N "checking vapi.h usability... $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 <vapi.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking vapi.h presence" >&5
echo $ECHO_N "checking vapi.h presence... $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.  */
#include <vapi.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: vapi.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_vapi_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6

fi
if test $ac_cv_header_vapi_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_vapi_VAPI_open_hca
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mvapi_libdir" != ""; then
   # libdir was specified - search only there
           mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
           echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                  mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                  unset ac_cv_lib_vapi_VAPI_open_hca
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mvapi_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                     mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                     unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                          mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                          mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_vapi_VAPI_open_hca
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mvapi_libdir" != ""; then
   # libdir was specified - search only there
           mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
           echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                  mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                  unset ac_cv_lib_vapi_VAPI_open_hca
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mvapi_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                     mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                     unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                          mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                          mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_mvapi_happy="yes"
           mpool_mvapi_LIBS="-lvapi -lmosal"
else
  mpool_mvapi_CPPFLAGS="$ompi_check_package_mpool_mvapi_orig_CPPFLAGS"
           mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
           mpool_mvapi_LIBS="$ompi_check_package_mpool_mvapi_orig_LIBS"
           ompi_check_mvapi_happy="no"
fi


    CPPFLAGS="$ompi_check_package_mpool_mvapi_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
    LIBS="$ompi_check_package_mpool_mvapi_save_LIBS"


           # if needed use both lmpga and lmtl_common
           if test "$ompi_check_mvapi_happy" = "no"; then

    ompi_check_package_mpool_mvapi_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_mpool_mvapi_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_mpool_mvapi_save_LIBS="$LIBS"

    ompi_check_package_mpool_mvapi_orig_CPPFLAGS="$mpool_mvapi_CPPFLAGS"
    ompi_check_package_mpool_mvapi_orig_LDFLAGS="$mpool_mvapi_LDFLAGS"
    ompi_check_package_mpool_mvapi_orig_LIBS="$mpool_mvapi_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_vapi_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_mvapi_dir" = "/usr" -o "$ompi_check_mvapi_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_vapi_h+set}" = set; then
  echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking vapi.h usability" >&5
echo $ECHO_N "checking vapi.h usability... $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 <vapi.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking vapi.h presence" >&5
echo $ECHO_N "checking vapi.h presence... $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.  */
#include <vapi.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: vapi.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_vapi_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6

fi
if test $ac_cv_header_vapi_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_vapi_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_mvapi_dir" != ""; then
  mpool_mvapi_CPPFLAGS="$mpool_mvapi_CPPFLAGS -I$ompi_check_mvapi_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_mvapi_dir/include"
fi

           if test "${ac_cv_header_vapi_h+set}" = set; then
  echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking vapi.h usability" >&5
echo $ECHO_N "checking vapi.h usability... $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 <vapi.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking vapi.h presence" >&5
echo $ECHO_N "checking vapi.h presence... $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.  */
#include <vapi.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: vapi.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: vapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for vapi.h" >&5
echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6
if test "${ac_cv_header_vapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_vapi_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
echo "${ECHO_T}$ac_cv_header_vapi_h" >&6

fi
if test $ac_cv_header_vapi_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_vapi_VAPI_open_hca
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mvapi_libdir" != ""; then
   # libdir was specified - search only there
           mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
           echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                  mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                  unset ac_cv_lib_vapi_VAPI_open_hca
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mvapi_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                     mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                     unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                          mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                          mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_vapi_VAPI_open_hca
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_mvapi_libdir" != ""; then
   # libdir was specified - search only there
           mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
           echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                  mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                  unset ac_cv_lib_vapi_VAPI_open_hca
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_mvapi_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                     mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                     unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                          mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6
if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char VAPI_open_hca ();
int
main ()
{
VAPI_open_hca ();
  ;
  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
  ac_cv_lib_vapi_VAPI_open_hca=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_vapi_VAPI_open_hca=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6
if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
                          mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
                          unset ac_cv_lib_vapi_VAPI_open_hca
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_mvapi_happy="yes"
           mpool_mvapi_LIBS="-lvapi -lmosal -lmpga -lmtl_common"
else
  mpool_mvapi_CPPFLAGS="$ompi_check_package_mpool_mvapi_orig_CPPFLAGS"
           mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
           mpool_mvapi_LIBS="$ompi_check_package_mpool_mvapi_orig_LIBS"
           ompi_check_mvapi_happy="no"
fi


    CPPFLAGS="$ompi_check_package_mpool_mvapi_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
    LIBS="$ompi_check_package_mpool_mvapi_save_LIBS"

fi


           if test "$ompi_check_mvapi_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
  { echo "$as_me:$LINENO: WARNING: MVAPI driver does not currently support progress threads.  Disabling BTL." >&5
echo "$as_me: WARNING: MVAPI driver does not currently support progress threads.  Disabling BTL." >&2;}
                  ompi_check_mvapi_happy="no"
fi


           CPPFLAGS="$ompi_check_mvapimpool_mvapi_save_CPPFLAGS"
else
  ompi_check_mvapi_happy="no"
fi


    if test "$ompi_check_mvapi_happy" = "yes"; then
  mpool_mvapi_happy="yes"
else
  if test ! -z "$with_mvapi" -a "$with_mvapi" != "no"; then
  { { echo "$as_me:$LINENO: error: MVAPI support requested but not found.  Aborting" >&5
echo "$as_me: error: MVAPI support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           mpool_mvapi_happy="no"
fi



    if test "$mpool_mvapi_happy" = "yes"; then
  mpool_mvapi_WRAPPER_EXTRA_LDFLAGS="$mpool_mvapi_LDFLAGS"
           mpool_mvapi_WRAPPER_EXTRA_LIBS="$mpool_mvapi_LIBS"
           should_build=1
else
  should_build=0
fi


    # Many of the vapi.h files floating around don't obey ISO99 C
    # standard, so cause oodles of warnings with -pedantic and
    # -Wundef.  Remove them from CFLAGS, which is then used to
    # forcefully override CFLAGS in the makefile for MVAPI
    # components
    mpool_mvapi_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`"
    mpool_mvapi_CFLAGS="`echo $mpool_mvapi_CFLAGS | sed 's/-Wundef//g'`"
    if test "$mpool_mvapi_CFLAGS" != "$CFLAGS" -a "$mpool_mvapi_happy" = "yes"; then
  { echo "$as_me:$LINENO: WARNING: Removed -pedantic and -Wundef from CFLAGS for
mvapi component because some vapi.h files are not really ANSI C" >&5
echo "$as_me: WARNING: Removed -pedantic and -Wundef from CFLAGS for
mvapi component because some vapi.h files are not really ANSI C" >&2;}
fi


    # substitute in the things needed to build Portals





fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=mpool
    component=mvapi

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mpool" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mpool" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component mpool:mvapi can compile" >&5
echo $ECHO_N "checking if MCA component mpool:mvapi can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "mvapi" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"mvapi\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"mvapi\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "mvapi" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"mvapi\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"mvapi\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components mvapi"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_mpool_mvapi_DSO=1
else
  BUILD_mpool_mvapi_DSO=0
fi



if test "$BUILD_mpool_mvapi_DSO" = "1"; then
  OMPI_BUILD_mpool_mvapi_DSO_TRUE=
  OMPI_BUILD_mpool_mvapi_DSO_FALSE='#'
else
  OMPI_BUILD_mpool_mvapi_DSO_TRUE='#'
  OMPI_BUILD_mpool_mvapi_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component mpool:openib (m4 configuration macro)"


    project=ompi
    framework=mpool
    component=openib
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mpool" ; then
            if test "$DIRECT_mpool" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi


    # Allow the component to override the build mode if it really wants to.
    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE

    project=ompi
    framework=mpool
    component=openib

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_mpool" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    # try to configure the component.  pay no attention to
    # --enable-dist, since we'll always have makefiles.
    if test "$should_build" = "1"; then



# Check whether --with-openib or --without-openib was given.
if test "${with_openib+set}" = set; then
  withval="$with_openib"

fi;

# Check whether --with-openib-libdir or --without-openib-libdir was given.
if test "${with_openib_libdir+set}" = set; then
  withval="$with_openib_libdir"

fi;

    if test ! -z "$with_openib" -a "$with_openib" != "yes"; then
  ompi_check_openib_dir="$with_openib"
fi

    if test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"; then
  ompi_check_openib_libdir="$with_openib_libdir"
fi

    if test "$with_openib" != "no"; then
   # check for pthreads and emit a warning that things might go south...
         if test "$HAVE_POSIX_THREADS" != "1"; then
  { echo "$as_me:$LINENO: WARNING: POSIX threads not enabled.  May not be able to link with OpenIB" >&5
echo "$as_me: WARNING: POSIX threads not enabled.  May not be able to link with OpenIB" >&2;}
fi


         ompi_check_openib_mpool_openib_save_CPPFLAGS="$CPPFLAGS"
         ompi_check_openib_mpool_openib_save_LDFLAGS="$LDFLAGS"
         ompi_check_openib_mpool_openib_save_LIBS="$LIBS"

         echo "$as_me:$LINENO: checking for sysfs_open_class in -lsysfs" >&5
echo $ECHO_N "checking for sysfs_open_class in -lsysfs... $ECHO_C" >&6
if test "${ac_cv_lib_sysfs_sysfs_open_class+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsysfs  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sysfs_open_class ();
int
main ()
{
sysfs_open_class ();
  ;
  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
  ac_cv_lib_sysfs_sysfs_open_class=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_sysfs_sysfs_open_class=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_sysfs_sysfs_open_class" >&5
echo "${ECHO_T}$ac_cv_lib_sysfs_sysfs_open_class" >&6
if test $ac_cv_lib_sysfs_sysfs_open_class = yes; then
  ompi_check_openib_sysfs=yes
                       LIBS="$LIBS -lsysfs"
                       mpool_openib_LIBS="-lsysfs"
else
  ompi_check_openib_sysfs=no
fi


         if test "$ompi_check_openib_sysfs" != "yes"; then
  if test ! -z "$with_openib" -a "$with_openib" != "no"; then
  { { echo "$as_me:$LINENO: error: OpenIB support requested but required sysfs not found.  Aborting" >&5
echo "$as_me: error: OpenIB support requested but required sysfs not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

fi


         if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
  echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6
if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking sysfs/libsysfs.h usability" >&5
echo $ECHO_N "checking sysfs/libsysfs.h usability... $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 <sysfs/libsysfs.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking sysfs/libsysfs.h presence" >&5
echo $ECHO_N "checking sysfs/libsysfs.h presence... $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.  */
#include <sysfs/libsysfs.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6
if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_sysfs_libsysfs_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6

fi
if test $ac_cv_header_sysfs_libsysfs_h = yes; then
  ompi_check_openib_sysfs_h=yes
else
  ompi_check_openib_sysfs_h=no
fi



         if test "$ompi_check_openib_sysfs_h" != "yes"; then
  if test ! -z "$with_openib" -a "$with_openib" != "no"; then
  { { echo "$as_me:$LINENO: error: OpenIB support requested but required sysfs/libsysfs.h not found.  Aborting" >&5
echo "$as_me: error: OpenIB support requested but required sysfs/libsysfs.h not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

fi


         if test "$ompi_check_openib_libdir" = ""; then
  ompi_check_openib_my_libdir=$ompi_check_openib_dir
else
  ompi_check_openib_my_libdir=$ompi_check_openib_libdir
fi


         if test -d "$ompi_check_openib_my_libdir/lib64/infiniband"; then
  ompi_check_openib_libflag=" -L$ompi_check_openib_my_libdir/lib64/infiniband"
	        LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib64/infiniband"
else
  if test -d "$ompi_check_openib_my_libdir/lib/infiniband"; then
  ompi_check_openib_libflag=" -L$ompi_check_openib_my_libdir/lib/infiniband"
		       LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib/infiniband"
fi

fi


         if test -d "$ompi_check_openib_my_libdir/lib64"; then
  ompi_check_openib_libflag="$ompi_check_openib_libflag -L$ompi_check_openib_my_libdir/lib64"
	        LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib64"
else
  if test -d "$ompi_check_openib_my_libdir/lib"; then
  ompi_check_openib_libflag="$ompi_check_openib_libflag -L$ompi_check_openib_my_libdir/lib"
		       LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib"
fi

fi


         echo "$as_me:$LINENO: checking for cm_timeout in -lcm" >&5
echo $ECHO_N "checking for cm_timeout in -lcm... $ECHO_C" >&6
if test "${ac_cv_lib_cm_cm_timeout+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char cm_timeout ();
int
main ()
{
cm_timeout ();
  ;
  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
  ac_cv_lib_cm_cm_timeout=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_cm_cm_timeout=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_cm_cm_timeout" >&5
echo "${ECHO_T}$ac_cv_lib_cm_cm_timeout" >&6
if test $ac_cv_lib_cm_cm_timeout = yes; then
  ompi_check_openib_libdeps="-lcm"
                      ompi_check_openib_libdeps=""
fi



    ompi_check_package_mpool_openib_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_mpool_openib_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_mpool_openib_save_LIBS="$LIBS"

    ompi_check_package_mpool_openib_orig_CPPFLAGS="$mpool_openib_CPPFLAGS"
    ompi_check_package_mpool_openib_orig_LDFLAGS="$mpool_openib_LDFLAGS"
    ompi_check_package_mpool_openib_orig_LIBS="$mpool_openib_LIBS"


    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering


    # so this sucks, but there's no way to get through the progression
    # of header includes without killing off the cache variable and trying
    # again...
    unset ac_cv_header_infiniband_verbs_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_openib_dir" = "/usr" -o "$ompi_check_openib_dir" = "/usr/local"; then
   # try as is...
            echo "$as_me:$LINENO: result: looking for header without includes" >&5
echo "${ECHO_T}looking for header without includes" >&6
            if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
echo $ECHO_N "checking infiniband/verbs.h usability... $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 <infiniband/verbs.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
echo $ECHO_N "checking infiniband/verbs.h presence... $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.  */
#include <infiniband/verbs.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_infiniband_verbs_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6

fi
if test $ac_cv_header_infiniband_verbs_h = yes; then
  ompi_check_package_header_happy="yes"
else
  ompi_check_package_header_happy="no"
fi


            if test "$ompi_check_package_header_happy" = "no"; then
  # no go on the as is - reset the cache and try again
                   unset ac_cv_header_infiniband_verbs_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_openib_dir" != ""; then
  mpool_openib_CPPFLAGS="$mpool_openib_CPPFLAGS -I$ompi_check_openib_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_openib_dir/include"
fi

           if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
echo $ECHO_N "checking infiniband/verbs.h usability... $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 <infiniband/verbs.h>
_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_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
echo $ECHO_N "checking infiniband/verbs.h presence... $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.  */
#include <infiniband/verbs.h>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_infiniband_verbs_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6

fi
if test $ac_cv_header_infiniband_verbs_h = yes; then

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ibverbs_ibv_open_device
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_openib_libdir" != ""; then
   # libdir was specified - search only there
           mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_openib_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
           echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
                  mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
                  unset ac_cv_lib_ibverbs_ibv_open_device
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_openib_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
                     mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
                     unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
                          mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
                          mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



else
  ompi_check_package_happy="no"
fi


else

    # This is stolen from autoconf to peek under the covers to get the
    # cache variable for the library check.  one should not copy this
    # code into other places unless you want much pain and suffering

    # see comment above
    unset ac_cv_lib_ibverbs_ibv_open_device
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_openib_libdir" != ""; then
   # libdir was specified - search only there
           mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_openib_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
           echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

           if test "$ompi_check_package_lib_happy" = "no"; then
  LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
                  mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
                  unset ac_cv_lib_ibverbs_ibv_open_device
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_openib_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                echo "$as_me:$LINENO: result: looking for library without search path" >&5
echo "${ECHO_T}looking for library without search path" >&6
                echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                     LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
                     mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
                     unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     echo "$as_me:$LINENO: result: looking for library in lib" >&5
echo "${ECHO_T}looking for library in lib" >&6
                     echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
                          mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     echo "$as_me:$LINENO: result: looking for library in lib64" >&5
echo "${ECHO_T}looking for library in lib64" >&6
                     echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char ibv_open_device ();
int
main ()
{
ibv_open_device ();
  ;
  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
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ibverbs_ibv_open_device=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6
if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
  ompi_check_package_lib_happy="yes"
else
  ompi_check_package_lib_happy="no"
fi

                     if test "$ompi_check_package_lib_happy" = "no"; then
   # no go on the as is..  see what happens later...
                          LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
                          mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ompi_check_package_happy="yes"
else
  ompi_check_package_happy="no"
fi



fi

    unset ompi_check_package_header_happy

    if test "$ompi_check_package_happy" = "yes"; then
  ompi_check_openib_happy="yes"
           mpool_openib_LIBS="-libverbs $ompi_check_openib_libdeps"
else
  mpool_openib_CPPFLAGS="$ompi_check_package_mpool_openib_orig_CPPFLAGS"
           mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
           mpool_openib_LIBS="$ompi_check_package_mpool_openib_orig_LIBS"
           ompi_check_openib_happy="no"
fi


    CPPFLAGS="$ompi_check_package_mpool_openib_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
    LIBS="$ompi_check_package_mpool_openib_save_LIBS"


         # ok, now see if ibv_create_cq takes 3 arguments or 6
         CPPFLAGS="$CPPFLAGS $mpool_openib_CPPFLAGS"
         LDFLAGS="$LDFLAGS $mpool_openib_LDFLAGS"
         LIBS="$LIBS $mpool_openib_LIBS"

         if test "$ompi_check_openib_happy" = "yes"; then
  echo "$as_me:$LINENO: checking number of arguments to ibv_create_cq" >&5
echo $ECHO_N "checking number of arguments to ibv_create_cq... $ECHO_C" >&6
if test "${ompi_cv_func_ibv_create_cq_args+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 <infiniband/verbs.h>
int
main ()
{
ibv_create_cq(NULL, 0, NULL, NULL, 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_func_ibv_create_cq_args=5
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.  */
#include <infiniband/verbs.h>
int
main ()
{
ibv_create_cq(NULL, 0, NULL);
  ;
  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_func_ibv_create_cq_args=3
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ompi_cv_func_ibv_create_cq_args="unknown"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_func_ibv_create_cq_args" >&5
echo "${ECHO_T}$ompi_cv_func_ibv_create_cq_args" >&6
            if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then
  { { echo "$as_me:$LINENO: error: Can not determine number of args to ibv_create_cq.  Aborting" >&5
echo "$as_me: error: Can not determine number of args to ibv_create_cq.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
else

cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_MPOOL_OPENIB_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args
_ACEOF

fi

fi



for ac_func in ibv_create_srq
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 ompi_check_openib_have_srq=1
else
  ompi_check_openib_have_srq=0
fi
done


cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_MPOOL_OPENIB_HAVE_SRQ $ompi_check_openib_have_srq
_ACEOF



for ac_func in ibv_get_device_list
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 ompi_check_openib_have_device_list=1
else
  ompi_check_openib_have_device_list=0
fi
done


cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_MPOOL_OPENIB_HAVE_DEVICE_LIST $ompi_check_openib_have_device_list
_ACEOF


         CPPFLAGS="$ompi_check_openib_mpool_openib_save_CPPFLAGS"
         LDFLAGS="$ompi_check_openib_mpool_openib_save_LDFLAGS"
         LIBS="$ompi_check_openib_mpool_openib_save_LIBS"
else
  ompi_check_openib_happy="no"
fi


    if test "$ompi_check_openib_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
  { echo "$as_me:$LINENO: WARNING: OpenIB driver does not currently support progress threads.  Disabling BTL." >&5
echo "$as_me: WARNING: OpenIB driver does not currently support progress threads.  Disabling BTL." >&2;}
           ompi_check_openib_happy="no"
fi


    if test "$ompi_check_openib_happy" = "yes"; then
  mpool_openib_happy="yes"
else
  if test ! -z "$with_openib" -a "$with_openib" != "no"; then
  { { echo "$as_me:$LINENO: error: OpenIB support requested but not found.  Aborting" >&5
echo "$as_me: error: OpenIB support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           mpool_openib_happy="no"
fi


    mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS $ompi_check_openib_libflag"


    if test "$mpool_openib_happy" = "yes"; then
  mpool_openib_WRAPPER_EXTRA_LDFLAGS="$mpool_openib_LDFLAGS"
           mpool_openib_WRAPPER_EXTRA_LIBS="$mpool_openib_LIBS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build openib





fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=mpool
    component=openib

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mpool" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mpool" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

else

    echo "$as_me:$LINENO: checking if MCA component mpool:openib can compile" >&5
echo $ECHO_N "checking if MCA component mpool:openib can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "openib" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "openib" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

           # add component to all component list
           all_components="$all_components openib"
fi


    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_mpool_openib_DSO=1
else
  BUILD_mpool_openib_DSO=0
fi



if test "$BUILD_mpool_openib_DSO" = "1"; then
  OMPI_BUILD_mpool_openib_DSO_TRUE=
  OMPI_BUILD_mpool_openib_DSO_FALSE='#'
else
  OMPI_BUILD_mpool_openib_DSO_TRUE='#'
  OMPI_BUILD_mpool_openib_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode


    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/mpool/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component mpool:$component (need to configure)"


    project=ompi
    framework=mpool
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_mpool" ; then
            if test "$DIRECT_mpool" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=mpool
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_mpool" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/mpool/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/mpool/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=mpool
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_mpool" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_mpool" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component mpool:$component can compile" >&5
echo $ECHO_N "checking if MCA component mpool:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_mpool_ALL_COMPONENTS="$all_components"
    MCA_mpool_STATIC_COMPONENTS="$static_components"
    MCA_mpool_DSO_COMPONENTS="$dso_components"
    MCA_mpool_STATIC_LTLIBS="$static_ltlibs"







    MCA_mpool_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_mpool_ALL_SUBDIRS="$MCA_mpool_ALL_SUBDIRS mca/mpool/$item"
    done



    MCA_mpool_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_mpool_STATIC_SUBDIRS="$MCA_mpool_STATIC_SUBDIRS mca/mpool/$item"
    done



    MCA_mpool_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_mpool_DSO_SUBDIRS="$MCA_mpool_DSO_SUBDIRS mca/mpool/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/mpool/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "mpool" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_mpool_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "osc" = "common" ; then
                              MCA_ompi_FRAMEWORKS="osc $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/osc $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_osc_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_osc_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_osc_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS osc"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/osc"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_osc_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_osc_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_osc_STATIC_SUBDIRS)"
                          fi
                          if test "osc" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/osc/libmca_osc.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_osc_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework osc"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "osc" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/osc/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework osc" >&5
echo $ECHO_N "checking for no configure components in framework osc... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: pt2pt" >&5
echo "${ECHO_T}pt2pt" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework osc" >&5
echo $ECHO_N "checking for m4 configure components in framework osc... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component osc:pt2pt (no configuration)"


    project=ompi
    framework=osc
    component=pt2pt
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_osc" ; then
            if test "$DIRECT_osc" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=osc
    component=pt2pt

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_osc" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=osc
    component=pt2pt

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_osc" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_osc" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component osc:pt2pt can compile" >&5
echo $ECHO_N "checking if MCA component osc:pt2pt can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_osc" = "pt2pt" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_osc" ; then
        if test "$DIRECT_osc" = "pt2pt" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components pt2pt"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_osc_pt2pt_DSO=1
    else
        BUILD_osc_pt2pt_DSO=0
    fi


if test "$BUILD_osc_pt2pt_DSO" = "1"; then
  OMPI_BUILD_osc_pt2pt_DSO_TRUE=
  OMPI_BUILD_osc_pt2pt_DSO_FALSE='#'
else
  OMPI_BUILD_osc_pt2pt_DSO_TRUE='#'
  OMPI_BUILD_osc_pt2pt_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/osc/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component osc:$component (need to configure)"


    project=ompi
    framework=osc
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_osc" ; then
            if test "$DIRECT_osc" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=osc
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_osc" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/osc/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/osc/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=osc
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_osc" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_osc" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component osc:$component can compile" >&5
echo $ECHO_N "checking if MCA component osc:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_osc" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_osc" ; then
        if test "$DIRECT_osc" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_osc_ALL_COMPONENTS="$all_components"
    MCA_osc_STATIC_COMPONENTS="$static_components"
    MCA_osc_DSO_COMPONENTS="$dso_components"
    MCA_osc_STATIC_LTLIBS="$static_ltlibs"







    MCA_osc_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_osc_ALL_SUBDIRS="$MCA_osc_ALL_SUBDIRS mca/osc/$item"
    done



    MCA_osc_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_osc_STATIC_SUBDIRS="$MCA_osc_STATIC_SUBDIRS mca/osc/$item"
    done



    MCA_osc_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_osc_DSO_SUBDIRS="$MCA_osc_DSO_SUBDIRS mca/osc/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/osc/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "osc" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_osc_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "pml" = "common" ; then
                              MCA_ompi_FRAMEWORKS="pml $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/pml $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pml_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pml_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pml_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS pml"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/pml"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pml_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pml_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pml_STATIC_SUBDIRS)"
                          fi
                          if test "pml" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/pml/libmca_pml.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_pml_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework pml"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "pml" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/pml/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework pml" >&5
echo $ECHO_N "checking for no configure components in framework pml... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: ob1" >&5
echo "${ECHO_T}ob1" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework pml" >&5
echo $ECHO_N "checking for m4 configure components in framework pml... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component pml:ob1 (no configuration)"


    project=ompi
    framework=pml
    component=ob1
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pml" ; then
            if test "$DIRECT_pml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=pml
    component=ob1

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pml" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=pml
    component=ob1

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pml" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pml" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component pml:ob1 can compile" >&5
echo $ECHO_N "checking if MCA component pml:ob1 can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "ob1" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"ob1\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "ob1" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"ob1\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components ob1"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_pml_ob1_DSO=1
    else
        BUILD_pml_ob1_DSO=0
    fi


if test "$BUILD_pml_ob1_DSO" = "1"; then
  OMPI_BUILD_pml_ob1_DSO_TRUE=
  OMPI_BUILD_pml_ob1_DSO_FALSE='#'
else
  OMPI_BUILD_pml_ob1_DSO_TRUE='#'
  OMPI_BUILD_pml_ob1_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/pml/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component pml:$component (need to configure)"


    project=ompi
    framework=pml
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_pml" ; then
            if test "$DIRECT_pml" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=pml
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_pml" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/pml/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/pml/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=pml
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_pml" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_pml" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component pml:$component can compile" >&5
echo $ECHO_N "checking if MCA component pml:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_pml_ALL_COMPONENTS="$all_components"
    MCA_pml_STATIC_COMPONENTS="$static_components"
    MCA_pml_DSO_COMPONENTS="$dso_components"
    MCA_pml_STATIC_LTLIBS="$static_ltlibs"







    MCA_pml_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_pml_ALL_SUBDIRS="$MCA_pml_ALL_SUBDIRS mca/pml/$item"
    done



    MCA_pml_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_pml_STATIC_SUBDIRS="$MCA_pml_STATIC_SUBDIRS mca/pml/$item"
    done



    MCA_pml_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_pml_DSO_SUBDIRS="$MCA_pml_DSO_SUBDIRS mca/pml/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/pml/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "pml" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_pml_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "rcache" = "common" ; then
                              MCA_ompi_FRAMEWORKS="rcache $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/rcache $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rcache_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rcache_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rcache_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS rcache"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/rcache"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rcache_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rcache_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rcache_STATIC_SUBDIRS)"
                          fi
                          if test "rcache" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/rcache/libmca_rcache.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_rcache_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework rcache"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "rcache" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/rcache/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework rcache" >&5
echo $ECHO_N "checking for no configure components in framework rcache... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: rb" >&5
echo "${ECHO_T}rb" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework rcache" >&5
echo $ECHO_N "checking for m4 configure components in framework rcache... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component rcache:rb (no configuration)"


    project=ompi
    framework=rcache
    component=rb
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rcache" ; then
            if test "$DIRECT_rcache" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=rcache
    component=rb

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rcache" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=rcache
    component=rb

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rcache" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rcache" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component rcache:rb can compile" >&5
echo $ECHO_N "checking if MCA component rcache:rb can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rcache" = "rb" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"rb\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"rb\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rcache" ; then
        if test "$DIRECT_rcache" = "rb" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"rb\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"rb\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components rb"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rcache_rb_DSO=1
    else
        BUILD_rcache_rb_DSO=0
    fi


if test "$BUILD_rcache_rb_DSO" = "1"; then
  OMPI_BUILD_rcache_rb_DSO_TRUE=
  OMPI_BUILD_rcache_rb_DSO_FALSE='#'
else
  OMPI_BUILD_rcache_rb_DSO_TRUE='#'
  OMPI_BUILD_rcache_rb_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/rcache/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component rcache:$component (need to configure)"


    project=ompi
    framework=rcache
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_rcache" ; then
            if test "$DIRECT_rcache" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=rcache
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_rcache" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/rcache/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/rcache/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=rcache
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_rcache" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_rcache" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component rcache:$component can compile" >&5
echo $ECHO_N "checking if MCA component rcache:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rcache" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rcache" ; then
        if test "$DIRECT_rcache" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_rcache_ALL_COMPONENTS="$all_components"
    MCA_rcache_STATIC_COMPONENTS="$static_components"
    MCA_rcache_DSO_COMPONENTS="$dso_components"
    MCA_rcache_STATIC_LTLIBS="$static_ltlibs"







    MCA_rcache_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_rcache_ALL_SUBDIRS="$MCA_rcache_ALL_SUBDIRS mca/rcache/$item"
    done



    MCA_rcache_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_rcache_STATIC_SUBDIRS="$MCA_rcache_STATIC_SUBDIRS mca/rcache/$item"
    done



    MCA_rcache_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_rcache_DSO_SUBDIRS="$MCA_rcache_DSO_SUBDIRS mca/rcache/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/rcache/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "rcache" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_rcache_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real
# common has to go up front
                          if test "topo" = "common" ; then
                              MCA_ompi_FRAMEWORKS="topo $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/topo $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_topo_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_topo_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_topo_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS topo"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/topo"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_topo_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_topo_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_topo_STATIC_SUBDIRS)"
                          fi
                          if test "topo" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/topo/libmca_topo.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_topo_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework topo"

    # setup for framework
    all_components=
    static_components=
    dso_components=
    static_ltlibs=

    # Ensure that the directory where the #include file is to live
    # exists.  Need to do this for VPATH builds, because the directory
    # may not exist yet.  For the "common" type, it's not really a
    # component, so it doesn't have a base.
    if test "topo" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/topo/base
    fi
    { if $as_mkdir_p; then
    mkdir -p $outdir
  else
    as_dir=$outdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $outdir" >&5
echo "$as_me: error: cannot create directory $outdir" >&2;}
   { (exit 1); exit 1; }; }; }


    # remove any previously generated #include files
    outfile_real=$outdir/static-components.h
    outfile=$outfile_real.new
    rm -f $outfile $outfile.struct $outfile.extern
    touch $outfile.struct $outfile.extern

    # print some nice messages about what we're about to do...
    echo "$as_me:$LINENO: checking for no configure components in framework topo" >&5
echo $ECHO_N "checking for no configure components in framework topo... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: unity" >&5
echo "${ECHO_T}unity" >&6
    echo "$as_me:$LINENO: checking for m4 configure components in framework topo" >&5
echo $ECHO_N "checking for m4 configure components in framework topo... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6

    # if we only want the first successful component, set the variable
    # happy_value to 0 so we stop on first assignment.  Otherwise, set
    # it to zero so that components_looking_for_succeed is always 1
    happy_value=1

    components_looking_for_succeed=1

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval
    # if there isn't a component list, abort


    ompi_show_subsubsubtitle "MCA component topo:unity (no configuration)"


    project=ompi
    framework=topo
    component=unity
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_topo" ; then
            if test "$DIRECT_topo" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=$components_looking_for_succeed
else
  should_build=0
fi



    project=ompi
    framework=topo
    component=unity

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_topo" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


    if test "$should_build" = "1" ; then

    project=ompi
    framework=topo
    component=unity

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_topo" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_topo" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    echo "$as_me:$LINENO: checking if MCA component topo:unity can compile" >&5
echo $ECHO_N "checking if MCA component topo:unity can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_topo" = "unity" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"unity\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_topo" ; then
        if test "$DIRECT_topo" = "unity" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"unity\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components unity"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_topo_unity_DSO=1
    else
        BUILD_topo_unity_DSO=0
    fi


if test "$BUILD_topo_unity_DSO" = "1"; then
  OMPI_BUILD_topo_unity_DSO_TRUE=
  OMPI_BUILD_topo_unity_DSO_FALSE='#'
else
  OMPI_BUILD_topo_unity_DSO_TRUE='#'
  OMPI_BUILD_topo_unity_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts
    # see comment in CONFIGURE_PROJECT about the m4_ifval
    # if there isn't a component list, abort



    # configure components that provide their own configure script.
    # It would be really hard to run these for "find first that
    # works", so we don't :)
    if test "$happy_value" = "1"; then

    for component_path in $srcdir/ompi/mca/topo/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component topo:$component (need to configure)"


    project=ompi
    framework=topo
    component=$component
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overriden by the unignore logic below.
            want_component=0
        fi
        if test -f $component_path/.ompi_unignore ; then
            # if there is an empty ompi_unignore, that is
            # equivalent to having your userid in the unignore file.
            # If userid is in the file, unignore the ignore file.
            if test ! -s $component_path/.ompi_unignore ; then
                want_component=1
            elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
                want_component=1
            fi
        fi
        # if this component type is direct and we are not it, we don't want
        # to be built.  Otherwise, we do want to be built.
        if test ! -z "$DIRECT_topo" ; then
            if test "$DIRECT_topo" = "$component" ; then
                want_component=1
            else
                want_component=0
            fi
        fi
    fi

    # if we were explicitly disabled, don't build :)
    str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi

    if test "$want_component" = "1"; then
  should_build=1
else
  should_build=0
fi



    project=ompi
    framework=topo
    component=$component

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6
    if test "$DIRECT_topo" = "$component" ; then
        echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
echo "${ECHO_T}$compile_mode - direct" >&6
    else
        echo "$as_me:$LINENO: result: $compile_mode" >&5
echo "${ECHO_T}$compile_mode" >&6
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/topo/$component is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# should_build=1 is actions to execute upon success
# should_build=2 is actions to execute upon failure
#
subdir_dir="ompi/mca/topo/$component"
subdir_args="$ompi_subdir_args"
subdir_success="should_build=1"
subdir_failure="should_build=2"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
            fi

            if test "$should_build" = "1" ; then

    project=ompi
    framework=topo
    component=$component

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

    # If there's an output file, add the values to
    # scope_EXTRA_flags.
    if test -f $infile; then

        # First check for the ABORT tag
        line="`grep ABORT= $infile | cut -d= -f2-`"
        if test -n "$line" -a "$line" != "no"; then
            { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { echo "$as_me:$LINENO: error: cannot continue" >&5
echo "$as_me: error: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi

        # Check for flags passed up from the component.  If we're
        # compiling statically, then take all flags passed up from the
        # component.
        if test "$compile_mode" = "static"; then
            line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_topo" = "$component" ; then
            if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
                line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
                str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
                eval $str
            else
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    else
        # were we supposed to have found something in the
        # post_configure.sh, but the file didn't exist?
        if test "$DIRECT_topo" = "$component" ; then
{ { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # now add the flags that were set in the environment variables
    # framework_component_FOO (for example, the flags set by
    # m4_configure components)
    #
    # Check for flags passed up from the component.  If we're
    # compiling statically, then take all flags passed up from the
    # component.
    if test "$compile_mode" = "static"; then
        str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    echo "$as_me:$LINENO: checking if MCA component topo:$component can compile" >&5
echo $ECHO_N "checking if MCA component topo:$component can compile... $ECHO_C" >&6
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_topo" = "$component" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_topo" ; then
        if test "$DIRECT_topo" = "$component" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_topo_ALL_COMPONENTS="$all_components"
    MCA_topo_STATIC_COMPONENTS="$static_components"
    MCA_topo_DSO_COMPONENTS="$dso_components"
    MCA_topo_STATIC_LTLIBS="$static_ltlibs"







    MCA_topo_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_topo_ALL_SUBDIRS="$MCA_topo_ALL_SUBDIRS mca/topo/$item"
    done



    MCA_topo_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_topo_STATIC_SUBDIRS="$MCA_topo_STATIC_SUBDIRS mca/topo/$item"
    done



    MCA_topo_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_topo_DSO_SUBDIRS="$MCA_topo_DSO_SUBDIRS mca/topo/$item"
    done



    # add all the makefiles for the framework to the CONFIG_FILES.
    # Don't add common/base, since it doesn't exist
              ac_config_files="$ac_config_files ompi/mca/topo/Makefile"


    # Create the final .h file that will be included in the type's
    # top-level glue.  This lists all the static components.  We don't
    # need to do this for "common".
    if test "topo" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */

`cat $outfile.extern`

const mca_base_component_t *mca_topo_base_static_components[] = {
`cat $outfile.struct`
  NULL
};
EOF
        # Only replace the header file if a) it doesn't previously
        # exist, or b) the contents are different.  Do this to not
        # trigger recompilation of certain .c files just because the
        # timestamp changed on $outfile_real (similar to the way AC
        # handles AC_CONFIG_HEADER files).
        diff $outfile $outfile_real > /dev/null 2>&1
        if test "$?" != "0"; then
            mv $outfile $outfile_real
        else
            rm -f $outfile
        fi
    fi
    rm -f $outfile.struct $outfile.extern

    unset all_components static_components dso_components outfile outfile_real










    # BWB - fix me...  need to automate this somehow

    if test ! -z "$DIRECT_pml" ; then
        MCA_pml_DIRECT_CALL_COMPONENT=$DIRECT_pml
        MCA_pml_DIRECT_CALL=1
    else
        MCA_pml_DIRECT_CALL_COMPONENT=
        MCA_pml_DIRECT_CALL=0
    fi



cat >>confdefs.h <<_ACEOF
#define MCA_pml_DIRECT_CALL $MCA_pml_DIRECT_CALL
_ACEOF


cat >>confdefs.h <<_ACEOF
#define MCA_pml_DIRECT_CALL_COMPONENT $MCA_pml_DIRECT_CALL_COMPONENT
_ACEOF


              ac_config_files="$ac_config_files ompi/mca/pml/pml_direct_call.h.tmp:ompi/mca/pml/pml_direct_call.h.in"

              ac_config_commands="$ac_config_commands pml-direct"




    # make all the config output statements for the no configure
    # components




          ac_config_files="$ac_config_files opal/mca/maffinity/first_use/Makefile"



          ac_config_files="$ac_config_files opal/mca/maffinity/libnuma/Makefile"



          ac_config_files="$ac_config_files opal/mca/memory/darwin/Makefile"



          ac_config_files="$ac_config_files opal/mca/memory/malloc_hooks/Makefile"



          ac_config_files="$ac_config_files opal/mca/memory/ptmalloc2/Makefile"



          ac_config_files="$ac_config_files opal/mca/paffinity/linux/Makefile"



          ac_config_files="$ac_config_files opal/mca/paffinity/solaris/Makefile"



          ac_config_files="$ac_config_files opal/mca/paffinity/windows/Makefile"



          ac_config_files="$ac_config_files opal/mca/timer/aix/Makefile"



          ac_config_files="$ac_config_files opal/mca/timer/altix/Makefile"



          ac_config_files="$ac_config_files opal/mca/timer/darwin/Makefile"



          ac_config_files="$ac_config_files opal/mca/timer/linux/Makefile"



          ac_config_files="$ac_config_files opal/mca/timer/solaris/Makefile"



          ac_config_files="$ac_config_files opal/mca/timer/windows/Makefile"



          ac_config_files="$ac_config_files orte/mca/gpr/null/Makefile"



          ac_config_files="$ac_config_files orte/mca/gpr/proxy/Makefile"



          ac_config_files="$ac_config_files orte/mca/gpr/replica/Makefile"

          ac_config_files="$ac_config_files orte/mca/gpr/replica/api_layer/Makefile"

          ac_config_files="$ac_config_files orte/mca/gpr/replica/transition_layer/Makefile"

          ac_config_files="$ac_config_files orte/mca/gpr/replica/functional_layer/Makefile"

          ac_config_files="$ac_config_files orte/mca/gpr/replica/communications/Makefile"



          ac_config_files="$ac_config_files orte/mca/iof/proxy/Makefile"



          ac_config_files="$ac_config_files orte/mca/iof/svc/Makefile"



          ac_config_files="$ac_config_files orte/mca/ns/proxy/Makefile"



          ac_config_files="$ac_config_files orte/mca/ns/replica/Makefile"



          ac_config_files="$ac_config_files orte/mca/oob/tcp/Makefile"



          ac_config_files="$ac_config_files orte/mca/pls/bproc/Makefile"



          ac_config_files="$ac_config_files orte/mca/pls/bproc_orted/Makefile"



          ac_config_files="$ac_config_files orte/mca/pls/fork/Makefile"



          ac_config_files="$ac_config_files orte/mca/pls/poe/Makefile"



          ac_config_files="$ac_config_files orte/mca/pls/rsh/Makefile"



          ac_config_files="$ac_config_files orte/mca/pls/slurm/Makefile"



          ac_config_files="$ac_config_files orte/mca/pls/tm/Makefile"



          ac_config_files="$ac_config_files orte/mca/pls/xgrid/Makefile"



          ac_config_files="$ac_config_files orte/mca/ras/bjs/Makefile"



          ac_config_files="$ac_config_files orte/mca/ras/dash_host/Makefile"



          ac_config_files="$ac_config_files orte/mca/ras/hostfile/Makefile"



          ac_config_files="$ac_config_files orte/mca/ras/localhost/Makefile"



          ac_config_files="$ac_config_files orte/mca/ras/lsf_bproc/Makefile"



          ac_config_files="$ac_config_files orte/mca/ras/poe/Makefile"



          ac_config_files="$ac_config_files orte/mca/ras/slurm/Makefile"



          ac_config_files="$ac_config_files orte/mca/ras/tm/Makefile"



          ac_config_files="$ac_config_files orte/mca/ras/xgrid/Makefile"



          ac_config_files="$ac_config_files orte/mca/rds/hostfile/Makefile"



          ac_config_files="$ac_config_files orte/mca/rds/resfile/Makefile"



          ac_config_files="$ac_config_files orte/mca/rmaps/round_robin/Makefile"



          ac_config_files="$ac_config_files orte/mca/rmgr/cnos/Makefile"



          ac_config_files="$ac_config_files orte/mca/rmgr/proxy/Makefile"



          ac_config_files="$ac_config_files orte/mca/rmgr/urm/Makefile"



          ac_config_files="$ac_config_files orte/mca/rml/cnos/Makefile"



          ac_config_files="$ac_config_files orte/mca/rml/oob/Makefile"



          ac_config_files="$ac_config_files orte/mca/sds/bproc/Makefile"



          ac_config_files="$ac_config_files orte/mca/sds/cnos/Makefile"



          ac_config_files="$ac_config_files orte/mca/sds/env/Makefile"



          ac_config_files="$ac_config_files orte/mca/sds/pipe/Makefile"



          ac_config_files="$ac_config_files orte/mca/sds/portals_utcp/Makefile"



          ac_config_files="$ac_config_files orte/mca/sds/seed/Makefile"



          ac_config_files="$ac_config_files orte/mca/sds/singleton/Makefile"



          ac_config_files="$ac_config_files orte/mca/sds/slurm/Makefile"



          ac_config_files="$ac_config_files orte/mca/soh/bproc/Makefile"



          ac_config_files="$ac_config_files ompi/mca/allocator/basic/Makefile"



          ac_config_files="$ac_config_files ompi/mca/allocator/bucket/Makefile"



          ac_config_files="$ac_config_files ompi/mca/bml/r2/Makefile"



          ac_config_files="$ac_config_files ompi/mca/btl/gm/Makefile"



          ac_config_files="$ac_config_files ompi/mca/btl/mvapi/Makefile"



          ac_config_files="$ac_config_files ompi/mca/btl/mx/Makefile"



          ac_config_files="$ac_config_files ompi/mca/btl/openib/Makefile"



          ac_config_files="$ac_config_files ompi/mca/btl/portals/Makefile"



          ac_config_files="$ac_config_files ompi/mca/btl/self/Makefile"



          ac_config_files="$ac_config_files ompi/mca/btl/sm/Makefile"



          ac_config_files="$ac_config_files ompi/mca/btl/tcp/Makefile"



          ac_config_files="$ac_config_files ompi/mca/coll/basic/Makefile"



          ac_config_files="$ac_config_files ompi/mca/coll/hierarch/Makefile"



          ac_config_files="$ac_config_files ompi/mca/coll/self/Makefile"



          ac_config_files="$ac_config_files ompi/mca/coll/sm/Makefile"



          ac_config_files="$ac_config_files ompi/mca/coll/tuned/Makefile"



          ac_config_files="$ac_config_files ompi/mca/common/sm/Makefile"



          ac_config_files="$ac_config_files ompi/mca/io/romio/Makefile"



          ac_config_files="$ac_config_files ompi/mca/mpool/gm/Makefile"



          ac_config_files="$ac_config_files ompi/mca/mpool/mvapi/Makefile"



          ac_config_files="$ac_config_files ompi/mca/mpool/openib/Makefile"



          ac_config_files="$ac_config_files ompi/mca/mpool/sm/Makefile"



          ac_config_files="$ac_config_files ompi/mca/osc/pt2pt/Makefile"



          ac_config_files="$ac_config_files ompi/mca/pml/ob1/Makefile"



          ac_config_files="$ac_config_files ompi/mca/rcache/rb/Makefile"



          ac_config_files="$ac_config_files ompi/mca/topo/unity/Makefile"






# checkpoint results
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache


############################################################################
# Final top-level OMPI configuration
############################################################################

ompi_show_title "Final top-level OMPI configuration"

############################################################################
# Libevent setup
############################################################################

ompi_show_subtitle "Libevent 3rd party event handler"
CFLAGS_save="$CFLAGS"
CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY"


sources=


# Check whether --with-event-rtsig or --without-event-rtsig was given.
if test "${with_event_rtsig+set}" = set; then
  withval="$with_event_rtsig"
  usertsig=yes
else
  usertsig=no
fi;


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 <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.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_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 <string.h>

_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 <stdlib.h>

_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 <ctype.h>
#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










for ac_header in inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
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

if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
	echo "$as_me:$LINENO: checking for TAILQ_FOREACH in sys/queue.h" >&5
echo $ECHO_N "checking for TAILQ_FOREACH in sys/queue.h... $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.  */

#include <sys/queue.h>
#ifdef TAILQ_FOREACH
 yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_TAILQFOREACH 1
_ACEOF

else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

fi
rm -f conftest*

fi

if test "x$ac_cv_header_sys_time_h" = "xyes"; then
	echo "$as_me:$LINENO: checking for timeradd in sys/time.h" >&5
echo $ECHO_N "checking for timeradd in sys/time.h... $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.  */

#include <sys/time.h>
#ifdef timeradd
 yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&1; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_TIMERADD 1
_ACEOF

	  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
rm -f conftest*

fi

echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+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 <sys/types.h>
#include <sys/time.h>
#include <time.h>

int
main ()
{
if ((struct tm *) 0)
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_header_time=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_header_time=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then

cat >>confdefs.h <<\_ACEOF
#define TIME_WITH_SYS_TIME 1
_ACEOF

fi



for ac_func in gettimeofday
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


needsignal=no
haveselect=no

for ac_func in select
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 haveselect=yes
fi
done

if test "x$haveselect" = "xyes" ; then
	# OMPI: Don't use AC_LIBOBJ
	sources="select.c $sources"
	needsignal=yes
fi

havepoll=no
havertsig=no

for ac_func in poll
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 havepoll=yes
fi
done

case "$host" in
    *apple-darwin*)
        haveworkingpoll=0
    ;;
    *)
        if test "$havepoll" = "yes" ; then
	    haveworkingpoll=1
	else
	    haveworkingpoll=0
	fi
    ;;
esac

cat >>confdefs.h <<_ACEOF
#define HAVE_WORKING_POLL $haveworkingpoll
_ACEOF

if test "x$havepoll" = "xyes" -a "$haveworkingpoll" = "1" ; then
	# OMPI: Don't use AC_LIBOBJ
	sources="poll.c $sources"
	needsignal=yes

	if test "x$usertsig" = "xyes" ; then

for ac_func in sigtimedwait
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 havertsig=yes
fi
done

	fi
fi
if test "x$havertsig" = "xyes" ; then
	echo "$as_me:$LINENO: checking for F_SETSIG in fcntl.h" >&5
echo $ECHO_N "checking for F_SETSIG in fcntl.h... $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.  */

#define _GNU_SOURCE
#include <fcntl.h>
#ifdef F_SETSIG
yes
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "yes" >/dev/null 2>&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; havertsig=no
fi
rm -f conftest*

fi
if test "x$havertsig" = "xyes" ; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_RTSIG 1
_ACEOF

	# OMPI: Don't use AC_LIBOBJ
	sources="rtsig.c $sources"
	echo "$as_me:$LINENO: checking for working rtsig on pipes" >&5
echo $ECHO_N "checking for working rtsig on pipes... $ECHO_C" >&6
	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.  */

#define _GNU_SOURCE
#include <fcntl.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>

int sigio()
{
	exit(0);
}

int main()
{
	int fd[2];

	pipe(fd);
	signal(SIGIO, sigio);
	fcntl(fd[0], F_SETOWN, getpid());
	fcntl(fd[0], F_SETSIG, SIGIO);
	fcntl(fd[0], F_SETFL, fcntl(fd[0], F_GETFL) | O_ASYNC);
	write(fd[1], "", 1);
	return 1;
}

_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
   echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_WORKING_RTSIG 1
_ACEOF

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: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi

haveepoll=no

for ac_func in epoll_ctl
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 haveepoll=yes
fi
done

if test "x$haveepoll" = "xyes" -a "$cross_compiling" != "yes" ; then

	# OMPI: Unfortunately, this test is not sufficient on some
	# Linux distros (e.g., RH 9), where the function is defined
	# and you can link against it, but it's hardwired to return
	# ENOSYS -- and /usr/include/gnu/stubs.h fails to define
	# __stub_epoll_ctl (the usual mechanism in glibc to indicate
	# that a function is a stub and isn't really implemented).
	# Hence, the test succeeds because it thinks it can use
	# epoll_ctl (and friends).  So we have to do a better test
	# after we determine that epoll_ctl is linkable.  Grumble.
        # If we are cross compiling, just trust AC_CHECK_FUNCS

	echo "$as_me:$LINENO: checking for epoll_ctl on broken Linux distros" >&5
echo $ECHO_N "checking for epoll_ctl on broken Linux distros... $ECHO_C" >&6
        rm -f conftest.out
        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
#include <sys/epoll.h>
int
main ()
{
int i = epoll_create(2);
FILE *fp = fopen("conftest.out", "w");
fprintf(fp, "%d", i);
fclose(fp);
  ;
  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
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	haveepoll=no
        if test -f conftest.out -a "`cat conftest.out`" = "0"; then
            haveepoll=yes
        fi
        rm -f conftest.out
	echo "$as_me:$LINENO: result: $haveepoll" >&5
echo "${ECHO_T}$haveepoll" >&6
fi

if test "x$haveepoll" = "xyes" ; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_EPOLL 1
_ACEOF

	# OMPI: Don't use AC_LIBOBJ
	sources="epoll.c $sources"
	needsignal=yes
fi

havekqueue=no
if test "x$ac_cv_header_sys_event_h" = "xyes"; then

for ac_func in kqueue
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+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.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  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
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 havekqueue=yes
fi
done

	if test "x$havekqueue" = "xyes" ; then
		echo "$as_me:$LINENO: checking for working kqueue" >&5
echo $ECHO_N "checking for working kqueue... $ECHO_C" >&6
		if test "$cross_compiling" = yes; then
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&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 <sys/types.h>
#include <sys/time.h>
#include <sys/event.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>

int
main(int argc, char **argv)
{
	int kq;
	int n;
	int fd[2];
	struct kevent ev;
	struct timespec ts;
	char buf[8000];

	if (pipe(fd) == -1)
		exit(1);
	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
		exit(1);

	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
		;

        if ((kq = kqueue()) == -1)
		exit(1);

	ev.ident = fd[1];
	ev.filter = EVFILT_WRITE;
	ev.flags = EV_ADD | EV_ENABLE;
	n = kevent(kq, &ev, 1, NULL, 0, NULL);
	if (n == -1)
		exit(1);

	read(fd[0], buf, sizeof(buf));

	ts.tv_sec = 0;
	ts.tv_nsec = 0;
	n = kevent(kq, NULL, 0, &ev, 1, &ts);
	if (n == -1 || n == 0)
		exit(1);

	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
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_WORKING_KQUEUE 1
_ACEOF

    sources="kqueue.c $sources"
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: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
    # OMPI: don't use AC_LIBOBJ
	fi
fi

haveepollsyscall=no
if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
	if test "x$haveepoll" = "xno" ; then
		echo "$as_me:$LINENO: checking for epoll system call" >&5
echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
		if test "$cross_compiling" = yes; then
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&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 <stdint.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/epoll.h>
#include <unistd.h>
#include <stdlib.h>

int
epoll_create(int size)
{
	return (syscall(__NR_epoll_create, size));
}

int
main(int argc, char **argv)
{
	int epfd;

	epfd = epoll_create(256);
	exit (epfd == -1 ? 1 : 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
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

cat >>confdefs.h <<\_ACEOF
#define HAVE_EPOLL 1
_ACEOF

    needsignal=yes
    # OMPI: don't use AC_LIBOBJ
    sources="epoll_sub.c epoll.c $sources"

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: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
	fi
fi

if test "x$needsignal" = "xyes" ; then
    # OMPI: don't use AC_LIBOBJ
    sources="signal.c $sources"
fi

# OMPI: AC_REPLACE_FUNCS doesn't have much meaning here because it
# uses AC_LIBOBJ; use our own test
#AC_REPLACE_FUNCS(err)
echo "$as_me:$LINENO: checking for err" >&5
echo $ECHO_N "checking for err... $ECHO_C" >&6
if test "${ac_cv_func_err+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.  */
/* Define err to an innocuous variant, in case <limits.h> declares err.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define err innocuous_err

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char err (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef err

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char err ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_err) || defined (__stub___err)
choke me
#else
char (*f) () = err;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != err;
  ;
  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
  ac_cv_func_err=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_err=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
echo "${ECHO_T}$ac_cv_func_err" >&6
if test $ac_cv_func_err = yes; then
  :
else
  sources="err.c $sources"
fi


echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_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 ((pid_t *) 0)
  return 0;
if (sizeof (pid_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_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_pid_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi

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
if test $ac_cv_type_size_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned
_ACEOF

fi

echo "$as_me:$LINENO: checking for u_int64_t" >&5
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
if test "${ac_cv_type_u_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 ((u_int64_t *) 0)
  return 0;
if (sizeof (u_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_u_int64_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_u_int64_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
if test $ac_cv_type_u_int64_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define u_int64_t unsigned long long
_ACEOF

fi

echo "$as_me:$LINENO: checking for u_int32_t" >&5
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
if test "${ac_cv_type_u_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 ((u_int32_t *) 0)
  return 0;
if (sizeof (u_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_u_int32_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_u_int32_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
if test $ac_cv_type_u_int32_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define u_int32_t unsigned int
_ACEOF

fi

echo "$as_me:$LINENO: checking for u_int16_t" >&5
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
if test "${ac_cv_type_u_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 ((u_int16_t *) 0)
  return 0;
if (sizeof (u_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_u_int16_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_u_int16_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
if test $ac_cv_type_u_int16_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define u_int16_t unsigned short
_ACEOF

fi

echo "$as_me:$LINENO: checking for u_int8_t" >&5
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
if test "${ac_cv_type_u_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 ((u_int8_t *) 0)
  return 0;
if (sizeof (u_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_u_int8_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_u_int8_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
if test $ac_cv_type_u_int8_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define u_int8_t unsigned char
_ACEOF

fi



# OMPI: Save the libobj sources
OMPI_LIBEVENT_SOURCES="$sources"


# OMPI: All done
unset sources
CFLAGS="$CFLAGS_save"


############################################################################
# Libtool: part two
# (after C compiler setup)
############################################################################

ompi_show_subtitle "Libtool configuration"

# Use convenience libltdl for the moment, because we need to force the
# use of the newest libltdl (i.e., the one that ships with libtool
# 1.5) because it has support for a lot more things than older
# versions of libtool (which are generally installed by default).
if test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1"; then
    case $enable_ltdl_convenience in
  no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
echo "$as_me: error: this package needs a convenience libltdl" >&2;}
   { (exit 1); exit 1; }; } ;;
  "") enable_ltdl_convenience=yes
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  esac
  LIBLTDL='${top_builddir}/'opal/libltdl/libltdlc.la
  LTDLINCL='-I${top_srcdir}/'opal/libltdl
  # For backwards non-gettext consistent compatibility...
  INCLTDL="$LTDLINCL"



fi



# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
  enableval="$enable_fast_install"
  p=${PACKAGE-default}
    case $enableval in
    yes) enable_fast_install=yes ;;
    no) enable_fast_install=no ;;
    *)
      enable_fast_install=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_fast_install=yes
	fi
      done
      IFS="$lt_save_ifs"
      ;;
    esac
else
  enable_fast_install=yes
fi;

echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
if test "${lt_cv_path_SED+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for lt_ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
      fi
    done
  done
done
lt_ac_max=0
lt_ac_count=0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  test ! -f $lt_ac_sed && continue
  cat /dev/null > conftest.in
  lt_ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  # Check for GNU sed and select it if it is found.
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
    lt_cv_path_SED=$lt_ac_sed
    break
  fi
  while true; do
    cat conftest.in conftest.in >conftest.tmp
    mv conftest.tmp conftest.in
    cp conftest.in conftest.nl
    echo >>conftest.nl
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
    cmp -s conftest.out conftest.nl || break
    # 10000 chars as input seems more than enough
    test $lt_ac_count -gt 10 && break
    lt_ac_count=`expr $lt_ac_count + 1`
    if test $lt_ac_count -gt $lt_ac_max; then
      lt_ac_max=$lt_ac_count
      lt_cv_path_SED=$lt_ac_sed
    fi
  done
done

fi

SED=$lt_cv_path_SED
echo "$as_me:$LINENO: result: $SED" >&5
echo "${ECHO_T}$SED" >&6


# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi;
ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
else
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
fi
if test "${lt_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
with_gnu_ld=$lt_cv_prog_gnu_ld


echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
if test "${lt_cv_ld_reload_flag+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_ld_reload_flag='-r'
fi
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac

echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
if test "${lt_cv_deplibs_check_method+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
aix4* | aix5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | kfreebsd*-gnu | dragonfly*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix3*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux*)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

nto-qnx*)
  lt_cv_deplibs_check_method=unknown
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown




# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"

fi;
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  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
    case `/usr/bin/file conftest.$ac_objext` in
    *ELF-32*)
      HPUX_IA64_MODE="32"
      ;;
    *ELF-64*)
      HPUX_IA64_MODE="64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
  echo '#line 117608 "configure"' > conftest.$ac_ext
  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
   if test "$lt_cv_prog_gnu_ld" = yes; then
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -melf32bsmip"
      ;;
    *N32*)
      LD="${LD-ld} -melf32bmipn32"
      ;;
    *64-bit*)
      LD="${LD-ld} -melf64bmip"
      ;;
    esac
   else
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
   fi
  fi
  rm -rf conftest*
  ;;

x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  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
    case `/usr/bin/file conftest.o` in
    *32-bit*)
      case $host in
        x86_64-*linux*)
          LD="${LD-ld} -m elf_i386"
          ;;
        ppc64-*linux*|powerpc64-*linux*)
          LD="${LD-ld} -m elf32ppclinux"
          ;;
        s390x-*linux*)
          LD="${LD-ld} -m elf_s390"
          ;;
        sparc64-*linux*)
          LD="${LD-ld} -m elf32_sparc"
          ;;
      esac
      ;;
    *64-bit*)
      case $host in
        x86_64-*linux*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        ppc*-*linux*|powerpc*-*linux*)
          LD="${LD-ld} -m elf64ppc"
          ;;
        s390*-*linux*)
          LD="${LD-ld} -m elf64_s390"
          ;;
        sparc*-*linux*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+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

     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 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
  lt_cv_cc_needs_belf=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

lt_cv_cc_needs_belf=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext 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: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
  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
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)    LD="${LD-ld} -64" ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;


esac

need_locks="$enable_libtool_lock"



for ac_header in dlfcn.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $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 <$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
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $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.  */
#include <$ac_header>
_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
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------------------------ ##
## Report this to http://www.open-mpi.org/community/help/ ##
## ------------------------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
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
  eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
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



if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    (test "X$CXX" != "Xg++"))) ; then
  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 <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> 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 <limits.h>
#else
# include <assert.h>
#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 <ac_nonexistent.h>
_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 <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> 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 <limits.h>
#else
# include <assert.h>
#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 <ac_nonexistent.h>
_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=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


# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!

# find the maximum length of command line arguments
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
    i=0
  teststring="ABCD"

  case $build_os in
  msdosdjgpp*)
    # On DJGPP, this test can blow up pretty badly due to problems in libc
    # (any single argument exceeding 2000 bytes causes a buffer overrun
    # during glob expansion).  Even if it were fixed, the result of this
    # check would be larger than it should be.
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    ;;

  gnu*)
    # Under GNU Hurd, this test is not required because there is
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    ;;

  cygwin* | mingw*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # Instead, let's just punt: use the minimum linelength reported by
    # all of the supported platforms: 8192 (on NT/2K/XP).
    lt_cv_sys_max_cmd_len=8192;
    ;;

  amigaos*)
    # On AmigaOS with pdksh, this test takes hours, literally.
    # So we just punt and use a minimum line length of 8192.
    lt_cv_sys_max_cmd_len=8192;
    ;;

  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    # This has been around since 386BSD, at least.  Likely further.
    if test -x /sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    elif test -x /usr/sbin/sysctl; then
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    else
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
    fi
    # And add a safety zone
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    ;;

  interix*)
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
    lt_cv_sys_max_cmd_len=196608
    ;;

  osf*)
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    # nice to cause kernel panics so lets avoid the loop below.
    # First set a reasonable default.
    lt_cv_sys_max_cmd_len=16384
    #
    if test -x /sbin/sysconfig; then
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
      esac
    fi
    ;;
  sco3.2v5*)
    lt_cv_sys_max_cmd_len=102400
    ;;
  sysv5* | sco5v6* | sysv4.2uw2*)
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    if test -n "$kargmax"; then
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
    else
      lt_cv_sys_max_cmd_len=32768
    fi
    ;;
  *)
    # If test is not a shell built-in, we'll probably end up computing a
    # maximum length that is only half of the actual maximum length, but
    # we can't tell.
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
	       = "XX$teststring") >/dev/null 2>&1 &&
	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
	    lt_cv_sys_max_cmd_len=$new_result &&
	    test $i != 17 # 1/2 MB should be enough
    do
      i=`expr $i + 1`
      teststring=$teststring$teststring
    done
    teststring=
    # Add a significant safety factor because C++ compilers can tack on massive
    # amounts of additional arguments before passing them to the linker.
    # It appears as though 1/2 is a usable value.
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    ;;
  esac

fi

if test -n $lt_cv_sys_max_cmd_len ; then
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
else
  echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
fi




# Check for command to grab the raw symbol name followed by C symbol from nm.
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

# These are sane defaults that work on at least a few old systems.
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]

# Character class describing NM global symbol codes.
symcode='[BCDEGRST]'

# Regexp to match symbols that can be accessed directly from C.
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'

# Transform an extracted symbol line into a proper C declaration
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"

# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*) # Its linker distinguishes data from code symbols
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  fi
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  ;;
linux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDGIRSTW]'
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  fi
  ;;
irix* | nonstopux*)
  symcode='[BCDEGRST]'
  ;;
osf*)
  symcode='[BCDEGQRST]'
  ;;
solaris*)
  symcode='[BDRT]'
  ;;
sco3.2v5*)
  symcode='[DT]'
  ;;
sysv4.2uw2*)
  symcode='[DT]'
  ;;
sysv5* | sco5v6* | unixware* | OpenUNIX*)
  symcode='[ABDT]'
  ;;
sysv4)
  symcode='[DFNSTU]'
  ;;
esac

# Handle CRLF in mingw tool chain
opt_cr=
case $build_os in
mingw*)
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  ;;
esac

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do

  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  symxfrm="\\1 $ac_symprfx\\2 \\2"

  # Write the raw and C identifiers.
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
EOF

  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
    # Now try to grab the symbols.
    nlist=conftest.nm
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
      else
	rm -f "$nlist"T
      fi

      # Make sure that we snagged all the symbols we need.
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
	  cat <<EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'

	  cat <<EOF >> conftest.$ac_ext
#if defined (__STDC__) && __STDC__
# define lt_ptr_t void *
#else
# define lt_ptr_t char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr_t address;
}
lt_preloaded_symbols[] =
{
EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
	  cat <<\EOF >> conftest.$ac_ext
  {0, (lt_ptr_t) 0}
};

#ifdef __cplusplus
}
#endif
EOF
	  # Now try linking the two files.
	  mv conftest.$ac_objext conftstm.$ac_objext
	  lt_save_LIBS="$LIBS"
	  lt_save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
	  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); } && test -s conftest${ac_exeext}; then
	    pipe_works=yes
	  fi
	  LIBS="$lt_save_LIBS"
	  CFLAGS="$lt_save_CFLAGS"
	else
	  echo "cannot find nm_test_func in $nlist" >&5
	fi
      else
	echo "cannot find nm_test_var in $nlist" >&5
      fi
    else
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
    fi
  else
    echo "$progname: failed program was:" >&5
    cat conftest.$ac_ext >&5
  fi
  rm -f conftest* conftst*

  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
    break
  else
    lt_cv_sys_global_symbol_pipe=
  fi
done

fi

if test -z "$lt_cv_sys_global_symbol_pipe"; then
  lt_cv_sys_global_symbol_to_cdecl=
fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6
else
  echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
fi

echo "$as_me:$LINENO: checking for objdir" >&5
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
if test "${lt_cv_objdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
  lt_cv_objdir=.libs
else
  # MS-DOS does not allow filenames that begin with a dot.
  lt_cv_objdir=_libs
fi
rmdir .libs 2>/dev/null
fi
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
echo "${ECHO_T}$lt_cv_objdir" >&6
objdir=$lt_cv_objdir





case $host_os in
aix3*)
  # AIX sometimes has problems with the GCC collect2 program.  For some
  # reason, if we set the COLLECT_NAMES environment variable, the problems
  # vanish in a puff of smoke.
  if test "X${COLLECT_NAMES+set}" != Xset; then
    COLLECT_NAMES=
    export COLLECT_NAMES
  fi
  ;;
esac

# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e 1s/^X//'
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'

# Same as above, but do not quote variable references.
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'

# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

# Constants:
rm="rm -f"

# Global variables:
default_ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
ltmain="$ac_aux_dir/ltmain.sh"
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; 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_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
    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_AR" && ac_cv_prog_ac_ct_AR="false"
fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  AR=$ac_ct_AR
else
  AR="$ac_cv_prog_AR"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; 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_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
    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_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  RANLIB=$ac_ct_RANLIB
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

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


old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
test -z "$AS" && AS=as
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$DLLTOOL" && DLLTOOL=dlltool
test -z "$LD" && LD=ld
test -z "$LN_S" && LN_S="ln -s"
test -z "$MAGIC_CMD" && MAGIC_CMD=file
test -z "$NM" && NM=nm
test -z "$SED" && SED=sed
test -z "$OBJDUMP" && OBJDUMP=objdump
test -z "$RANLIB" && RANLIB=:
test -z "$STRIP" && STRIP=:
test -z "$ac_objext" && ac_objext=o

# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=

if test -n "$RANLIB"; then
  case $host_os in
  openbsd*)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    ;;
  *)
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    ;;
  esac
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi

for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/${ac_tool_prefix}file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    echo "$as_me:$LINENO: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $MAGIC_CMD in
[\\/*] |  ?:[\\/]*)
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  ;;
*)
  lt_save_MAGIC_CMD="$MAGIC_CMD"
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  for ac_dir in $ac_dummy; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/file; then
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
      if test -n "$file_magic_test_file"; then
	case $deplibs_check_method in
	"file_magic "*)
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
	    $EGREP "$file_magic_regex" > /dev/null; then
	    :
	  else
	    cat <<EOF 1>&2

*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org

EOF
	  fi ;;
	esac
      fi
      break
    fi
  done
  IFS="$lt_save_ifs"
  MAGIC_CMD="$lt_save_MAGIC_CMD"
  ;;
esac
fi

MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
echo "${ECHO_T}$MAGIC_CMD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  else
    MAGIC_CMD=:
  fi
fi

  fi
  ;;
esac

enable_dlopen=yes
enable_win32_dll=no

# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
  enableval="$enable_libtool_lock"

fi;
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes


# Check whether --with-pic or --without-pic was given.
if test "${with_pic+set}" = set; then
  withval="$with_pic"
  pic_mode="$withval"
else
  pic_mode=default
fi;
test -z "$pic_mode" && pic_mode=default

# Use C for the default configuration in the libtool script
tagname=
lt_save_CC="$CC"
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


# Source file extension for C test sources.
ac_ext=c

# Object file extension for compiled C test sources.
objext=o
objext=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;\n"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}\n'


# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*



lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'


echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:119095: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:119099: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
else
    :
fi

fi

lt_prog_compiler_wl=
lt_prog_compiler_pic=
lt_prog_compiler_static=

echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6

  if test "$GCC" = yes; then
    lt_prog_compiler_wl='-Wl,'
    lt_prog_compiler_static='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic='-fno-common'
      ;;

    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static='-Bstatic'
      else
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic='-qnocommon'
         lt_prog_compiler_wl='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fpic'
	lt_prog_compiler_static='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl='-Qoption ld ';;
      *)
	lt_prog_compiler_wl='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl='-Qoption ld '
      lt_prog_compiler_pic='-PIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic='-Kconform_pic'
	lt_prog_compiler_static='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl='-Wl,'
      lt_prog_compiler_can_build_shared=no
      ;;

    uts4*)
      lt_prog_compiler_pic='-pic'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
echo "${ECHO_T}$lt_prog_compiler_pic" >&6

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then

echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
if test "${lt_prog_compiler_pic_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:119363: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:119367: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6

if test x"$lt_prog_compiler_pic_works" = xyes; then
    case $lt_prog_compiler_pic in
     "" | " "*) ;;
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
     esac
else
    lt_prog_compiler_pic=
     lt_prog_compiler_can_build_shared=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic=
    ;;
  *)
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
if test "${lt_prog_compiler_static_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works=yes
       fi
     else
       lt_prog_compiler_static_works=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6

if test x"$lt_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi


echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:119467: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:119471: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6

  runpath_var=
  allow_undefined_flag=
  enable_shared_with_static_runtimes=no
  archive_cmds=
  archive_expsym_cmds=
  old_archive_From_new_cmds=
  old_archive_from_expsyms_cmds=
  export_dynamic_flag_spec=
  whole_archive_flag_spec=
  thread_safe_flag_spec=
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_direct=no
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  link_all_deplibs=unknown
  hardcode_automatic=no
  module_cmds=
  module_expsym_cmds=
  always_export_symbols=no
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes

      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag=unsupported
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec='-L$libdir'
      allow_undefined_flag=unsupported
      always_export_symbols=no
      enable_shared_with_static_runtimes=yes
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs=no
      fi
      ;;

    interix3*)
      hardcode_direct=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
      export_dynamic_flag_spec='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs=no
      fi
      ;;
    esac

    if test "$ld_shlibs" = no; then
      runpath_var=
      hardcode_libdir_flag_spec=
      export_dynamic_flag_spec=
      whole_archive_flag_spec=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag=unsupported
      always_export_symbols=yes
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds=''
      hardcode_direct=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct=yes
	  else
  	  # We have old collect2
  	  hardcode_direct=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L=yes
  	  hardcode_libdir_flag_spec='-L$libdir'
  	  hardcode_libdir_separator=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       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 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

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; 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_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag="-z nodefs"
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 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 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

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; 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_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag=' ${wl}-bernotok'
	  allow_undefined_flag=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec='$convenience'
	  archive_cmds_need_lc=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec=' '
      allow_undefined_flag=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc=no
      hardcode_direct=no
      hardcode_automatic=yes
      hardcode_shlibpath_var=unsupported
      whole_archive_flag_spec=''
      link_all_deplibs=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    freebsd1*)
      ld_shlibs=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_direct=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L=yes
      export_dynamic_flag_spec='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	hardcode_direct=yes
	export_dynamic_flag_spec='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld='+b $libdir'
	  hardcode_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	*)
	  hardcode_direct=yes
	  export_dynamic_flag_spec='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      link_all_deplibs=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      ;;

    newsos6)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct=yes
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      hardcode_shlibpath_var=no
      ;;

    openbsd*)
      hardcode_direct=yes
      hardcode_shlibpath_var=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	export_dynamic_flag_spec='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec='-R$libdir'
	   ;;
	 *)
	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_minus_L=yes
      allow_undefined_flag=unsupported
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec='-rpath $libdir'
      fi
      hardcode_libdir_separator=:
      ;;

    solaris*)
      no_undefined_flag=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec='-R$libdir'
      hardcode_shlibpath_var=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_direct=yes
      hardcode_minus_L=yes
      hardcode_shlibpath_var=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds='$CC -r -o $output$reload_objs'
	  hardcode_direct=no
        ;;
	motorola)
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var=no
      ;;

    sysv4.3*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var=no
      export_dynamic_flag_spec='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag='${wl}-z,text'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag='${wl}-z,text'
      allow_undefined_flag='${wl}-z,nodefs'
      archive_cmds_need_lc=no
      hardcode_shlibpath_var=no
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      export_dynamic_flag_spec='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec='-L$libdir'
      hardcode_shlibpath_var=no
      ;;

    *)
      ld_shlibs=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6
test "$ld_shlibs" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      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); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl
	pic_flag=$lt_prog_compiler_pic
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag
        allow_undefined_flag=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc=no
        else
	  archive_cmds_need_lc=yes
        fi
        allow_undefined_flag=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
echo "${ECHO_T}$archive_cmds_need_lc" >&6
      ;;
    esac
  fi
  ;;
esac

echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var" || \
   test "X$hardcode_automatic" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
     test "$hardcode_minus_L" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action" >&5
echo "${ECHO_T}$hardcode_action" >&6

if test "$hardcode_action" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi

striplib=
old_striplib=
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# FIXME - insert some real tests, host_os isn't really good enough
  case $host_os in
   darwin*)
       if test -n "$STRIP" ; then
         striplib="$STRIP -x"
         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
       ;;
   *)
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    ;;
  esac
fi

if test "x$enable_dlopen" != xyes; then
  enable_dlopen=unknown
  enable_dlopen_self=unknown
  enable_dlopen_self_static=unknown
else
  lt_cv_dlopen=no
  lt_cv_dlopen_libs=

  case $host_os in
  beos*)
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    ;;

  mingw* | pw32*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
   ;;

  cygwin*)
    lt_cv_dlopen="dlopen"
    lt_cv_dlopen_libs=
   ;;

  darwin*)
  # if libdl is installed we need to link against it
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  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
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else

    lt_cv_dlopen="dyld"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes

fi

   ;;

  *)
    echo "$as_me:$LINENO: checking for shl_load" >&5
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
if test "${ac_cv_func_shl_load+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.  */
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shl_load innocuous_shl_load

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shl_load

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_shl_load) || defined (__stub___shl_load)
choke me
#else
char (*f) () = shl_load;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != shl_load;
  ;
  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
  ac_cv_func_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_shl_load=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
if test $ac_cv_func_shl_load = yes; then
  lt_cv_dlopen="shl_load"
else
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char shl_load ();
int
main ()
{
shl_load ();
  ;
  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
  ac_cv_lib_dld_shl_load=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dld_shl_load=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
if test $ac_cv_lib_dld_shl_load = yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
else
  echo "$as_me:$LINENO: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_func_dlopen+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.  */
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define dlopen innocuous_dlopen

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef dlopen

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
char (*f) () = dlopen;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != dlopen;
  ;
  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
  ac_cv_func_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
  lt_cv_dlopen="dlopen"
else
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  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
  ac_cv_lib_dl_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dl_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsvld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  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
  ac_cv_lib_svld_dlopen=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_svld_dlopen=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
if test $ac_cv_lib_svld_dlopen = yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldld  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dld_link ();
int
main ()
{
dld_link ();
  ;
  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
  ac_cv_lib_dld_dld_link=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_dld_dld_link=no
fi
rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
if test $ac_cv_lib_dld_dld_link = yes; then
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
fi


fi


fi


fi


fi


fi

    ;;
  esac

  if test "x$lt_cv_dlopen" != xno; then
    enable_dlopen=yes
  else
    enable_dlopen=no
  fi

  case $lt_cv_dlopen in
  dlopen)
    save_CPPFLAGS="$CPPFLAGS"
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"

    save_LDFLAGS="$LDFLAGS"
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"

    save_LIBS="$LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"

    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 121812 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

    exit (status);
}
EOF
  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); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
echo "${ECHO_T}$lt_cv_dlopen_self" >&6

    if test "x$lt_cv_dlopen_self" = xyes; then
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
if test "${lt_cv_dlopen_self_static+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  	  if test "$cross_compiling" = yes; then :
  lt_cv_dlopen_self_static=cross
else
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
#line 121912 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif

#include <stdio.h>

#ifdef RTLD_GLOBAL
#  define LT_DLGLOBAL		RTLD_GLOBAL
#else
#  ifdef DL_GLOBAL
#    define LT_DLGLOBAL		DL_GLOBAL
#  else
#    define LT_DLGLOBAL		0
#  endif
#endif

/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
#  ifdef RTLD_LAZY
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
#  else
#    ifdef DL_LAZY
#      define LT_DLLAZY_OR_NOW		DL_LAZY
#    else
#      ifdef RTLD_NOW
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
#      else
#        ifdef DL_NOW
#          define LT_DLLAZY_OR_NOW	DL_NOW
#        else
#          define LT_DLLAZY_OR_NOW	0
#        endif
#      endif
#    endif
#  endif
#endif

#ifdef __cplusplus
extern "C" void exit (int);
#endif

void fnord() { int i=42;}
int main ()
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;

  if (self)
    {
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
      /* dlclose (self); */
    }
  else
    puts (dlerror ());

    exit (status);
}
EOF
  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); } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&5 2>/dev/null
    lt_status=$?
    case x$lt_status in
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
    esac
  else :
    # compilation failed
    lt_cv_dlopen_self_static=no
  fi
fi
rm -fr conftest*


fi
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    fi

    CPPFLAGS="$save_CPPFLAGS"
    LDFLAGS="$save_LDFLAGS"
    LIBS="$save_LIBS"
    ;;
  esac

  case $lt_cv_dlopen_self in
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  *) enable_dlopen_self=unknown ;;
  esac

  case $lt_cv_dlopen_self_static in
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  *) enable_dlopen_self_static=unknown ;;
  esac
fi


# Report which library types will actually be built
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6

echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case $host_os in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;

aix4* | aix5*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
    ;;
esac
echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6

echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler \
    CC \
    LD \
    lt_prog_compiler_wl \
    lt_prog_compiler_pic \
    lt_prog_compiler_static \
    lt_prog_compiler_no_builtin_flag \
    export_dynamic_flag_spec \
    thread_safe_flag_spec \
    whole_archive_flag_spec \
    enable_shared_with_static_runtimes \
    old_archive_cmds \
    old_archive_from_new_cmds \
    predep_objects \
    postdep_objects \
    predeps \
    postdeps \
    compiler_lib_search_path \
    archive_cmds \
    archive_expsym_cmds \
    postinstall_cmds \
    postuninstall_cmds \
    old_archive_from_expsyms_cmds \
    allow_undefined_flag \
    no_undefined_flag \
    export_symbols_cmds \
    hardcode_libdir_flag_spec \
    hardcode_libdir_flag_spec_ld \
    hardcode_libdir_separator \
    hardcode_automatic \
    module_cmds \
    module_expsym_cmds \
    lt_cv_prog_compiler_c_o \
    exclude_expsyms \
    include_expsyms; do

    case $var in
    old_archive_cmds | \
    old_archive_from_new_cmds | \
    archive_cmds | \
    archive_expsym_cmds | \
    module_cmds | \
    module_expsym_cmds | \
    old_archive_from_expsyms_cmds | \
    export_symbols_cmds | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="${ofile}T"
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  $rm -f "$cfgfile"
  { echo "$as_me:$LINENO: creating $ofile" >&5
echo "$as_me: creating $ofile" >&6;}

  cat <<__EOF__ >> "$cfgfile"
#! $SHELL

# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
#
# This file is part of GNU Libtool:
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.

# A sed program that does not truncate output.
SED=$lt_SED

# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="$SED -e 1s/^X//"

# 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

# The names of the tagged configurations supported by this script.
available_tags=

# ### BEGIN LIBTOOL CONFIG

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler

# Is the compiler the GNU C compiler?
with_gcc=$GCC

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms

# ### END LIBTOOL CONFIG

__EOF__


  case $host_os in
  aix3*)
    cat <<\EOF >> "$cfgfile"

# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
EOF
    ;;
  esac

  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)

  mv -f "$cfgfile" "$ofile" || \
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"

else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  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

CC="$lt_save_CC"


# Check whether --with-tags or --without-tags was given.
if test "${with_tags+set}" = set; then
  withval="$with_tags"
  tagnames="$withval"
fi;

if test -f "$ltmain" && test -n "$tagnames"; then
  if test ! -f "${ofile}"; then
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  fi

  if test -z "$LTCC"; then
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
    if test -z "$LTCC"; then
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
    else
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
    fi
  fi
  if test -z "$LTCFLAGS"; then
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  fi

  # Extract list of available tagged configurations in $ofile.
  # Note that this assumes the entire list is on one line.
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`

  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  for tagname in $tagnames; do
    IFS="$lt_save_ifs"
    # Check whether tagname contains only valid characters
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
    "") ;;
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
echo "$as_me: error: invalid tag name: $tagname" >&2;}
   { (exit 1); exit 1; }; }
	;;
    esac

    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
    then
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Update the list of available tags.
    if test -n "$tagname"; then
      echo appending configuration tag \"$tagname\" to $ofile

      case $tagname in
      CXX)
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
	    (test "X$CXX" != "Xg++"))) ; then
	  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




archive_cmds_need_lc_CXX=no
allow_undefined_flag_CXX=
always_export_symbols_CXX=no
archive_expsym_cmds_CXX=
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_libdir_flag_spec_CXX=
hardcode_libdir_flag_spec_ld_CXX=
hardcode_libdir_separator_CXX=
hardcode_minus_L_CXX=no
hardcode_shlibpath_var_CXX=unsupported
hardcode_automatic_CXX=no
module_cmds_CXX=
module_expsym_cmds_CXX=
link_all_deplibs_CXX=unknown
old_archive_cmds_CXX=$old_archive_cmds
no_undefined_flag_CXX=
whole_archive_flag_spec_CXX=
enable_shared_with_static_runtimes_CXX=no

# Dependencies to place before and after the object being linked:
predep_objects_CXX=
postdep_objects_CXX=
predeps_CXX=
postdeps_CXX=
compiler_lib_search_path_CXX=

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="int some_variable = 0;\n"

# Code to be used in simple link tests
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC=$CC
lt_save_LD=$LD
lt_save_GCC=$GCC
GCC=$GXX
lt_save_with_gnu_ld=$with_gnu_ld
lt_save_path_LD=$lt_cv_path_LD
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
else
  $as_unset lt_cv_prog_gnu_ld
fi
if test -n "${lt_cv_path_LDCXX+set}"; then
  lt_cv_path_LD=$lt_cv_path_LDCXX
else
  $as_unset lt_cv_path_LD
fi
test -z "${LDCXX+set}" || LD=$LDCXX
CC=${CXX-"c++"}
compiler=$CC
compiler_CXX=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# We don't want -fno-exception wen compiling C++ code, so set the
# no_builtin_flag separately
if test "$GXX" = yes; then
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
else
  lt_prog_compiler_no_builtin_flag_CXX=
fi

if test "$GXX" = yes; then
  # Set up default GNU C++ configuration


# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
  withval="$with_gnu_ld"
  test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi;
ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  *)
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
      done
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
  echo "$as_me:$LINENO: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
else
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
fi
if test "${lt_cv_path_LD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
  echo "$as_me:$LINENO: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
with_gnu_ld=$lt_cv_prog_gnu_ld



  # Check if GNU C++ uses GNU ld as the underlying linker, since the
  # archiving commands below assume that GNU ld is being used.
  if test "$with_gnu_ld" = yes; then
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

    # If archive_cmds runs LD, not CC, wlarc should be empty
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
    #     investigate it a little bit more. (MM)
    wlarc='${wl}'

    # ancient GNU ld didn't support --whole-archive et. al.
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
	grep 'no-whole-archive' > /dev/null; then
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec_CXX=
    fi
  else
    with_gnu_ld=no
    wlarc=

    # A generic and very simple default shared library creation
    # command for GNU C++ for the case where it uses the native
    # linker, instead of GNU ld.  If possible, this setting should
    # overridden to take advantage of the native linker features on
    # the platform it is being used on.
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  fi

  # Commands to make compiler produce verbose output that lists
  # what "hidden" libraries, object files and flags are used when
  # linking a shared library.
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

else
  GXX=no
  with_gnu_ld=no
  wlarc=
fi

# PORTME: fill in a description of your system's C++ link characteristics
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
ld_shlibs_CXX=yes
case $host_os in
  aix3*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  aix4* | aix5*)
    if test "$host_cpu" = ia64; then
      # On IA64, the linker does run time linking by default, so we don't
      # have to do anything special.
      aix_use_runtimelinking=no
      exp_sym_flag='-Bexport'
      no_entry_flag=""
    else
      aix_use_runtimelinking=no

      # Test if we are trying to use run time linking or normal
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
      # need to do runtime linking.
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	for ld_flag in $LDFLAGS; do
	  case $ld_flag in
	  *-brtl*)
	    aix_use_runtimelinking=yes
	    break
	    ;;
	  esac
	done
	;;
      esac

      exp_sym_flag='-bexport'
      no_entry_flag='-bnoentry'
    fi

    # When large executables or shared objects are built, AIX ld can
    # have problems creating the table of contents.  If linking a library
    # or program results in "error TOC overflow" add -mminimal-toc to
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

    archive_cmds_CXX=''
    hardcode_direct_CXX=yes
    hardcode_libdir_separator_CXX=':'
    link_all_deplibs_CXX=yes

    if test "$GXX" = yes; then
      case $host_os in aix4.[012]|aix4.[012].*)
      # We only want to do this on AIX 4.2 and lower, the check
      # below for broken collect2 doesn't work under 4.3+
	collect2name=`${CC} -print-prog-name=collect2`
	if test -f "$collect2name" && \
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	then
	  # We have reworked collect2
	  hardcode_direct_CXX=yes
	else
	  # We have old collect2
	  hardcode_direct_CXX=unsupported
	  # It fails to find uninstalled libraries when the uninstalled
	  # path is not listed in the libpath.  Setting hardcode_minus_L
	  # to unsupported forces relinking
	  hardcode_minus_L_CXX=yes
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
	  hardcode_libdir_separator_CXX=
	fi
	;;
      esac
      shared_flag='-shared'
      if test "$aix_use_runtimelinking" = yes; then
	shared_flag="$shared_flag "'${wl}-G'
      fi
    else
      # not using gcc
      if test "$host_cpu" = ia64; then
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
	# chokes on -Wl,-G. The following line is correct:
	shared_flag='-G'
      else
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag='${wl}-G'
	else
	  shared_flag='${wl}-bM:SRE'
	fi
      fi
    fi

    # It seems that -bexpall does not export symbols beginning with
    # underscore (_), so it is better to generate a list of symbols to export.
    always_export_symbols_CXX=yes
    if test "$aix_use_runtimelinking" = yes; then
      # Warning - without using the other runtime loading flags (-brtl),
      # -berok will link without error, but may produce a broken library.
      allow_undefined_flag_CXX='-berok'
      # Determine the default libpath from the value encoded in an empty executable.
      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 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

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; 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_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"

      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     else
      if test "$host_cpu" = ia64; then
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
	allow_undefined_flag_CXX="-z nodefs"
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
      else
	# Determine the default libpath from the value encoded in an empty executable.
	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 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

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; 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_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
	# Warning - without using the other run time loading flags,
	# -berok will link without error, but may produce a broken library.
	no_undefined_flag_CXX=' ${wl}-bernotok'
	allow_undefined_flag_CXX=' ${wl}-berok'
	# Exported symbols can be pulled into shared objects from archives
	whole_archive_flag_spec_CXX='$convenience'
	archive_cmds_need_lc_CXX=yes
	# This is similar to how AIX traditionally builds its shared libraries.
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
      fi
    fi
    ;;

  beos*)
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
      allow_undefined_flag_CXX=unsupported
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
      # support --undefined.  This deserves some investigation.  FIXME
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    else
      ld_shlibs_CXX=no
    fi
    ;;

  chorus*)
    case $cc_basename in
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;

  cygwin* | mingw* | pw32*)
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
    # as there is no search path for DLLs.
    hardcode_libdir_flag_spec_CXX='-L$libdir'
    allow_undefined_flag_CXX=unsupported
    always_export_symbols_CXX=no
    enable_shared_with_static_runtimes_CXX=yes

    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      # If the export-symbols file already is a .def file (1st line
      # is EXPORTS), use it as is; otherwise, prepend...
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	cp $export_symbols $output_objdir/$soname.def;
      else
	echo EXPORTS > $output_objdir/$soname.def;
	cat $export_symbols >> $output_objdir/$soname.def;
      fi~
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    else
      ld_shlibs_CXX=no
    fi
  ;;
      darwin* | rhapsody*)
        case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
        esac
      archive_cmds_need_lc_CXX=no
      hardcode_direct_CXX=no
      hardcode_automatic_CXX=yes
      hardcode_shlibpath_var_CXX=unsupported
      whole_archive_flag_spec_CXX=''
      link_all_deplibs_CXX=yes

    if test "$GXX" = yes ; then
      lt_int_apple_cc_single_mod=no
      output_verbose_link_cmd='echo'
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
       lt_int_apple_cc_single_mod=yes
      fi
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      else
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
        fi
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          else
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          fi
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_CXX=no
          ;;
      esac
      fi
        ;;

  dgux*)
    case $cc_basename in
      ec++*)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      ghcx*)
	# Green Hills C++ Compiler
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  freebsd[12]*)
    # C++ shared libraries reported to be fairly broken before switch to ELF
    ld_shlibs_CXX=no
    ;;
  freebsd-elf*)
    archive_cmds_need_lc_CXX=no
    ;;
  freebsd* | kfreebsd*-gnu | dragonfly*)
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    # conventions
    ld_shlibs_CXX=yes
    ;;
  gnu*)
    ;;
  hpux9*)
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    hardcode_libdir_separator_CXX=:
    export_dynamic_flag_spec_CXX='${wl}-E'
    hardcode_direct_CXX=yes
    hardcode_minus_L_CXX=yes # Not in the search PATH,
				# but as the default
				# location of the library.

    case $cc_basename in
    CC*)
      # FIXME: insert proper C++ library support
      ld_shlibs_CXX=no
      ;;
    aCC*)
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      #
      # There doesn't appear to be a way to prevent this compiler from
      # explicitly linking system object files so we need to strip them
      # from the output so that they don't get included in the library
      # dependencies.
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
      ;;
    *)
      if test "$GXX" = yes; then
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
      fi
      ;;
    esac
    ;;
  hpux10*|hpux11*)
    if test $with_gnu_ld = no; then
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_CXX=:

      case $host_cpu in
      hppa*64*|ia64*)
	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
        ;;
      *)
	export_dynamic_flag_spec_CXX='${wl}-E'
        ;;
      esac
    fi
    case $host_cpu in
    hppa*64*|ia64*)
      hardcode_direct_CXX=no
      hardcode_shlibpath_var_CXX=no
      ;;
    *)
      hardcode_direct_CXX=yes
      hardcode_minus_L_CXX=yes # Not in the search PATH,
					      # but as the default
					      # location of the library.
      ;;
    esac

    case $cc_basename in
      CC*)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      aCC*)
	case $host_cpu in
	hppa*64*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	*)
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	  ;;
	esac
	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes; then
	  if test $with_gnu_ld = no; then
	    case $host_cpu in
	    hppa*64*)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    ia64*)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    *)
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	      ;;
	    esac
	  fi
	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  interix3*)
    hardcode_direct_CXX=no
    hardcode_shlibpath_var_CXX=no
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    export_dynamic_flag_spec_CXX='${wl}-E'
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
    # Instead, shared libraries are loaded at an image base (0x10000000 by
    # default) and relocated if they conflict, which is a slow very memory
    # consuming and fragmenting process.  To avoid this, we pick a random,
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    ;;
  irix5* | irix6*)
    case $cc_basename in
      CC*)
	# SGI C++
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'

	# Archives containing C++ object files must be created using
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
	# necessary to make sure instantiated templates are included
	# in the archive.
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
	;;
      *)
	if test "$GXX" = yes; then
	  if test "$with_gnu_ld" = no; then
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	  else
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
	  fi
	fi
	link_all_deplibs_CXX=yes
	;;
    esac
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    hardcode_libdir_separator_CXX=:
    ;;
  linux*)
    case $cc_basename in
      KCC*)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'

	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

	# Archives containing C++ object files must be created using
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
	;;
      icpc*)
	# Intel C++
	with_gnu_ld=yes
	# version 8.0 and above of icpc choke on multiply defined symbols
	# if we add $predep_objects and $postdep_objects, however 7.1 and
	# earlier do not add the objects themselves.
	case `$CC -V 2>&1` in
	*"Version 7."*)
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  ;;
	*)  # Version 8.0 or newer
	  tmp_idyn=
	  case $host_cpu in
	    ia64*) tmp_idyn=' -i_dynamic';;
	  esac
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  ;;
	esac
	archive_cmds_need_lc_CXX=no
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
	;;
      pgCC*)
        # Portland Group C++ compiler
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'

	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
        ;;
      cxx*)
	# Compaq C++
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'

	runpath_var=LD_RUN_PATH
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
    esac
    ;;
  lynxos*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  m88k*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  mvs*)
    case $cc_basename in
      cxx*)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  netbsd*)
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
      wlarc=
      hardcode_libdir_flag_spec_CXX='-R$libdir'
      hardcode_direct_CXX=yes
      hardcode_shlibpath_var_CXX=no
    fi
    # Workaround some broken pre-1.5 toolchains
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    ;;
  openbsd2*)
    # C++ shared libraries are fairly broken
    ld_shlibs_CXX=no
    ;;
  openbsd*)
    hardcode_direct_CXX=yes
    hardcode_shlibpath_var_CXX=no
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
      export_dynamic_flag_spec_CXX='${wl}-E'
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    fi
    output_verbose_link_cmd='echo'
    ;;
  osf3*)
    case $cc_basename in
      KCC*)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	hardcode_libdir_separator_CXX=:

	# Archives containing C++ object files must be created using
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'

	;;
      RCC*)
	# Rational C++ 2.4.1
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      cxx*)
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'

	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

	  # Commands to make compiler produce verbose output that lists
	  # what "hidden" libraries, object files and flags are used when
	  # linking a shared library.
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  osf4* | osf5*)
    case $cc_basename in
      KCC*)
	# Kuck and Associates, Inc. (KAI) C++ Compiler

	# KCC will only create a shared library if the output file
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
	# to its proper name (with version) after linking.
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
	hardcode_libdir_separator_CXX=:

	# Archives containing C++ object files must be created using
	# the KAI C++ compiler.
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
	;;
      RCC*)
	# Rational C++ 2.4.1
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      cxx*)
	allow_undefined_flag_CXX=' -expect_unresolved \*'
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
	  echo "-hidden">> $lib.exp~
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
	  $rm $lib.exp'

	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
	hardcode_libdir_separator_CXX=:

	# Commands to make compiler produce verbose output that lists
	# what "hidden" libraries, object files and flags are used when
	# linking a shared library.
	#
	# There doesn't appear to be a way to prevent this compiler from
	# explicitly linking system object files so we need to strip them
	# from the output so that they don't get included in the library
	# dependencies.
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
	;;
      *)
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'

	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	  hardcode_libdir_separator_CXX=:

	  # Commands to make compiler produce verbose output that lists
	  # what "hidden" libraries, object files and flags are used when
	  # linking a shared library.
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'

	else
	  # FIXME: insert proper C++ library support
	  ld_shlibs_CXX=no
	fi
	;;
    esac
    ;;
  psos*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  sunos4*)
    case $cc_basename in
      CC*)
	# Sun C++ 4.x
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      lcc*)
	# Lucid
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  solaris*)
    case $cc_basename in
      CC*)
	# Sun C++ 4.2, 5.x and Centerline C++
        archive_cmds_need_lc_CXX=yes
	no_undefined_flag_CXX=' -zdefs'
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	hardcode_libdir_flag_spec_CXX='-R$libdir'
	hardcode_shlibpath_var_CXX=no
	case $host_os in
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
	  *)
	    # The C++ compiler is used as linker so we must use $wl
	    # flag to pass the commands to the underlying system
	    # linker. We must also pass each convience library through
	    # to the system linker between allextract/defaultextract.
	    # The C++ compiler will combine linker options so we
	    # cannot just pass the convience library names through
	    # without $wl.
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
	    ;;
	esac
	link_all_deplibs_CXX=yes

	output_verbose_link_cmd='echo'

	# Archives containing C++ object files must be created using
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
	# necessary to make sure instantiated templates are included
	# in the archive.
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
	;;
      gcx*)
	# Green Hills C++ Compiler
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'

	# The C++ compiler must be used to create the archive.
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
	;;
      *)
	# GNU C++ compiler with Solaris linker
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
	  else
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
	    # platform.
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'

	    # Commands to make compiler produce verbose output that lists
	    # what "hidden" libraries, object files and flags are used when
	    # linking a shared library.
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
	  fi

	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
	fi
	;;
    esac
    ;;
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
    no_undefined_flag_CXX='${wl}-z,text'
    archive_cmds_need_lc_CXX=no
    hardcode_shlibpath_var_CXX=no
    runpath_var='LD_RUN_PATH'

    case $cc_basename in
      CC*)
	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
      *)
	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
    esac
    ;;
  sysv5* | sco3.2v5* | sco5v6*)
    # Note: We can NOT use -z defs as we might desire, because we do not
    # link with -lc, and that would cause any symbols used from libc to
    # always be unresolved, which means just about no library would
    # ever link correctly.  If we're not using GNU ld we use -z text
    # though, which does catch some bad symbols but isn't as heavy-handed
    # as -z defs.
    # For security reasons, it is highly recommended that you always
    # use absolute paths for naming shared libraries, and exclude the
    # DT_RUNPATH tag from executables and libraries.  But doing so
    # requires that you compile everything twice, which is a pain.
    # So that behaviour is only enabled if SCOABSPATH is set to a
    # non-empty value in the environment.  Most likely only useful for
    # creating official distributions of packages.
    # This is a hack until libtool officially supports absolute path
    # names for shared libraries.
    no_undefined_flag_CXX='${wl}-z,text'
    allow_undefined_flag_CXX='${wl}-z,nodefs'
    archive_cmds_need_lc_CXX=no
    hardcode_shlibpath_var_CXX=no
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
    hardcode_libdir_separator_CXX=':'
    link_all_deplibs_CXX=yes
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
    runpath_var='LD_RUN_PATH'

    case $cc_basename in
      CC*)
	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
      *)
	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	;;
    esac
    ;;
  tandem*)
    case $cc_basename in
      NCC*)
	# NonStop-UX NCC 3.20
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
      *)
	# FIXME: insert proper C++ library support
	ld_shlibs_CXX=no
	;;
    esac
    ;;
  vxworks*)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
  *)
    # FIXME: insert proper C++ library support
    ld_shlibs_CXX=no
    ;;
esac
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6
test "$ld_shlibs_CXX" = no && can_build_shared=no

GCC_CXX="$GXX"
LD_CXX="$LD"


cat > conftest.$ac_ext <<EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
EOF

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
  # Parse the compiler output and extract the necessary
  # objects, libraries and library flags.

  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  pre_test_object_deps_done=no

  # The `*' in the case matches for architectures that use `case' in
  # $output_verbose_cmd can trigger glob expansion during the loop
  # eval without this substitution.
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`

  for p in `eval $output_verbose_link_cmd`; do
    case $p in

    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       if test $p = "-L" \
	  || test $p = "-R"; then
	 prev=$p
	 continue
       else
	 prev=
       fi

       if test "$pre_test_object_deps_done" = no; then
	 case $p in
	 -L* | -R*)
	   # Internal compiler library paths should come after those
	   # provided the user.  The postdeps already come after the
	   # user supplied libs so there is no need to process them.
	   if test -z "$compiler_lib_search_path_CXX"; then
	     compiler_lib_search_path_CXX="${prev}${p}"
	   else
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
	   fi
	   ;;
	 # The "-l" case would never come before the object being
	 # linked, so don't bother handling this case.
	 esac
       else
	 if test -z "$postdeps_CXX"; then
	   postdeps_CXX="${prev}${p}"
	 else
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
	 fi
       fi
       ;;

    *.$objext)
       # This assumes that the test object file only shows up
       # once in the compiler output.
       if test "$p" = "conftest.$objext"; then
	 pre_test_object_deps_done=yes
	 continue
       fi

       if test "$pre_test_object_deps_done" = no; then
	 if test -z "$predep_objects_CXX"; then
	   predep_objects_CXX="$p"
	 else
	   predep_objects_CXX="$predep_objects_CXX $p"
	 fi
       else
	 if test -z "$postdep_objects_CXX"; then
	   postdep_objects_CXX="$p"
	 else
	   postdep_objects_CXX="$postdep_objects_CXX $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling CXX test program"
fi

$rm -f confest.$objext

# PORTME: override above test on systems where it is broken
case $host_os in
interix3*)
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  # hack all around it, let's just trust "g++" to DTRT.
  predep_objects_CXX=
  postdep_objects_CXX=
  postdeps_CXX=
  ;;

solaris*)
  case $cc_basename in
  CC*)
    # Adding this requires a known-good setup of shared libraries for
    # Sun compiler versions before 5.6, else PIC objects from an old
    # archive will be linked into the output, leading to subtle bugs.
    postdeps_CXX='-lCstd -lCrun'
    ;;
  esac
  ;;
esac


case " $postdeps_CXX " in
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
esac

lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=

echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6

  # C++ specific cases for pic, static, wl, etc.
  if test "$GXX" = yes; then
    lt_prog_compiler_wl_CXX='-Wl,'
    lt_prog_compiler_static_CXX='-static'

    case $host_os in
    aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_CXX='-Bstatic'
      fi
      ;;
    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
      ;;
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | os2* | pw32*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
      ;;
    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_CXX='-fno-common'
      ;;
    *djgpp*)
      # DJGPP does not support shared libraries at all
      lt_prog_compiler_pic_CXX=
      ;;
    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;
    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_CXX=-Kconform_pic
      fi
      ;;
    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	;;
      *)
	lt_prog_compiler_pic_CXX='-fPIC'
	;;
      esac
      ;;
    *)
      lt_prog_compiler_pic_CXX='-fPIC'
      ;;
    esac
  else
    case $host_os in
      aix4* | aix5*)
	# All AIX code is PIC.
	if test "$host_cpu" = ia64; then
	  # AIX 5 now supports IA64 processor
	  lt_prog_compiler_static_CXX='-Bstatic'
	else
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
	fi
	;;
      chorus*)
	case $cc_basename in
	cxch68*)
	  # Green Hills C++ Compiler
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
	  ;;
	esac
	;;
       darwin*)
         # PIC is the default on this platform
         # Common symbols not allowed in MH_DYLIB files
         case $cc_basename in
           xlc*)
           lt_prog_compiler_pic_CXX='-qnocommon'
           lt_prog_compiler_wl_CXX='-Wl,'
           ;;
         esac
       ;;
      dgux*)
	case $cc_basename in
	  ec++*)
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  ghcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      freebsd* | kfreebsd*-gnu | dragonfly*)
	# FreeBSD uses GNU C++
	;;
      hpux9* | hpux10* | hpux11*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    if test "$host_cpu" != ia64; then
	      lt_prog_compiler_pic_CXX='+Z'
	    fi
	    ;;
	  aCC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
	    case $host_cpu in
	    hppa*64*|ia64*)
	      # +Z the default
	      ;;
	    *)
	      lt_prog_compiler_pic_CXX='+Z'
	      ;;
	    esac
	    ;;
	  *)
	    ;;
	esac
	;;
      interix*)
	# This is c89, which is MS Visual C++ (no shared libs)
	# Anyone wants to do a port?
	;;
      irix5* | irix6* | nonstopux*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_static_CXX='-non_shared'
	    # CC pic flag -KPIC is the default.
	    ;;
	  *)
	    ;;
	esac
	;;
      linux*)
	case $cc_basename in
	  KCC*)
	    # KAI C++ Compiler
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    ;;
	  icpc* | ecpc*)
	    # Intel C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  pgCC*)
	    # Portland Group C++ compiler.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fpic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  cxx*)
	    # Compaq C++
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      osf3* | osf4* | osf5*)
	case $cc_basename in
	  KCC*)
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
	    ;;
	  RCC*)
	    # Rational C++ 2.4.1
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  cxx*)
	    # Digital/Compaq C++
	    lt_prog_compiler_wl_CXX='-Wl,'
	    # Make sure the PIC flag is empty.  It appears that all Alpha
	    # Linux and Compaq Tru64 Unix objects are PIC.
	    lt_prog_compiler_pic_CXX=
	    lt_prog_compiler_static_CXX='-non_shared'
	    ;;
	  *)
	    ;;
	esac
	;;
      psos*)
	;;
      solaris*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.2, 5.x and Centerline C++
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    lt_prog_compiler_wl_CXX='-Qoption ld '
	    ;;
	  gcx*)
	    # Green Hills C++ Compiler
	    lt_prog_compiler_pic_CXX='-PIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sunos4*)
	case $cc_basename in
	  CC*)
	    # Sun C++ 4.x
	    lt_prog_compiler_pic_CXX='-pic'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	  lcc*)
	    # Lucid
	    lt_prog_compiler_pic_CXX='-pic'
	    ;;
	  *)
	    ;;
	esac
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
	case $cc_basename in
	  CC*)
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-Bstatic'
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  fi

echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then

echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_CXX=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:124252: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:124256: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_CXX=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6

if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
    case $lt_prog_compiler_pic_CXX in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
     esac
else
    lt_prog_compiler_pic_CXX=
     lt_prog_compiler_can_build_shared_CXX=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_CXX=
    ;;
  *)
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_CXX=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_prog_compiler_static_works_CXX=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6

if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi


echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_CXX=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:124356: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:124360: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_CXX=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  case $host_os in
  aix4* | aix5*)
    # If we're using GNU nm, then we don't want the "-C" option.
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    else
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    fi
    ;;
  pw32*)
    export_symbols_cmds_CXX="$ltdll_cmds"
  ;;
  cygwin* | mingw*)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  *)
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  esac

echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
echo "${ECHO_T}$ld_shlibs_CXX" >&6
test "$ld_shlibs_CXX" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_CXX" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_CXX=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_CXX in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      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); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_CXX
	pic_flag=$lt_prog_compiler_pic_CXX
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
        allow_undefined_flag_CXX=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_CXX=no
        else
	  archive_cmds_need_lc_CXX=yes
        fi
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
      ;;
    esac
  fi
  ;;
esac

echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_CXX=
if test -n "$hardcode_libdir_flag_spec_CXX" || \
   test -n "$runpath_var_CXX" || \
   test "X$hardcode_automatic_CXX" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_CXX" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     test "$hardcode_minus_L_CXX" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_CXX=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_CXX=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_CXX=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
echo "${ECHO_T}$hardcode_action_CXX" >&6

if test "$hardcode_action_CXX" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_CXX \
    CC_CXX \
    LD_CXX \
    lt_prog_compiler_wl_CXX \
    lt_prog_compiler_pic_CXX \
    lt_prog_compiler_static_CXX \
    lt_prog_compiler_no_builtin_flag_CXX \
    export_dynamic_flag_spec_CXX \
    thread_safe_flag_spec_CXX \
    whole_archive_flag_spec_CXX \
    enable_shared_with_static_runtimes_CXX \
    old_archive_cmds_CXX \
    old_archive_from_new_cmds_CXX \
    predep_objects_CXX \
    postdep_objects_CXX \
    predeps_CXX \
    postdeps_CXX \
    compiler_lib_search_path_CXX \
    archive_cmds_CXX \
    archive_expsym_cmds_CXX \
    postinstall_cmds_CXX \
    postuninstall_cmds_CXX \
    old_archive_from_expsyms_cmds_CXX \
    allow_undefined_flag_CXX \
    no_undefined_flag_CXX \
    export_symbols_cmds_CXX \
    hardcode_libdir_flag_spec_CXX \
    hardcode_libdir_flag_spec_ld_CXX \
    hardcode_libdir_separator_CXX \
    hardcode_automatic_CXX \
    module_cmds_CXX \
    module_expsym_cmds_CXX \
    lt_cv_prog_compiler_c_o_CXX \
    exclude_expsyms_CXX \
    include_expsyms_CXX; do

    case $var in
    old_archive_cmds_CXX | \
    old_archive_from_new_cmds_CXX | \
    archive_cmds_CXX | \
    archive_expsym_cmds_CXX | \
    module_cmds_CXX | \
    module_expsym_cmds_CXX | \
    old_archive_from_expsyms_cmds_CXX | \
    export_symbols_cmds_CXX | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_CXX

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU C compiler?
with_gcc=$GCC_CXX

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_CXX

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_CXX
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_CXX

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_CXX

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_CXX

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_CXX

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_CXX

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_CXX

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_CXX

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_CXX"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_CXX

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_CXX

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_CXX

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_CXX

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  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

CC=$lt_save_CC
LDCXX=$LD
LD=$lt_save_LD
GCC=$lt_save_GCC
with_gnu_ldcxx=$with_gnu_ld
with_gnu_ld=$lt_save_with_gnu_ld
lt_cv_path_LDCXX=$lt_cv_path_LD
lt_cv_path_LD=$lt_save_path_LD
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld

	else
	  tagname=""
	fi
	;;

      F77)
	if test -n "$F77" && test "X$F77" != "Xno"; then

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


archive_cmds_need_lc_F77=no
allow_undefined_flag_F77=
always_export_symbols_F77=no
archive_expsym_cmds_F77=
export_dynamic_flag_spec_F77=
hardcode_direct_F77=no
hardcode_libdir_flag_spec_F77=
hardcode_libdir_flag_spec_ld_F77=
hardcode_libdir_separator_F77=
hardcode_minus_L_F77=no
hardcode_automatic_F77=no
module_cmds_F77=
module_expsym_cmds_F77=
link_all_deplibs_F77=unknown
old_archive_cmds_F77=$old_archive_cmds
no_undefined_flag_F77=
whole_archive_flag_spec_F77=
enable_shared_with_static_runtimes_F77=no

# Source file extension for f77 test sources.
ac_ext=f

# Object file extension for compiled f77 test sources.
objext=o
objext_F77=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"

# Code to be used in simple link tests
lt_simple_link_test_code="      program t\n      end\n"

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${F77-"f77"}
compiler=$CC
compiler_F77=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $can_build_shared" >&5
echo "${ECHO_T}$can_build_shared" >&6

echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
test "$can_build_shared" = "no" && enable_shared=no

# On AIX, shared libraries and static libraries use the same namespace, and
# are all built from PIC.
case $host_os in
aix3*)
  test "$enable_shared" = yes && enable_static=no
  if test -n "$RANLIB"; then
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
    postinstall_cmds='$RANLIB $lib'
  fi
  ;;
aix4* | aix5*)
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    test "$enable_shared" = yes && enable_static=no
  fi
  ;;
esac
echo "$as_me:$LINENO: result: $enable_shared" >&5
echo "${ECHO_T}$enable_shared" >&6

echo "$as_me:$LINENO: checking whether to build static libraries" >&5
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
# Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes
echo "$as_me:$LINENO: result: $enable_static" >&5
echo "${ECHO_T}$enable_static" >&6

GCC_F77="$G77"
LD_F77="$LD"

lt_prog_compiler_wl_F77=
lt_prog_compiler_pic_F77=
lt_prog_compiler_static_F77=

echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_F77='-Wl,'
    lt_prog_compiler_static_F77='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_F77='-fno-common'
      ;;

    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_F77=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_F77=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic_F77='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_F77='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_F77='-Bstatic'
      else
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_F77='-qnocommon'
         lt_prog_compiler_wl_F77='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_F77='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_F77='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-KPIC'
	lt_prog_compiler_static_F77='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-fpic'
	lt_prog_compiler_static_F77='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_F77='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_F77='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_F77='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_F77='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_F77='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_F77='-Qoption ld '
      lt_prog_compiler_pic_F77='-PIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_F77='-Kconform_pic'
	lt_prog_compiler_static_F77='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_F77='-Wl,'
      lt_prog_compiler_can_build_shared_F77=no
      ;;

    uts4*)
      lt_prog_compiler_pic_F77='-pic'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_F77=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_F77"; then

echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_F77=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:125926: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:125930: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_F77=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6

if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
    case $lt_prog_compiler_pic_F77 in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
     esac
else
    lt_prog_compiler_pic_F77=
     lt_prog_compiler_can_build_shared_F77=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_F77=
    ;;
  *)
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_F77=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_F77=yes
       fi
     else
       lt_prog_compiler_static_works_F77=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6

if test x"$lt_prog_compiler_static_works_F77" = xyes; then
    :
else
    lt_prog_compiler_static_F77=
fi


echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_F77=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:126030: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:126034: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_F77=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6

  runpath_var=
  allow_undefined_flag_F77=
  enable_shared_with_static_runtimes_F77=no
  archive_cmds_F77=
  archive_expsym_cmds_F77=
  old_archive_From_new_cmds_F77=
  old_archive_from_expsyms_cmds_F77=
  export_dynamic_flag_spec_F77=
  whole_archive_flag_spec_F77=
  thread_safe_flag_spec_F77=
  hardcode_libdir_flag_spec_F77=
  hardcode_libdir_flag_spec_ld_F77=
  hardcode_libdir_separator_F77=
  hardcode_direct_F77=no
  hardcode_minus_L_F77=no
  hardcode_shlibpath_var_F77=unsupported
  link_all_deplibs_F77=unknown
  hardcode_automatic_F77=no
  module_cmds_F77=
  module_expsym_cmds_F77=
  always_export_symbols_F77=no
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_F77=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs_F77=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_F77=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes

      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_F77=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_F77=unsupported
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_F77='-L$libdir'
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=no
      enable_shared_with_static_runtimes_F77=yes
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    interix3*)
      hardcode_direct_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_F77='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_F77=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_F77=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_F77=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs_F77=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_F77=no
      fi
      ;;
    esac

    if test "$ld_shlibs_F77" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_F77=
      export_dynamic_flag_spec_F77=
      whole_archive_flag_spec_F77=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_F77=unsupported
      always_export_symbols_F77=yes
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_F77=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_F77=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_F77=''
      hardcode_direct_F77=yes
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_F77=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_F77=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_F77=yes
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
  	  hardcode_libdir_separator_F77=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_F77=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_F77='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       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

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; 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_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_F77="-z nodefs"
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 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

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; 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_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_F77=' ${wl}-bernotok'
	  allow_undefined_flag_F77=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_F77='$convenience'
	  archive_cmds_need_lc_F77=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs_F77=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_F77=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_F77=' '
      allow_undefined_flag_F77=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_F77='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_F77=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc_F77=no
      hardcode_direct_F77=no
      hardcode_automatic_F77=yes
      hardcode_shlibpath_var_F77=unsupported
      whole_archive_flag_spec_F77=''
      link_all_deplibs_F77=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_F77=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;

    freebsd1*)
      ld_shlibs_F77=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_direct_F77=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_F77=yes
      export_dynamic_flag_spec_F77='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:

	hardcode_direct_F77=yes
	export_dynamic_flag_spec_F77='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_F77=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_F77=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
	  hardcode_direct_F77=no
	  hardcode_shlibpath_var_F77=no
	  ;;
	*)
	  hardcode_direct_F77=yes
	  export_dynamic_flag_spec_F77='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_F77=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      link_all_deplibs_F77=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    newsos6)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_F77=yes
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      hardcode_shlibpath_var_F77=no
      ;;

    openbsd*)
      hardcode_direct_F77=yes
      hardcode_shlibpath_var_F77=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_F77='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec_F77='-R$libdir'
	   ;;
	 *)
	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_minus_L_F77=yes
      allow_undefined_flag_F77=unsupported
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
      fi
      hardcode_libdir_separator_F77=:
      ;;

    solaris*)
      no_undefined_flag_F77=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec_F77='-R$libdir'
      hardcode_shlibpath_var_F77=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs_F77=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_direct_F77=yes
      hardcode_minus_L_F77=yes
      hardcode_shlibpath_var_F77=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
	  hardcode_direct_F77=no
        ;;
	motorola)
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_F77=no
      ;;

    sysv4.3*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_F77=no
      export_dynamic_flag_spec_F77='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_F77=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_F77=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag_F77='${wl}-z,text'
      archive_cmds_need_lc_F77=no
      hardcode_shlibpath_var_F77=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_F77='${wl}-z,text'
      allow_undefined_flag_F77='${wl}-z,nodefs'
      archive_cmds_need_lc_F77=no
      hardcode_shlibpath_var_F77=no
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes
      export_dynamic_flag_spec_F77='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_F77='-L$libdir'
      hardcode_shlibpath_var_F77=no
      ;;

    *)
      ld_shlibs_F77=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
echo "${ECHO_T}$ld_shlibs_F77" >&6
test "$ld_shlibs_F77" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_F77" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_F77=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_F77 in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      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); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_F77
	pic_flag=$lt_prog_compiler_pic_F77
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
        allow_undefined_flag_F77=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_F77=no
        else
	  archive_cmds_need_lc_F77=yes
        fi
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
      ;;
    esac
  fi
  ;;
esac

echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_F77=
if test -n "$hardcode_libdir_flag_spec_F77" || \
   test -n "$runpath_var_F77" || \
   test "X$hardcode_automatic_F77" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_F77" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
     test "$hardcode_minus_L_F77" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_F77=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_F77=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_F77=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
echo "${ECHO_T}$hardcode_action_F77" >&6

if test "$hardcode_action_F77" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_F77 \
    CC_F77 \
    LD_F77 \
    lt_prog_compiler_wl_F77 \
    lt_prog_compiler_pic_F77 \
    lt_prog_compiler_static_F77 \
    lt_prog_compiler_no_builtin_flag_F77 \
    export_dynamic_flag_spec_F77 \
    thread_safe_flag_spec_F77 \
    whole_archive_flag_spec_F77 \
    enable_shared_with_static_runtimes_F77 \
    old_archive_cmds_F77 \
    old_archive_from_new_cmds_F77 \
    predep_objects_F77 \
    postdep_objects_F77 \
    predeps_F77 \
    postdeps_F77 \
    compiler_lib_search_path_F77 \
    archive_cmds_F77 \
    archive_expsym_cmds_F77 \
    postinstall_cmds_F77 \
    postuninstall_cmds_F77 \
    old_archive_from_expsyms_cmds_F77 \
    allow_undefined_flag_F77 \
    no_undefined_flag_F77 \
    export_symbols_cmds_F77 \
    hardcode_libdir_flag_spec_F77 \
    hardcode_libdir_flag_spec_ld_F77 \
    hardcode_libdir_separator_F77 \
    hardcode_automatic_F77 \
    module_cmds_F77 \
    module_expsym_cmds_F77 \
    lt_cv_prog_compiler_c_o_F77 \
    exclude_expsyms_F77 \
    include_expsyms_F77; do

    case $var in
    old_archive_cmds_F77 | \
    old_archive_from_new_cmds_F77 | \
    archive_cmds_F77 | \
    archive_expsym_cmds_F77 | \
    module_cmds_F77 | \
    module_expsym_cmds_F77 | \
    old_archive_from_expsyms_cmds_F77 | \
    export_symbols_cmds_F77 | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_F77

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_F77

# Is the compiler the GNU C compiler?
with_gcc=$GCC_F77

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_F77

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_F77

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_F77
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_F77

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_F77
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_F77
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_F77
module_expsym_cmds=$lt_module_expsym_cmds_F77

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_F77

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_F77

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_F77

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_F77

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_F77

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_F77

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_F77

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_F77

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_F77

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_F77

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_F77

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_F77

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_F77"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_F77

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_F77

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_F77

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_F77

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  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

CC="$lt_save_CC"

	else
	  tagname=""
	fi
	;;

      GCJ)
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then



# Source file extension for Java test sources.
ac_ext=java

# Object file extension for compiled Java test sources.
objext=o
objext_GCJ=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code="class foo {}\n"

# Code to be used in simple link tests
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${GCJ-"gcj"}
compiler=$CC
compiler_GCJ=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`


# GCJ did not exist at the time GCC didn't implicitly link libc in.
archive_cmds_need_lc_GCJ=no

old_archive_cmds_GCJ=$old_archive_cmds


lt_prog_compiler_no_builtin_flag_GCJ=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'


echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_rtti_exceptions=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="-fno-rtti -fno-exceptions"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:128233: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:128237: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_rtti_exceptions=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6

if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
else
    :
fi

fi

lt_prog_compiler_wl_GCJ=
lt_prog_compiler_pic_GCJ=
lt_prog_compiler_static_GCJ=

echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6

  if test "$GCC" = yes; then
    lt_prog_compiler_wl_GCJ='-Wl,'
    lt_prog_compiler_static_GCJ='-static'

    case $host_os in
      aix*)
      # All AIX code is PIC.
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;

    amigaos*)
      # FIXME: we need at least 68020 code to build shared libraries, but
      # adding the `-m68020' flag to GCC prevents building anything better,
      # like `-m68040'.
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
      ;;

    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_GCJ='-fno-common'
      ;;

    interix3*)
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
      # Instead, we relocate shared libraries at runtime.
      ;;

    msdosdjgpp*)
      # Just because we use GCC doesn't mean we suddenly get shared libraries
      # on systems that don't support them.
      lt_prog_compiler_can_build_shared_GCJ=no
      enable_shared=no
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_GCJ=-Kconform_pic
      fi
      ;;

    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='-fPIC'
	;;
      esac
      ;;

    *)
      lt_prog_compiler_pic_GCJ='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_GCJ='-Bstatic'
      else
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
      fi
      ;;
      darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
       case $cc_basename in
         xlc*)
         lt_prog_compiler_pic_GCJ='-qnocommon'
         lt_prog_compiler_wl_GCJ='-Wl,'
         ;;
       esac
       ;;

    mingw* | pw32* | os2*)
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # not for PA HP-UX.
      case $host_cpu in
      hppa*64*|ia64*)
	# +Z the default
	;;
      *)
	lt_prog_compiler_pic_GCJ='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;

    newsos6)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    linux*)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-KPIC'
	lt_prog_compiler_static_GCJ='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_GCJ='-Wl,'
	lt_prog_compiler_pic_GCJ='-fpic'
	lt_prog_compiler_static_GCJ='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_GCJ='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_GCJ='-non_shared'
        ;;
      esac
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_GCJ='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_GCJ='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_GCJ='-Qoption ld '
      lt_prog_compiler_pic_GCJ='-PIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
	lt_prog_compiler_static_GCJ='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_pic_GCJ='-KPIC'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_GCJ='-Wl,'
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;

    uts4*)
      lt_prog_compiler_pic_GCJ='-pic'
      lt_prog_compiler_static_GCJ='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_GCJ=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6

#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_GCJ"; then

echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_GCJ=no
  ac_outfile=conftest.$ac_objext
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   # The option is referenced via a variable to avoid confusing sed.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:128501: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:128505: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s "$ac_outfile"; then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings other than the usual output.
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
       lt_prog_compiler_pic_works_GCJ=yes
     fi
   fi
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6

if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
    case $lt_prog_compiler_pic_GCJ in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
     esac
else
    lt_prog_compiler_pic_GCJ=
     lt_prog_compiler_can_build_shared_GCJ=no
fi

fi
case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_GCJ=
    ;;
  *)
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
    ;;
esac

#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_GCJ=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     # The linker can only warn and ignore the option if not recognized
     # So say no if there are warnings
     if test -s conftest.err; then
       # Append any errors to the config.log.
       cat conftest.err 1>&5
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
       if diff conftest.exp conftest.er2 >/dev/null; then
         lt_prog_compiler_static_works_GCJ=yes
       fi
     else
       lt_prog_compiler_static_works_GCJ=yes
     fi
   fi
   $rm conftest*
   LDFLAGS="$save_LDFLAGS"

fi
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6

if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
    :
else
    lt_prog_compiler_static_GCJ=
fi


echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_GCJ=no
   $rm -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext

   lt_compiler_flag="-o out/conftest2.$ac_objext"
   # Insert the option either (1) after the last *FLAGS variable, or
   # (2) before a word containing "conftest.", or (3) at the end.
   # Note that $ac_compile itself does not contain backslashes and begins
   # with a dollar sign (not a hyphen), so the echo should work correctly.
   lt_compile=`echo "$ac_compile" | $SED \
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   -e 's:$: $lt_compiler_flag:'`
   (eval echo "\"\$as_me:128605: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:128609: \$? = $ac_status" >&5
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   then
     # The compiler can only warn and ignore the option if not recognized
     # So say no if there are warnings
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
       lt_cv_prog_compiler_c_o_GCJ=yes
     fi
   fi
   chmod u+w . 2>&5
   $rm conftest*
   # SGI C++ compiler will create directory out/ii_files/ for
   # template instantiation
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   $rm out/* && rmdir out
   cd ..
   rmdir conftest
   $rm conftest*

fi
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6


hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  hard_links=yes
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  touch conftest.a
  ln conftest.a conftest.b 2>&5 || hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  echo "$as_me:$LINENO: result: $hard_links" >&5
echo "${ECHO_T}$hard_links" >&6
  if test "$hard_links" = no; then
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    need_locks=warn
  fi
else
  need_locks=no
fi

echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6

  runpath_var=
  allow_undefined_flag_GCJ=
  enable_shared_with_static_runtimes_GCJ=no
  archive_cmds_GCJ=
  archive_expsym_cmds_GCJ=
  old_archive_From_new_cmds_GCJ=
  old_archive_from_expsyms_cmds_GCJ=
  export_dynamic_flag_spec_GCJ=
  whole_archive_flag_spec_GCJ=
  thread_safe_flag_spec_GCJ=
  hardcode_libdir_flag_spec_GCJ=
  hardcode_libdir_flag_spec_ld_GCJ=
  hardcode_libdir_separator_GCJ=
  hardcode_direct_GCJ=no
  hardcode_minus_L_GCJ=no
  hardcode_shlibpath_var_GCJ=unsupported
  link_all_deplibs_GCJ=unknown
  hardcode_automatic_GCJ=no
  module_cmds_GCJ=
  module_expsym_cmds_GCJ=
  always_export_symbols_GCJ=no
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_GCJ=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  extract_expsyms_cmds=
  # Just being paranoid about ensuring that cc_basename is set.
  for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

  case $host_os in
  cygwin* | mingw* | pw32*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
      with_gnu_ld=no
    fi
    ;;
  interix*)
    # we just hope/assume this is gcc and not c89 (= MSVC++)
    with_gnu_ld=yes
    ;;
  openbsd*)
    with_gnu_ld=no
    ;;
  esac

  ld_shlibs_GCJ=yes
  if test "$with_gnu_ld" = yes; then
    # If archive_cmds runs LD, not CC, wlarc should be empty
    wlarc='${wl}'

    # Set some defaults for GNU ld with shared library support. These
    # are reset later if shared libraries are not supported. Putting them
    # here allows them to be overridden if necessary.
    runpath_var=LD_RUN_PATH
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
    # ancient GNU ld didn't support --whole-archive et. al.
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
      else
  	whole_archive_flag_spec_GCJ=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>/dev/null` in
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
      *\ 2.11.*) ;; # other 2.11 versions
      *) supports_anon_versioning=yes ;;
    esac

    # See if GNU ld supports shared libraries.
    case $host_os in
    aix3* | aix4* | aix5*)
      # On AIX/PPC, the GNU linker is very broken
      if test "$host_cpu" != ia64; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
      fi
      ;;

    amigaos*)
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes

      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
      # that the semantics of dynamic libraries on AmigaOS, at least up
      # to version 4, is to share data among multiple programs linked
      # with the same dynamic library.  Since this doesn't match the
      # behavior of shared libraries on other platforms, we can't use
      # them.
      ld_shlibs_GCJ=no
      ;;

    beos*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_GCJ=unsupported
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      allow_undefined_flag_GCJ=unsupported
      always_export_symbols_GCJ=no
      enable_shared_with_static_runtimes_GCJ=yes
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'

      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
	# If the export-symbols file already is a .def file (1st line
	# is EXPORTS), use it as is; otherwise, prepend...
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
	  cp $export_symbols $output_objdir/$soname.def;
	else
	  echo EXPORTS > $output_objdir/$soname.def;
	  cat $export_symbols >> $output_objdir/$soname.def;
	fi~
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    interix3*)
      hardcode_direct_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_GCJ='${wl}-E'
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
      # Instead, shared libraries are loaded at an image base (0x10000000 by
      # default) and relocated if they conflict, which is a slow very memory
      # consuming and fragmenting process.  To avoid this, we pick a random,
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    linux*)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	tmp_addflag=
	case $cc_basename,$host_cpu in
	pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag'
	  ;;
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
	  tmp_addflag=' $pic_flag -Mnomain' ;;
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
	  tmp_addflag=' -i_dynamic' ;;
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
	ifc* | ifort*)			# Intel Fortran compiler
	  tmp_addflag=' -nofor_main' ;;
	esac
	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

	if test $supports_anon_versioning = yes; then
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  $echo "local: *; };" >> $output_objdir/$libname.ver~
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	fi
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      fi
      ;;

    solaris*)
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
	ld_shlibs_GCJ=no
	cat <<EOF 1>&2

*** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

EOF
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_GCJ=no
	cat <<_LT_EOF 1>&2

*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
*** reliably create shared libraries on SCO systems.  Therefore, libtool
*** is disabling shared libraries support.  We urge you to upgrade GNU
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
*** your PATH or compiler configuration so that the native linker is
*** used, and then restart.

_LT_EOF
	;;
	*)
	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
	  else
	    ld_shlibs_GCJ=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    *)
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_GCJ=no
      fi
      ;;
    esac

    if test "$ld_shlibs_GCJ" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_GCJ=
      export_dynamic_flag_spec_GCJ=
      whole_archive_flag_spec_GCJ=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_GCJ=unsupported
      always_export_symbols_GCJ=yes
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_GCJ=yes
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
	# Neither direct hardcoding nor static linking is supported with a
	# broken collect2.
	hardcode_direct_GCJ=unsupported
      fi
      ;;

    aix4* | aix5*)
      if test "$host_cpu" = ia64; then
	# On IA64, the linker does run time linking by default, so we don't
	# have to do anything special.
	aix_use_runtimelinking=no
	exp_sym_flag='-Bexport'
	no_entry_flag=""
      else
	# If we're using GNU nm, then we don't want the "-C" option.
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	else
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
	fi
	aix_use_runtimelinking=no

	# Test if we are trying to use run time linking or normal
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
	# need to do runtime linking.
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
	  for ld_flag in $LDFLAGS; do
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  	    aix_use_runtimelinking=yes
  	    break
  	  fi
	  done
	  ;;
	esac

	exp_sym_flag='-bexport'
	no_entry_flag='-bnoentry'
      fi

      # When large executables or shared objects are built, AIX ld can
      # have problems creating the table of contents.  If linking a library
      # or program results in "error TOC overflow" add -mminimal-toc to
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.

      archive_cmds_GCJ=''
      hardcode_direct_GCJ=yes
      hardcode_libdir_separator_GCJ=':'
      link_all_deplibs_GCJ=yes

      if test "$GCC" = yes; then
	case $host_os in aix4.[012]|aix4.[012].*)
	# We only want to do this on AIX 4.2 and lower, the check
	# below for broken collect2 doesn't work under 4.3+
	  collect2name=`${CC} -print-prog-name=collect2`
	  if test -f "$collect2name" && \
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
	  then
  	  # We have reworked collect2
  	  hardcode_direct_GCJ=yes
	  else
  	  # We have old collect2
  	  hardcode_direct_GCJ=unsupported
  	  # It fails to find uninstalled libraries when the uninstalled
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  	  # to unsupported forces relinking
  	  hardcode_minus_L_GCJ=yes
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
  	  hardcode_libdir_separator_GCJ=
	  fi
	  ;;
	esac
	shared_flag='-shared'
	if test "$aix_use_runtimelinking" = yes; then
	  shared_flag="$shared_flag "'${wl}-G'
	fi
      else
	# not using gcc
	if test "$host_cpu" = ia64; then
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  	# chokes on -Wl,-G. The following line is correct:
	  shared_flag='-G'
	else
	  if test "$aix_use_runtimelinking" = yes; then
	    shared_flag='${wl}-G'
	  else
	    shared_flag='${wl}-bM:SRE'
	  fi
	fi
      fi

      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      always_export_symbols_GCJ=yes
      if test "$aix_use_runtimelinking" = yes; then
	# Warning - without using the other runtime loading flags (-brtl),
	# -berok will link without error, but may produce a broken library.
	allow_undefined_flag_GCJ='-berok'
       # Determine the default libpath from the value encoded in an empty executable.
       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 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

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; 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_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
       else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_GCJ="-z nodefs"
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	else
	 # Determine the default libpath from the value encoded in an empty executable.
	 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 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

aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`
# Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
}'`; 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_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
	  # Warning - without using the other run time loading flags,
	  # -berok will link without error, but may produce a broken library.
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
	  allow_undefined_flag_GCJ=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_GCJ='$convenience'
	  archive_cmds_need_lc_GCJ=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
	fi
      fi
      ;;

    amigaos*)
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
      # see comment about different semantics on the GNU ld section
      ld_shlibs_GCJ=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_GCJ=-rdynamic
      ;;

    cygwin* | mingw* | pw32*)
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      hardcode_libdir_flag_spec_GCJ=' '
      allow_undefined_flag_GCJ=unsupported
      # Tell ltmain to make .lib files, not .a files.
      libext=lib
      # Tell ltmain to make .dll files, not .so files.
      shrext_cmds=".dll"
      # FIXME: Setting linknames here is a bad hack.
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_From_new_cmds_GCJ='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_GCJ=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
        rhapsody* | darwin1.[012])
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
         ;;
       *) # Darwin 1.3 on
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
         else
           case ${MACOSX_DEPLOYMENT_TARGET} in
             10.[012])
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
               ;;
             10.*)
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
               ;;
           esac
         fi
         ;;
      esac
      archive_cmds_need_lc_GCJ=no
      hardcode_direct_GCJ=no
      hardcode_automatic_GCJ=yes
      hardcode_shlibpath_var_GCJ=unsupported
      whole_archive_flag_spec_GCJ=''
      link_all_deplibs_GCJ=yes
    if test "$GCC" = yes ; then
    	output_verbose_link_cmd='echo'
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    else
      case $cc_basename in
        xlc*)
         output_verbose_link_cmd='echo'
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
          ;;
       *)
         ld_shlibs_GCJ=no
          ;;
      esac
    fi
      ;;

    dgux*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_shlibpath_var_GCJ=no
      ;;

    freebsd1*)
      ld_shlibs_GCJ=no
      ;;

    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    # support.  Future versions do this automatically, but an explicit c++rt0.o
    # does not break anything, and helps significantly (at the cost of a little
    # extra space).
    freebsd2.2*)
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | kfreebsd*-gnu | dragonfly*)
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      else
	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      hardcode_direct_GCJ=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_GCJ=yes
      export_dynamic_flag_spec_GCJ='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_GCJ=:

	hardcode_direct_GCJ=yes
	export_dynamic_flag_spec_GCJ='${wl}-E'

	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_GCJ=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      else
	case $host_cpu in
	hppa*64*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	esac
      fi
      if test "$with_gnu_ld" = no; then
	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_GCJ=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
	  hardcode_direct_GCJ=no
	  hardcode_shlibpath_var_GCJ=no
	  ;;
	*)
	  hardcode_direct_GCJ=yes
	  export_dynamic_flag_spec_GCJ='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_GCJ=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      link_all_deplibs_GCJ=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    newsos6)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_GCJ=yes
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      hardcode_shlibpath_var_GCJ=no
      ;;

    openbsd*)
      hardcode_direct_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
	export_dynamic_flag_spec_GCJ='${wl}-E'
      else
       case $host_os in
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
	   ;;
	 *)
	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
	   ;;
       esac
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_minus_L_GCJ=yes
      allow_undefined_flag_GCJ=unsupported
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_GCJ=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
      fi
      hardcode_libdir_separator_GCJ=:
      ;;

    solaris*)
      no_undefined_flag_GCJ=' -z text'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
      else
	wlarc=''
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
      fi
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
      hardcode_shlibpath_var_GCJ=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
 	# The compiler driver will combine linker options so we
 	# cannot just pass the convience library names through
 	# without $wl, iff we do not link with $LD.
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 	case $wlarc in
 	'')
 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 	*)
 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 	esac ;;
      esac
      link_all_deplibs_GCJ=yes
      ;;

    sunos4*)
      if test "x$host_vendor" = xsequent; then
	# Use $CC to link under sequent, because it throws in some extra .o
	# files that make .init and .fini sections work.
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_direct_GCJ=yes
      hardcode_minus_L_GCJ=yes
      hardcode_shlibpath_var_GCJ=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_GCJ=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
	  hardcode_direct_GCJ=no
        ;;
	motorola)
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_GCJ=no
      ;;

    sysv4.3*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_GCJ=no
      export_dynamic_flag_spec_GCJ='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_GCJ=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_GCJ=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
      no_undefined_flag_GCJ='${wl}-z,text'
      archive_cmds_need_lc_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6*)
      # Note: We can NOT use -z defs as we might desire, because we do not
      # link with -lc, and that would cause any symbols used from libc to
      # always be unresolved, which means just about no library would
      # ever link correctly.  If we're not using GNU ld we use -z text
      # though, which does catch some bad symbols but isn't as heavy-handed
      # as -z defs.
      no_undefined_flag_GCJ='${wl}-z,text'
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
      archive_cmds_need_lc_GCJ=no
      hardcode_shlibpath_var_GCJ=no
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
      hardcode_libdir_separator_GCJ=':'
      link_all_deplibs_GCJ=yes
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
      hardcode_shlibpath_var_GCJ=no
      ;;

    *)
      ld_shlibs_GCJ=no
      ;;
    esac
  fi

echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
test "$ld_shlibs_GCJ" = no && can_build_shared=no

#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_GCJ" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_GCJ=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_GCJ in
    *'~'*)
      # FIXME: we may have to deal with multi-command sequences.
      ;;
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
      $rm conftest*
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext

      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); } 2>conftest.err; then
        soname=conftest
        lib=conftest
        libobjs=conftest.$ac_objext
        deplibs=
        wl=$lt_prog_compiler_wl_GCJ
	pic_flag=$lt_prog_compiler_pic_GCJ
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
        allow_undefined_flag_GCJ=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        then
	  archive_cmds_need_lc_GCJ=no
        else
	  archive_cmds_need_lc_GCJ=yes
        fi
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $rm conftest*
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
      ;;
    esac
  fi
  ;;
esac

echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
if test "$GCC" = yes; then
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    # if the path contains ";" then we assume it to be the separator
    # otherwise default to the standard path separator (i.e. ":") - it is
    # assumed that no part of a normal pathname contains ";" but that should
    # okay in the real world where ";" in dirpaths is itself problematic.
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  else
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
need_lib_prefix=unknown
hardcode_into_libs=no

# when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments
need_version=unknown

case $host_os in
aix3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  shlibpath_var=LIBPATH

  # AIX 3 has no versioning support, so we append a major version to the name.
  soname_spec='${libname}${release}${shared_ext}$major'
  ;;

aix4* | aix5*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  hardcode_into_libs=yes
  if test "$host_cpu" = ia64; then
    # AIX 5 supports IA64
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    shlibpath_var=LD_LIBRARY_PATH
  else
    # With GCC up to 2.95.x, collect2 would create an import file
    # for dependence libraries.  The import file would start with
    # the line `#! .'.  This would cause the generated library to
    # depend on `.', always an invalid library.  This was fixed in
    # development snapshots of GCC prior to 3.0.
    case $host_os in
      aix4 | aix4.[01] | aix4.[01].*)
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
	   echo ' yes '
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
	:
      else
	can_build_shared=no
      fi
      ;;
    esac
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    # soname into executable. Probably we can add versioning support to
    # collect2, so additional links can be useful in future.
    if test "$aix_use_runtimelinking" = yes; then
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
      # instead of lib<name>.a to let people know that these are not
      # typical AIX shared libraries.
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    else
      # We preserve .a as extension for shared libraries through AIX4.2
      # and later when we are not doing run time linking.
      library_names_spec='${libname}${release}.a $libname.a'
      soname_spec='${libname}${release}${shared_ext}$major'
    fi
    shlibpath_var=LIBPATH
  fi
  ;;

amigaos*)
  library_names_spec='$libname.ixlibrary $libname.a'
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  ;;

beos*)
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  shlibpath_var=LIBRARY_PATH
  ;;

bsdi[45]*)
  version_type=linux
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  ;;

cygwin* | mingw* | pw32*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      test -d \$dldir || mkdir -p \$dldir~
      $install_prog $dir/$dlname \$dldir/$dlname~
      chmod a+x \$dldir/$dlname'
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
      dlpath=$dir/\$dldll~
       $rm \$dlpath'
    shlibpath_overrides_runpath=yes

    case $host_os in
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
    mingw*)
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
        # It is most probably a Windows format PATH printed by
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
        # path with ; separators, and with drive letters. We can handle the
        # drive letters (cygwin fileutils understands them), so leave them,
        # especially as we might pass files found there to a mingw objdump,
        # which wouldn't understand a cygwinified path. Ahh.
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
      else
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
      fi
      ;;
    pw32*)
      # pw32 DLLs use 'pw' prefix rather than 'lib'
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
      ;;
    esac
    ;;

  *)
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    ;;
  esac
  dynamic_linker='Win32 ld.exe'
  # FIXME: first we should search . and the directory the executable is in
  shlibpath_var=PATH
  ;;

darwin* | rhapsody*)
  dynamic_linker="$host_os dyld"
  version_type=darwin
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  soname_spec='${libname}${release}${major}$shared_ext'
  shlibpath_overrides_runpath=yes
  shlibpath_var=DYLD_LIBRARY_PATH
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  if test "$GCC" = yes; then
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  else
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  fi
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  ;;

dgux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

freebsd1*)
  dynamic_linker=no
  ;;

kfreebsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

freebsd* | dragonfly*)
  # DragonFly does not have aout.  When/if they implement a new
  # versioning mechanism, adjust this.
  if test -x /usr/bin/objformat; then
    objformat=`/usr/bin/objformat`
  else
    case $host_os in
    freebsd[123]*) objformat=aout ;;
    *) objformat=elf ;;
    esac
  fi
  version_type=freebsd-$objformat
  case $version_type in
    freebsd-elf*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
      need_version=no
      need_lib_prefix=no
      ;;
    freebsd-*)
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
      need_version=yes
      ;;
  esac
  shlibpath_var=LD_LIBRARY_PATH
  case $host_os in
  freebsd2*)
    shlibpath_overrides_runpath=yes
    ;;
  freebsd3.[01]* | freebsdelf3.[01]*)
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    shlibpath_overrides_runpath=no
    hardcode_into_libs=yes
    ;;
  freebsd*) # from 4.6 on
    shlibpath_overrides_runpath=yes
    hardcode_into_libs=yes
    ;;
  esac
  ;;

gnu*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  ;;

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case $host_cpu in
  ia64*)
    shrext_cmds='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext_cmds='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext_cmds='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;

interix3*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

irix5* | irix6* | nonstopux*)
  case $host_os in
    nonstopux*) version_type=nonstopux ;;
    *)
	if test "$lt_cv_prog_gnu_ld" = yes; then
		version_type=linux
	else
		version_type=irix
	fi ;;
  esac
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  case $host_os in
  irix5* | nonstopux*)
    libsuff= shlibsuff=
    ;;
  *)
    case $LD in # libtool.m4 will add one of these switches to LD
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
      libsuff= shlibsuff= libmagic=32-bit;;
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
      libsuff=32 shlibsuff=N32 libmagic=N32;;
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    *) libsuff= shlibsuff= libmagic=never-match;;
    esac
    ;;
  esac
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  shlibpath_overrides_runpath=no
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  hardcode_into_libs=yes
  ;;

# No shared lib support for Linux oldld, aout, or coff.
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  ;;

# This must be Linux ELF.
linux*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi

  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # GNU dynamic linker.  Since this was broken with cross compilers,
  # most powerpc-linux boxes support dynamic linking these days and
  # people can always --disable-shared, the test was removed, and we
  # assume the GNU/Linux dynamic linker is in use.
  dynamic_linker='GNU/Linux ld.so'
  ;;

knetbsd*-gnu)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  dynamic_linker='GNU ld.so'
  ;;

netbsd*)
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    dynamic_linker='NetBSD (a.out) ld.so'
  else
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    dynamic_linker='NetBSD ld.elf_so'
  fi
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  ;;

newsos6)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

nto-qnx*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  ;;

openbsd*)
  version_type=sunos
  sys_lib_dlsearch_path_spec="/usr/lib"
  need_lib_prefix=no
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  case $host_os in
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    *)                         need_version=no  ;;
  esac
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    case $host_os in
      openbsd2.[89] | openbsd2.[89].*)
	shlibpath_overrides_runpath=no
	;;
      *)
	shlibpath_overrides_runpath=yes
	;;
      esac
  else
    shlibpath_overrides_runpath=yes
  fi
  ;;

os2*)
  libname_spec='$name'
  shrext_cmds=".dll"
  need_lib_prefix=no
  library_names_spec='$libname${shared_ext} $libname.a'
  dynamic_linker='OS/2 ld.exe'
  shlibpath_var=LIBPATH
  ;;

osf3* | osf4* | osf5*)
  version_type=osf
  need_lib_prefix=no
  need_version=no
  soname_spec='${libname}${release}${shared_ext}$major'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  ;;

solaris*)
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  hardcode_into_libs=yes
  # ldd complains unless libraries are executable
  postinstall_cmds='chmod +x $lib'
  ;;

sunos4*)
  version_type=sunos
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=yes
  if test "$with_gnu_ld" = yes; then
    need_lib_prefix=no
  fi
  need_version=yes
  ;;

sysv4 | sysv4.3*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  case $host_vendor in
    sni)
      shlibpath_overrides_runpath=no
      need_lib_prefix=no
      export_dynamic_flag_spec='${wl}-Blargedynsym'
      runpath_var=LD_RUN_PATH
      ;;
    siemens)
      need_lib_prefix=no
      ;;
    motorola)
      need_lib_prefix=no
      need_version=no
      shlibpath_overrides_runpath=no
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
      ;;
  esac
  ;;

sysv4*MP*)
  if test -d /usr/nec ;then
    version_type=linux
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    soname_spec='$libname${shared_ext}.$major'
    shlibpath_var=LD_LIBRARY_PATH
  fi
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  version_type=freebsd-elf
  need_lib_prefix=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  hardcode_into_libs=yes
  if test "$with_gnu_ld" = yes; then
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    shlibpath_overrides_runpath=no
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    shlibpath_overrides_runpath=yes
    case $host_os in
      sco3.2v5*)
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
	;;
    esac
  fi
  sys_lib_dlsearch_path_spec='/usr/lib'
  ;;

uts4*)
  version_type=linux
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  shlibpath_var=LD_LIBRARY_PATH
  ;;

*)
  dynamic_linker=no
  ;;
esac
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
echo "${ECHO_T}$dynamic_linker" >&6
test "$dynamic_linker" = no && can_build_shared=no

variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi

echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
hardcode_action_GCJ=
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   test -n "$runpath_var_GCJ" || \
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then

  # We can hardcode non-existant directories.
  if test "$hardcode_direct_GCJ" != no &&
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     # have to relink, otherwise we might link with an installed library
     # when we should be linking with a yet-to-be-installed one
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
     test "$hardcode_minus_L_GCJ" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_GCJ=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_GCJ=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_GCJ=unsupported
fi
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
echo "${ECHO_T}$hardcode_action_GCJ" >&6

if test "$hardcode_action_GCJ" = relink; then
  # Fast installation is not supported
  enable_fast_install=no
elif test "$shlibpath_overrides_runpath" = yes ||
     test "$enable_shared" = no; then
  # Fast installation is not necessary
  enable_fast_install=needless
fi


# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_GCJ \
    CC_GCJ \
    LD_GCJ \
    lt_prog_compiler_wl_GCJ \
    lt_prog_compiler_pic_GCJ \
    lt_prog_compiler_static_GCJ \
    lt_prog_compiler_no_builtin_flag_GCJ \
    export_dynamic_flag_spec_GCJ \
    thread_safe_flag_spec_GCJ \
    whole_archive_flag_spec_GCJ \
    enable_shared_with_static_runtimes_GCJ \
    old_archive_cmds_GCJ \
    old_archive_from_new_cmds_GCJ \
    predep_objects_GCJ \
    postdep_objects_GCJ \
    predeps_GCJ \
    postdeps_GCJ \
    compiler_lib_search_path_GCJ \
    archive_cmds_GCJ \
    archive_expsym_cmds_GCJ \
    postinstall_cmds_GCJ \
    postuninstall_cmds_GCJ \
    old_archive_from_expsyms_cmds_GCJ \
    allow_undefined_flag_GCJ \
    no_undefined_flag_GCJ \
    export_symbols_cmds_GCJ \
    hardcode_libdir_flag_spec_GCJ \
    hardcode_libdir_flag_spec_ld_GCJ \
    hardcode_libdir_separator_GCJ \
    hardcode_automatic_GCJ \
    module_cmds_GCJ \
    module_expsym_cmds_GCJ \
    lt_cv_prog_compiler_c_o_GCJ \
    exclude_expsyms_GCJ \
    include_expsyms_GCJ; do

    case $var in
    old_archive_cmds_GCJ | \
    old_archive_from_new_cmds_GCJ | \
    archive_cmds_GCJ | \
    archive_expsym_cmds_GCJ | \
    module_cmds_GCJ | \
    module_expsym_cmds_GCJ | \
    old_archive_from_expsyms_cmds_GCJ | \
    export_symbols_cmds_GCJ | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_GCJ

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_GCJ

# Is the compiler the GNU C compiler?
with_gcc=$GCC_GCJ

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_GCJ

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_GCJ

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_GCJ
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_GCJ

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_GCJ
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_GCJ
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_GCJ
module_expsym_cmds=$lt_module_expsym_cmds_GCJ

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_GCJ

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_GCJ

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_GCJ

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_GCJ

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_GCJ

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_GCJ

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_GCJ

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_GCJ

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_GCJ

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_GCJ

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_GCJ

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_GCJ"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_GCJ

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_GCJ

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_GCJ

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_GCJ

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  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

CC="$lt_save_CC"

	else
	  tagname=""
	fi
	;;

      RC)



# Source file extension for RC test sources.
ac_ext=rc

# Object file extension for compiled RC test sources.
objext=o
objext_RC=$objext

# Code to be used in simple compile tests
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'

# Code to be used in simple link tests
lt_simple_link_test_code="$lt_simple_compile_test_code"

# ltmain only uses $CC for tagged configurations so make sure $CC is set.

# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC


# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_compiler_boilerplate=`cat conftest.err`
$rm conftest*

ac_outfile=conftest.$ac_objext
printf "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
$rm conftest*


# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
CC=${RC-"windres"}
compiler=$CC
compiler_RC=$CC
for cc_temp in $compiler""; do
  case $cc_temp in
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    \-*) ;;
    *) break;;
  esac
done
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`

lt_cv_prog_compiler_c_o_RC=yes

# The else clause should only fire when bootstrapping the
# libtool distribution, otherwise you forgot to ship ltmain.sh
# with your package, and you will get complaints that there are
# no rules to generate ltmain.sh.
if test -f "$ltmain"; then
  # See if we are running on zsh, and set the options which allow our commands through
  # without removal of \ escapes.
  if test -n "${ZSH_VERSION+set}" ; then
    setopt NO_GLOB_SUBST
  fi
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    SED SHELL STRIP \
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    deplibs_check_method reload_flag reload_cmds need_locks \
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    lt_cv_sys_global_symbol_to_c_name_address \
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    old_postinstall_cmds old_postuninstall_cmds \
    compiler_RC \
    CC_RC \
    LD_RC \
    lt_prog_compiler_wl_RC \
    lt_prog_compiler_pic_RC \
    lt_prog_compiler_static_RC \
    lt_prog_compiler_no_builtin_flag_RC \
    export_dynamic_flag_spec_RC \
    thread_safe_flag_spec_RC \
    whole_archive_flag_spec_RC \
    enable_shared_with_static_runtimes_RC \
    old_archive_cmds_RC \
    old_archive_from_new_cmds_RC \
    predep_objects_RC \
    postdep_objects_RC \
    predeps_RC \
    postdeps_RC \
    compiler_lib_search_path_RC \
    archive_cmds_RC \
    archive_expsym_cmds_RC \
    postinstall_cmds_RC \
    postuninstall_cmds_RC \
    old_archive_from_expsyms_cmds_RC \
    allow_undefined_flag_RC \
    no_undefined_flag_RC \
    export_symbols_cmds_RC \
    hardcode_libdir_flag_spec_RC \
    hardcode_libdir_flag_spec_ld_RC \
    hardcode_libdir_separator_RC \
    hardcode_automatic_RC \
    module_cmds_RC \
    module_expsym_cmds_RC \
    lt_cv_prog_compiler_c_o_RC \
    exclude_expsyms_RC \
    include_expsyms_RC; do

    case $var in
    old_archive_cmds_RC | \
    old_archive_from_new_cmds_RC | \
    archive_cmds_RC | \
    archive_expsym_cmds_RC | \
    module_cmds_RC | \
    module_expsym_cmds_RC | \
    old_archive_from_expsyms_cmds_RC | \
    export_symbols_cmds_RC | \
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
    postinstall_cmds | postuninstall_cmds | \
    old_postinstall_cmds | old_postuninstall_cmds | \
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
      # Double-quote double-evaled strings.
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
      ;;
    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

  case $lt_echo in
  *'\$0 --fallback-echo"')
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    ;;
  esac

cfgfile="$ofile"

  cat <<__EOF__ >> "$cfgfile"
# ### BEGIN LIBTOOL TAG CONFIG: $tagname

# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_RC

# Whether or not to disallow shared libs when runtime libs are static
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC

# Whether or not to optimize for fast installation.
fast_install=$enable_fast_install

# The host system.
host_alias=$host_alias
host=$host
host_os=$host_os

# The build system.
build_alias=$build_alias
build=$build
build_os=$build_os

# An echo program that does not interpret backslashes.
echo=$lt_echo

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A C compiler.
LTCC=$lt_LTCC

# LTCC compiler flags.
LTCFLAGS=$lt_LTCFLAGS

# A language-specific compiler.
CC=$lt_compiler_RC

# Is the compiler the GNU C compiler?
with_gcc=$GCC_RC

# An ERE matcher.
EGREP=$lt_EGREP

# The linker used to build libraries.
LD=$lt_LD_RC

# Whether we need hard or soft links.
LN_S=$lt_LN_S

# A BSD-compatible nm program.
NM=$lt_NM

# A symbol stripping program
STRIP=$lt_STRIP

# Used to examine libraries when file_magic_cmd begins "file"
MAGIC_CMD=$MAGIC_CMD

# Used on cygwin: DLL creation program.
DLLTOOL="$DLLTOOL"

# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"

# Used on cygwin: assembler.
AS="$AS"

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_RC

# Object file suffix (normally "o").
objext="$ac_objext"

# Old archive suffix (normally "a").
libext="$libext"

# Shared library suffix (normally ".so").
shrext_cmds='$shrext_cmds'

# Executable file suffix (normally "").
exeext="$exeext"

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_RC
pic_mode=$pic_mode

# What is the maximum length of a command?
max_cmd_len=$lt_cv_sys_max_cmd_len

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Do we need the lib prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Whether dlopen is supported.
dlopen_support=$enable_dlopen

# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self

# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_RC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC

# Compiler flag to generate thread-safe objects.
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC

# Library versioning type.
version_type=$version_type

# Format of library name prefix.
libname_spec=$lt_libname_spec

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec

# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec

# Commands used to build and install an old-style archive.
RANLIB=$lt_RANLIB
old_archive_cmds=$lt_old_archive_cmds_RC
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC

# Commands used to build and install a shared archive.
archive_cmds=$lt_archive_cmds_RC
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
postinstall_cmds=$lt_postinstall_cmds
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to build a loadable module (assumed same as above if empty)
module_cmds=$lt_module_cmds_RC
module_expsym_cmds=$lt_module_expsym_cmds_RC

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib

# Dependencies to place before the objects being linked to create a
# shared library.
predep_objects=$lt_predep_objects_RC

# Dependencies to place after the objects being linked to create a
# shared library.
postdep_objects=$lt_postdep_objects_RC

# Dependencies to place before the objects being linked to create a
# shared library.
predeps=$lt_predeps_RC

# Dependencies to place after the objects being linked to create a
# shared library.
postdeps=$lt_postdeps_RC

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_RC

# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method

# Command to use when deplibs_check_method == file_magic.
file_magic_cmd=$lt_file_magic_cmd

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_RC

# Flag that forces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_RC

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# Same as above, but a single script fragment to be evaled but not shown.
finish_eval=$lt_finish_eval

# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe

# Transform the output of nm in a proper C declaration
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl

# Transform the output of nm in a C name address pair
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address

# This is the shared library runtime path variable.
runpath_var=$runpath_var

# This is the shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_RC

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC

# If ld is used when linking, flag to hardcode \$libdir into
# a binary during linking. This must work even if \$libdir does
# not exist.
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC

# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC

# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
# resulting binary.
hardcode_direct=$hardcode_direct_RC

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L=$hardcode_minus_L_RC

# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC

# Set to yes if building a shared library automatically hardcodes DIR into the library
# and all subsequent libraries and executables linked against it.
hardcode_automatic=$hardcode_automatic_RC

# Variables whose values should be saved in libtool wrapper scripts and
# restored at relink time.
variables_saved_for_relink="$variables_saved_for_relink"

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_RC

# Compile-time system search path for libraries
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec

# Run-time system search path for libraries
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path="$fix_srcfile_path_RC"

# Set to yes if exported symbols are required.
always_export_symbols=$always_export_symbols_RC

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_RC

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_RC

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_RC

# ### END LIBTOOL TAG CONFIG: $tagname

__EOF__


else
  # If there is no Makefile yet, we rely on a make rule to execute
  # `config.status --recheck' to rerun these tests and create the
  # libtool script then.
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  if test -f "$ltmain_in"; then
    test -f Makefile && make "$ltmain"
  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

CC="$lt_save_CC"

	;;

      *)
	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
   { (exit 1); exit 1; }; }
	;;
      esac

      # Append the new tag name to the list of available tags.
      if test -n "$tagname" ; then
      available_tags="$available_tags $tagname"
    fi
    fi
  done
  IFS="$lt_save_ifs"

  # Now substitute the updated list of available tags.
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
    mv "${ofile}T" "$ofile"
    chmod +x "$ofile"
  else
    rm -f "${ofile}T"
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
   { (exit 1); exit 1; }; }
  fi
fi



# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

# Prevent multiple expansion





















# AC_CONFIG_SUBDIRS appears to be broken for non-gcc compilers (i.e.,
# passing precious variables down to the sub-configure).
#
# Note that we also did some magic scripty-foo in autogen.sh to rename
# the output libtool library "libompi_ltdl", so add -lompi_ltdl here.
# This is because so many systems have older versions of libltdl
# installed very early in ld.so's search path; if we installed our own
# libltdl in some non-standard path (e.g., $HOME/local or even
# /usr/local), the libltdl in /usr/lib might get found first.  And if
# it's older -- or just not matching the version that we need, Bad
# Things happen.  [sigh]
#
# Finally, make libompi_ltdl follow the same shared/static convention
# that was user for the main OMPI libraries.  So manually examine
# $enable_shared and $enable_static and pass down the corresponding
# flags.

ompi_show_subtitle "GNU libltdl setup"

if test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1" ; then
    ompi_subdir_args="$ompi_subdir_args --enable-ltdl-convenience --disable-ltdl-install"
    if test "$enable_shared" = "yes"; then
        ompi_subdir_args="$ompi_subdir_args --enable-shared"
    else
        ompi_subdir_args="$ompi_subdir_args --disable-shared"
    fi
    if test "$enable_static" = "yes"; then
        ompi_subdir_args="$ompi_subdir_args --enable-static"
    else
        ompi_subdir_args="$ompi_subdir_args --disable-static"
    fi

    CFLAGS_save="$CFLAGS"
    CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY"

#
# Invoke configure in a specific subdirectory.
#
# opal/libltdl is the directory to invoke in
# $ompi_subdir_args is the list of arguments to pass
# HAPPY=1 is actions to execute upon success
# HAPPY=0 is actions to execute upon failure
#
subdir_dir="opal/libltdl"
subdir_args="$ompi_subdir_args"
subdir_success="HAPPY=1"
subdir_failure="HAPPY=0"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
echo "$as_me: OMPI configuring in $subdir_dir" >&6;}

    #
    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
    # into it.
    #

    case $srcdir in
    .)
	;;
    *)
	{ case $subdir_dir in
	[\\/]* | ?:[\\/]* ) total_dir=;;
	*)                      total_dir=.;;
	esac
	temp=$subdir_dir
	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
	    case $dir_part in
	    # Skip DOS drivespec
	    ?:) total_dir=$dir_part ;;
	    *)  total_dir=$total_dir/$dir_part
		test -d "$total_dir" ||
		mkdir "$total_dir" ||
		{ { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
	fi
	;;
    esac

    #
    # Move into the target directory
    #

    subdir_parent=`pwd`
    cd $subdir_dir

    #
    # Make a "../" for each directory in $subdir_dir.
    #

    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    #
    # Construct the --srcdir argument
    #

    case $srcdir in
    .)
	# In place
	subdir_srcdir="$srcdir"
	;;
    [\\/]* | ?:[\\/]* )
	# Absolute path
	subdir_srcdir="$srcdir/$subdir_dir"
	;;
    *)
	# Relative path
	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
	;;
    esac

    #
    # Construct the --cache-file argument
    #

    # BWB - subdir caching is a pain since we change CFLAGS and all that.
    # Just disable it for now
    subdir_cache_file="/dev/null"

    #
    # Invoke the configure script in the subdirectory
    #

    export CFLAGS CPPFLAGS
    export CXXFLAGS CXXCPPFLAGS
    export FFLAGS
    export LDFLAGS LIBS
    sub_configure="$SHELL '$subdir_srcdir/configure'"
    { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
    eval "$sub_configure $subdir_args \
	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
    if test "$?" = "0"; then
	eval $subdir_success
	{ echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
    fi

    #
    # Go back to the topdir
    #

    cd $subdir_parent
fi

#
# Clean up
#

unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
unset subdir_args subdir_dots total_dir dir_part temp
    if test "$HAPPY" = "1"; then
        LIBLTDL_SUBDIR=libltdl
        LIBLTDL_LTLIB=libltdl/libltdlc.la
        WANT_LIBLTDL=1

        # Arrgh.  This is gross.  But I can't think of any other way to do
        # it.  :-(

        flags="`egrep ^LIBADD_DL opal/libltdl/Makefile | cut -d= -f2-`"

#
# libtool has been created by this point
# Try to see if it will add any additional flags for dependant libraries
#

echo "$as_me:$LINENO: checking for libtool-supplied linker flags" >&5
echo $ECHO_N "checking for libtool-supplied linker flags... $ECHO_C" >&6

libtool="opal/libltdl/libtool"
extra_flags="-export-dynamic $flags"

# Get the directory where libtool lives

start="`pwd`"
d="`dirname $libtool`"
cd "$d"
libtool="`pwd`/libtool"
cd "$start"
unset d start

# Make a playground to work in

mkdir conftest.$$
cd conftest.$$

cat > foo.c <<EOF
int foo(void) { return 0; }
EOF

ompi_check_linker_flags_work() {

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "yes"; then
    echo "configure:131486: $cmd" >&5
else
    echo $cmd >&5
fi
    eval $cmd >&5 2>&5
    if test -n "$1"; then
	output=`eval $cmd 2>/dev/null | head -n 1 | sed 's,^libtool:\( \| link: \),,'`
    fi
    status="$?"

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "yes"; then
    echo "configure:131499: \$? = $status" >&5
else
    echo \$? = $status >&5
fi
    if test "$status" != "0"; then
	echo "$as_me:$LINENO: result: libtool error!" >&5
echo "${ECHO_T}libtool error!" >&6
	{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi
}

#
# First make a sample library with the current LDFLAGS and LIBS
#

cmd="$libtool --mode=compile --tag=CC $CC $CFLAGS -c -o foo.o foo.c"
ompi_check_linker_flags_work
cmd="$libtool --mode=link --tag=CC $CC $CFLAGS foo.lo $LDFLAGS $LIBS -o libfoo.la"
ompi_check_linker_flags_work

#
# Now fake linking to it and capture the output from libtool
#

cmd="$libtool --dry-run --mode=link --tag=CC $CC bar.lo libfoo.la -o bar $extra_flags"
ompi_check_linker_flags_work yes

eval "set $output"
extra_ldflags=
while test -n "$1"; do
    case "$1" in
    $CC) ;;
    *.libs/bar*) ;;
    bar*) ;;
    -I*) ;;
    -L*) ;;
    -R*) ;;
    -lfoo) ;;
    *.libs/libfoo.*) ;;
    -o) ;;
    *.so) ;;
    *.a) ;;
    *)
	extra_ldflags="$extra_ldflags $1"
	;;
    esac
    shift
done

if test -n "$extra_ldflags"; then
    echo "$as_me:$LINENO: result: $extra_ldflags" >&5
echo "${ECHO_T}$extra_ldflags" >&6
else
    echo "$as_me:$LINENO: result: no extra flags" >&5
echo "${ECHO_T}no extra flags" >&6
fi

cd ..
rm -rf conftest.$$
        WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $extra_ldflags"
        LDFLAGS="-export-dynamic $LDFLAGS"
    else
        { { echo "$as_me:$LINENO: error: Failed to build GNU libltdl.  This usually means that something
is incorrectly setup with your environment.  There may be useful information in
opal/libltdl/config.log.  You can also disable GNU libltdl (which will disable
dynamic shared object loading) by configuring with --disable-dlopen." >&5
echo "$as_me: error: Failed to build GNU libltdl.  This usually means that something
is incorrectly setup with your environment.  There may be useful information in
opal/libltdl/config.log.  You can also disable GNU libltdl (which will disable
dynamic shared object loading) by configuring with --disable-dlopen." >&2;}
   { (exit 1); exit 1; }; }
    fi
    CFLAGS="$CFLAGS_save"
    OPAL_LTDL_CPPFLAGS='-I$(top_srcdir)/opal/libltdl'
else
    { echo "$as_me:$LINENO: WARNING: libltdl support disabled (by --disable-dlopen)" >&5
echo "$as_me: WARNING: libltdl support disabled (by --disable-dlopen)" >&2;}

    LIBLTDL_SUBDIR=
    LIBLTDL_LTLIB=
    WANT_LIBLTDL=0
    OPAL_LTDL_CPPFLAGS=

    # append instead of prepend, since LIBS are going to be system
    # type things needed by everyone.  Normally, libltdl will push
    # these into LIBS, but since we've disabled libltdl, we need
    # to do it here.
    WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $LIBS"
fi



# Have a variable that can be used to indicate where ltdl.h lives.  Do
# this specifically so that we get the included ltdl.h (which we know
# will work properly with the compiled code, including libltdl), not
# the system one (which is likely to be far too old and buggy).




if test "$WANT_LIBLTDL" = "1"; then
  WANT_LIBLTDL_TRUE=
  WANT_LIBLTDL_FALSE='#'
else
  WANT_LIBLTDL_TRUE='#'
  WANT_LIBLTDL_FALSE=
fi


cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_LIBLTDL $WANT_LIBLTDL
_ACEOF



############################################################################
# final compiler config
############################################################################

ompi_show_subtitle "Compiler flags"

#
# This is needed for VPATH builds, so that it will -I the appropriate
# include directory.  We delayed doing it until now just so that
# '-I$(top_srcdir)' doesn't show up in any of the configure output --
# purely aesthetic.
#
# Because opal_config.h, orte_config.h, and ompi_config.h are all
# created by AC_CONFIG_HEADERS, we don't need to -I the builddir for
# <project>/include.  If we VPATH building, we do need to include the
# source directories, however.
#
if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then
    CPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CPPFLAGS"
    CXXCPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CXXCPPFLAGS"
else
    CPPFLAGS='-I$(top_srcdir)'" $CPPFLAGS"
    CXXCPPFLAGS='-I$(top_srcdir)'" $CXXCPPFLAGS"
fi

#
# Do a final process of the CFLAGS to make a WITHOUT_OPTFLAGS version.
# We need this so that we can guarantee to build the TotalView stuff
# with -g and nothing else.
#



# Process a set of flags and remove all debugging and optimization
# flags

s_arg="$CFLAGS"
s_result=
for s_word in $s_arg; do
    case $s_word in
    -g)    ;;
    +K0)   ;;
    +K1)   ;;
    +K2)   ;;
    +K3)   ;;
    +K4)   ;;
    +K5)   ;;
    -O)    ;;
    -O0)   ;;
    -O1)   ;;
    -O2)   ;;
    -O3)   ;;
    -O4)   ;;
    -O5)   ;;
    -O6)   ;;
    -O7)   ;;
    -O8)   ;;
    -O9)   ;;
    -xO)   ;;
    -xO0)  ;;
    -xO1)  ;;
    -xO2)  ;;
    -xO3)  ;;
    -xO4)  ;;
    -xO5)  ;;
    -xO6)  ;;
    -xO7)  ;;
    -xO8)  ;;
    -xO9)  ;;
    -fast) ;;
    *)     s_result="$s_result $s_word"
    esac
done

# Clean up

unset s_word s_arg
CFLAGS_WITHOUT_OPTFLAGS="$s_result"
if test "$with_tv_debug_flags" != ""; then
    TOTALVIEW_DEBUG_FLAGS="$with_tv_debug_flags"
else
    TOTALVIEW_DEBUG_FLAGS="-g"
fi
echo "$as_me:$LINENO: checking which of CFLAGS are ok for TotalView modules" >&5
echo $ECHO_N "checking which of CFLAGS are ok for TotalView modules... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $CFLAGS_WITHOUT_OPTFLAGS" >&5
echo "${ECHO_T}$CFLAGS_WITHOUT_OPTFLAGS" >&6
echo "$as_me:$LINENO: checking extra CFLAGS for TotalView modules" >&5
echo $ECHO_N "checking extra CFLAGS for TotalView modules... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $TOTALVIEW_DEBUG_FLAGS" >&5
echo "${ECHO_T}$TOTALVIEW_DEBUG_FLAGS" >&6





#
# Delayed the substitution of CFLAGS and CXXFLAGS until now because
# they may have been modified throughout the course of this script.
#








############################################################################
# final wrapper compiler config
############################################################################

ompi_show_subtitle "Wrapper compiler flags"


# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_CPPFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_CPPFLAGS}; 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_CXXFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_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

# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_FFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_FFLAGS}; 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_FCFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_FCFLAGS}; 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

    #
    # OPAL
    #

# 1 is the variable name to be uniq-ized
ompi_name=opal_WRAPPER_EXTRA_LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${opal_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

# 1 is the variable name to be uniq-ized
ompi_name=opal_WRAPPER_EXTRA_LIBS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${opal_WRAPPER_EXTRA_LIBS}; 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: checking for OPAL CPPFLAGS" >&5
echo $ECHO_N "checking for OPAL CPPFLAGS... $ECHO_C" >&6
    OPAL_WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $USER_WRAPPER_EXTRA_CPPFLAGS"

    echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CPPFLAGS" >&5
echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CPPFLAGS" >&6

    echo "$as_me:$LINENO: checking for OPAL CFLAGS" >&5
echo $ECHO_N "checking for OPAL CFLAGS... $ECHO_C" >&6
    OPAL_WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $USER_WRAPPER_EXTRA_CFLAGS"

    echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CFLAGS" >&5
echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CFLAGS" >&6

    echo "$as_me:$LINENO: checking for OPAL CXXFLAGS" >&5
echo $ECHO_N "checking for OPAL CXXFLAGS... $ECHO_C" >&6
    OPAL_WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $USER_WRAPPER_EXTRA_CXXFLAGS"

    echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CXXFLAGS" >&5
echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CXXFLAGS" >&6

    echo "$as_me:$LINENO: checking for OPAL LDFLAGS" >&5
echo $ECHO_N "checking for OPAL LDFLAGS... $ECHO_C" >&6
    OPAL_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $WRAPPER_EXTRA_LDFLAGS $USER_WRAPPER_EXTRA_LDFLAGS"

    echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_LDFLAGS" >&5
echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_LDFLAGS" >&6

    echo "$as_me:$LINENO: checking for OPAL LIBS" >&5
echo $ECHO_N "checking for OPAL LIBS... $ECHO_C" >&6
    OPAL_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $WRAPPER_EXTRA_LIBS $USER_WRAPPER_EXTRA_LIBS"

    echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_LIBS" >&5
echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_LIBS" >&6

    echo "$as_me:$LINENO: checking for OPAL extra include dirs" >&5
echo $ECHO_N "checking for OPAL extra include dirs... $ECHO_C" >&6
    if test "$WANT_INSTALL_HEADERS" = "1" ; then
        OPAL_WRAPPER_EXTRA_INCLUDES="openmpi"
    else
        OPAL_WRAPPER_EXTRA_INCLUDES=
    fi

    echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_INCLUDES" >&5
echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_INCLUDES" >&6


    #
    # ORTE
    #

# 1 is the variable name to be uniq-ized
ompi_name=orte_WRAPPER_EXTRA_LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${orte_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

# 1 is the variable name to be uniq-ized
ompi_name=orte_WRAPPER_EXTRA_LIBS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${orte_WRAPPER_EXTRA_LIBS}; 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: checking for ORTE CPPFLAGS" >&5
echo $ECHO_N "checking for ORTE CPPFLAGS... $ECHO_C" >&6
    ORTE_WRAPPER_EXTRA_CPPFLAGS="$OPAL_WRAPPER_EXTRA_CPPFLAGS"

    echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CPPFLAGS" >&5
echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CPPFLAGS" >&6

    echo "$as_me:$LINENO: checking for ORTE CFLAGS" >&5
echo $ECHO_N "checking for ORTE CFLAGS... $ECHO_C" >&6
    ORTE_WRAPPER_EXTRA_CFLAGS="$OPAL_WRAPPER_EXTRA_CFLAGS"

    echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CFLAGS" >&5
echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CFLAGS" >&6

    echo "$as_me:$LINENO: checking for ORTE CXXFLAGS" >&5
echo $ECHO_N "checking for ORTE CXXFLAGS... $ECHO_C" >&6
    ORTE_WRAPPER_EXTRA_CXXFLAGS="$OPAL_WRAPPER_EXTRA_CXXFLAGS"

    echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CXXFLAGS" >&5
echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CXXFLAGS" >&6

    echo "$as_me:$LINENO: checking for ORTE LDFLAGS" >&5
echo $ECHO_N "checking for ORTE LDFLAGS... $ECHO_C" >&6
    ORTE_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $OPAL_WRAPPER_EXTRA_LDFLAGS"

    echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_LDFLAGS" >&5
echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_LDFLAGS" >&6

    echo "$as_me:$LINENO: checking for ORTE LIBS" >&5
echo $ECHO_N "checking for ORTE LIBS... $ECHO_C" >&6
    ORTE_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $OPAL_WRAPPER_EXTRA_LIBS"

    echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_LIBS" >&5
echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_LIBS" >&6

    echo "$as_me:$LINENO: checking for ORTE extra include dirs" >&5
echo $ECHO_N "checking for ORTE extra include dirs... $ECHO_C" >&6
    ORTE_WRAPPER_EXTRA_INCLUDES="$OPAL_WRAPPER_EXTRA_INCLUDES"

    echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_INCLUDES" >&5
echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_INCLUDES" >&6


    #
    # OMPI
    #

# 1 is the variable name to be uniq-ized
ompi_name=ompi_WRAPPER_EXTRA_LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${ompi_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

# 1 is the variable name to be uniq-ized
ompi_name=ompi_WRAPPER_EXTRA_LIBS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${ompi_WRAPPER_EXTRA_LIBS}; 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: checking for OMPI CPPFLAGS" >&5
echo $ECHO_N "checking for OMPI CPPFLAGS... $ECHO_C" >&6
    OMPI_WRAPPER_EXTRA_CPPFLAGS="$ORTE_WRAPPER_EXTRA_CPPFLAGS"

    echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CPPFLAGS" >&5
echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CPPFLAGS" >&6

    echo "$as_me:$LINENO: checking for OMPI CFLAGS" >&5
echo $ECHO_N "checking for OMPI CFLAGS... $ECHO_C" >&6
    OMPI_WRAPPER_EXTRA_CFLAGS="$ORTE_WRAPPER_EXTRA_CFLAGS"

    echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CFLAGS" >&5
echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CFLAGS" >&6

    echo "$as_me:$LINENO: checking for OMPI CXXFLAGS" >&5
echo $ECHO_N "checking for OMPI CXXFLAGS... $ECHO_C" >&6
    OMPI_WRAPPER_EXTRA_CXXFLAGS="$ORTE_WRAPPER_EXTRA_CXXFLAGS"

    echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CXXFLAGS" >&5
echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CXXFLAGS" >&6

    echo "$as_me:$LINENO: checking for OMPI FFLAGS" >&5
echo $ECHO_N "checking for OMPI FFLAGS... $ECHO_C" >&6
    OMPI_WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $USER_WRAPPER_EXTRA_FFLAGS"

    echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_FFLAGS" >&5
echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_FFLAGS" >&6

    echo "$as_me:$LINENO: checking for OMPI FCFLAGS" >&5
echo $ECHO_N "checking for OMPI FCFLAGS... $ECHO_C" >&6
    OMPI_WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $USER_WRAPPER_EXTRA_FCFLAGS"

    echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_FCFLAGS" >&5
echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_FCFLAGS" >&6

    echo "$as_me:$LINENO: checking for OMPI LDFLAGS" >&5
echo $ECHO_N "checking for OMPI LDFLAGS... $ECHO_C" >&6
    OMPI_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $ORTE_WRAPPER_EXTRA_LDFLAGS"

    echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_LDFLAGS" >&5
echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_LDFLAGS" >&6

    echo "$as_me:$LINENO: checking for OMPI LIBS" >&5
echo $ECHO_N "checking for OMPI LIBS... $ECHO_C" >&6
    OMPI_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $ORTE_WRAPPER_EXTRA_LIBS"

    echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_LIBS" >&5
echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_LIBS" >&6

    echo "$as_me:$LINENO: checking for OMPI extra include dirs" >&5
echo $ECHO_N "checking for OMPI extra include dirs... $ECHO_C" >&6
    if test "$WANT_INSTALL_HEADERS" = "1" ; then
        # Always include openmpi in case C++ bindings get installed
        OMPI_WRAPPER_EXTRA_INCLUDES="$ORTE_WRAPPER_EXTRA_INCLUDES"
    else
        OMPI_WRAPPER_EXTRA_INCLUDES="$ORTE_WRAPPER_EXTRA_INCLUDES openmpi"
    fi

    echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_INCLUDES" >&5
echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_INCLUDES" >&6

    # language binding support.  C++ is a bit different, as the
    # compiler should work even if there is no language support.
    if test "$WANT_MPI_CXX_SUPPORT" = "1" ; then
        OMPI_WRAPPER_CXX_LIB="-lmpi_cxx"
        OMPI_WRAPPER_CXX_REQUIRED_FILE="libmpi_cxx.la"
    else
        OMPI_WRAPPER_CXX_LIB=""
        OMPI_WRAPPER_CXX_REQUIRED_FILE=""
    fi



    if test "$OMPI_WANT_F77_BINDINGS" = "1" ; then
        OMPI_WRAPPER_F77_REQUIRED_FILE=""
    else
        OMPI_WRAPPER_F77_REQUIRED_FILE="not supported"
    fi


    if test "$OMPI_WANT_F90_BINDINGS" = "1" ; then
        OMPI_WRAPPER_F90_REQUIRED_FILE="libmpi_f90.a"
    else
        OMPI_WRAPPER_F90_REQUIRED_FILE="not supported"
    fi



    # compatibility defines that will eventually go away
    WRAPPER_EXTRA_CFLAGS="$OMPI_WRAPPER_EXTRA_CFLAGS"
    WRAPPER_EXTRA_CXXFLAGS="$OMPI_WRAPPER_EXTRA_CXXFLAGS"
    WRAPPER_EXTRA_FFLAGS="$OMPI_WRAPPER_EXTRA_FFLAGS"
    WRAPPER_EXTRA_FCFLAGS="$OMPI_WRAPPER_EXTRA_FCFLAGS"
    WRAPPER_EXTRA_LDFLAGS="$OMPI_WRAPPER_EXTRA_LDFLAGS"
    WRAPPER_EXTRA_LIBS="$OMPI_WRAPPER_EXTRA_LIBS"









cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_CFLAGS "$WRAPPER_EXTRA_CFLAGS"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_CXXFLAGS "$WRAPPER_EXTRA_CXXFLAGS"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_FFLAGS "$WRAPPER_EXTRA_FFLAGS"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_FCFLAGS "$WRAPPER_EXTRA_FCFLAGS"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_LDFLAGS "$WRAPPER_EXTRA_LDFLAGS"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define WRAPPER_EXTRA_LIBS "$WRAPPER_EXTRA_LIBS"
_ACEOF



############################################################################
# Party on
############################################################################

ompi_show_subtitle "Final output"


    ompi_exec_prefix_save="$exec_prefix"
    ompi_prefix_save="$prefix"

    # need to temporarily expand this out as almost exactly as it will
    # be done later so that NONE doesn't show up in the
    # {exec_}prefix-based variables.
    test "x$prefix" = xNONE && prefix=$ac_default_prefix
    test "x$exec_prefix" = xNONE && exec_prefix="$prefix"

    OPAL_PREFIX="$prefix"
    OPAL_EXEC_PREFIX="$exec_prefix"
    eval OPAL_BINDIR="$bindir"
    eval OPAL_SBINDIR="$sbindir"
    eval OPAL_LIBEXECDIR="$libexecdir"
    eval OPAL_DATADIR="$datadir"
    eval OPAL_SYSCONFDIR="$sysconfdir"
    eval OPAL_SHAREDSTATEDIR="$sharedstatedir"
    eval OPAL_LOCALSTATEDIR="$localstatedir"
    eval OPAL_LIBDIR="$libdir"
    eval OPAL_INCLUDEDIR="$includedir"
    eval OPAL_INFODIR="$infodir"
    eval OPAL_MANDIR="$mandir"















    prefix="$ompi_prefix_save"
    exec_prefix="$ompi_exec_prefix_save"

              ac_config_files="$ac_config_files opal/include/opal/install_dirs.h"



                                        ac_config_headers="$ac_config_headers opal/include/opal_config.h orte/include/orte_config.h ompi/include/ompi_config.h ompi/include/mpi.h"

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ac_config_files="$ac_config_files Makefile config/Makefile contrib/Makefile opal/Makefile opal/etc/Makefile opal/include/Makefile opal/asm/Makefile opal/event/Makefile opal/event/compat/Makefile opal/event/compat/sys/Makefile opal/util/Makefile opal/util/keyval/Makefile opal/mca/base/Makefile opal/tools/wrappers/Makefile opal/tools/wrappers/opalcc-wrapper-data.txt opal/tools/wrappers/opalc++-wrapper-data.txt orte/Makefile orte/include/Makefile orte/etc/Makefile orte/tools/orted/Makefile orte/tools/orterun/Makefile orte/tools/wrappers/Makefile orte/tools/wrappers/ortecc-wrapper-data.txt orte/tools/wrappers/ortec++-wrapper-data.txt ompi/Makefile ompi/etc/Makefile ompi/include/Makefile ompi/include/mpif.h ompi/include/mpif-config.h ompi/datatype/Makefile ompi/debuggers/Makefile ompi/mpi/Makefile ompi/mpi/c/Makefile ompi/mpi/c/profile/Makefile ompi/mpi/cxx/Makefile ompi/mpi/f77/Makefile ompi/mpi/f77/profile/Makefile ompi/mpi/f90/Makefile ompi/mpi/f90/fortran_kinds.sh ompi/mpi/f90/fortran_sizes.h ompi/mpi/f90/scripts/Makefile ompi/tools/ompi_info/Makefile ompi/tools/wrappers/Makefile ompi/tools/wrappers/mpicc-wrapper-data.txt ompi/tools/wrappers/mpic++-wrapper-data.txt ompi/tools/wrappers/mpif77-wrapper-data.txt ompi/tools/wrappers/mpif90-wrapper-data.txt test/Makefile test/asm/Makefile test/class/Makefile test/dss/Makefile test/mca/Makefile test/mca/gpr/Makefile test/mca/gpr/remote/Makefile test/mca/ns/Makefile test/mca/oob/Makefile test/mca/ras/Makefile test/mca/rds/Makefile test/mca/rmaps/Makefile test/mca/rmgr/Makefile test/mca/schema/Makefile test/mca/soh/Makefile test/memory/Makefile test/runtime/Makefile test/support/Makefile test/threads/Makefile test/util/Makefile test/peruse/Makefile"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
  (set) 2>&1 |
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
s/^\([^=]*=[	 ]*\):*/\1/;
s/:*$//;
s/^[^=]*=[	 ]*$//;
}'
fi

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_i=`echo "$ac_i" |
	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  # 2. Add them.
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${OMPI_WANT_BUILD_F90_TRIVIAL_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_TRIVIAL_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_TRIVIAL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_TRIVIAL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_WANT_BUILD_F90_SMALL_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_SMALL_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_SMALL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_SMALL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_WANT_BUILD_F90_MEDIUM_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_MEDIUM_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_MEDIUM\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_MEDIUM\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_WANT_BUILD_F90_LARGE_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_LARGE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_LARGE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_LARGE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${WANT_INSTALL_HEADERS_TRUE}" && test -z "${WANT_INSTALL_HEADERS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"WANT_INSTALL_HEADERS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"WANT_INSTALL_HEADERS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE}" && test -z "${WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"WANT_DEPRECATED_EXECUTABLE_NAMES\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"WANT_DEPRECATED_EXECUTABLE_NAMES\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${WANT_PERUSE_TRUE}" && test -z "${WANT_PERUSE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"WANT_PERUSE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"WANT_PERUSE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE}" && test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${WANT_MPI_BINDINGS_LAYER_TRUE}" && test -z "${WANT_MPI_BINDINGS_LAYER_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"WANT_MPI_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${WANT_PMPI_BINDINGS_LAYER_TRUE}" && test -z "${WANT_PMPI_BINDINGS_LAYER_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"WANT_PMPI_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"WANT_PMPI_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${COMPILE_PROFILING_SEPARATELY_TRUE}" && test -z "${COMPILE_PROFILING_SEPARATELY_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${WANT_MPI_CXX_BINDINGS_TRUE}" && test -z "${WANT_MPI_CXX_BINDINGS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_CXX_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"WANT_MPI_CXX_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_HAVE_ASM_FILE_TRUE}" && test -z "${OMPI_HAVE_ASM_FILE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_ASM_FILE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_HAVE_ASM_FILE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_WANT_F77_BINDINGS_TRUE}" && test -z "${OMPI_WANT_F77_BINDINGS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_F77_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_WANT_F77_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${WANT_MPI_F77_BINDINGS_LAYER_TRUE}" && test -z "${WANT_MPI_F77_BINDINGS_LAYER_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_F77_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"WANT_MPI_F77_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${WANT_PMPI_F77_BINDINGS_LAYER_TRUE}" && test -z "${WANT_PMPI_F77_BINDINGS_LAYER_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"WANT_PMPI_F77_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"WANT_PMPI_F77_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_WANT_F90_BINDINGS_TRUE}" && test -z "${OMPI_WANT_F90_BINDINGS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_F90_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_WANT_F90_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_HAVE_POSIX_THREADS_TRUE}" && test -z "${OMPI_HAVE_POSIX_THREADS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_POSIX_THREADS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_HAVE_POSIX_THREADS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_HAVE_SOLARIS_THREADS_TRUE}" && test -z "${OMPI_HAVE_SOLARIS_THREADS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_SOLARIS_THREADS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_HAVE_SOLARIS_THREADS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${CASE_SENSITIVE_FS_TRUE}" && test -z "${CASE_SENSITIVE_FS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"CASE_SENSITIVE_FS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"CASE_SENSITIVE_FS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_maffinity_first_use_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_first_use_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_maffinity_first_use_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_maffinity_first_use_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_maffinity_libnuma_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_libnuma_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_maffinity_libnuma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_maffinity_libnuma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_memory_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_darwin_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_memory_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_memory_ptmalloc2_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_ptmalloc2_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_ptmalloc2_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_memory_ptmalloc2_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_memory_malloc_hooks_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_malloc_hooks_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_malloc_hooks_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_memory_malloc_hooks_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_paffinity_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_linux_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_linux_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_linux_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_paffinity_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_solaris_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_paffinity_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_windows_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_windows_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_windows_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_timer_aix_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_aix_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_aix_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_timer_aix_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_timer_altix_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_altix_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_altix_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_timer_altix_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_timer_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_darwin_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_timer_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_timer_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_solaris_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_timer_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_timer_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_windows_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_windows_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_timer_windows_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_timer_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_linux_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_linux_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_timer_linux_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_gpr_null_DSO_TRUE}" && test -z "${OMPI_BUILD_gpr_null_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_gpr_null_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_gpr_null_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_gpr_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_gpr_proxy_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_gpr_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_gpr_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_gpr_replica_DSO_TRUE}" && test -z "${OMPI_BUILD_gpr_replica_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_gpr_replica_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_gpr_replica_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_iof_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_proxy_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_iof_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_iof_svc_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_svc_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_svc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_iof_svc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ns_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_ns_proxy_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ns_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ns_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ns_replica_DSO_TRUE}" && test -z "${OMPI_BUILD_ns_replica_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ns_replica_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ns_replica_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_oob_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_oob_tcp_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_oob_tcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_oob_tcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_pls_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_bproc_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_pls_bproc_orted_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_bproc_orted_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_bproc_orted_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_bproc_orted_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_pls_fork_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_fork_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_fork_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_fork_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_pls_poe_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_poe_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_poe_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_poe_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_pls_rsh_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_rsh_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_rsh_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_rsh_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_pls_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_slurm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_pls_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_tm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_tm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_tm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_pls_xgrid_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_xgrid_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_xgrid_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_xgrid_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ras_dash_host_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_dash_host_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_dash_host_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_dash_host_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ras_hostfile_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_hostfile_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_hostfile_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_hostfile_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ras_localhost_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_localhost_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_localhost_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_localhost_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ras_bjs_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_bjs_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_bjs_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_bjs_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ras_lsf_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_lsf_bproc_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_lsf_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_lsf_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ras_poe_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_poe_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_poe_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_poe_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ras_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_slurm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ras_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_tm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_tm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_tm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ras_xgrid_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_xgrid_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_xgrid_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_xgrid_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_rds_hostfile_DSO_TRUE}" && test -z "${OMPI_BUILD_rds_hostfile_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rds_hostfile_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rds_hostfile_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_rds_resfile_DSO_TRUE}" && test -z "${OMPI_BUILD_rds_resfile_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rds_resfile_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rds_resfile_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_rmaps_round_robin_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_round_robin_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_round_robin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_round_robin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_rmgr_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_rmgr_proxy_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmgr_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rmgr_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_rmgr_urm_DSO_TRUE}" && test -z "${OMPI_BUILD_rmgr_urm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmgr_urm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rmgr_urm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_rmgr_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_rmgr_cnos_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmgr_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rmgr_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_rml_oob_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_oob_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rml_oob_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rml_oob_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_rml_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_cnos_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rml_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rml_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_sds_env_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_env_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_env_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_sds_env_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_sds_seed_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_seed_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_seed_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_sds_seed_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_sds_singleton_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_singleton_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_singleton_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_sds_singleton_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_sds_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_bproc_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_sds_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_sds_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_cnos_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_sds_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_sds_pipe_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_pipe_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_pipe_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_sds_pipe_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_sds_portals_utcp_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_portals_utcp_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_portals_utcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_sds_portals_utcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_sds_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_slurm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_sds_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_soh_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_soh_bproc_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_soh_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_soh_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_allocator_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_allocator_basic_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_allocator_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_allocator_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_allocator_bucket_DSO_TRUE}" && test -z "${OMPI_BUILD_allocator_bucket_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_allocator_bucket_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_allocator_bucket_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_bml_r2_DSO_TRUE}" && test -z "${OMPI_BUILD_bml_r2_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_bml_r2_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_bml_r2_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_btl_self_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_self_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_self_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_btl_self_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_btl_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_sm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_btl_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_btl_gm_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_gm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_gm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_btl_gm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_btl_mvapi_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_mvapi_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_mvapi_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_btl_mvapi_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_btl_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_mx_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_mx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_btl_mx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_btl_openib_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_openib_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_openib_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_btl_openib_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_btl_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_portals_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_btl_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_btl_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_tcp_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_tcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_btl_tcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_coll_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_basic_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_coll_hierarch_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_hierarch_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_coll_self_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_self_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_self_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_coll_self_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_coll_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_sm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_coll_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_coll_tuned_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_tuned_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_tuned_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_coll_tuned_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_common_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_common_sm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_common_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_io_romio_DSO_TRUE}" && test -z "${OMPI_BUILD_io_romio_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_io_romio_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_io_romio_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_mpool_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_sm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_mpool_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_mpool_gm_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_gm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_gm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_mpool_gm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_mpool_mvapi_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_mvapi_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_mvapi_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_mpool_mvapi_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_mpool_openib_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_openib_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_openib_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_mpool_openib_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_osc_pt2pt_DSO_TRUE}" && test -z "${OMPI_BUILD_osc_pt2pt_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_osc_pt2pt_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_osc_pt2pt_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_pml_ob1_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_ob1_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_ob1_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pml_ob1_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_rcache_rb_DSO_TRUE}" && test -z "${OMPI_BUILD_rcache_rb_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rcache_rb_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rcache_rb_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_topo_unity_DSO_TRUE}" && test -z "${OMPI_BUILD_topo_unity_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_topo_unity_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_topo_unity_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${WANT_LIBLTDL_TRUE}" && test -z "${WANT_LIBLTDL_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"WANT_LIBLTDL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"WANT_LIBLTDL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi

: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
## --------------------- ##
## 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:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
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:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
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

exec 6>&1

# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.  Logging --version etc. is OK.
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF

This file was extended by Open MPI $as_me 1.1.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

_CSEOF
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
echo >&5
_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\_ACEOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -q, --quiet      do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
		   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
		   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration links:
$config_links

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@gnu.org>."
_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
Open MPI config.status 1.1.1
configured by $0, generated by GNU Autoconf 2.59,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright (C) 2003 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  -*)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_option=$1
     ac_need_defaults=false;;
  esac

  case $ac_option in
  # Handling of the options.
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    ac_need_defaults=false;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF
#
# INIT-COMMANDS section.
#

AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"

_ACEOF



cat >>$CONFIG_STATUS <<\_ACEOF
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "ompi/include/ompi/version.h" ) CONFIG_FILES="$CONFIG_FILES ompi/include/ompi/version.h" ;;
  "orte/include/orte/version.h" ) CONFIG_FILES="$CONFIG_FILES orte/include/orte/version.h" ;;
  "opal/include/opal/version.h" ) CONFIG_FILES="$CONFIG_FILES opal/include/opal/version.h" ;;
  "opal/mca/maffinity/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/Makefile" ;;
  "opal/mca/memcpy/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/memcpy/Makefile" ;;
  "opal/mca/memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/memory/Makefile" ;;
  "opal/mca/paffinity/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/Makefile" ;;
  "opal/mca/timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/timer/Makefile" ;;
  "orte/mca/errmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/Makefile" ;;
  "orte/mca/gpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/Makefile" ;;
  "orte/mca/iof/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/iof/Makefile" ;;
  "orte/mca/ns/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ns/Makefile" ;;
  "orte/mca/oob/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/oob/Makefile" ;;
  "orte/mca/pls/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/pls/Makefile" ;;
  "orte/mca/ras/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ras/Makefile" ;;
  "orte/mca/rds/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rds/Makefile" ;;
  "orte/mca/rmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/Makefile" ;;
  "orte/mca/rmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rmgr/Makefile" ;;
  "orte/mca/rml/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rml/Makefile" ;;
  "orte/mca/schema/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/schema/Makefile" ;;
  "orte/mca/sds/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/sds/Makefile" ;;
  "orte/mca/soh/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/soh/Makefile" ;;
  "ompi/mca/allocator/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/Makefile" ;;
  "ompi/mca/bml/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/Makefile" ;;
  "ompi/mca/btl/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/Makefile" ;;
  "ompi/mca/coll/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/Makefile" ;;
  "ompi/mca/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/common/Makefile" ;;
  "ompi/mca/io/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/io/Makefile" ;;
  "ompi/mca/mpool/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/Makefile" ;;
  "ompi/mca/osc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/Makefile" ;;
  "ompi/mca/pml/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/Makefile" ;;
  "ompi/mca/rcache/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/Makefile" ;;
  "ompi/mca/topo/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/Makefile" ;;
  "ompi/mca/pml/pml_direct_call.h.tmp" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/pml_direct_call.h.tmp:ompi/mca/pml/pml_direct_call.h.in" ;;
  "opal/mca/maffinity/first_use/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/first_use/Makefile" ;;
  "opal/mca/maffinity/libnuma/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/libnuma/Makefile" ;;
  "opal/mca/memory/darwin/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/memory/darwin/Makefile" ;;
  "opal/mca/memory/malloc_hooks/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/memory/malloc_hooks/Makefile" ;;
  "opal/mca/memory/ptmalloc2/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/memory/ptmalloc2/Makefile" ;;
  "opal/mca/paffinity/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/Makefile" ;;
  "opal/mca/paffinity/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/solaris/Makefile" ;;
  "opal/mca/paffinity/windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/windows/Makefile" ;;
  "opal/mca/timer/aix/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/timer/aix/Makefile" ;;
  "opal/mca/timer/altix/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/timer/altix/Makefile" ;;
  "opal/mca/timer/darwin/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/timer/darwin/Makefile" ;;
  "opal/mca/timer/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/timer/linux/Makefile" ;;
  "opal/mca/timer/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/timer/solaris/Makefile" ;;
  "opal/mca/timer/windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/timer/windows/Makefile" ;;
  "orte/mca/gpr/null/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/null/Makefile" ;;
  "orte/mca/gpr/proxy/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/proxy/Makefile" ;;
  "orte/mca/gpr/replica/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/replica/Makefile" ;;
  "orte/mca/gpr/replica/api_layer/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/replica/api_layer/Makefile" ;;
  "orte/mca/gpr/replica/transition_layer/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/replica/transition_layer/Makefile" ;;
  "orte/mca/gpr/replica/functional_layer/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/replica/functional_layer/Makefile" ;;
  "orte/mca/gpr/replica/communications/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/replica/communications/Makefile" ;;
  "orte/mca/iof/proxy/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/iof/proxy/Makefile" ;;
  "orte/mca/iof/svc/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/iof/svc/Makefile" ;;
  "orte/mca/ns/proxy/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ns/proxy/Makefile" ;;
  "orte/mca/ns/replica/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ns/replica/Makefile" ;;
  "orte/mca/oob/tcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/oob/tcp/Makefile" ;;
  "orte/mca/pls/bproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/pls/bproc/Makefile" ;;
  "orte/mca/pls/bproc_orted/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/pls/bproc_orted/Makefile" ;;
  "orte/mca/pls/fork/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/pls/fork/Makefile" ;;
  "orte/mca/pls/poe/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/pls/poe/Makefile" ;;
  "orte/mca/pls/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/pls/rsh/Makefile" ;;
  "orte/mca/pls/slurm/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/pls/slurm/Makefile" ;;
  "orte/mca/pls/tm/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/pls/tm/Makefile" ;;
  "orte/mca/pls/xgrid/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/pls/xgrid/Makefile" ;;
  "orte/mca/ras/bjs/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ras/bjs/Makefile" ;;
  "orte/mca/ras/dash_host/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ras/dash_host/Makefile" ;;
  "orte/mca/ras/hostfile/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ras/hostfile/Makefile" ;;
  "orte/mca/ras/localhost/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ras/localhost/Makefile" ;;
  "orte/mca/ras/lsf_bproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ras/lsf_bproc/Makefile" ;;
  "orte/mca/ras/poe/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ras/poe/Makefile" ;;
  "orte/mca/ras/slurm/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ras/slurm/Makefile" ;;
  "orte/mca/ras/tm/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ras/tm/Makefile" ;;
  "orte/mca/ras/xgrid/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/ras/xgrid/Makefile" ;;
  "orte/mca/rds/hostfile/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rds/hostfile/Makefile" ;;
  "orte/mca/rds/resfile/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rds/resfile/Makefile" ;;
  "orte/mca/rmaps/round_robin/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/round_robin/Makefile" ;;
  "orte/mca/rmgr/cnos/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rmgr/cnos/Makefile" ;;
  "orte/mca/rmgr/proxy/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rmgr/proxy/Makefile" ;;
  "orte/mca/rmgr/urm/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rmgr/urm/Makefile" ;;
  "orte/mca/rml/cnos/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rml/cnos/Makefile" ;;
  "orte/mca/rml/oob/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/rml/oob/Makefile" ;;
  "orte/mca/sds/bproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/sds/bproc/Makefile" ;;
  "orte/mca/sds/cnos/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/sds/cnos/Makefile" ;;
  "orte/mca/sds/env/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/sds/env/Makefile" ;;
  "orte/mca/sds/pipe/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/sds/pipe/Makefile" ;;
  "orte/mca/sds/portals_utcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/sds/portals_utcp/Makefile" ;;
  "orte/mca/sds/seed/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/sds/seed/Makefile" ;;
  "orte/mca/sds/singleton/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/sds/singleton/Makefile" ;;
  "orte/mca/sds/slurm/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/sds/slurm/Makefile" ;;
  "orte/mca/soh/bproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/mca/soh/bproc/Makefile" ;;
  "ompi/mca/allocator/basic/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/basic/Makefile" ;;
  "ompi/mca/allocator/bucket/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/bucket/Makefile" ;;
  "ompi/mca/bml/r2/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/r2/Makefile" ;;
  "ompi/mca/btl/gm/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/gm/Makefile" ;;
  "ompi/mca/btl/mvapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/mvapi/Makefile" ;;
  "ompi/mca/btl/mx/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/mx/Makefile" ;;
  "ompi/mca/btl/openib/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/openib/Makefile" ;;
  "ompi/mca/btl/portals/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/portals/Makefile" ;;
  "ompi/mca/btl/self/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/self/Makefile" ;;
  "ompi/mca/btl/sm/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/sm/Makefile" ;;
  "ompi/mca/btl/tcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/tcp/Makefile" ;;
  "ompi/mca/coll/basic/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/basic/Makefile" ;;
  "ompi/mca/coll/hierarch/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/hierarch/Makefile" ;;
  "ompi/mca/coll/self/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/self/Makefile" ;;
  "ompi/mca/coll/sm/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/sm/Makefile" ;;
  "ompi/mca/coll/tuned/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/tuned/Makefile" ;;
  "ompi/mca/common/sm/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/common/sm/Makefile" ;;
  "ompi/mca/io/romio/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/io/romio/Makefile" ;;
  "ompi/mca/mpool/gm/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/gm/Makefile" ;;
  "ompi/mca/mpool/mvapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/mvapi/Makefile" ;;
  "ompi/mca/mpool/openib/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/openib/Makefile" ;;
  "ompi/mca/mpool/sm/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/sm/Makefile" ;;
  "ompi/mca/osc/pt2pt/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/pt2pt/Makefile" ;;
  "ompi/mca/pml/ob1/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/ob1/Makefile" ;;
  "ompi/mca/rcache/rb/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/rb/Makefile" ;;
  "ompi/mca/topo/unity/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/unity/Makefile" ;;
  "opal/include/opal/install_dirs.h" ) CONFIG_FILES="$CONFIG_FILES opal/include/opal/install_dirs.h" ;;
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
  "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  "opal/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/Makefile" ;;
  "opal/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/etc/Makefile" ;;
  "opal/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/include/Makefile" ;;
  "opal/asm/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/asm/Makefile" ;;
  "opal/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/event/Makefile" ;;
  "opal/event/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/event/compat/Makefile" ;;
  "opal/event/compat/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/event/compat/sys/Makefile" ;;
  "opal/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/util/Makefile" ;;
  "opal/util/keyval/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/util/keyval/Makefile" ;;
  "opal/mca/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/mca/base/Makefile" ;;
  "opal/tools/wrappers/Makefile" ) CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/Makefile" ;;
  "opal/tools/wrappers/opalcc-wrapper-data.txt" ) CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalcc-wrapper-data.txt" ;;
  "opal/tools/wrappers/opalc++-wrapper-data.txt" ) CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalc++-wrapper-data.txt" ;;
  "orte/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/Makefile" ;;
  "orte/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/include/Makefile" ;;
  "orte/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/etc/Makefile" ;;
  "orte/tools/orted/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/tools/orted/Makefile" ;;
  "orte/tools/orterun/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/tools/orterun/Makefile" ;;
  "orte/tools/wrappers/Makefile" ) CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/Makefile" ;;
  "orte/tools/wrappers/ortecc-wrapper-data.txt" ) CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortecc-wrapper-data.txt" ;;
  "orte/tools/wrappers/ortec++-wrapper-data.txt" ) CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortec++-wrapper-data.txt" ;;
  "ompi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/Makefile" ;;
  "ompi/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/etc/Makefile" ;;
  "ompi/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/include/Makefile" ;;
  "ompi/include/mpif.h" ) CONFIG_FILES="$CONFIG_FILES ompi/include/mpif.h" ;;
  "ompi/include/mpif-config.h" ) CONFIG_FILES="$CONFIG_FILES ompi/include/mpif-config.h" ;;
  "ompi/datatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/datatype/Makefile" ;;
  "ompi/debuggers/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/debuggers/Makefile" ;;
  "ompi/mpi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mpi/Makefile" ;;
  "ompi/mpi/c/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/Makefile" ;;
  "ompi/mpi/c/profile/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/profile/Makefile" ;;
  "ompi/mpi/cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mpi/cxx/Makefile" ;;
  "ompi/mpi/f77/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mpi/f77/Makefile" ;;
  "ompi/mpi/f77/profile/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mpi/f77/profile/Makefile" ;;
  "ompi/mpi/f90/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/Makefile" ;;
  "ompi/mpi/f90/fortran_kinds.sh" ) CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/fortran_kinds.sh" ;;
  "ompi/mpi/f90/fortran_sizes.h" ) CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/fortran_sizes.h" ;;
  "ompi/mpi/f90/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/scripts/Makefile" ;;
  "ompi/tools/ompi_info/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi_info/Makefile" ;;
  "ompi/tools/wrappers/Makefile" ) CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/Makefile" ;;
  "ompi/tools/wrappers/mpicc-wrapper-data.txt" ) CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpicc-wrapper-data.txt" ;;
  "ompi/tools/wrappers/mpic++-wrapper-data.txt" ) CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpic++-wrapper-data.txt" ;;
  "ompi/tools/wrappers/mpif77-wrapper-data.txt" ) CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpif77-wrapper-data.txt" ;;
  "ompi/tools/wrappers/mpif90-wrapper-data.txt" ) CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpif90-wrapper-data.txt" ;;
  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  "test/asm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/asm/Makefile" ;;
  "test/class/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/class/Makefile" ;;
  "test/dss/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/dss/Makefile" ;;
  "test/mca/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/Makefile" ;;
  "test/mca/gpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/gpr/Makefile" ;;
  "test/mca/gpr/remote/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/gpr/remote/Makefile" ;;
  "test/mca/ns/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/ns/Makefile" ;;
  "test/mca/oob/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/oob/Makefile" ;;
  "test/mca/ras/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/ras/Makefile" ;;
  "test/mca/rds/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/rds/Makefile" ;;
  "test/mca/rmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/rmaps/Makefile" ;;
  "test/mca/rmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/rmgr/Makefile" ;;
  "test/mca/schema/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/schema/Makefile" ;;
  "test/mca/soh/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mca/soh/Makefile" ;;
  "test/memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/memory/Makefile" ;;
  "test/runtime/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/runtime/Makefile" ;;
  "test/support/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/support/Makefile" ;;
  "test/threads/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/threads/Makefile" ;;
  "test/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/util/Makefile" ;;
  "test/peruse/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/peruse/Makefile" ;;
  "opal/mca/memcpy/base/base_impl.h" ) CONFIG_LINKS="$CONFIG_LINKS opal/mca/memcpy/base/base_impl.h:opal/mca/memcpy/$memcpy_base_include" ;;
  "opal/mca/timer/base/base_impl.h" ) CONFIG_LINKS="$CONFIG_LINKS opal/mca/timer/base/base_impl.h:opal/mca/timer/$timer_base_include" ;;
  "ompi/mca/btl/portals/btl_portals_compat.c" ) CONFIG_LINKS="$CONFIG_LINKS ompi/mca/btl/portals/btl_portals_compat.c:ompi/mca/btl/portals/btl_portals_compat_${btl_portals_compat}.c" ;;
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  "pml-direct" ) CONFIG_COMMANDS="$CONFIG_COMMANDS pml-direct" ;;
  "opal/include/opal_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS opal/include/opal_config.h" ;;
  "orte/include/orte_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS orte/include/orte_config.h" ;;
  "ompi/include/ompi_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/ompi_config.h" ;;
  "ompi/include/mpi.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/mpi.h" ;;
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done

# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./confstat$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@SHELL@,$SHELL,;t t
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t t
s,@program_transform_name@,$program_transform_name,;t t
s,@bindir@,$bindir,;t t
s,@sbindir@,$sbindir,;t t
s,@libexecdir@,$libexecdir,;t t
s,@datadir@,$datadir,;t t
s,@sysconfdir@,$sysconfdir,;t t
s,@sharedstatedir@,$sharedstatedir,;t t
s,@localstatedir@,$localstatedir,;t t
s,@libdir@,$libdir,;t t
s,@includedir@,$includedir,;t t
s,@oldincludedir@,$oldincludedir,;t t
s,@infodir@,$infodir,;t t
s,@mandir@,$mandir,;t t
s,@build_alias@,$build_alias,;t t
s,@host_alias@,$host_alias,;t t
s,@target_alias@,$target_alias,;t t
s,@DEFS@,$DEFS,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,$LIBS,;t t
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
s,@CYGPATH_W@,$CYGPATH_W,;t t
s,@PACKAGE@,$PACKAGE,;t t
s,@VERSION@,$VERSION,;t t
s,@ACLOCAL@,$ACLOCAL,;t t
s,@AUTOCONF@,$AUTOCONF,;t t
s,@AUTOMAKE@,$AUTOMAKE,;t t
s,@AUTOHEADER@,$AUTOHEADER,;t t
s,@MAKEINFO@,$MAKEINFO,;t t
s,@install_sh@,$install_sh,;t t
s,@STRIP@,$STRIP,;t t
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
s,@mkdir_p@,$mkdir_p,;t t
s,@AWK@,$AWK,;t t
s,@SET_MAKE@,$SET_MAKE,;t t
s,@am__leading_dot@,$am__leading_dot,;t t
s,@AMTAR@,$AMTAR,;t t
s,@am__tar@,$am__tar,;t t
s,@am__untar@,$am__untar,;t t
s,@CONFIGURE_DEPENDENCIES@,$CONFIGURE_DEPENDENCIES,;t t
s,@OMPI_CONFIGURE_USER@,$OMPI_CONFIGURE_USER,;t t
s,@OMPI_CONFIGURE_HOST@,$OMPI_CONFIGURE_HOST,;t t
s,@OMPI_CONFIGURE_DATE@,$OMPI_CONFIGURE_DATE,;t t
s,@OMPI_MAJOR_VERSION@,$OMPI_MAJOR_VERSION,;t t
s,@OMPI_MINOR_VERSION@,$OMPI_MINOR_VERSION,;t t
s,@OMPI_RELEASE_VERSION@,$OMPI_RELEASE_VERSION,;t t
s,@OMPI_GREEK_VERSION@,$OMPI_GREEK_VERSION,;t t
s,@OMPI_WANT_SVN@,$OMPI_WANT_SVN,;t t
s,@OMPI_SVN_R@,$OMPI_SVN_R,;t t
s,@OMPI_VERSION@,$OMPI_VERSION,;t t
s,@ORTE_MAJOR_VERSION@,$ORTE_MAJOR_VERSION,;t t
s,@ORTE_MINOR_VERSION@,$ORTE_MINOR_VERSION,;t t
s,@ORTE_RELEASE_VERSION@,$ORTE_RELEASE_VERSION,;t t
s,@ORTE_GREEK_VERSION@,$ORTE_GREEK_VERSION,;t t
s,@ORTE_WANT_SVN@,$ORTE_WANT_SVN,;t t
s,@ORTE_SVN_R@,$ORTE_SVN_R,;t t
s,@ORTE_VERSION@,$ORTE_VERSION,;t t
s,@OPAL_MAJOR_VERSION@,$OPAL_MAJOR_VERSION,;t t
s,@OPAL_MINOR_VERSION@,$OPAL_MINOR_VERSION,;t t
s,@OPAL_RELEASE_VERSION@,$OPAL_RELEASE_VERSION,;t t
s,@OPAL_GREEK_VERSION@,$OPAL_GREEK_VERSION,;t t
s,@OPAL_WANT_SVN@,$OPAL_WANT_SVN,;t t
s,@OPAL_SVN_R@,$OPAL_SVN_R,;t t
s,@OPAL_VERSION@,$OPAL_VERSION,;t t
s,@OMPI_TOP_BUILDDIR@,$OMPI_TOP_BUILDDIR,;t t
s,@OMPI_TOP_SRCDIR@,$OMPI_TOP_SRCDIR,;t t
s,@CLEANFILES@,$CLEANFILES,;t t
s,@build@,$build,;t t
s,@build_cpu@,$build_cpu,;t t
s,@build_vendor@,$build_vendor,;t t
s,@build_os@,$build_os,;t t
s,@host@,$host,;t t
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
s,@ac_prefix_program@,$ac_prefix_program,;t t
s,@top_ompi_srcdir@,$top_ompi_srcdir,;t t
s,@top_ompi_builddir@,$top_ompi_builddir,;t t
s,@OMPI_WANT_BUILD_F90_TRIVIAL_TRUE@,$OMPI_WANT_BUILD_F90_TRIVIAL_TRUE,;t t
s,@OMPI_WANT_BUILD_F90_TRIVIAL_FALSE@,$OMPI_WANT_BUILD_F90_TRIVIAL_FALSE,;t t
s,@OMPI_WANT_BUILD_F90_SMALL_TRUE@,$OMPI_WANT_BUILD_F90_SMALL_TRUE,;t t
s,@OMPI_WANT_BUILD_F90_SMALL_FALSE@,$OMPI_WANT_BUILD_F90_SMALL_FALSE,;t t
s,@OMPI_WANT_BUILD_F90_MEDIUM_TRUE@,$OMPI_WANT_BUILD_F90_MEDIUM_TRUE,;t t
s,@OMPI_WANT_BUILD_F90_MEDIUM_FALSE@,$OMPI_WANT_BUILD_F90_MEDIUM_FALSE,;t t
s,@OMPI_WANT_BUILD_F90_LARGE_TRUE@,$OMPI_WANT_BUILD_F90_LARGE_TRUE,;t t
s,@OMPI_WANT_BUILD_F90_LARGE_FALSE@,$OMPI_WANT_BUILD_F90_LARGE_FALSE,;t t
s,@OMPI_F90_BUILD_SIZE@,$OMPI_F90_BUILD_SIZE,;t t
s,@MPIF_H_PMPI_W_FUNCS@,$MPIF_H_PMPI_W_FUNCS,;t t
s,@WANT_INSTALL_HEADERS_TRUE@,$WANT_INSTALL_HEADERS_TRUE,;t t
s,@WANT_INSTALL_HEADERS_FALSE@,$WANT_INSTALL_HEADERS_FALSE,;t t
s,@WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE@,$WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE,;t t
s,@WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE@,$WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE,;t t
s,@WANT_PERUSE_TRUE@,$WANT_PERUSE_TRUE,;t t
s,@WANT_PERUSE_FALSE@,$WANT_PERUSE_FALSE,;t t
s,@OMPI_FORTRAN_MAX_ARRAY_RANK@,$OMPI_FORTRAN_MAX_ARRAY_RANK,;t t
s,@CC@,$CC,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
s,@ac_ct_CC@,$ac_ct_CC,;t t
s,@EXEEXT@,$EXEEXT,;t t
s,@OBJEXT@,$OBJEXT,;t t
s,@DEPDIR@,$DEPDIR,;t t
s,@am__include@,$am__include,;t t
s,@am__quote@,$am__quote,;t t
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
s,@CCDEPMODE@,$CCDEPMODE,;t t
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
s,@OMPI_CC_ABSOLUTE@,$OMPI_CC_ABSOLUTE,;t t
s,@OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE@,$OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE,;t t
s,@OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE@,$OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE,;t t
s,@CPP@,$CPP,;t t
s,@EGREP@,$EGREP,;t t
s,@WANT_MPI_BINDINGS_LAYER_TRUE@,$WANT_MPI_BINDINGS_LAYER_TRUE,;t t
s,@WANT_MPI_BINDINGS_LAYER_FALSE@,$WANT_MPI_BINDINGS_LAYER_FALSE,;t t
s,@WANT_PMPI_BINDINGS_LAYER_TRUE@,$WANT_PMPI_BINDINGS_LAYER_TRUE,;t t
s,@WANT_PMPI_BINDINGS_LAYER_FALSE@,$WANT_PMPI_BINDINGS_LAYER_FALSE,;t t
s,@COMPILE_PROFILING_SEPARATELY_TRUE@,$COMPILE_PROFILING_SEPARATELY_TRUE,;t t
s,@COMPILE_PROFILING_SEPARATELY_FALSE@,$COMPILE_PROFILING_SEPARATELY_FALSE,;t t
s,@CXX@,$CXX,;t t
s,@CXXFLAGS@,$CXXFLAGS,;t t
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
s,@CXXCPP@,$CXXCPP,;t t
s,@OMPI_CXX_ABSOLUTE@,$OMPI_CXX_ABSOLUTE,;t t
s,@WANT_MPI_CXX_BINDINGS_TRUE@,$WANT_MPI_CXX_BINDINGS_TRUE,;t t
s,@WANT_MPI_CXX_BINDINGS_FALSE@,$WANT_MPI_CXX_BINDINGS_FALSE,;t t
s,@CCAS@,$CCAS,;t t
s,@CCASFLAGS@,$CCASFLAGS,;t t
s,@OMPI_ASM_TEXT@,$OMPI_ASM_TEXT,;t t
s,@OMPI_AS_GLOBAL@,$OMPI_AS_GLOBAL,;t t
s,@OBJDUMP@,$OBJDUMP,;t t
s,@OMPI_AS_LABEL_SUFFIX@,$OMPI_AS_LABEL_SUFFIX,;t t
s,@OMPI_ASM_GSYM@,$OMPI_ASM_GSYM,;t t
s,@OMPI_ASM_LSYM@,$OMPI_ASM_LSYM,;t t
s,@OMPI_ASM_TYPE@,$OMPI_ASM_TYPE,;t t
s,@OMPI_ASM_SUPPORT_64BIT@,$OMPI_ASM_SUPPORT_64BIT,;t t
s,@OMPI_ASSEMBLY_FORMAT@,$OMPI_ASSEMBLY_FORMAT,;t t
s,@OMPI_ASSEMBLY_ARCH@,$OMPI_ASSEMBLY_ARCH,;t t
s,@FGREP@,$FGREP,;t t
s,@PERL@,$PERL,;t t
s,@OMPI_HAVE_ASM_FILE_TRUE@,$OMPI_HAVE_ASM_FILE_TRUE,;t t
s,@OMPI_HAVE_ASM_FILE_FALSE@,$OMPI_HAVE_ASM_FILE_FALSE,;t t
s,@OMPI_ASM_FILE@,$OMPI_ASM_FILE,;t t
s,@F77@,$F77,;t t
s,@FFLAGS@,$FFLAGS,;t t
s,@ac_ct_F77@,$ac_ct_F77,;t t
s,@OMPI_WANT_F77_BINDINGS_TRUE@,$OMPI_WANT_F77_BINDINGS_TRUE,;t t
s,@OMPI_WANT_F77_BINDINGS_FALSE@,$OMPI_WANT_F77_BINDINGS_FALSE,;t t
s,@OMPI_F77_ABSOLUTE@,$OMPI_F77_ABSOLUTE,;t t
s,@WANT_MPI_F77_BINDINGS_LAYER_TRUE@,$WANT_MPI_F77_BINDINGS_LAYER_TRUE,;t t
s,@WANT_MPI_F77_BINDINGS_LAYER_FALSE@,$WANT_MPI_F77_BINDINGS_LAYER_FALSE,;t t
s,@WANT_PMPI_F77_BINDINGS_LAYER_TRUE@,$WANT_PMPI_F77_BINDINGS_LAYER_TRUE,;t t
s,@WANT_PMPI_F77_BINDINGS_LAYER_FALSE@,$WANT_PMPI_F77_BINDINGS_LAYER_FALSE,;t t
s,@FC@,$FC,;t t
s,@FCFLAGS@,$FCFLAGS,;t t
s,@ac_ct_FC@,$ac_ct_FC,;t t
s,@FCFLAGS_f@,$FCFLAGS_f,;t t
s,@FCFLAGS_f90@,$FCFLAGS_f90,;t t
s,@OMPI_WANT_F90_BINDINGS_TRUE@,$OMPI_WANT_F90_BINDINGS_TRUE,;t t
s,@OMPI_WANT_F90_BINDINGS_FALSE@,$OMPI_WANT_F90_BINDINGS_FALSE,;t t
s,@OMPI_F90_ABSOLUTE@,$OMPI_F90_ABSOLUTE,;t t
s,@OMPI_FC_MODULE_FLAG@,$OMPI_FC_MODULE_FLAG,;t t
s,@OMPI_SIZEOF_F90_LOGICAL@,$OMPI_SIZEOF_F90_LOGICAL,;t t
s,@OMPI_SIZEOF_F90_INTEGER@,$OMPI_SIZEOF_F90_INTEGER,;t t
s,@OMPI_SIZEOF_F90_INTEGER1@,$OMPI_SIZEOF_F90_INTEGER1,;t t
s,@OMPI_SIZEOF_F90_INTEGER2@,$OMPI_SIZEOF_F90_INTEGER2,;t t
s,@OMPI_SIZEOF_F90_INTEGER4@,$OMPI_SIZEOF_F90_INTEGER4,;t t
s,@OMPI_SIZEOF_F90_INTEGER8@,$OMPI_SIZEOF_F90_INTEGER8,;t t
s,@OMPI_SIZEOF_F90_INTEGER16@,$OMPI_SIZEOF_F90_INTEGER16,;t t
s,@OMPI_SIZEOF_F90_REAL@,$OMPI_SIZEOF_F90_REAL,;t t
s,@OMPI_SIZEOF_F90_REAL4@,$OMPI_SIZEOF_F90_REAL4,;t t
s,@OMPI_SIZEOF_F90_REAL8@,$OMPI_SIZEOF_F90_REAL8,;t t
s,@OMPI_SIZEOF_F90_REAL16@,$OMPI_SIZEOF_F90_REAL16,;t t
s,@OMPI_SIZEOF_F90_DOUBLE_PRECISION@,$OMPI_SIZEOF_F90_DOUBLE_PRECISION,;t t
s,@OMPI_SIZEOF_F90_COMPLEX@,$OMPI_SIZEOF_F90_COMPLEX,;t t
s,@OMPI_SIZEOF_F90_COMPLEX8@,$OMPI_SIZEOF_F90_COMPLEX8,;t t
s,@OMPI_SIZEOF_F90_COMPLEX16@,$OMPI_SIZEOF_F90_COMPLEX16,;t t
s,@OMPI_SIZEOF_F90_COMPLEX32@,$OMPI_SIZEOF_F90_COMPLEX32,;t t
s,@OMPI_SIZEOF_F90_DOUBLE_COMPLEX@,$OMPI_SIZEOF_F90_DOUBLE_COMPLEX,;t t
s,@OMPI_F90_IKINDS@,$OMPI_F90_IKINDS,;t t
s,@OMPI_F90_RKINDS@,$OMPI_F90_RKINDS,;t t
s,@OMPI_F90_CKINDS@,$OMPI_F90_CKINDS,;t t
s,@OMPI_MPI_INTEGER_KIND@,$OMPI_MPI_INTEGER_KIND,;t t
s,@OMPI_MPI_ADDRESS_KIND@,$OMPI_MPI_ADDRESS_KIND,;t t
s,@OMPI_MPI_OFFSET_KIND@,$OMPI_MPI_OFFSET_KIND,;t t
s,@OMPI_HAVE_POSIX_THREADS_TRUE@,$OMPI_HAVE_POSIX_THREADS_TRUE,;t t
s,@OMPI_HAVE_POSIX_THREADS_FALSE@,$OMPI_HAVE_POSIX_THREADS_FALSE,;t t
s,@OMPI_HAVE_SOLARIS_THREADS_TRUE@,$OMPI_HAVE_SOLARIS_THREADS_TRUE,;t t
s,@OMPI_HAVE_SOLARIS_THREADS_FALSE@,$OMPI_HAVE_SOLARIS_THREADS_FALSE,;t t
s,@LN_S@,$LN_S,;t t
s,@LEX@,$LEX,;t t
s,@LEXLIB@,$LEXLIB,;t t
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
s,@CASE_SENSITIVE_FS_TRUE@,$CASE_SENSITIVE_FS_TRUE,;t t
s,@CASE_SENSITIVE_FS_FALSE@,$CASE_SENSITIVE_FS_FALSE,;t t
s,@OMPI_BUILD_maffinity_first_use_DSO_TRUE@,$OMPI_BUILD_maffinity_first_use_DSO_TRUE,;t t
s,@OMPI_BUILD_maffinity_first_use_DSO_FALSE@,$OMPI_BUILD_maffinity_first_use_DSO_FALSE,;t t
s,@maffinity_libnuma_CPPFLAGS@,$maffinity_libnuma_CPPFLAGS,;t t
s,@maffinity_libnuma_LDFLAGS@,$maffinity_libnuma_LDFLAGS,;t t
s,@maffinity_libnuma_LIBS@,$maffinity_libnuma_LIBS,;t t
s,@OMPI_BUILD_maffinity_libnuma_DSO_TRUE@,$OMPI_BUILD_maffinity_libnuma_DSO_TRUE,;t t
s,@OMPI_BUILD_maffinity_libnuma_DSO_FALSE@,$OMPI_BUILD_maffinity_libnuma_DSO_FALSE,;t t
s,@MCA_maffinity_ALL_COMPONENTS@,$MCA_maffinity_ALL_COMPONENTS,;t t
s,@MCA_maffinity_STATIC_COMPONENTS@,$MCA_maffinity_STATIC_COMPONENTS,;t t
s,@MCA_maffinity_DSO_COMPONENTS@,$MCA_maffinity_DSO_COMPONENTS,;t t
s,@MCA_maffinity_STATIC_LTLIBS@,$MCA_maffinity_STATIC_LTLIBS,;t t
s,@MCA_maffinity_ALL_SUBDIRS@,$MCA_maffinity_ALL_SUBDIRS,;t t
s,@MCA_maffinity_STATIC_SUBDIRS@,$MCA_maffinity_STATIC_SUBDIRS,;t t
s,@MCA_maffinity_DSO_SUBDIRS@,$MCA_maffinity_DSO_SUBDIRS,;t t
s,@MCA_memcpy_ALL_COMPONENTS@,$MCA_memcpy_ALL_COMPONENTS,;t t
s,@MCA_memcpy_STATIC_COMPONENTS@,$MCA_memcpy_STATIC_COMPONENTS,;t t
s,@MCA_memcpy_DSO_COMPONENTS@,$MCA_memcpy_DSO_COMPONENTS,;t t
s,@MCA_memcpy_STATIC_LTLIBS@,$MCA_memcpy_STATIC_LTLIBS,;t t
s,@MCA_memcpy_ALL_SUBDIRS@,$MCA_memcpy_ALL_SUBDIRS,;t t
s,@MCA_memcpy_STATIC_SUBDIRS@,$MCA_memcpy_STATIC_SUBDIRS,;t t
s,@MCA_memcpy_DSO_SUBDIRS@,$MCA_memcpy_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_memory_darwin_DSO_TRUE@,$OMPI_BUILD_memory_darwin_DSO_TRUE,;t t
s,@OMPI_BUILD_memory_darwin_DSO_FALSE@,$OMPI_BUILD_memory_darwin_DSO_FALSE,;t t
s,@memory_ptmalloc2_LIBS@,$memory_ptmalloc2_LIBS,;t t
s,@OMPI_BUILD_memory_ptmalloc2_DSO_TRUE@,$OMPI_BUILD_memory_ptmalloc2_DSO_TRUE,;t t
s,@OMPI_BUILD_memory_ptmalloc2_DSO_FALSE@,$OMPI_BUILD_memory_ptmalloc2_DSO_FALSE,;t t
s,@memory_malloc_hooks_LIBS@,$memory_malloc_hooks_LIBS,;t t
s,@OMPI_BUILD_memory_malloc_hooks_DSO_TRUE@,$OMPI_BUILD_memory_malloc_hooks_DSO_TRUE,;t t
s,@OMPI_BUILD_memory_malloc_hooks_DSO_FALSE@,$OMPI_BUILD_memory_malloc_hooks_DSO_FALSE,;t t
s,@MCA_memory_ALL_COMPONENTS@,$MCA_memory_ALL_COMPONENTS,;t t
s,@MCA_memory_STATIC_COMPONENTS@,$MCA_memory_STATIC_COMPONENTS,;t t
s,@MCA_memory_DSO_COMPONENTS@,$MCA_memory_DSO_COMPONENTS,;t t
s,@MCA_memory_STATIC_LTLIBS@,$MCA_memory_STATIC_LTLIBS,;t t
s,@MCA_memory_ALL_SUBDIRS@,$MCA_memory_ALL_SUBDIRS,;t t
s,@MCA_memory_STATIC_SUBDIRS@,$MCA_memory_STATIC_SUBDIRS,;t t
s,@MCA_memory_DSO_SUBDIRS@,$MCA_memory_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_paffinity_linux_DSO_TRUE@,$OMPI_BUILD_paffinity_linux_DSO_TRUE,;t t
s,@OMPI_BUILD_paffinity_linux_DSO_FALSE@,$OMPI_BUILD_paffinity_linux_DSO_FALSE,;t t
s,@OMPI_BUILD_paffinity_solaris_DSO_TRUE@,$OMPI_BUILD_paffinity_solaris_DSO_TRUE,;t t
s,@OMPI_BUILD_paffinity_solaris_DSO_FALSE@,$OMPI_BUILD_paffinity_solaris_DSO_FALSE,;t t
s,@OMPI_BUILD_paffinity_windows_DSO_TRUE@,$OMPI_BUILD_paffinity_windows_DSO_TRUE,;t t
s,@OMPI_BUILD_paffinity_windows_DSO_FALSE@,$OMPI_BUILD_paffinity_windows_DSO_FALSE,;t t
s,@MCA_paffinity_ALL_COMPONENTS@,$MCA_paffinity_ALL_COMPONENTS,;t t
s,@MCA_paffinity_STATIC_COMPONENTS@,$MCA_paffinity_STATIC_COMPONENTS,;t t
s,@MCA_paffinity_DSO_COMPONENTS@,$MCA_paffinity_DSO_COMPONENTS,;t t
s,@MCA_paffinity_STATIC_LTLIBS@,$MCA_paffinity_STATIC_LTLIBS,;t t
s,@MCA_paffinity_ALL_SUBDIRS@,$MCA_paffinity_ALL_SUBDIRS,;t t
s,@MCA_paffinity_STATIC_SUBDIRS@,$MCA_paffinity_STATIC_SUBDIRS,;t t
s,@MCA_paffinity_DSO_SUBDIRS@,$MCA_paffinity_DSO_SUBDIRS,;t t
s,@timer_aix_LIBS@,$timer_aix_LIBS,;t t
s,@OMPI_BUILD_timer_aix_DSO_TRUE@,$OMPI_BUILD_timer_aix_DSO_TRUE,;t t
s,@OMPI_BUILD_timer_aix_DSO_FALSE@,$OMPI_BUILD_timer_aix_DSO_FALSE,;t t
s,@OMPI_BUILD_timer_altix_DSO_TRUE@,$OMPI_BUILD_timer_altix_DSO_TRUE,;t t
s,@OMPI_BUILD_timer_altix_DSO_FALSE@,$OMPI_BUILD_timer_altix_DSO_FALSE,;t t
s,@OMPI_BUILD_timer_darwin_DSO_TRUE@,$OMPI_BUILD_timer_darwin_DSO_TRUE,;t t
s,@OMPI_BUILD_timer_darwin_DSO_FALSE@,$OMPI_BUILD_timer_darwin_DSO_FALSE,;t t
s,@OMPI_BUILD_timer_solaris_DSO_TRUE@,$OMPI_BUILD_timer_solaris_DSO_TRUE,;t t
s,@OMPI_BUILD_timer_solaris_DSO_FALSE@,$OMPI_BUILD_timer_solaris_DSO_FALSE,;t t
s,@OMPI_BUILD_timer_windows_DSO_TRUE@,$OMPI_BUILD_timer_windows_DSO_TRUE,;t t
s,@OMPI_BUILD_timer_windows_DSO_FALSE@,$OMPI_BUILD_timer_windows_DSO_FALSE,;t t
s,@OMPI_BUILD_timer_linux_DSO_TRUE@,$OMPI_BUILD_timer_linux_DSO_TRUE,;t t
s,@OMPI_BUILD_timer_linux_DSO_FALSE@,$OMPI_BUILD_timer_linux_DSO_FALSE,;t t
s,@MCA_timer_ALL_COMPONENTS@,$MCA_timer_ALL_COMPONENTS,;t t
s,@MCA_timer_STATIC_COMPONENTS@,$MCA_timer_STATIC_COMPONENTS,;t t
s,@MCA_timer_DSO_COMPONENTS@,$MCA_timer_DSO_COMPONENTS,;t t
s,@MCA_timer_STATIC_LTLIBS@,$MCA_timer_STATIC_LTLIBS,;t t
s,@MCA_timer_ALL_SUBDIRS@,$MCA_timer_ALL_SUBDIRS,;t t
s,@MCA_timer_STATIC_SUBDIRS@,$MCA_timer_STATIC_SUBDIRS,;t t
s,@MCA_timer_DSO_SUBDIRS@,$MCA_timer_DSO_SUBDIRS,;t t
s,@MCA_opal_FRAMEWORKS@,$MCA_opal_FRAMEWORKS,;t t
s,@MCA_opal_FRAMEWORKS_SUBDIRS@,$MCA_opal_FRAMEWORKS_SUBDIRS,;t t
s,@MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS@,$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS,;t t
s,@MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS@,$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS,;t t
s,@MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS@,$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS,;t t
s,@MCA_opal_FRAMEWORK_LIBS@,$MCA_opal_FRAMEWORK_LIBS,;t t
s,@MCA_errmgr_ALL_COMPONENTS@,$MCA_errmgr_ALL_COMPONENTS,;t t
s,@MCA_errmgr_STATIC_COMPONENTS@,$MCA_errmgr_STATIC_COMPONENTS,;t t
s,@MCA_errmgr_DSO_COMPONENTS@,$MCA_errmgr_DSO_COMPONENTS,;t t
s,@MCA_errmgr_STATIC_LTLIBS@,$MCA_errmgr_STATIC_LTLIBS,;t t
s,@MCA_errmgr_ALL_SUBDIRS@,$MCA_errmgr_ALL_SUBDIRS,;t t
s,@MCA_errmgr_STATIC_SUBDIRS@,$MCA_errmgr_STATIC_SUBDIRS,;t t
s,@MCA_errmgr_DSO_SUBDIRS@,$MCA_errmgr_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_gpr_null_DSO_TRUE@,$OMPI_BUILD_gpr_null_DSO_TRUE,;t t
s,@OMPI_BUILD_gpr_null_DSO_FALSE@,$OMPI_BUILD_gpr_null_DSO_FALSE,;t t
s,@OMPI_BUILD_gpr_proxy_DSO_TRUE@,$OMPI_BUILD_gpr_proxy_DSO_TRUE,;t t
s,@OMPI_BUILD_gpr_proxy_DSO_FALSE@,$OMPI_BUILD_gpr_proxy_DSO_FALSE,;t t
s,@OMPI_BUILD_gpr_replica_DSO_TRUE@,$OMPI_BUILD_gpr_replica_DSO_TRUE,;t t
s,@OMPI_BUILD_gpr_replica_DSO_FALSE@,$OMPI_BUILD_gpr_replica_DSO_FALSE,;t t
s,@MCA_gpr_ALL_COMPONENTS@,$MCA_gpr_ALL_COMPONENTS,;t t
s,@MCA_gpr_STATIC_COMPONENTS@,$MCA_gpr_STATIC_COMPONENTS,;t t
s,@MCA_gpr_DSO_COMPONENTS@,$MCA_gpr_DSO_COMPONENTS,;t t
s,@MCA_gpr_STATIC_LTLIBS@,$MCA_gpr_STATIC_LTLIBS,;t t
s,@MCA_gpr_ALL_SUBDIRS@,$MCA_gpr_ALL_SUBDIRS,;t t
s,@MCA_gpr_STATIC_SUBDIRS@,$MCA_gpr_STATIC_SUBDIRS,;t t
s,@MCA_gpr_DSO_SUBDIRS@,$MCA_gpr_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_iof_proxy_DSO_TRUE@,$OMPI_BUILD_iof_proxy_DSO_TRUE,;t t
s,@OMPI_BUILD_iof_proxy_DSO_FALSE@,$OMPI_BUILD_iof_proxy_DSO_FALSE,;t t
s,@OMPI_BUILD_iof_svc_DSO_TRUE@,$OMPI_BUILD_iof_svc_DSO_TRUE,;t t
s,@OMPI_BUILD_iof_svc_DSO_FALSE@,$OMPI_BUILD_iof_svc_DSO_FALSE,;t t
s,@MCA_iof_ALL_COMPONENTS@,$MCA_iof_ALL_COMPONENTS,;t t
s,@MCA_iof_STATIC_COMPONENTS@,$MCA_iof_STATIC_COMPONENTS,;t t
s,@MCA_iof_DSO_COMPONENTS@,$MCA_iof_DSO_COMPONENTS,;t t
s,@MCA_iof_STATIC_LTLIBS@,$MCA_iof_STATIC_LTLIBS,;t t
s,@MCA_iof_ALL_SUBDIRS@,$MCA_iof_ALL_SUBDIRS,;t t
s,@MCA_iof_STATIC_SUBDIRS@,$MCA_iof_STATIC_SUBDIRS,;t t
s,@MCA_iof_DSO_SUBDIRS@,$MCA_iof_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_ns_proxy_DSO_TRUE@,$OMPI_BUILD_ns_proxy_DSO_TRUE,;t t
s,@OMPI_BUILD_ns_proxy_DSO_FALSE@,$OMPI_BUILD_ns_proxy_DSO_FALSE,;t t
s,@OMPI_BUILD_ns_replica_DSO_TRUE@,$OMPI_BUILD_ns_replica_DSO_TRUE,;t t
s,@OMPI_BUILD_ns_replica_DSO_FALSE@,$OMPI_BUILD_ns_replica_DSO_FALSE,;t t
s,@MCA_ns_ALL_COMPONENTS@,$MCA_ns_ALL_COMPONENTS,;t t
s,@MCA_ns_STATIC_COMPONENTS@,$MCA_ns_STATIC_COMPONENTS,;t t
s,@MCA_ns_DSO_COMPONENTS@,$MCA_ns_DSO_COMPONENTS,;t t
s,@MCA_ns_STATIC_LTLIBS@,$MCA_ns_STATIC_LTLIBS,;t t
s,@MCA_ns_ALL_SUBDIRS@,$MCA_ns_ALL_SUBDIRS,;t t
s,@MCA_ns_STATIC_SUBDIRS@,$MCA_ns_STATIC_SUBDIRS,;t t
s,@MCA_ns_DSO_SUBDIRS@,$MCA_ns_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_oob_tcp_DSO_TRUE@,$OMPI_BUILD_oob_tcp_DSO_TRUE,;t t
s,@OMPI_BUILD_oob_tcp_DSO_FALSE@,$OMPI_BUILD_oob_tcp_DSO_FALSE,;t t
s,@MCA_oob_ALL_COMPONENTS@,$MCA_oob_ALL_COMPONENTS,;t t
s,@MCA_oob_STATIC_COMPONENTS@,$MCA_oob_STATIC_COMPONENTS,;t t
s,@MCA_oob_DSO_COMPONENTS@,$MCA_oob_DSO_COMPONENTS,;t t
s,@MCA_oob_STATIC_LTLIBS@,$MCA_oob_STATIC_LTLIBS,;t t
s,@MCA_oob_ALL_SUBDIRS@,$MCA_oob_ALL_SUBDIRS,;t t
s,@MCA_oob_STATIC_SUBDIRS@,$MCA_oob_STATIC_SUBDIRS,;t t
s,@MCA_oob_DSO_SUBDIRS@,$MCA_oob_DSO_SUBDIRS,;t t
s,@pls_bproc_CPPFLAGS@,$pls_bproc_CPPFLAGS,;t t
s,@pls_bproc_LDFLAGS@,$pls_bproc_LDFLAGS,;t t
s,@pls_bproc_LIBS@,$pls_bproc_LIBS,;t t
s,@OMPI_BUILD_pls_bproc_DSO_TRUE@,$OMPI_BUILD_pls_bproc_DSO_TRUE,;t t
s,@OMPI_BUILD_pls_bproc_DSO_FALSE@,$OMPI_BUILD_pls_bproc_DSO_FALSE,;t t
s,@pls_bproc_orted_CPPFLAGS@,$pls_bproc_orted_CPPFLAGS,;t t
s,@pls_bproc_orted_LDFLAGS@,$pls_bproc_orted_LDFLAGS,;t t
s,@pls_bproc_orted_LIBS@,$pls_bproc_orted_LIBS,;t t
s,@OMPI_BUILD_pls_bproc_orted_DSO_TRUE@,$OMPI_BUILD_pls_bproc_orted_DSO_TRUE,;t t
s,@OMPI_BUILD_pls_bproc_orted_DSO_FALSE@,$OMPI_BUILD_pls_bproc_orted_DSO_FALSE,;t t
s,@OMPI_BUILD_pls_fork_DSO_TRUE@,$OMPI_BUILD_pls_fork_DSO_TRUE,;t t
s,@OMPI_BUILD_pls_fork_DSO_FALSE@,$OMPI_BUILD_pls_fork_DSO_FALSE,;t t
s,@OMPI_BUILD_pls_poe_DSO_TRUE@,$OMPI_BUILD_pls_poe_DSO_TRUE,;t t
s,@OMPI_BUILD_pls_poe_DSO_FALSE@,$OMPI_BUILD_pls_poe_DSO_FALSE,;t t
s,@OMPI_BUILD_pls_rsh_DSO_TRUE@,$OMPI_BUILD_pls_rsh_DSO_TRUE,;t t
s,@OMPI_BUILD_pls_rsh_DSO_FALSE@,$OMPI_BUILD_pls_rsh_DSO_FALSE,;t t
s,@pls_slurm_CPPFLAGS@,$pls_slurm_CPPFLAGS,;t t
s,@pls_slurm_LDFLAGS@,$pls_slurm_LDFLAGS,;t t
s,@pls_slurm_LIBS@,$pls_slurm_LIBS,;t t
s,@OMPI_BUILD_pls_slurm_DSO_TRUE@,$OMPI_BUILD_pls_slurm_DSO_TRUE,;t t
s,@OMPI_BUILD_pls_slurm_DSO_FALSE@,$OMPI_BUILD_pls_slurm_DSO_FALSE,;t t
s,@pls_tm_CPPFLAGS@,$pls_tm_CPPFLAGS,;t t
s,@pls_tm_LDFLAGS@,$pls_tm_LDFLAGS,;t t
s,@pls_tm_LIBS@,$pls_tm_LIBS,;t t
s,@OMPI_BUILD_pls_tm_DSO_TRUE@,$OMPI_BUILD_pls_tm_DSO_TRUE,;t t
s,@OMPI_BUILD_pls_tm_DSO_FALSE@,$OMPI_BUILD_pls_tm_DSO_FALSE,;t t
s,@OBJC@,$OBJC,;t t
s,@OBJCFLAGS@,$OBJCFLAGS,;t t
s,@ac_ct_OBJC@,$ac_ct_OBJC,;t t
s,@OBJCDEPMODE@,$OBJCDEPMODE,;t t
s,@am__fastdepOBJC_TRUE@,$am__fastdepOBJC_TRUE,;t t
s,@am__fastdepOBJC_FALSE@,$am__fastdepOBJC_FALSE,;t t
s,@pls_xgrid_OBJCFLAGS@,$pls_xgrid_OBJCFLAGS,;t t
s,@pls_xgrid_LDFLAGS@,$pls_xgrid_LDFLAGS,;t t
s,@OMPI_BUILD_pls_xgrid_DSO_TRUE@,$OMPI_BUILD_pls_xgrid_DSO_TRUE,;t t
s,@OMPI_BUILD_pls_xgrid_DSO_FALSE@,$OMPI_BUILD_pls_xgrid_DSO_FALSE,;t t
s,@MCA_pls_ALL_COMPONENTS@,$MCA_pls_ALL_COMPONENTS,;t t
s,@MCA_pls_STATIC_COMPONENTS@,$MCA_pls_STATIC_COMPONENTS,;t t
s,@MCA_pls_DSO_COMPONENTS@,$MCA_pls_DSO_COMPONENTS,;t t
s,@MCA_pls_STATIC_LTLIBS@,$MCA_pls_STATIC_LTLIBS,;t t
s,@MCA_pls_ALL_SUBDIRS@,$MCA_pls_ALL_SUBDIRS,;t t
s,@MCA_pls_STATIC_SUBDIRS@,$MCA_pls_STATIC_SUBDIRS,;t t
s,@MCA_pls_DSO_SUBDIRS@,$MCA_pls_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_ras_dash_host_DSO_TRUE@,$OMPI_BUILD_ras_dash_host_DSO_TRUE,;t t
s,@OMPI_BUILD_ras_dash_host_DSO_FALSE@,$OMPI_BUILD_ras_dash_host_DSO_FALSE,;t t
s,@OMPI_BUILD_ras_hostfile_DSO_TRUE@,$OMPI_BUILD_ras_hostfile_DSO_TRUE,;t t
s,@OMPI_BUILD_ras_hostfile_DSO_FALSE@,$OMPI_BUILD_ras_hostfile_DSO_FALSE,;t t
s,@OMPI_BUILD_ras_localhost_DSO_TRUE@,$OMPI_BUILD_ras_localhost_DSO_TRUE,;t t
s,@OMPI_BUILD_ras_localhost_DSO_FALSE@,$OMPI_BUILD_ras_localhost_DSO_FALSE,;t t
s,@ras_bjs_CPPFLAGS@,$ras_bjs_CPPFLAGS,;t t
s,@ras_bjs_LDFLAGS@,$ras_bjs_LDFLAGS,;t t
s,@ras_bjs_LIBS@,$ras_bjs_LIBS,;t t
s,@OMPI_BUILD_ras_bjs_DSO_TRUE@,$OMPI_BUILD_ras_bjs_DSO_TRUE,;t t
s,@OMPI_BUILD_ras_bjs_DSO_FALSE@,$OMPI_BUILD_ras_bjs_DSO_FALSE,;t t
s,@ras_lsf_bproc_CPPFLAGS@,$ras_lsf_bproc_CPPFLAGS,;t t
s,@ras_lsf_bproc_LDFLAGS@,$ras_lsf_bproc_LDFLAGS,;t t
s,@ras_lsf_bproc_LIBS@,$ras_lsf_bproc_LIBS,;t t
s,@OMPI_BUILD_ras_lsf_bproc_DSO_TRUE@,$OMPI_BUILD_ras_lsf_bproc_DSO_TRUE,;t t
s,@OMPI_BUILD_ras_lsf_bproc_DSO_FALSE@,$OMPI_BUILD_ras_lsf_bproc_DSO_FALSE,;t t
s,@OMPI_BUILD_ras_poe_DSO_TRUE@,$OMPI_BUILD_ras_poe_DSO_TRUE,;t t
s,@OMPI_BUILD_ras_poe_DSO_FALSE@,$OMPI_BUILD_ras_poe_DSO_FALSE,;t t
s,@ras_slurm_CPPFLAGS@,$ras_slurm_CPPFLAGS,;t t
s,@ras_slurm_LDFLAGS@,$ras_slurm_LDFLAGS,;t t
s,@ras_slurm_LIBS@,$ras_slurm_LIBS,;t t
s,@OMPI_BUILD_ras_slurm_DSO_TRUE@,$OMPI_BUILD_ras_slurm_DSO_TRUE,;t t
s,@OMPI_BUILD_ras_slurm_DSO_FALSE@,$OMPI_BUILD_ras_slurm_DSO_FALSE,;t t
s,@ras_tm_CPPFLAGS@,$ras_tm_CPPFLAGS,;t t
s,@ras_tm_LDFLAGS@,$ras_tm_LDFLAGS,;t t
s,@ras_tm_LIBS@,$ras_tm_LIBS,;t t
s,@OMPI_BUILD_ras_tm_DSO_TRUE@,$OMPI_BUILD_ras_tm_DSO_TRUE,;t t
s,@OMPI_BUILD_ras_tm_DSO_FALSE@,$OMPI_BUILD_ras_tm_DSO_FALSE,;t t
s,@OMPI_BUILD_ras_xgrid_DSO_TRUE@,$OMPI_BUILD_ras_xgrid_DSO_TRUE,;t t
s,@OMPI_BUILD_ras_xgrid_DSO_FALSE@,$OMPI_BUILD_ras_xgrid_DSO_FALSE,;t t
s,@MCA_ras_ALL_COMPONENTS@,$MCA_ras_ALL_COMPONENTS,;t t
s,@MCA_ras_STATIC_COMPONENTS@,$MCA_ras_STATIC_COMPONENTS,;t t
s,@MCA_ras_DSO_COMPONENTS@,$MCA_ras_DSO_COMPONENTS,;t t
s,@MCA_ras_STATIC_LTLIBS@,$MCA_ras_STATIC_LTLIBS,;t t
s,@MCA_ras_ALL_SUBDIRS@,$MCA_ras_ALL_SUBDIRS,;t t
s,@MCA_ras_STATIC_SUBDIRS@,$MCA_ras_STATIC_SUBDIRS,;t t
s,@MCA_ras_DSO_SUBDIRS@,$MCA_ras_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_rds_hostfile_DSO_TRUE@,$OMPI_BUILD_rds_hostfile_DSO_TRUE,;t t
s,@OMPI_BUILD_rds_hostfile_DSO_FALSE@,$OMPI_BUILD_rds_hostfile_DSO_FALSE,;t t
s,@OMPI_BUILD_rds_resfile_DSO_TRUE@,$OMPI_BUILD_rds_resfile_DSO_TRUE,;t t
s,@OMPI_BUILD_rds_resfile_DSO_FALSE@,$OMPI_BUILD_rds_resfile_DSO_FALSE,;t t
s,@MCA_rds_ALL_COMPONENTS@,$MCA_rds_ALL_COMPONENTS,;t t
s,@MCA_rds_STATIC_COMPONENTS@,$MCA_rds_STATIC_COMPONENTS,;t t
s,@MCA_rds_DSO_COMPONENTS@,$MCA_rds_DSO_COMPONENTS,;t t
s,@MCA_rds_STATIC_LTLIBS@,$MCA_rds_STATIC_LTLIBS,;t t
s,@MCA_rds_ALL_SUBDIRS@,$MCA_rds_ALL_SUBDIRS,;t t
s,@MCA_rds_STATIC_SUBDIRS@,$MCA_rds_STATIC_SUBDIRS,;t t
s,@MCA_rds_DSO_SUBDIRS@,$MCA_rds_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_rmaps_round_robin_DSO_TRUE@,$OMPI_BUILD_rmaps_round_robin_DSO_TRUE,;t t
s,@OMPI_BUILD_rmaps_round_robin_DSO_FALSE@,$OMPI_BUILD_rmaps_round_robin_DSO_FALSE,;t t
s,@MCA_rmaps_ALL_COMPONENTS@,$MCA_rmaps_ALL_COMPONENTS,;t t
s,@MCA_rmaps_STATIC_COMPONENTS@,$MCA_rmaps_STATIC_COMPONENTS,;t t
s,@MCA_rmaps_DSO_COMPONENTS@,$MCA_rmaps_DSO_COMPONENTS,;t t
s,@MCA_rmaps_STATIC_LTLIBS@,$MCA_rmaps_STATIC_LTLIBS,;t t
s,@MCA_rmaps_ALL_SUBDIRS@,$MCA_rmaps_ALL_SUBDIRS,;t t
s,@MCA_rmaps_STATIC_SUBDIRS@,$MCA_rmaps_STATIC_SUBDIRS,;t t
s,@MCA_rmaps_DSO_SUBDIRS@,$MCA_rmaps_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_rmgr_proxy_DSO_TRUE@,$OMPI_BUILD_rmgr_proxy_DSO_TRUE,;t t
s,@OMPI_BUILD_rmgr_proxy_DSO_FALSE@,$OMPI_BUILD_rmgr_proxy_DSO_FALSE,;t t
s,@OMPI_BUILD_rmgr_urm_DSO_TRUE@,$OMPI_BUILD_rmgr_urm_DSO_TRUE,;t t
s,@OMPI_BUILD_rmgr_urm_DSO_FALSE@,$OMPI_BUILD_rmgr_urm_DSO_FALSE,;t t
s,@OMPI_BUILD_rmgr_cnos_DSO_TRUE@,$OMPI_BUILD_rmgr_cnos_DSO_TRUE,;t t
s,@OMPI_BUILD_rmgr_cnos_DSO_FALSE@,$OMPI_BUILD_rmgr_cnos_DSO_FALSE,;t t
s,@MCA_rmgr_ALL_COMPONENTS@,$MCA_rmgr_ALL_COMPONENTS,;t t
s,@MCA_rmgr_STATIC_COMPONENTS@,$MCA_rmgr_STATIC_COMPONENTS,;t t
s,@MCA_rmgr_DSO_COMPONENTS@,$MCA_rmgr_DSO_COMPONENTS,;t t
s,@MCA_rmgr_STATIC_LTLIBS@,$MCA_rmgr_STATIC_LTLIBS,;t t
s,@MCA_rmgr_ALL_SUBDIRS@,$MCA_rmgr_ALL_SUBDIRS,;t t
s,@MCA_rmgr_STATIC_SUBDIRS@,$MCA_rmgr_STATIC_SUBDIRS,;t t
s,@MCA_rmgr_DSO_SUBDIRS@,$MCA_rmgr_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_rml_oob_DSO_TRUE@,$OMPI_BUILD_rml_oob_DSO_TRUE,;t t
s,@OMPI_BUILD_rml_oob_DSO_FALSE@,$OMPI_BUILD_rml_oob_DSO_FALSE,;t t
s,@OMPI_BUILD_rml_cnos_DSO_TRUE@,$OMPI_BUILD_rml_cnos_DSO_TRUE,;t t
s,@OMPI_BUILD_rml_cnos_DSO_FALSE@,$OMPI_BUILD_rml_cnos_DSO_FALSE,;t t
s,@MCA_rml_ALL_COMPONENTS@,$MCA_rml_ALL_COMPONENTS,;t t
s,@MCA_rml_STATIC_COMPONENTS@,$MCA_rml_STATIC_COMPONENTS,;t t
s,@MCA_rml_DSO_COMPONENTS@,$MCA_rml_DSO_COMPONENTS,;t t
s,@MCA_rml_STATIC_LTLIBS@,$MCA_rml_STATIC_LTLIBS,;t t
s,@MCA_rml_ALL_SUBDIRS@,$MCA_rml_ALL_SUBDIRS,;t t
s,@MCA_rml_STATIC_SUBDIRS@,$MCA_rml_STATIC_SUBDIRS,;t t
s,@MCA_rml_DSO_SUBDIRS@,$MCA_rml_DSO_SUBDIRS,;t t
s,@MCA_schema_ALL_COMPONENTS@,$MCA_schema_ALL_COMPONENTS,;t t
s,@MCA_schema_STATIC_COMPONENTS@,$MCA_schema_STATIC_COMPONENTS,;t t
s,@MCA_schema_DSO_COMPONENTS@,$MCA_schema_DSO_COMPONENTS,;t t
s,@MCA_schema_STATIC_LTLIBS@,$MCA_schema_STATIC_LTLIBS,;t t
s,@MCA_schema_ALL_SUBDIRS@,$MCA_schema_ALL_SUBDIRS,;t t
s,@MCA_schema_STATIC_SUBDIRS@,$MCA_schema_STATIC_SUBDIRS,;t t
s,@MCA_schema_DSO_SUBDIRS@,$MCA_schema_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_sds_env_DSO_TRUE@,$OMPI_BUILD_sds_env_DSO_TRUE,;t t
s,@OMPI_BUILD_sds_env_DSO_FALSE@,$OMPI_BUILD_sds_env_DSO_FALSE,;t t
s,@OMPI_BUILD_sds_seed_DSO_TRUE@,$OMPI_BUILD_sds_seed_DSO_TRUE,;t t
s,@OMPI_BUILD_sds_seed_DSO_FALSE@,$OMPI_BUILD_sds_seed_DSO_FALSE,;t t
s,@OMPI_BUILD_sds_singleton_DSO_TRUE@,$OMPI_BUILD_sds_singleton_DSO_TRUE,;t t
s,@OMPI_BUILD_sds_singleton_DSO_FALSE@,$OMPI_BUILD_sds_singleton_DSO_FALSE,;t t
s,@sds_bproc_CPPFLAGS@,$sds_bproc_CPPFLAGS,;t t
s,@sds_bproc_LDFLAGS@,$sds_bproc_LDFLAGS,;t t
s,@sds_bproc_LIBS@,$sds_bproc_LIBS,;t t
s,@OMPI_BUILD_sds_bproc_DSO_TRUE@,$OMPI_BUILD_sds_bproc_DSO_TRUE,;t t
s,@OMPI_BUILD_sds_bproc_DSO_FALSE@,$OMPI_BUILD_sds_bproc_DSO_FALSE,;t t
s,@OMPI_BUILD_sds_cnos_DSO_TRUE@,$OMPI_BUILD_sds_cnos_DSO_TRUE,;t t
s,@OMPI_BUILD_sds_cnos_DSO_FALSE@,$OMPI_BUILD_sds_cnos_DSO_FALSE,;t t
s,@OMPI_BUILD_sds_pipe_DSO_TRUE@,$OMPI_BUILD_sds_pipe_DSO_TRUE,;t t
s,@OMPI_BUILD_sds_pipe_DSO_FALSE@,$OMPI_BUILD_sds_pipe_DSO_FALSE,;t t
s,@sds_portals_utcp_CPPFLAGS@,$sds_portals_utcp_CPPFLAGS,;t t
s,@sds_portals_utcp_LDFLAGS@,$sds_portals_utcp_LDFLAGS,;t t
s,@sds_portals_utcp_LIBS@,$sds_portals_utcp_LIBS,;t t
s,@OMPI_BUILD_sds_portals_utcp_DSO_TRUE@,$OMPI_BUILD_sds_portals_utcp_DSO_TRUE,;t t
s,@OMPI_BUILD_sds_portals_utcp_DSO_FALSE@,$OMPI_BUILD_sds_portals_utcp_DSO_FALSE,;t t
s,@sds_slurm_CPPFLAGS@,$sds_slurm_CPPFLAGS,;t t
s,@sds_slurm_LDFLAGS@,$sds_slurm_LDFLAGS,;t t
s,@sds_slurm_LIBS@,$sds_slurm_LIBS,;t t
s,@OMPI_BUILD_sds_slurm_DSO_TRUE@,$OMPI_BUILD_sds_slurm_DSO_TRUE,;t t
s,@OMPI_BUILD_sds_slurm_DSO_FALSE@,$OMPI_BUILD_sds_slurm_DSO_FALSE,;t t
s,@MCA_sds_ALL_COMPONENTS@,$MCA_sds_ALL_COMPONENTS,;t t
s,@MCA_sds_STATIC_COMPONENTS@,$MCA_sds_STATIC_COMPONENTS,;t t
s,@MCA_sds_DSO_COMPONENTS@,$MCA_sds_DSO_COMPONENTS,;t t
s,@MCA_sds_STATIC_LTLIBS@,$MCA_sds_STATIC_LTLIBS,;t t
s,@MCA_sds_ALL_SUBDIRS@,$MCA_sds_ALL_SUBDIRS,;t t
s,@MCA_sds_STATIC_SUBDIRS@,$MCA_sds_STATIC_SUBDIRS,;t t
s,@MCA_sds_DSO_SUBDIRS@,$MCA_sds_DSO_SUBDIRS,;t t
s,@soh_bproc_CPPFLAGS@,$soh_bproc_CPPFLAGS,;t t
s,@soh_bproc_LDFLAGS@,$soh_bproc_LDFLAGS,;t t
s,@soh_bproc_LIBS@,$soh_bproc_LIBS,;t t
s,@OMPI_BUILD_soh_bproc_DSO_TRUE@,$OMPI_BUILD_soh_bproc_DSO_TRUE,;t t
s,@OMPI_BUILD_soh_bproc_DSO_FALSE@,$OMPI_BUILD_soh_bproc_DSO_FALSE,;t t
s,@MCA_soh_ALL_COMPONENTS@,$MCA_soh_ALL_COMPONENTS,;t t
s,@MCA_soh_STATIC_COMPONENTS@,$MCA_soh_STATIC_COMPONENTS,;t t
s,@MCA_soh_DSO_COMPONENTS@,$MCA_soh_DSO_COMPONENTS,;t t
s,@MCA_soh_STATIC_LTLIBS@,$MCA_soh_STATIC_LTLIBS,;t t
s,@MCA_soh_ALL_SUBDIRS@,$MCA_soh_ALL_SUBDIRS,;t t
s,@MCA_soh_STATIC_SUBDIRS@,$MCA_soh_STATIC_SUBDIRS,;t t
s,@MCA_soh_DSO_SUBDIRS@,$MCA_soh_DSO_SUBDIRS,;t t
s,@MCA_orte_FRAMEWORKS@,$MCA_orte_FRAMEWORKS,;t t
s,@MCA_orte_FRAMEWORKS_SUBDIRS@,$MCA_orte_FRAMEWORKS_SUBDIRS,;t t
s,@MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS@,$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS,;t t
s,@MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS@,$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS,;t t
s,@MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS@,$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS,;t t
s,@MCA_orte_FRAMEWORK_LIBS@,$MCA_orte_FRAMEWORK_LIBS,;t t
s,@OMPI_BUILD_allocator_basic_DSO_TRUE@,$OMPI_BUILD_allocator_basic_DSO_TRUE,;t t
s,@OMPI_BUILD_allocator_basic_DSO_FALSE@,$OMPI_BUILD_allocator_basic_DSO_FALSE,;t t
s,@OMPI_BUILD_allocator_bucket_DSO_TRUE@,$OMPI_BUILD_allocator_bucket_DSO_TRUE,;t t
s,@OMPI_BUILD_allocator_bucket_DSO_FALSE@,$OMPI_BUILD_allocator_bucket_DSO_FALSE,;t t
s,@MCA_allocator_ALL_COMPONENTS@,$MCA_allocator_ALL_COMPONENTS,;t t
s,@MCA_allocator_STATIC_COMPONENTS@,$MCA_allocator_STATIC_COMPONENTS,;t t
s,@MCA_allocator_DSO_COMPONENTS@,$MCA_allocator_DSO_COMPONENTS,;t t
s,@MCA_allocator_STATIC_LTLIBS@,$MCA_allocator_STATIC_LTLIBS,;t t
s,@MCA_allocator_ALL_SUBDIRS@,$MCA_allocator_ALL_SUBDIRS,;t t
s,@MCA_allocator_STATIC_SUBDIRS@,$MCA_allocator_STATIC_SUBDIRS,;t t
s,@MCA_allocator_DSO_SUBDIRS@,$MCA_allocator_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_bml_r2_DSO_TRUE@,$OMPI_BUILD_bml_r2_DSO_TRUE,;t t
s,@OMPI_BUILD_bml_r2_DSO_FALSE@,$OMPI_BUILD_bml_r2_DSO_FALSE,;t t
s,@MCA_bml_ALL_COMPONENTS@,$MCA_bml_ALL_COMPONENTS,;t t
s,@MCA_bml_STATIC_COMPONENTS@,$MCA_bml_STATIC_COMPONENTS,;t t
s,@MCA_bml_DSO_COMPONENTS@,$MCA_bml_DSO_COMPONENTS,;t t
s,@MCA_bml_STATIC_LTLIBS@,$MCA_bml_STATIC_LTLIBS,;t t
s,@MCA_bml_ALL_SUBDIRS@,$MCA_bml_ALL_SUBDIRS,;t t
s,@MCA_bml_STATIC_SUBDIRS@,$MCA_bml_STATIC_SUBDIRS,;t t
s,@MCA_bml_DSO_SUBDIRS@,$MCA_bml_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_btl_self_DSO_TRUE@,$OMPI_BUILD_btl_self_DSO_TRUE,;t t
s,@OMPI_BUILD_btl_self_DSO_FALSE@,$OMPI_BUILD_btl_self_DSO_FALSE,;t t
s,@OMPI_BUILD_btl_sm_DSO_TRUE@,$OMPI_BUILD_btl_sm_DSO_TRUE,;t t
s,@OMPI_BUILD_btl_sm_DSO_FALSE@,$OMPI_BUILD_btl_sm_DSO_FALSE,;t t
s,@btl_gm_CFLAGS@,$btl_gm_CFLAGS,;t t
s,@btl_gm_CPPFLAGS@,$btl_gm_CPPFLAGS,;t t
s,@btl_gm_LDFLAGS@,$btl_gm_LDFLAGS,;t t
s,@btl_gm_LIBS@,$btl_gm_LIBS,;t t
s,@OMPI_BUILD_btl_gm_DSO_TRUE@,$OMPI_BUILD_btl_gm_DSO_TRUE,;t t
s,@OMPI_BUILD_btl_gm_DSO_FALSE@,$OMPI_BUILD_btl_gm_DSO_FALSE,;t t
s,@btl_mvapi_CFLAGS@,$btl_mvapi_CFLAGS,;t t
s,@btl_mvapi_CPPFLAGS@,$btl_mvapi_CPPFLAGS,;t t
s,@btl_mvapi_LDFLAGS@,$btl_mvapi_LDFLAGS,;t t
s,@btl_mvapi_LIBS@,$btl_mvapi_LIBS,;t t
s,@OMPI_BUILD_btl_mvapi_DSO_TRUE@,$OMPI_BUILD_btl_mvapi_DSO_TRUE,;t t
s,@OMPI_BUILD_btl_mvapi_DSO_FALSE@,$OMPI_BUILD_btl_mvapi_DSO_FALSE,;t t
s,@btl_mx_CFLAGS@,$btl_mx_CFLAGS,;t t
s,@btl_mx_CPPFLAGS@,$btl_mx_CPPFLAGS,;t t
s,@btl_mx_LDFLAGS@,$btl_mx_LDFLAGS,;t t
s,@btl_mx_LIBS@,$btl_mx_LIBS,;t t
s,@OMPI_BUILD_btl_mx_DSO_TRUE@,$OMPI_BUILD_btl_mx_DSO_TRUE,;t t
s,@OMPI_BUILD_btl_mx_DSO_FALSE@,$OMPI_BUILD_btl_mx_DSO_FALSE,;t t
s,@btl_openib_CFLAGS@,$btl_openib_CFLAGS,;t t
s,@btl_openib_CPPFLAGS@,$btl_openib_CPPFLAGS,;t t
s,@btl_openib_LDFLAGS@,$btl_openib_LDFLAGS,;t t
s,@btl_openib_LIBS@,$btl_openib_LIBS,;t t
s,@OMPI_BUILD_btl_openib_DSO_TRUE@,$OMPI_BUILD_btl_openib_DSO_TRUE,;t t
s,@OMPI_BUILD_btl_openib_DSO_FALSE@,$OMPI_BUILD_btl_openib_DSO_FALSE,;t t
s,@btl_portals_CPPFLAGS@,$btl_portals_CPPFLAGS,;t t
s,@btl_portals_LDFLAGS@,$btl_portals_LDFLAGS,;t t
s,@btl_portals_LIBS@,$btl_portals_LIBS,;t t
s,@OMPI_BUILD_btl_portals_DSO_TRUE@,$OMPI_BUILD_btl_portals_DSO_TRUE,;t t
s,@OMPI_BUILD_btl_portals_DSO_FALSE@,$OMPI_BUILD_btl_portals_DSO_FALSE,;t t
s,@OMPI_BUILD_btl_tcp_DSO_TRUE@,$OMPI_BUILD_btl_tcp_DSO_TRUE,;t t
s,@OMPI_BUILD_btl_tcp_DSO_FALSE@,$OMPI_BUILD_btl_tcp_DSO_FALSE,;t t
s,@MCA_btl_ALL_COMPONENTS@,$MCA_btl_ALL_COMPONENTS,;t t
s,@MCA_btl_STATIC_COMPONENTS@,$MCA_btl_STATIC_COMPONENTS,;t t
s,@MCA_btl_DSO_COMPONENTS@,$MCA_btl_DSO_COMPONENTS,;t t
s,@MCA_btl_STATIC_LTLIBS@,$MCA_btl_STATIC_LTLIBS,;t t
s,@MCA_btl_ALL_SUBDIRS@,$MCA_btl_ALL_SUBDIRS,;t t
s,@MCA_btl_STATIC_SUBDIRS@,$MCA_btl_STATIC_SUBDIRS,;t t
s,@MCA_btl_DSO_SUBDIRS@,$MCA_btl_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_coll_basic_DSO_TRUE@,$OMPI_BUILD_coll_basic_DSO_TRUE,;t t
s,@OMPI_BUILD_coll_basic_DSO_FALSE@,$OMPI_BUILD_coll_basic_DSO_FALSE,;t t
s,@OMPI_BUILD_coll_hierarch_DSO_TRUE@,$OMPI_BUILD_coll_hierarch_DSO_TRUE,;t t
s,@OMPI_BUILD_coll_hierarch_DSO_FALSE@,$OMPI_BUILD_coll_hierarch_DSO_FALSE,;t t
s,@OMPI_BUILD_coll_self_DSO_TRUE@,$OMPI_BUILD_coll_self_DSO_TRUE,;t t
s,@OMPI_BUILD_coll_self_DSO_FALSE@,$OMPI_BUILD_coll_self_DSO_FALSE,;t t
s,@OMPI_BUILD_coll_sm_DSO_TRUE@,$OMPI_BUILD_coll_sm_DSO_TRUE,;t t
s,@OMPI_BUILD_coll_sm_DSO_FALSE@,$OMPI_BUILD_coll_sm_DSO_FALSE,;t t
s,@OMPI_BUILD_coll_tuned_DSO_TRUE@,$OMPI_BUILD_coll_tuned_DSO_TRUE,;t t
s,@OMPI_BUILD_coll_tuned_DSO_FALSE@,$OMPI_BUILD_coll_tuned_DSO_FALSE,;t t
s,@MCA_coll_ALL_COMPONENTS@,$MCA_coll_ALL_COMPONENTS,;t t
s,@MCA_coll_STATIC_COMPONENTS@,$MCA_coll_STATIC_COMPONENTS,;t t
s,@MCA_coll_DSO_COMPONENTS@,$MCA_coll_DSO_COMPONENTS,;t t
s,@MCA_coll_STATIC_LTLIBS@,$MCA_coll_STATIC_LTLIBS,;t t
s,@MCA_coll_ALL_SUBDIRS@,$MCA_coll_ALL_SUBDIRS,;t t
s,@MCA_coll_STATIC_SUBDIRS@,$MCA_coll_STATIC_SUBDIRS,;t t
s,@MCA_coll_DSO_SUBDIRS@,$MCA_coll_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_common_sm_DSO_TRUE@,$OMPI_BUILD_common_sm_DSO_TRUE,;t t
s,@OMPI_BUILD_common_sm_DSO_FALSE@,$OMPI_BUILD_common_sm_DSO_FALSE,;t t
s,@MCA_common_ALL_COMPONENTS@,$MCA_common_ALL_COMPONENTS,;t t
s,@MCA_common_STATIC_COMPONENTS@,$MCA_common_STATIC_COMPONENTS,;t t
s,@MCA_common_DSO_COMPONENTS@,$MCA_common_DSO_COMPONENTS,;t t
s,@MCA_common_STATIC_LTLIBS@,$MCA_common_STATIC_LTLIBS,;t t
s,@MCA_common_ALL_SUBDIRS@,$MCA_common_ALL_SUBDIRS,;t t
s,@MCA_common_STATIC_SUBDIRS@,$MCA_common_STATIC_SUBDIRS,;t t
s,@MCA_common_DSO_SUBDIRS@,$MCA_common_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_io_romio_DSO_TRUE@,$OMPI_BUILD_io_romio_DSO_TRUE,;t t
s,@OMPI_BUILD_io_romio_DSO_FALSE@,$OMPI_BUILD_io_romio_DSO_FALSE,;t t
s,@MCA_io_ALL_COMPONENTS@,$MCA_io_ALL_COMPONENTS,;t t
s,@MCA_io_STATIC_COMPONENTS@,$MCA_io_STATIC_COMPONENTS,;t t
s,@MCA_io_DSO_COMPONENTS@,$MCA_io_DSO_COMPONENTS,;t t
s,@MCA_io_STATIC_LTLIBS@,$MCA_io_STATIC_LTLIBS,;t t
s,@MCA_io_ALL_SUBDIRS@,$MCA_io_ALL_SUBDIRS,;t t
s,@MCA_io_STATIC_SUBDIRS@,$MCA_io_STATIC_SUBDIRS,;t t
s,@MCA_io_DSO_SUBDIRS@,$MCA_io_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_mpool_sm_DSO_TRUE@,$OMPI_BUILD_mpool_sm_DSO_TRUE,;t t
s,@OMPI_BUILD_mpool_sm_DSO_FALSE@,$OMPI_BUILD_mpool_sm_DSO_FALSE,;t t
s,@mpool_gm_CFLAGS@,$mpool_gm_CFLAGS,;t t
s,@mpool_gm_CPPFLAGS@,$mpool_gm_CPPFLAGS,;t t
s,@mpool_gm_LDFLAGS@,$mpool_gm_LDFLAGS,;t t
s,@mpool_gm_LIBS@,$mpool_gm_LIBS,;t t
s,@OMPI_BUILD_mpool_gm_DSO_TRUE@,$OMPI_BUILD_mpool_gm_DSO_TRUE,;t t
s,@OMPI_BUILD_mpool_gm_DSO_FALSE@,$OMPI_BUILD_mpool_gm_DSO_FALSE,;t t
s,@mpool_mvapi_CFLAGS@,$mpool_mvapi_CFLAGS,;t t
s,@mpool_mvapi_CPPFLAGS@,$mpool_mvapi_CPPFLAGS,;t t
s,@mpool_mvapi_LDFLAGS@,$mpool_mvapi_LDFLAGS,;t t
s,@mpool_mvapi_LIBS@,$mpool_mvapi_LIBS,;t t
s,@OMPI_BUILD_mpool_mvapi_DSO_TRUE@,$OMPI_BUILD_mpool_mvapi_DSO_TRUE,;t t
s,@OMPI_BUILD_mpool_mvapi_DSO_FALSE@,$OMPI_BUILD_mpool_mvapi_DSO_FALSE,;t t
s,@mpool_openib_CFLAGS@,$mpool_openib_CFLAGS,;t t
s,@mpool_openib_CPPFLAGS@,$mpool_openib_CPPFLAGS,;t t
s,@mpool_openib_LDFLAGS@,$mpool_openib_LDFLAGS,;t t
s,@mpool_openib_LIBS@,$mpool_openib_LIBS,;t t
s,@OMPI_BUILD_mpool_openib_DSO_TRUE@,$OMPI_BUILD_mpool_openib_DSO_TRUE,;t t
s,@OMPI_BUILD_mpool_openib_DSO_FALSE@,$OMPI_BUILD_mpool_openib_DSO_FALSE,;t t
s,@MCA_mpool_ALL_COMPONENTS@,$MCA_mpool_ALL_COMPONENTS,;t t
s,@MCA_mpool_STATIC_COMPONENTS@,$MCA_mpool_STATIC_COMPONENTS,;t t
s,@MCA_mpool_DSO_COMPONENTS@,$MCA_mpool_DSO_COMPONENTS,;t t
s,@MCA_mpool_STATIC_LTLIBS@,$MCA_mpool_STATIC_LTLIBS,;t t
s,@MCA_mpool_ALL_SUBDIRS@,$MCA_mpool_ALL_SUBDIRS,;t t
s,@MCA_mpool_STATIC_SUBDIRS@,$MCA_mpool_STATIC_SUBDIRS,;t t
s,@MCA_mpool_DSO_SUBDIRS@,$MCA_mpool_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_osc_pt2pt_DSO_TRUE@,$OMPI_BUILD_osc_pt2pt_DSO_TRUE,;t t
s,@OMPI_BUILD_osc_pt2pt_DSO_FALSE@,$OMPI_BUILD_osc_pt2pt_DSO_FALSE,;t t
s,@MCA_osc_ALL_COMPONENTS@,$MCA_osc_ALL_COMPONENTS,;t t
s,@MCA_osc_STATIC_COMPONENTS@,$MCA_osc_STATIC_COMPONENTS,;t t
s,@MCA_osc_DSO_COMPONENTS@,$MCA_osc_DSO_COMPONENTS,;t t
s,@MCA_osc_STATIC_LTLIBS@,$MCA_osc_STATIC_LTLIBS,;t t
s,@MCA_osc_ALL_SUBDIRS@,$MCA_osc_ALL_SUBDIRS,;t t
s,@MCA_osc_STATIC_SUBDIRS@,$MCA_osc_STATIC_SUBDIRS,;t t
s,@MCA_osc_DSO_SUBDIRS@,$MCA_osc_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_pml_ob1_DSO_TRUE@,$OMPI_BUILD_pml_ob1_DSO_TRUE,;t t
s,@OMPI_BUILD_pml_ob1_DSO_FALSE@,$OMPI_BUILD_pml_ob1_DSO_FALSE,;t t
s,@MCA_pml_ALL_COMPONENTS@,$MCA_pml_ALL_COMPONENTS,;t t
s,@MCA_pml_STATIC_COMPONENTS@,$MCA_pml_STATIC_COMPONENTS,;t t
s,@MCA_pml_DSO_COMPONENTS@,$MCA_pml_DSO_COMPONENTS,;t t
s,@MCA_pml_STATIC_LTLIBS@,$MCA_pml_STATIC_LTLIBS,;t t
s,@MCA_pml_ALL_SUBDIRS@,$MCA_pml_ALL_SUBDIRS,;t t
s,@MCA_pml_STATIC_SUBDIRS@,$MCA_pml_STATIC_SUBDIRS,;t t
s,@MCA_pml_DSO_SUBDIRS@,$MCA_pml_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_rcache_rb_DSO_TRUE@,$OMPI_BUILD_rcache_rb_DSO_TRUE,;t t
s,@OMPI_BUILD_rcache_rb_DSO_FALSE@,$OMPI_BUILD_rcache_rb_DSO_FALSE,;t t
s,@MCA_rcache_ALL_COMPONENTS@,$MCA_rcache_ALL_COMPONENTS,;t t
s,@MCA_rcache_STATIC_COMPONENTS@,$MCA_rcache_STATIC_COMPONENTS,;t t
s,@MCA_rcache_DSO_COMPONENTS@,$MCA_rcache_DSO_COMPONENTS,;t t
s,@MCA_rcache_STATIC_LTLIBS@,$MCA_rcache_STATIC_LTLIBS,;t t
s,@MCA_rcache_ALL_SUBDIRS@,$MCA_rcache_ALL_SUBDIRS,;t t
s,@MCA_rcache_STATIC_SUBDIRS@,$MCA_rcache_STATIC_SUBDIRS,;t t
s,@MCA_rcache_DSO_SUBDIRS@,$MCA_rcache_DSO_SUBDIRS,;t t
s,@OMPI_BUILD_topo_unity_DSO_TRUE@,$OMPI_BUILD_topo_unity_DSO_TRUE,;t t
s,@OMPI_BUILD_topo_unity_DSO_FALSE@,$OMPI_BUILD_topo_unity_DSO_FALSE,;t t
s,@MCA_topo_ALL_COMPONENTS@,$MCA_topo_ALL_COMPONENTS,;t t
s,@MCA_topo_STATIC_COMPONENTS@,$MCA_topo_STATIC_COMPONENTS,;t t
s,@MCA_topo_DSO_COMPONENTS@,$MCA_topo_DSO_COMPONENTS,;t t
s,@MCA_topo_STATIC_LTLIBS@,$MCA_topo_STATIC_LTLIBS,;t t
s,@MCA_topo_ALL_SUBDIRS@,$MCA_topo_ALL_SUBDIRS,;t t
s,@MCA_topo_STATIC_SUBDIRS@,$MCA_topo_STATIC_SUBDIRS,;t t
s,@MCA_topo_DSO_SUBDIRS@,$MCA_topo_DSO_SUBDIRS,;t t
s,@MCA_ompi_FRAMEWORKS@,$MCA_ompi_FRAMEWORKS,;t t
s,@MCA_ompi_FRAMEWORKS_SUBDIRS@,$MCA_ompi_FRAMEWORKS_SUBDIRS,;t t
s,@MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS@,$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS,;t t
s,@MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS@,$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS,;t t
s,@MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS@,$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS,;t t
s,@MCA_ompi_FRAMEWORK_LIBS@,$MCA_ompi_FRAMEWORK_LIBS,;t t
s,@MCA_pml_DIRECT_CALL_HEADER@,$MCA_pml_DIRECT_CALL_HEADER,;t t
s,@MCA_PROJECT_SUBDIRS@,$MCA_PROJECT_SUBDIRS,;t t
s,@OMPI_LIBEVENT_SOURCES@,$OMPI_LIBEVENT_SOURCES,;t t
s,@LTDLINCL@,$LTDLINCL,;t t
s,@LIBLTDL@,$LIBLTDL,;t t
s,@ECHO@,$ECHO,;t t
s,@AR@,$AR,;t t
s,@ac_ct_AR@,$ac_ct_AR,;t t
s,@RANLIB@,$RANLIB,;t t
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
s,@LIBTOOL@,$LIBTOOL,;t t
s,@LIBLTDL_SUBDIR@,$LIBLTDL_SUBDIR,;t t
s,@LIBLTDL_LTLIB@,$LIBLTDL_LTLIB,;t t
s,@OPAL_LTDL_CPPFLAGS@,$OPAL_LTDL_CPPFLAGS,;t t
s,@WANT_LIBLTDL_TRUE@,$WANT_LIBLTDL_TRUE,;t t
s,@WANT_LIBLTDL_FALSE@,$WANT_LIBLTDL_FALSE,;t t
s,@CFLAGS_WITHOUT_OPTFLAGS@,$CFLAGS_WITHOUT_OPTFLAGS,;t t
s,@TOTALVIEW_DEBUG_FLAGS@,$TOTALVIEW_DEBUG_FLAGS,;t t
s,@CXXCPPFLAGS@,$CXXCPPFLAGS,;t t
s,@OPAL_WRAPPER_EXTRA_CPPFLAGS@,$OPAL_WRAPPER_EXTRA_CPPFLAGS,;t t
s,@OPAL_WRAPPER_EXTRA_CFLAGS@,$OPAL_WRAPPER_EXTRA_CFLAGS,;t t
s,@OPAL_WRAPPER_EXTRA_CXXFLAGS@,$OPAL_WRAPPER_EXTRA_CXXFLAGS,;t t
s,@OPAL_WRAPPER_EXTRA_LDFLAGS@,$OPAL_WRAPPER_EXTRA_LDFLAGS,;t t
s,@OPAL_WRAPPER_EXTRA_LIBS@,$OPAL_WRAPPER_EXTRA_LIBS,;t t
s,@OPAL_WRAPPER_EXTRA_INCLUDES@,$OPAL_WRAPPER_EXTRA_INCLUDES,;t t
s,@ORTE_WRAPPER_EXTRA_CPPFLAGS@,$ORTE_WRAPPER_EXTRA_CPPFLAGS,;t t
s,@ORTE_WRAPPER_EXTRA_CFLAGS@,$ORTE_WRAPPER_EXTRA_CFLAGS,;t t
s,@ORTE_WRAPPER_EXTRA_CXXFLAGS@,$ORTE_WRAPPER_EXTRA_CXXFLAGS,;t t
s,@ORTE_WRAPPER_EXTRA_LDFLAGS@,$ORTE_WRAPPER_EXTRA_LDFLAGS,;t t
s,@ORTE_WRAPPER_EXTRA_LIBS@,$ORTE_WRAPPER_EXTRA_LIBS,;t t
s,@ORTE_WRAPPER_EXTRA_INCLUDES@,$ORTE_WRAPPER_EXTRA_INCLUDES,;t t
s,@OMPI_WRAPPER_EXTRA_CPPFLAGS@,$OMPI_WRAPPER_EXTRA_CPPFLAGS,;t t
s,@OMPI_WRAPPER_EXTRA_CFLAGS@,$OMPI_WRAPPER_EXTRA_CFLAGS,;t t
s,@OMPI_WRAPPER_EXTRA_CXXFLAGS@,$OMPI_WRAPPER_EXTRA_CXXFLAGS,;t t
s,@OMPI_WRAPPER_EXTRA_FFLAGS@,$OMPI_WRAPPER_EXTRA_FFLAGS,;t t
s,@OMPI_WRAPPER_EXTRA_FCFLAGS@,$OMPI_WRAPPER_EXTRA_FCFLAGS,;t t
s,@OMPI_WRAPPER_EXTRA_LDFLAGS@,$OMPI_WRAPPER_EXTRA_LDFLAGS,;t t
s,@OMPI_WRAPPER_EXTRA_LIBS@,$OMPI_WRAPPER_EXTRA_LIBS,;t t
s,@OMPI_WRAPPER_EXTRA_INCLUDES@,$OMPI_WRAPPER_EXTRA_INCLUDES,;t t
s,@OMPI_WRAPPER_CXX_LIB@,$OMPI_WRAPPER_CXX_LIB,;t t
s,@OMPI_WRAPPER_CXX_REQUIRED_FILE@,$OMPI_WRAPPER_CXX_REQUIRED_FILE,;t t
s,@OMPI_WRAPPER_F77_REQUIRED_FILE@,$OMPI_WRAPPER_F77_REQUIRED_FILE,;t t
s,@OMPI_WRAPPER_F90_REQUIRED_FILE@,$OMPI_WRAPPER_F90_REQUIRED_FILE,;t t
s,@WRAPPER_EXTRA_CFLAGS@,$WRAPPER_EXTRA_CFLAGS,;t t
s,@WRAPPER_EXTRA_CXXFLAGS@,$WRAPPER_EXTRA_CXXFLAGS,;t t
s,@WRAPPER_EXTRA_FFLAGS@,$WRAPPER_EXTRA_FFLAGS,;t t
s,@WRAPPER_EXTRA_FCFLAGS@,$WRAPPER_EXTRA_FCFLAGS,;t t
s,@WRAPPER_EXTRA_LDFLAGS@,$WRAPPER_EXTRA_LDFLAGS,;t t
s,@WRAPPER_EXTRA_LIBS@,$WRAPPER_EXTRA_LIBS,;t t
s,@OPAL_PREFIX@,$OPAL_PREFIX,;t t
s,@OPAL_EXEC_PREFIX@,$OPAL_EXEC_PREFIX,;t t
s,@OPAL_BINDIR@,$OPAL_BINDIR,;t t
s,@OPAL_SBINDIR@,$OPAL_SBINDIR,;t t
s,@OPAL_LIBEXECDIR@,$OPAL_LIBEXECDIR,;t t
s,@OPAL_DATADIR@,$OPAL_DATADIR,;t t
s,@OPAL_SYSCONFDIR@,$OPAL_SYSCONFDIR,;t t
s,@OPAL_SHAREDSTATEDIR@,$OPAL_SHAREDSTATEDIR,;t t
s,@OPAL_LOCALSTATEDIR@,$OPAL_LOCALSTATEDIR,;t t
s,@OPAL_LIBDIR@,$OPAL_LIBDIR,;t t
s,@OPAL_INCLUDEDIR@,$OPAL_INCLUDEDIR,;t t
s,@OPAL_INFODIR@,$OPAL_INFODIR,;t t
s,@OPAL_MANDIR@,$OPAL_MANDIR,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF

_ACEOF

  cat >>$CONFIG_STATUS <<\_ACEOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
	cat >$tmp/stdin
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }

  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


  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  esac

  if test x"$ac_file" != x-; then
    { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    configure_input=
  else
    configure_input="$ac_file.  "
  fi
  configure_input=$configure_input"Generated from `echo $ac_file_in |
				     sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
	 # Absolute (can't be DOS-style, as IFS=:)
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
	 echo "$f";;
      *) # Relative
	 if test -f "$f"; then
	   # Build tree
	   echo "$f"
	 elif test -f "$srcdir/$f"; then
	   # Source tree
	   echo "$srcdir/$f"
	 else
	   # /dev/null tree
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
	 fi;;
      esac
    done` || { (exit 1); exit 1; }
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
  sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$ac_srcdir,;t t
s,@abs_srcdir@,$ac_abs_srcdir,;t t
s,@top_srcdir@,$ac_top_srcdir,;t t
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
s,@builddir@,$ac_builddir,;t t
s,@abs_builddir@,$ac_abs_builddir,;t t
s,@top_builddir@,$ac_top_builddir,;t t
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
s,@INSTALL@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF

#
# CONFIG_HEADER section.
#

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
ac_dB='[	 ].*$,\1#\2'
ac_dC=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
ac_uB='$,\1#\2define\3'
ac_uC=' '
ac_uD=',;t'

for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
	cat >$tmp/stdin
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
	 # Absolute (can't be DOS-style, as IFS=:)
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
	 # Do quote $f, to prevent DOS paths from being IFS'd.
	 echo "$f";;
      *) # Relative
	 if test -f "$f"; then
	   # Build tree
	   echo "$f"
	 elif test -f "$srcdir/$f"; then
	   # Source tree
	   echo "$srcdir/$f"
	 else
	   # /dev/null tree
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
	 fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in

_ACEOF

# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h.  The first handles `#define'
# templates, and the second `#undef' templates.
# And first: Protect against being on the right side of a sed subst in
# config.status.  Protect against being in an unquoted here document
# in config.status.
rm -f conftest.defines conftest.undefs
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\_ACEOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
t end
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
_ACEOF
# If some macros were called several times there might be several times
# the same #defines, which is useless.  Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed

# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >>conftest.undefs <<\_ACEOF
s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
_ACEOF

# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo '  :' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
  # Write a limited-size here document to $tmp/defines.sed.
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#define' lines.
  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  rm -f conftest.defines
  mv conftest.tail conftest.defines
done
rm -f conftest.defines
echo '  fi # grep' >>$CONFIG_STATUS
echo >>$CONFIG_STATUS

# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.undefs >/dev/null
do
  # Write a limited-size here document to $tmp/undefs.sed.
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#undef'
  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  rm -f conftest.undefs
  mv conftest.tail conftest.undefs
done
rm -f conftest.undefs

cat >>$CONFIG_STATUS <<\_ACEOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated by configure.  */" >$tmp/config.h
  else
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
      { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }

      rm -f $ac_file
      mv $tmp/config.h $ac_file
    fi
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
  fi
# Compute $ac_file's index in $config_headers.
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $ac_file | $ac_file:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X$ac_file : 'X\(//\)[^/]' \| \
	 X$ac_file : 'X\(//\)$' \| \
	 X$ac_file : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X$ac_file |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`/stamp-h$_am_stamp_count
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF

#
# CONFIG_LINKS section.
#

for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`

  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}

  if test ! -r $srcdir/$ac_source; then
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
   { (exit 1); exit 1; }; }
  fi
  rm -f $ac_dest

  # Make relative symlinks.
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_dest" : 'X\(//\)[^/]' \| \
	 X"$ac_dest" : 'X\(//\)$' \| \
	 X"$ac_dest" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$ac_dest" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  { if $as_mkdir_p; then
    mkdir -p "$ac_dest_dir"
  else
    as_dir="$ac_dest_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }

  ac_builddir=.

if test "$ac_dest_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dest_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_dest_dir";;
*)
  case "$ac_dest_dir" in
  .) ac_abs_builddir=`pwd`;;
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
  *) ac_abs_builddir=`pwd`/"$ac_dest_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


  case $srcdir in
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
  esac

  # Try a symlink, then a hard link, then a copy.
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
    cp -p $srcdir/$ac_source $ac_dest ||
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
   { (exit 1); exit 1; }; }
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF

#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_dest" : 'X\(//\)[^/]' \| \
	 X"$ac_dest" : 'X\(//\)$' \| \
	 X"$ac_dest" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$ac_dest" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }

  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


  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
echo "$as_me: executing $ac_dest commands" >&6;}
  case $ac_dest in
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  # Strip MF so we end up with the name of the file.
  mf=`echo "$mf" | sed -e 's/:.*$//'`
  # Check whether this is an Automake generated Makefile or not.
  # We used to match only the files named `Makefile.in', but
  # some people rename them; so instead we look at the file content.
  # Grep'ing the first line is not enough: some people post-process
  # each Makefile.in and add a new line on top of each file to say so.
  # So let's grep whole file.
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
    dirpart=`(dirname "$mf") 2>/dev/null ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  else
    continue
  fi
  # Extract the definition of DEPDIR, am__include, and am__quote
  # from the Makefile without running `make'.
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  test -z "$DEPDIR" && continue
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
  test -z "am__include" && continue
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  # When using ansi2knr, U may be empty or an underscore; expand it
  U=`sed -n 's/^U = //p' < "$mf"`
  # Find all dependency output files, they are included files with
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
  # simplest approach to changing $(DEPDIR) to its actual value in the
  # expansion.
  for file in `sed -n "
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    # Make sure the directory exists.
    test -f "$dirpart/$file" && continue
    fdir=`(dirname "$file") 2>/dev/null ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    { if $as_mkdir_p; then
    mkdir -p $dirpart/$fdir
  else
    as_dir=$dirpart/$fdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
   { (exit 1); exit 1; }; }; }

    # echo "creating $dirpart/$file"
    echo '# dummy' > "$dirpart/$file"
  done
done
 ;;
    pml-direct ) if test -f "ompi/mca/pml/pml_direct_call"; then
  diff "ompi/mca/pml/pml_direct_call.h" "ompi/mca/pml/pml_direct_call.h.tmp" > /dev/null 2>&1
  if test "$?" != "0"; then
    cp "ompi/mca/pml/pml_direct_call.h.tmp" "ompi/mca/pml/pml_direct_call.h"
    echo "config.status: regenerating ompi/mca/pml/pml_direct_call.h"
  else
    echo "config.status: ompi/mca/pml/pml_direct_call.h unchanged"
  fi
else
  cp "ompi/mca/pml/pml_direct_call.h.tmp" "ompi/mca/pml/pml_direct_call.h"
  echo "config.status: creating ompi/mca/pml/pml_direct_call.h"
fi
rm ompi/mca/pml/pml_direct_call.h.tmp ;;
  esac
done
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF

{ (exit 0); exit 0; }
_ACEOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi

