#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for Open MPI 1.2.5.
#
# Report bugs to <http://www.open-mpi.org/community/help/>.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
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+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# 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

# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
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
IFS=$as_save_IFS

     ;;
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_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
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) >/dev/null 2>&1 && $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; 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'`

# CDPATH.
$as_unset CDPATH


if test "x$CONFIG_SHELL" = x; then
  if (eval ":") 2>/dev/null; then
  as_have_required=yes
else
  as_have_required=no
fi

  if test $as_have_required = yes && 	 (eval ":
(as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0) || { (exit 1); exit 1; }

(
  as_lineno_1=\$LINENO
  as_lineno_2=\$LINENO
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
") 2> /dev/null; then
  :
else
  as_candidate_shells=
    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=.
  case $as_dir in
	 /*)
	   for as_base in sh bash ksh sh5; do
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
	   done;;
       esac
done
IFS=$as_save_IFS


      for as_shell in $as_candidate_shells $SHELL; do
	 # Try only shells that exist, to save several forks.
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
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+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi


:
_ASEOF
}; then
  CONFIG_SHELL=$as_shell
	       as_have_required=yes
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
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+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi


:
(as_func_return () {
  (exit $1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = "$1" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test $exitcode = 0) || { (exit 1); exit 1; }

(
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }

_ASEOF
}; then
  break
fi

fi

      done

      if test "x$CONFIG_SHELL" != x; then
  for as_var in BASH_ENV ENV
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
        done
        export CONFIG_SHELL
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
fi


    if test $as_have_required = no; then
  echo This script requires a shell more modern than all the
      echo shells that I found on your system.  Please install a
      echo modern shell, or manually run the script under such a
      echo shell if you do have one.
      { (exit 1); exit 1; }
fi


fi

fi



(eval "as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0") || {
  echo No shell found that supports shell functions.
  echo Please tell autoconf@gnu.org about your system,
  echo including any error possibly output before this
  echo message
}



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {

  # 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 after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, 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
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\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 sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    as_ln_s='cp -p'
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$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
        test -d "$1/.";
      else
	case $1 in
        -*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

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



lt_ltdl_dir='opal/libltdl'


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

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

ECHO=${lt_ECHO-echo}
if test "X$1" = X--no-reexec; then
  # Discard the --no-reexec flag, and continue.
  shift
elif test "X$1" = X--fallback-echo; then
  # Avoid inline document here, it may be left over
  :
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  # Yippee, $ECHO works!
  :
else
  # Restart under the correct shell.
  exec $SHELL "$0" --no-reexec ${1+"$@"}
fi

if test "X$1" = X--fallback-echo; then
  # used as fallback echo
  shift
  cat <<_LT_EOF
$*
_LT_EOF
  exit 0
fi

# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test -z "$lt_ECHO"; then
  if test "X${echo_test_string+set}" != Xset; then
    # find a string as large as possible, as long as the shell can cope with it
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
      then
        break
      fi
    done
  fi

  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
     test "X$echo_testing_string" = "X$echo_test_string"; then
    :
  else
    # The Solaris, AIX, and Digital Unix default echo programs unquote
    # backslashes.  This makes it impossible to quote backslashes using
    #   echo "$something" | sed 's/\\/\\\\/g'
    #
    # So, first we look for a working echo in the user's PATH.

    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for dir in $PATH /usr/ucb; do
      IFS="$lt_save_ifs"
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
         test "X$echo_testing_string" = "X$echo_test_string"; then
        ECHO="$dir/echo"
        break
      fi
    done
    IFS="$lt_save_ifs"

    if test "X$ECHO" = Xecho; then
      # We didn't find a better echo, so look for alternatives.
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
         test "X$echo_testing_string" = "X$echo_test_string"; then
        # This shell has a builtin print -r that does the trick.
        ECHO='print -r'
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
        # If we have ksh, try running configure again with it.
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
        export ORIGINAL_CONFIG_SHELL
        CONFIG_SHELL=/bin/ksh
        export CONFIG_SHELL
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
      else
        # Try using printf.
        ECHO='printf %s\n'
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
	   test "X$echo_testing_string" = "X$echo_test_string"; then
	  # Cool, printf works
	  :
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	     test "X$echo_testing_string" = 'X\t' &&
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	     test "X$echo_testing_string" = "X$echo_test_string"; then
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
	  export CONFIG_SHELL
	  SHELL="$CONFIG_SHELL"
	  export SHELL
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
	     test "X$echo_testing_string" = 'X\t' &&
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
	     test "X$echo_testing_string" = "X$echo_test_string"; then
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
        else
	  # maybe with a smaller string...
	  prev=:

	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
	    then
	      break
	    fi
	    prev="$cmd"
	  done

	  if test "$prev" != 'sed 50q "$0"'; then
	    echo_test_string=`eval $prev`
	    export echo_test_string
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
	  else
	    # Oops.  We lost completely, so just stick with echo.
	    ECHO=echo
	  fi
        fi
      fi
    fi
  fi
fi

# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
lt_ECHO=$ECHO
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi




exec 7<&0 </dev/null 6>&1

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

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Identity of this package.
PACKAGE_NAME='Open MPI'
PACKAGE_TARNAME='openmpi'
PACKAGE_VERSION='1.2.5'
PACKAGE_STRING='Open MPI 1.2.5'
PACKAGE_BUGREPORT='http://www.open-mpi.org/community/help/'

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef 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
datarootdir
datadir
sysconfdir
sharedstatedir
localstatedir
includedir
oldincludedir
docdir
infodir
htmldir
dvidir
pdfdir
psdir
libdir
localedir
mandir
DEFS
ECHO_C
ECHO_N
ECHO_T
LIBS
build_alias
host_alias
target_alias
INSTALL_PROGRAM
INSTALL_SCRIPT
INSTALL_DATA
am__isrc
CYGPATH_W
PACKAGE
VERSION
ACLOCAL
AUTOCONF
AUTOMAKE
AUTOHEADER
MAKEINFO
install_sh
STRIP
INSTALL_STRIP_PROGRAM
mkdir_p
AWK
SET_MAKE
am__leading_dot
AMTAR
am__tar
am__untar
CONFIGURE_DEPENDENCIES
OMPI_CONFIGURE_USER
OMPI_CONFIGURE_HOST
OMPI_CONFIGURE_DATE
OMPI_MAJOR_VERSION
OMPI_MINOR_VERSION
OMPI_RELEASE_VERSION
OMPI_GREEK_VERSION
OMPI_WANT_SVN
OMPI_SVN_R
OMPI_VERSION
ORTE_MAJOR_VERSION
ORTE_MINOR_VERSION
ORTE_RELEASE_VERSION
ORTE_GREEK_VERSION
ORTE_WANT_SVN
ORTE_SVN_R
ORTE_VERSION
OPAL_MAJOR_VERSION
OPAL_MINOR_VERSION
OPAL_RELEASE_VERSION
OPAL_GREEK_VERSION
OPAL_WANT_SVN
OPAL_SVN_R
OPAL_VERSION
OMPI_TOP_BUILDDIR
OMPI_TOP_SRCDIR
CLEANFILES
build
build_cpu
build_vendor
build_os
host
host_cpu
host_vendor
host_os
ac_prefix_program
top_ompi_srcdir
top_ompi_builddir
OMPI_WANT_BUILD_F90_TRIVIAL_TRUE
OMPI_WANT_BUILD_F90_TRIVIAL_FALSE
OMPI_WANT_BUILD_F90_SMALL_TRUE
OMPI_WANT_BUILD_F90_SMALL_FALSE
OMPI_WANT_BUILD_F90_MEDIUM_TRUE
OMPI_WANT_BUILD_F90_MEDIUM_FALSE
OMPI_WANT_BUILD_F90_LARGE_TRUE
OMPI_WANT_BUILD_F90_LARGE_FALSE
OMPI_F90_BUILD_SIZE
MPIF_H_PMPI_W_FUNCS
WANT_INSTALL_HEADERS_TRUE
WANT_INSTALL_HEADERS_FALSE
WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE
WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE
WANT_PERUSE_TRUE
WANT_PERUSE_FALSE
OMPI_FORTRAN_MAX_ARRAY_RANK
OMPI_INSTALL_BINARIES_TRUE
OMPI_INSTALL_BINARIES_FALSE
CC
CFLAGS
LDFLAGS
CPPFLAGS
ac_ct_CC
EXEEXT
OBJEXT
DEPDIR
am__include
am__quote
AMDEP_TRUE
AMDEP_FALSE
AMDEPBACKSLASH
CCDEPMODE
am__fastdepCC_TRUE
am__fastdepCC_FALSE
OMPI_CC_ABSOLUTE
CPP
GREP
EGREP
OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE
OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE
WANT_MPI_BINDINGS_LAYER_TRUE
WANT_MPI_BINDINGS_LAYER_FALSE
WANT_PMPI_BINDINGS_LAYER_TRUE
WANT_PMPI_BINDINGS_LAYER_FALSE
COMPILE_PROFILING_SEPARATELY_TRUE
COMPILE_PROFILING_SEPARATELY_FALSE
CXX
CXXFLAGS
ac_ct_CXX
CXXDEPMODE
am__fastdepCXX_TRUE
am__fastdepCXX_FALSE
CXXCPP
OMPI_CXX_ABSOLUTE
WANT_MPI_CXX_BINDINGS_TRUE
WANT_MPI_CXX_BINDINGS_FALSE
CCAS
CCASFLAGS
CCASDEPMODE
am__fastdepCCAS_TRUE
am__fastdepCCAS_FALSE
OMPI_ASM_TEXT
OMPI_AS_GLOBAL
OBJDUMP
OMPI_AS_LABEL_SUFFIX
OMPI_ASM_GSYM
DUMPBIN
ac_ct_DUMPBIN
NM
OMPI_ASM_LSYM
OMPI_ASM_TYPE
OMPI_ASM_SUPPORT_64BIT
OMPI_ASSEMBLY_FORMAT
OMPI_ASSEMBLY_ARCH
FGREP
PERL
OMPI_HAVE_ASM_FILE_TRUE
OMPI_HAVE_ASM_FILE_FALSE
OMPI_ASM_FILE
F77
FFLAGS
ac_ct_F77
OMPI_WANT_F77_BINDINGS_TRUE
OMPI_WANT_F77_BINDINGS_FALSE
OMPI_F77_ABSOLUTE
WANT_MPI_F77_BINDINGS_LAYER_TRUE
WANT_MPI_F77_BINDINGS_LAYER_FALSE
WANT_PMPI_F77_BINDINGS_LAYER_TRUE
WANT_PMPI_F77_BINDINGS_LAYER_FALSE
FC
FCFLAGS
ac_ct_FC
OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS
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
LEX_OUTPUT_ROOT
LEXLIB
CASE_SENSITIVE_FS_TRUE
CASE_SENSITIVE_FS_FALSE
backtrace_darwin_CFLAGS
OMPI_BUILD_backtrace_darwin_DSO_TRUE
OMPI_BUILD_backtrace_darwin_DSO_FALSE
OMPI_BUILD_backtrace_execinfo_DSO_TRUE
OMPI_BUILD_backtrace_execinfo_DSO_FALSE
OMPI_BUILD_backtrace_printstack_DSO_TRUE
OMPI_BUILD_backtrace_printstack_DSO_FALSE
OMPI_BUILD_backtrace_none_DSO_TRUE
OMPI_BUILD_backtrace_none_DSO_FALSE
MCA_backtrace_ALL_COMPONENTS
MCA_backtrace_STATIC_COMPONENTS
MCA_backtrace_DSO_COMPONENTS
MCA_backtrace_STATIC_LTLIBS
MCA_backtrace_ALL_SUBDIRS
MCA_backtrace_STATIC_SUBDIRS
MCA_backtrace_DSO_SUBDIRS
OMPI_BUILD_installdirs_env_DSO_TRUE
OMPI_BUILD_installdirs_env_DSO_FALSE
OPAL_PREFIX
OPAL_EXEC_PREFIX
OPAL_BINDIR
OPAL_SBINDIR
OPAL_LIBEXECDIR
OPAL_DATAROOTDIR
OPAL_DATADIR
OPAL_SYSCONFDIR
OPAL_SHAREDSTATEDIR
OPAL_LOCALSTATEDIR
OPAL_LIBDIR
OPAL_INCLUDEDIR
OPAL_INFODIR
OPAL_MANDIR
OMPI_BUILD_installdirs_config_DSO_TRUE
OMPI_BUILD_installdirs_config_DSO_FALSE
MCA_installdirs_ALL_COMPONENTS
MCA_installdirs_STATIC_COMPONENTS
MCA_installdirs_DSO_COMPONENTS
MCA_installdirs_STATIC_LTLIBS
MCA_installdirs_ALL_SUBDIRS
MCA_installdirs_STATIC_SUBDIRS
MCA_installdirs_DSO_SUBDIRS
OMPI_BUILD_maffinity_first_use_DSO_TRUE
OMPI_BUILD_maffinity_first_use_DSO_FALSE
maffinity_libnuma_CPPFLAGS
maffinity_libnuma_LDFLAGS
maffinity_libnuma_LIBS
OMPI_BUILD_maffinity_libnuma_DSO_TRUE
OMPI_BUILD_maffinity_libnuma_DSO_FALSE
MCA_maffinity_ALL_COMPONENTS
MCA_maffinity_STATIC_COMPONENTS
MCA_maffinity_DSO_COMPONENTS
MCA_maffinity_STATIC_LTLIBS
MCA_maffinity_ALL_SUBDIRS
MCA_maffinity_STATIC_SUBDIRS
MCA_maffinity_DSO_SUBDIRS
MCA_memcpy_ALL_COMPONENTS
MCA_memcpy_STATIC_COMPONENTS
MCA_memcpy_DSO_COMPONENTS
MCA_memcpy_STATIC_LTLIBS
MCA_memcpy_ALL_SUBDIRS
MCA_memcpy_STATIC_SUBDIRS
MCA_memcpy_DSO_SUBDIRS
OMPI_BUILD_memory_darwin_DSO_TRUE
OMPI_BUILD_memory_darwin_DSO_FALSE
memory_ptmalloc2_LIBS
OMPI_BUILD_memory_ptmalloc2_DSO_TRUE
OMPI_BUILD_memory_ptmalloc2_DSO_FALSE
memory_malloc_hooks_LIBS
OMPI_BUILD_memory_malloc_hooks_DSO_TRUE
OMPI_BUILD_memory_malloc_hooks_DSO_FALSE
MCA_memory_ALL_COMPONENTS
MCA_memory_STATIC_COMPONENTS
MCA_memory_DSO_COMPONENTS
MCA_memory_STATIC_LTLIBS
MCA_memory_ALL_SUBDIRS
MCA_memory_STATIC_SUBDIRS
MCA_memory_DSO_SUBDIRS
OMPI_BUILD_paffinity_linux_DSO_TRUE
OMPI_BUILD_paffinity_linux_DSO_FALSE
OMPI_BUILD_paffinity_solaris_DSO_TRUE
OMPI_BUILD_paffinity_solaris_DSO_FALSE
OMPI_BUILD_paffinity_windows_DSO_TRUE
OMPI_BUILD_paffinity_windows_DSO_FALSE
MCA_paffinity_ALL_COMPONENTS
MCA_paffinity_STATIC_COMPONENTS
MCA_paffinity_DSO_COMPONENTS
MCA_paffinity_STATIC_LTLIBS
MCA_paffinity_ALL_SUBDIRS
MCA_paffinity_STATIC_SUBDIRS
MCA_paffinity_DSO_SUBDIRS
timer_aix_LIBS
OMPI_BUILD_timer_aix_DSO_TRUE
OMPI_BUILD_timer_aix_DSO_FALSE
OMPI_BUILD_timer_altix_DSO_TRUE
OMPI_BUILD_timer_altix_DSO_FALSE
OMPI_BUILD_timer_darwin_DSO_TRUE
OMPI_BUILD_timer_darwin_DSO_FALSE
OMPI_BUILD_timer_solaris_DSO_TRUE
OMPI_BUILD_timer_solaris_DSO_FALSE
OMPI_BUILD_timer_windows_DSO_TRUE
OMPI_BUILD_timer_windows_DSO_FALSE
OMPI_BUILD_timer_linux_DSO_TRUE
OMPI_BUILD_timer_linux_DSO_FALSE
MCA_timer_ALL_COMPONENTS
MCA_timer_STATIC_COMPONENTS
MCA_timer_DSO_COMPONENTS
MCA_timer_STATIC_LTLIBS
MCA_timer_ALL_SUBDIRS
MCA_timer_STATIC_SUBDIRS
MCA_timer_DSO_SUBDIRS
MCA_opal_FRAMEWORKS
MCA_opal_FRAMEWORKS_SUBDIRS
MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS
MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS
MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
MCA_opal_FRAMEWORK_LIBS
OMPI_BUILD_errmgr_hnp_DSO_TRUE
OMPI_BUILD_errmgr_hnp_DSO_FALSE
OMPI_BUILD_errmgr_orted_DSO_TRUE
OMPI_BUILD_errmgr_orted_DSO_FALSE
OMPI_BUILD_errmgr_proxy_DSO_TRUE
OMPI_BUILD_errmgr_proxy_DSO_FALSE
errmgr_bproc_CPPFLAGS
errmgr_bproc_LDFLAGS
errmgr_bproc_LIBS
OMPI_BUILD_errmgr_bproc_DSO_TRUE
OMPI_BUILD_errmgr_bproc_DSO_FALSE
MCA_errmgr_ALL_COMPONENTS
MCA_errmgr_STATIC_COMPONENTS
MCA_errmgr_DSO_COMPONENTS
MCA_errmgr_STATIC_LTLIBS
MCA_errmgr_ALL_SUBDIRS
MCA_errmgr_STATIC_SUBDIRS
MCA_errmgr_DSO_SUBDIRS
OMPI_BUILD_gpr_null_DSO_TRUE
OMPI_BUILD_gpr_null_DSO_FALSE
OMPI_BUILD_gpr_proxy_DSO_TRUE
OMPI_BUILD_gpr_proxy_DSO_FALSE
OMPI_BUILD_gpr_replica_DSO_TRUE
OMPI_BUILD_gpr_replica_DSO_FALSE
MCA_gpr_ALL_COMPONENTS
MCA_gpr_STATIC_COMPONENTS
MCA_gpr_DSO_COMPONENTS
MCA_gpr_STATIC_LTLIBS
MCA_gpr_ALL_SUBDIRS
MCA_gpr_STATIC_SUBDIRS
MCA_gpr_DSO_SUBDIRS
OMPI_BUILD_iof_proxy_DSO_TRUE
OMPI_BUILD_iof_proxy_DSO_FALSE
OMPI_BUILD_iof_svc_DSO_TRUE
OMPI_BUILD_iof_svc_DSO_FALSE
MCA_iof_ALL_COMPONENTS
MCA_iof_STATIC_COMPONENTS
MCA_iof_DSO_COMPONENTS
MCA_iof_STATIC_LTLIBS
MCA_iof_ALL_SUBDIRS
MCA_iof_STATIC_SUBDIRS
MCA_iof_DSO_SUBDIRS
OMPI_BUILD_ns_proxy_DSO_TRUE
OMPI_BUILD_ns_proxy_DSO_FALSE
OMPI_BUILD_ns_replica_DSO_TRUE
OMPI_BUILD_ns_replica_DSO_FALSE
MCA_ns_ALL_COMPONENTS
MCA_ns_STATIC_COMPONENTS
MCA_ns_DSO_COMPONENTS
MCA_ns_STATIC_LTLIBS
MCA_ns_ALL_SUBDIRS
MCA_ns_STATIC_SUBDIRS
MCA_ns_DSO_SUBDIRS
odls_bproc_CPPFLAGS
odls_bproc_LDFLAGS
odls_bproc_LIBS
OMPI_BUILD_odls_bproc_DSO_TRUE
OMPI_BUILD_odls_bproc_DSO_FALSE
OMPI_BUILD_odls_default_DSO_TRUE
OMPI_BUILD_odls_default_DSO_FALSE
MCA_odls_ALL_COMPONENTS
MCA_odls_STATIC_COMPONENTS
MCA_odls_DSO_COMPONENTS
MCA_odls_STATIC_LTLIBS
MCA_odls_ALL_SUBDIRS
MCA_odls_STATIC_SUBDIRS
MCA_odls_DSO_SUBDIRS
OMPI_BUILD_oob_tcp_DSO_TRUE
OMPI_BUILD_oob_tcp_DSO_FALSE
MCA_oob_ALL_COMPONENTS
MCA_oob_STATIC_COMPONENTS
MCA_oob_DSO_COMPONENTS
MCA_oob_STATIC_LTLIBS
MCA_oob_ALL_SUBDIRS
MCA_oob_STATIC_SUBDIRS
MCA_oob_DSO_SUBDIRS
OMPI_BUILD_pls_proxy_DSO_TRUE
OMPI_BUILD_pls_proxy_DSO_FALSE
pls_bproc_CPPFLAGS
pls_bproc_LDFLAGS
pls_bproc_LIBS
OMPI_BUILD_pls_bproc_DSO_TRUE
OMPI_BUILD_pls_bproc_DSO_FALSE
OMPI_BUILD_pls_cnos_DSO_TRUE
OMPI_BUILD_pls_cnos_DSO_FALSE
OMPI_BUILD_pls_gridengine_DSO_TRUE
OMPI_BUILD_pls_gridengine_DSO_FALSE
OMPI_BUILD_pls_poe_DSO_TRUE
OMPI_BUILD_pls_poe_DSO_FALSE
OMPI_BUILD_pls_rsh_DSO_TRUE
OMPI_BUILD_pls_rsh_DSO_FALSE
pls_slurm_CPPFLAGS
pls_slurm_LDFLAGS
pls_slurm_LIBS
OMPI_BUILD_pls_slurm_DSO_TRUE
OMPI_BUILD_pls_slurm_DSO_FALSE
pls_tm_CPPFLAGS
pls_tm_LDFLAGS
pls_tm_LIBS
OMPI_BUILD_pls_tm_DSO_TRUE
OMPI_BUILD_pls_tm_DSO_FALSE
OBJC
OBJCFLAGS
ac_ct_OBJC
OBJCDEPMODE
am__fastdepOBJC_TRUE
am__fastdepOBJC_FALSE
pls_xgrid_OBJCFLAGS
pls_xgrid_LDFLAGS
OMPI_BUILD_pls_xgrid_DSO_TRUE
OMPI_BUILD_pls_xgrid_DSO_FALSE
MCA_pls_ALL_COMPONENTS
MCA_pls_STATIC_COMPONENTS
MCA_pls_DSO_COMPONENTS
MCA_pls_STATIC_LTLIBS
MCA_pls_ALL_SUBDIRS
MCA_pls_STATIC_SUBDIRS
MCA_pls_DSO_SUBDIRS
OMPI_BUILD_ras_dash_host_DSO_TRUE
OMPI_BUILD_ras_dash_host_DSO_FALSE
OMPI_BUILD_ras_localhost_DSO_TRUE
OMPI_BUILD_ras_localhost_DSO_FALSE
ras_bjs_CPPFLAGS
ras_bjs_LDFLAGS
ras_bjs_LIBS
OMPI_BUILD_ras_bjs_DSO_TRUE
OMPI_BUILD_ras_bjs_DSO_FALSE
OMPI_BUILD_ras_gridengine_DSO_TRUE
OMPI_BUILD_ras_gridengine_DSO_FALSE
ras_loadleveler_CPPFLAGS
ras_loadleveler_LDFLAGS
ras_loadleveler_LIBS
OMPI_BUILD_ras_loadleveler_DSO_TRUE
OMPI_BUILD_ras_loadleveler_DSO_FALSE
ras_lsf_bproc_CPPFLAGS
ras_lsf_bproc_LDFLAGS
ras_lsf_bproc_LIBS
OMPI_BUILD_ras_lsf_bproc_DSO_TRUE
OMPI_BUILD_ras_lsf_bproc_DSO_FALSE
ras_slurm_CPPFLAGS
ras_slurm_LDFLAGS
ras_slurm_LIBS
OMPI_BUILD_ras_slurm_DSO_TRUE
OMPI_BUILD_ras_slurm_DSO_FALSE
ras_tm_CPPFLAGS
ras_tm_LDFLAGS
ras_tm_LIBS
OMPI_BUILD_ras_tm_DSO_TRUE
OMPI_BUILD_ras_tm_DSO_FALSE
OMPI_BUILD_ras_xgrid_DSO_TRUE
OMPI_BUILD_ras_xgrid_DSO_FALSE
MCA_ras_ALL_COMPONENTS
MCA_ras_STATIC_COMPONENTS
MCA_ras_DSO_COMPONENTS
MCA_ras_STATIC_LTLIBS
MCA_ras_ALL_SUBDIRS
MCA_ras_STATIC_SUBDIRS
MCA_ras_DSO_SUBDIRS
OMPI_BUILD_rds_hostfile_DSO_TRUE
OMPI_BUILD_rds_hostfile_DSO_FALSE
OMPI_BUILD_rds_proxy_DSO_TRUE
OMPI_BUILD_rds_proxy_DSO_FALSE
OMPI_BUILD_rds_resfile_DSO_TRUE
OMPI_BUILD_rds_resfile_DSO_FALSE
MCA_rds_ALL_COMPONENTS
MCA_rds_STATIC_COMPONENTS
MCA_rds_DSO_COMPONENTS
MCA_rds_STATIC_LTLIBS
MCA_rds_ALL_SUBDIRS
MCA_rds_STATIC_SUBDIRS
MCA_rds_DSO_SUBDIRS
OMPI_BUILD_rmaps_round_robin_DSO_TRUE
OMPI_BUILD_rmaps_round_robin_DSO_FALSE
MCA_rmaps_ALL_COMPONENTS
MCA_rmaps_STATIC_COMPONENTS
MCA_rmaps_DSO_COMPONENTS
MCA_rmaps_STATIC_LTLIBS
MCA_rmaps_ALL_SUBDIRS
MCA_rmaps_STATIC_SUBDIRS
MCA_rmaps_DSO_SUBDIRS
OMPI_BUILD_rmgr_proxy_DSO_TRUE
OMPI_BUILD_rmgr_proxy_DSO_FALSE
OMPI_BUILD_rmgr_urm_DSO_TRUE
OMPI_BUILD_rmgr_urm_DSO_FALSE
OMPI_BUILD_rmgr_cnos_DSO_TRUE
OMPI_BUILD_rmgr_cnos_DSO_FALSE
MCA_rmgr_ALL_COMPONENTS
MCA_rmgr_STATIC_COMPONENTS
MCA_rmgr_DSO_COMPONENTS
MCA_rmgr_STATIC_LTLIBS
MCA_rmgr_ALL_SUBDIRS
MCA_rmgr_STATIC_SUBDIRS
MCA_rmgr_DSO_SUBDIRS
OMPI_BUILD_rml_oob_DSO_TRUE
OMPI_BUILD_rml_oob_DSO_FALSE
OMPI_BUILD_rml_cnos_DSO_TRUE
OMPI_BUILD_rml_cnos_DSO_FALSE
MCA_rml_ALL_COMPONENTS
MCA_rml_STATIC_COMPONENTS
MCA_rml_DSO_COMPONENTS
MCA_rml_STATIC_LTLIBS
MCA_rml_ALL_SUBDIRS
MCA_rml_STATIC_SUBDIRS
MCA_rml_DSO_SUBDIRS
MCA_schema_ALL_COMPONENTS
MCA_schema_STATIC_COMPONENTS
MCA_schema_DSO_COMPONENTS
MCA_schema_STATIC_LTLIBS
MCA_schema_ALL_SUBDIRS
MCA_schema_STATIC_SUBDIRS
MCA_schema_DSO_SUBDIRS
OMPI_BUILD_sds_env_DSO_TRUE
OMPI_BUILD_sds_env_DSO_FALSE
OMPI_BUILD_sds_seed_DSO_TRUE
OMPI_BUILD_sds_seed_DSO_FALSE
OMPI_BUILD_sds_singleton_DSO_TRUE
OMPI_BUILD_sds_singleton_DSO_FALSE
sds_bproc_CPPFLAGS
sds_bproc_LDFLAGS
sds_bproc_LIBS
OMPI_BUILD_sds_bproc_DSO_TRUE
OMPI_BUILD_sds_bproc_DSO_FALSE
OMPI_BUILD_sds_cnos_DSO_TRUE
OMPI_BUILD_sds_cnos_DSO_FALSE
OMPI_BUILD_sds_pipe_DSO_TRUE
OMPI_BUILD_sds_pipe_DSO_FALSE
sds_portals_utcp_CPPFLAGS
sds_portals_utcp_LDFLAGS
sds_portals_utcp_LIBS
OMPI_BUILD_sds_portals_utcp_DSO_TRUE
OMPI_BUILD_sds_portals_utcp_DSO_FALSE
sds_slurm_CPPFLAGS
sds_slurm_LDFLAGS
sds_slurm_LIBS
OMPI_BUILD_sds_slurm_DSO_TRUE
OMPI_BUILD_sds_slurm_DSO_FALSE
MCA_sds_ALL_COMPONENTS
MCA_sds_STATIC_COMPONENTS
MCA_sds_DSO_COMPONENTS
MCA_sds_STATIC_LTLIBS
MCA_sds_ALL_SUBDIRS
MCA_sds_STATIC_SUBDIRS
MCA_sds_DSO_SUBDIRS
smr_bproc_CPPFLAGS
smr_bproc_LDFLAGS
smr_bproc_LIBS
OMPI_BUILD_smr_bproc_DSO_TRUE
OMPI_BUILD_smr_bproc_DSO_FALSE
MCA_smr_ALL_COMPONENTS
MCA_smr_STATIC_COMPONENTS
MCA_smr_DSO_COMPONENTS
MCA_smr_STATIC_LTLIBS
MCA_smr_ALL_SUBDIRS
MCA_smr_STATIC_SUBDIRS
MCA_smr_DSO_SUBDIRS
MCA_orte_FRAMEWORKS
MCA_orte_FRAMEWORKS_SUBDIRS
MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS
MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS
MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
MCA_orte_FRAMEWORK_LIBS
OMPI_BUILD_allocator_basic_DSO_TRUE
OMPI_BUILD_allocator_basic_DSO_FALSE
OMPI_BUILD_allocator_bucket_DSO_TRUE
OMPI_BUILD_allocator_bucket_DSO_FALSE
MCA_allocator_ALL_COMPONENTS
MCA_allocator_STATIC_COMPONENTS
MCA_allocator_DSO_COMPONENTS
MCA_allocator_STATIC_LTLIBS
MCA_allocator_ALL_SUBDIRS
MCA_allocator_STATIC_SUBDIRS
MCA_allocator_DSO_SUBDIRS
OMPI_BUILD_bml_r2_DSO_TRUE
OMPI_BUILD_bml_r2_DSO_FALSE
MCA_bml_ALL_COMPONENTS
MCA_bml_STATIC_COMPONENTS
MCA_bml_DSO_COMPONENTS
MCA_bml_STATIC_LTLIBS
MCA_bml_ALL_SUBDIRS
MCA_bml_STATIC_SUBDIRS
MCA_bml_DSO_SUBDIRS
OMPI_BUILD_btl_self_DSO_TRUE
OMPI_BUILD_btl_self_DSO_FALSE
OMPI_BUILD_btl_sm_DSO_TRUE
OMPI_BUILD_btl_sm_DSO_FALSE
btl_gm_CFLAGS
btl_gm_CPPFLAGS
btl_gm_LDFLAGS
btl_gm_LIBS
OMPI_BUILD_btl_gm_DSO_TRUE
OMPI_BUILD_btl_gm_DSO_FALSE
btl_mvapi_CFLAGS
btl_mvapi_CPPFLAGS
btl_mvapi_LDFLAGS
btl_mvapi_LIBS
OMPI_BUILD_btl_mvapi_DSO_TRUE
OMPI_BUILD_btl_mvapi_DSO_FALSE
btl_mx_CFLAGS
btl_mx_CPPFLAGS
btl_mx_LDFLAGS
btl_mx_LIBS
OMPI_BUILD_btl_mx_DSO_TRUE
OMPI_BUILD_btl_mx_DSO_FALSE
btl_openib_CFLAGS
btl_openib_CPPFLAGS
btl_openib_LDFLAGS
btl_openib_LIBS
OMPI_BUILD_btl_openib_DSO_TRUE
OMPI_BUILD_btl_openib_DSO_FALSE
btl_portals_CPPFLAGS
btl_portals_LDFLAGS
btl_portals_LIBS
OMPI_BUILD_btl_portals_DSO_TRUE
OMPI_BUILD_btl_portals_DSO_FALSE
OMPI_BUILD_btl_tcp_DSO_TRUE
OMPI_BUILD_btl_tcp_DSO_FALSE
btl_udapl_CFLAGS
btl_udapl_CPPFLAGS
btl_udapl_LDFLAGS
btl_udapl_LIBS
OMPI_BUILD_btl_udapl_DSO_TRUE
OMPI_BUILD_btl_udapl_DSO_FALSE
MCA_btl_ALL_COMPONENTS
MCA_btl_STATIC_COMPONENTS
MCA_btl_DSO_COMPONENTS
MCA_btl_STATIC_LTLIBS
MCA_btl_ALL_SUBDIRS
MCA_btl_STATIC_SUBDIRS
MCA_btl_DSO_SUBDIRS
OMPI_BUILD_coll_basic_DSO_TRUE
OMPI_BUILD_coll_basic_DSO_FALSE
OMPI_BUILD_coll_self_DSO_TRUE
OMPI_BUILD_coll_self_DSO_FALSE
OMPI_BUILD_coll_sm_DSO_TRUE
OMPI_BUILD_coll_sm_DSO_FALSE
OMPI_BUILD_coll_tuned_DSO_TRUE
OMPI_BUILD_coll_tuned_DSO_FALSE
MCA_coll_ALL_COMPONENTS
MCA_coll_STATIC_COMPONENTS
MCA_coll_DSO_COMPONENTS
MCA_coll_STATIC_LTLIBS
MCA_coll_ALL_SUBDIRS
MCA_coll_STATIC_SUBDIRS
MCA_coll_DSO_SUBDIRS
OMPI_BUILD_common_sm_DSO_TRUE
OMPI_BUILD_common_sm_DSO_FALSE
common_mx_CFLAGS
common_mx_CPPFLAGS
common_mx_LDFLAGS
common_mx_LIBS
OMPI_BUILD_common_mx_DSO_TRUE
OMPI_BUILD_common_mx_DSO_FALSE
common_portals_CPPFLAGS
common_portals_LDFLAGS
common_portals_LIBS
OMPI_BUILD_common_portals_DSO_TRUE
OMPI_BUILD_common_portals_DSO_FALSE
MCA_common_ALL_COMPONENTS
MCA_common_STATIC_COMPONENTS
MCA_common_DSO_COMPONENTS
MCA_common_STATIC_LTLIBS
MCA_common_ALL_SUBDIRS
MCA_common_STATIC_SUBDIRS
MCA_common_DSO_SUBDIRS
MCA_io_romio_SHOULD_BUILD_TRUE
MCA_io_romio_SHOULD_BUILD_FALSE
OMPI_BUILD_io_romio_DSO_TRUE
OMPI_BUILD_io_romio_DSO_FALSE
MCA_io_ALL_COMPONENTS
MCA_io_STATIC_COMPONENTS
MCA_io_DSO_COMPONENTS
MCA_io_STATIC_LTLIBS
MCA_io_ALL_SUBDIRS
MCA_io_STATIC_SUBDIRS
MCA_io_DSO_SUBDIRS
OMPI_BUILD_mpool_rdma_DSO_TRUE
OMPI_BUILD_mpool_rdma_DSO_FALSE
OMPI_BUILD_mpool_sm_DSO_TRUE
OMPI_BUILD_mpool_sm_DSO_FALSE
MCA_mpool_ALL_COMPONENTS
MCA_mpool_STATIC_COMPONENTS
MCA_mpool_DSO_COMPONENTS
MCA_mpool_STATIC_LTLIBS
MCA_mpool_ALL_SUBDIRS
MCA_mpool_STATIC_SUBDIRS
MCA_mpool_DSO_SUBDIRS
mtl_mx_CFLAGS
mtl_mx_CPPFLAGS
mtl_mx_LDFLAGS
mtl_mx_LIBS
OMPI_BUILD_mtl_mx_DSO_TRUE
OMPI_BUILD_mtl_mx_DSO_FALSE
mtl_portals_CPPFLAGS
mtl_portals_LDFLAGS
mtl_portals_LIBS
OMPI_BUILD_mtl_portals_DSO_TRUE
OMPI_BUILD_mtl_portals_DSO_FALSE
mtl_psm_CFLAGS
mtl_psm_CPPFLAGS
mtl_psm_LDFLAGS
mtl_psm_LIBS
OMPI_BUILD_mtl_psm_DSO_TRUE
OMPI_BUILD_mtl_psm_DSO_FALSE
MCA_mtl_ALL_COMPONENTS
MCA_mtl_STATIC_COMPONENTS
MCA_mtl_DSO_COMPONENTS
MCA_mtl_STATIC_LTLIBS
MCA_mtl_ALL_SUBDIRS
MCA_mtl_STATIC_SUBDIRS
MCA_mtl_DSO_SUBDIRS
OMPI_BUILD_osc_pt2pt_DSO_TRUE
OMPI_BUILD_osc_pt2pt_DSO_FALSE
MCA_osc_ALL_COMPONENTS
MCA_osc_STATIC_COMPONENTS
MCA_osc_DSO_COMPONENTS
MCA_osc_STATIC_LTLIBS
MCA_osc_ALL_SUBDIRS
MCA_osc_STATIC_SUBDIRS
MCA_osc_DSO_SUBDIRS
OMPI_BUILD_pml_cm_DSO_TRUE
OMPI_BUILD_pml_cm_DSO_FALSE
OMPI_BUILD_pml_ob1_DSO_TRUE
OMPI_BUILD_pml_ob1_DSO_FALSE
MCA_pml_ALL_COMPONENTS
MCA_pml_STATIC_COMPONENTS
MCA_pml_DSO_COMPONENTS
MCA_pml_STATIC_LTLIBS
MCA_pml_ALL_SUBDIRS
MCA_pml_STATIC_SUBDIRS
MCA_pml_DSO_SUBDIRS
OMPI_BUILD_rcache_vma_DSO_TRUE
OMPI_BUILD_rcache_vma_DSO_FALSE
MCA_rcache_ALL_COMPONENTS
MCA_rcache_STATIC_COMPONENTS
MCA_rcache_DSO_COMPONENTS
MCA_rcache_STATIC_LTLIBS
MCA_rcache_ALL_SUBDIRS
MCA_rcache_STATIC_SUBDIRS
MCA_rcache_DSO_SUBDIRS
OMPI_BUILD_topo_unity_DSO_TRUE
OMPI_BUILD_topo_unity_DSO_FALSE
MCA_topo_ALL_COMPONENTS
MCA_topo_STATIC_COMPONENTS
MCA_topo_DSO_COMPONENTS
MCA_topo_STATIC_LTLIBS
MCA_topo_ALL_SUBDIRS
MCA_topo_STATIC_SUBDIRS
MCA_topo_DSO_SUBDIRS
MCA_ompi_FRAMEWORKS
MCA_ompi_FRAMEWORKS_SUBDIRS
MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS
MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS
MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
MCA_ompi_FRAMEWORK_LIBS
MCA_pml_DIRECT_CALL_HEADER
MCA_mtl_DIRECT_CALL_HEADER
MCA_PROJECT_SUBDIRS
OMPI_LIBEVENT_SOURCES
LIBLTDL
LTDLINCL
INCLTDL
LIBTOOL
SED
LD
AR
RANLIB
lt_ECHO
LIBLTDL_SUBDIR
LIBLTDL_LTLIB
OPAL_LTDL_CPPFLAGS
WANT_LIBLTDL_TRUE
WANT_LIBLTDL_FALSE
CFLAGS_WITHOUT_OPTFLAGS
TOTALVIEW_DEBUG_FLAGS
CXXCPPFLAGS
OPAL_WRAPPER_EXTRA_CPPFLAGS
OPAL_WRAPPER_EXTRA_CFLAGS
OPAL_WRAPPER_EXTRA_CXXFLAGS
OPAL_WRAPPER_EXTRA_LDFLAGS
OPAL_WRAPPER_EXTRA_LIBS
OPAL_WRAPPER_EXTRA_INCLUDES
ORTE_WRAPPER_EXTRA_CPPFLAGS
ORTE_WRAPPER_EXTRA_CFLAGS
ORTE_WRAPPER_EXTRA_CXXFLAGS
ORTE_WRAPPER_EXTRA_LDFLAGS
ORTE_WRAPPER_EXTRA_LIBS
ORTE_WRAPPER_EXTRA_INCLUDES
OMPI_WRAPPER_EXTRA_CPPFLAGS
OMPI_WRAPPER_EXTRA_CFLAGS
OMPI_WRAPPER_EXTRA_CXXFLAGS
OMPI_WRAPPER_EXTRA_FFLAGS
OMPI_WRAPPER_EXTRA_FCFLAGS
OMPI_WRAPPER_EXTRA_LDFLAGS
OMPI_WRAPPER_EXTRA_LIBS
OMPI_WRAPPER_EXTRA_INCLUDES
OMPI_WRAPPER_CXX_LIB
OMPI_WRAPPER_CXX_REQUIRED_FILE
OMPI_WRAPPER_F77_REQUIRED_FILE
OMPI_WRAPPER_F90_REQUIRED_FILE
WRAPPER_EXTRA_CFLAGS
WRAPPER_EXTRA_CXXFLAGS
WRAPPER_EXTRA_FFLAGS
WRAPPER_EXTRA_FCFLAGS
WRAPPER_EXTRA_LDFLAGS
WRAPPER_EXTRA_LIBS
LIBOBJS
LTLIBOBJS'
ac_subst_files=''
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
CXX
CXXFLAGS
CCC
CXXCPP
CCAS
CCASFLAGS
F77
FFLAGS
FC
FCFLAGS
OBJC
OBJCFLAGS'


# 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.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
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

  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -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)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$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 ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -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'`
    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 ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$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 ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    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 ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$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'`
    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; }; }
    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 directory names.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; }
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


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  { echo "$as_me: error: Working directory cannot be determined" >&2
   { (exit 1); exit 1; }; }
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  { echo "$as_me: error: pwd does not report name of working directory" >&2
   { (exit 1); exit 1; }; }


# 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 the parent directory.
  ac_confdir=`$as_dirname -- "$0" ||
$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
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   { (exit 1); exit 1; }; }
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures Open MPI 1.2.5 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 \`..']

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]
  --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]
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR          info documentation [DATAROOTDIR/info]
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR           man documentation [DATAROOTDIR/man]
  --docdir=DIR           documentation root [DATAROOTDIR/doc/openmpi]
  --htmldir=DIR          html documentation [DOCDIR]
  --dvidir=DIR           dvi documentation [DOCDIR]
  --pdfdir=DIR           pdf documentation [DOCDIR]
  --psdir=DIR            ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of Open MPI 1.2.5:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-dist           guarantee that that the "dist" make target will be
                          functional, although may not guarantee that any
                          other make target will be functional.
  --enable-coverage       enable code coverage files to be generated
  --enable-mem-debug      enable memory debugging (debugging only) (default:
                          disabled)
  --enable-mem-profile    enable memory profiling (debugging only) (default:
                          disabled)
  --enable-picky          enable developer-level compiler pickyness when
                          building Open MPI (default: disabled)
  --enable-debug          enable developer-level debugging code (not for
                          general MPI users!) (default: disabled)
  --disable-debug-symbols Disable adding compiler flags to enable debugging
                          symbols if --enable-debug is specified. For
                          non-debugging builds, this flag has no effect.
  --enable-mpi-f77        enable f77 MPI bindings (default: enabled)
  --enable-mpi-f90        enable f90 MPI bindings (default: enabled)
  --enable-mpi-profile    enable MPI profiling (default: enabled)
  --enable-mpi-cxx        enable C++ MPI bindings (default: enabled)
  --enable-mpi-cxx-seek   enable support for MPI::SEEK_SET, MPI::SEEK_END, and
                          MPI::SEEK_POS in C++ bindings (default: enabled)
  --enable-weak-symbols   use weak symbols, if available (default: enabled)
  --enable-pretty-print-stacktrace
                          Pretty print stacktrace on process signal
  --enable-deprecated-executable-names
                          make sym links to deprecated OMPI executables (e.g.,
                          hcc, hcp, hf77, wipe) (default: disabled)
  --enable-peruse         Support PERUSE interface (default: disabled)
  --enable-pty-support    Enable/disable PTY support for STDIO forwarding.
                          default: enabled
  --enable-dlopen         Whether build should attempt to use dlopen (or
                          similar) to dynamically load components. Disabling
                          dlopen implies --disable-mca-dso. (default: enabled)
  --enable-heterogeneous  Enable features required for heterogeneous platform
                          support (default: enabled)
  --enable-trace          Enable internal tracing of OMPI/ORTE/OPAL calls --
                          used only for developer debugging, not tracing of
                          MPI applications (default: disabled)
  --enable-binaries       Build and install binaries required for Open MPI,
                          such as the wrapper compilers. Useful for multi-lib
                          installations. (default: enabled)
  --disable-ipv6          Disable IPv6 support (default: enabled, but only if
                          the underlying system supports it)
  --enable-orterun-prefix-by-default
                          Make "orterun ..." behave exactly the same as
                          "orterun --prefix \$prefix" (where \$prefix is the
                          value given to --prefix in configure)
  --enable-mpirun-prefix-by-default
                          Synonym for --enable-orterun-prefix-by-default
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=no]
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-cxx-exceptions enable support for C++ exceptions
  --enable-smp-locks      enable smp locks in atomic ops. Do not disable if
                          code will ever run in SMP or multi-threaded
                          environment. (default: enabled)
  --enable-mpi-threads    Enable threads for MPI applications (default:
                          disabled)
  --enable-progress-threads
                          Enable threads asynchronous communication progress
                          (default: disabled)
  --enable-mca-no-build=LIST
                          Comma-separated list of <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), large
                          (medium + all MPI functions with 2 choice buffers,
                          but only when both buffers are the same type)
  --with-mpi-param-check(=VALUE)
                          behavior of MPI function parameter checking. Valid
                          values are: always, never, runtime. If
                          --with-mpi-param-check is specified with no VALUE
                          argument, it is equivalent to a VALUE of "always";
                          --without-mpi-param-check is equivalent to "never"
                          (default: runtime).
  --with-devel-headers    normal MPI users/applications do not need this
                          (mpi.h and mpif.h are ALWAYS installed). Developer
                          headers are only necessary for MCA module authors
                          (default: disabled).
  --with-f90-max-array-dim=<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-broken-qsort     Build with FreeBSD qsort instead of native qsort
                          (default: no)
  --with-threads          Set thread type (solaris / posix)
  --with-cs-fs            Destination FS is case sensitive (default: set to
                          value of the build FS's case sensitivity)
  --with-libnuma          Directory where the libnuma software is installed
  --with-memory-manager=TYPE
                          Use TYPE for intercepting memory management calls to
                          control memory pinning.
  --with-timer=TYPE       Build high resolution timer component TYPE
  --with-bproc            Directory where the BProc software is installed
  --with-slurm            Build SLURM scheduler component (default: yes)
  --with-tm               Directory where the tm software is installed
  --with-xgrid            Build support for the Apple Xgrid batch system
                          (default: yes)
  --with-loadleveler      Directory where the loadleveler software is
                          installed
  --with-portals=DIR      Specify the installation directory of PORTALS
  --with-portals-libs=LIBS
                          Libraries to link with for portals
  --with-gm(=DIR)         Build GM (Myrinet) support, searching for libraries
                          in DIR
  --with-gm-libdir=DIR    Search for GM (Myrinet) libraries in DIR
  --with-mvapi(=DIR)      Build MVAPI (InfiniBand) support, searching for
                          libraries in DIR
  --with-mvapi-libdir=DIR Search for MVAPI (InfiniBand) libraries in DIR
  --with-mx(=DIR)         Build MX (Myrinet Express) support, searching for
                          libraries in DIR
  --with-mx-libdir=DIR    Search for MX (Myrinet Express) libraries in DIR
  --with-openib(=DIR)     Build OpenFabrics support, searching for libraries
                          in DIR
  --with-openib-libdir=DIR
                          Search for OpenFabrics libraries in DIR
  --with-portals(=DIR)    Build Portals support, searching for installation in
                          DIR
  --with-portals-config   configuration to use for Portals support. One of
                          "utcp", "xt3". (default: utcp)
  --with-portals-libs=LIBS
                          Libraries to link with for portals
  --with-udapl(=DIR)      Build uDAPL support, searching for libraries in DIR
  --with-udapl-libdir=DIR Search for uDAPL libraries in DIR
  --with-io-romio-flags=FLAGS
                          Pass FLAGS to the ROMIO distribution configuration
                          script
  --with-psm(=DIR)        Build PSM (QLogic InfiniPath PSM) support, searching
                          for libraries in DIR
  --with-psm-libdir=DIR   Search for PSM (QLogic InfiniPath PSM) libraries in
                          DIR
  --with-event-rtsig      compile with support for real time signals
                          (experimental)
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    C/C++/Objective 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
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" || continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested 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
    else
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
Open MPI configure 1.2.5
generated by GNU Autoconf 2.61

Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006 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
fi
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Open MPI $as_me 1.2.5, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{
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`
/usr/bin/hostinfo      = `(/usr/bin/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
IFS=$as_save_IFS

} >&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_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_arg'"
      ;;
    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: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
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,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------------- ##
## File substitutions. ##
## ------------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      echo "$as_me: caught signal $ac_signal"
    echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r 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 -f -r conftest* 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 -n "$CONFIG_SITE"; then
  set x "$CONFIG_SITE"
elif test "x$prefix" != xNONE; then
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
else
  set x "$ac_default_prefix/share/config.site" \
	"$ac_default_prefix/etc/config.site"
fi
shift
for ac_site_file
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 $ac_precious_vars; 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

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.




# Get our platform support file.  This has to be done very, very early
# because it twiddles random bits of autoconf


# Check whether --with-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:2937: 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:2959: Loaded platform arguments for $platform_loaded" >&5
else
    echo Loaded platform arguments for $platform_loaded >&5
fi
    fi


#
# Init automake - if we are using AC.260 or higher, require AM 1.10 or higher
#
# XXX - FIX ME - when we drop support for 2.58 and 2.59,
# remove this test and require 1.10 or higher all the time.
am__api_version='1.10'

# 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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS


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.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    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 -f 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

{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
done
IFS=$as_save_IFS

fi

  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    test -d ./--version && rmdir ./--version
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
echo "${ECHO_T}$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac

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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$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

if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if 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
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='openmpi'
 VERSION='1.2.5'


# 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-"\$(SHELL) $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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(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.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/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_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  { { 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=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_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; }
case $ac_cv_build in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
echo "$as_me: error: invalid value of canonical build" >&2;}
   { (exit 1); exit 1; }; };;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac



#
# 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
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   { (exit 1); exit 1; }; }
fi

fi
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
echo "$as_me: error: invalid value of canonical host" >&2;}
   { (exit 1); exit 1; }; };;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac



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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

  ;;
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=`$as_dirname -- "$ac_prefix_program" ||
$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=`$as_dirname -- "$prefix" ||
$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 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 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 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 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 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 was given.
if test "${enable_debug+set}" = set; then
  enableval=$enable_debug;
fi

if test "$enable_debug" = "yes"; then
    { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
    WANT_DEBUG=1
else
    { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
    WANT_DEBUG=0
fi
#################### Early development override ####################
if test "$WANT_DEBUG" = "0" -a -z "$enable_debug" -a -d .svn; then
    WANT_DEBUG=1
    echo "--> developer override: enable debugging code by default"
fi
#################### Early development override ####################
if test "$WANT_DEBUG" = "0"; then
    CFLAGS="-DNDEBUG $CFLAGS"
    CXXFLAGS="-DNDEBUG $CXXFLAGS"
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_DEBUG $WANT_DEBUG
_ACEOF


# Check whether --enable-debug-symbols was given.
if test "${enable_debug_symbols+set}" = set; then
  enableval=$enable_debug_symbols;
fi


#
# Fortran 77
#

{ echo "$as_me:$LINENO: checking if want Fortran 77 bindings" >&5
echo $ECHO_N "checking if want Fortran 77 bindings... $ECHO_C" >&6; }
# Check whether --enable-mpi-f77 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 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 was given.
if test "${with_mpi_f90_size+set}" = set; then
  withval=$with_mpi_f90_size;
fi


if test "$OMPI_WANT_F90_BINDINGS" = "0"; then
    { echo "$as_me:$LINENO: result: disabled (Fortran 90 bindings disabled)" >&5
echo "${ECHO_T}disabled (Fortran 90 bindings disabled)" >&6; }
elif test "$with_mpi_f90_size" = "no"; then
    OMPI_WANT_F90_BINDINGS=0
    { echo "$as_me:$LINENO: result: disabling F90 MPI module (used specified)" >&5
echo "${ECHO_T}disabling F90 MPI module (used specified)" >&6; }
else
    # Default value
    if test "$with_mpi_f90_size" = ""; then
        with_mpi_f90_size=small
    fi

    # Check for each of the sizes
    if test "$with_mpi_f90_size" = "trivial"; then
        OMPI_F90_BUILD_SIZE=trivial
    elif test "$with_mpi_f90_size" = "small"; then
        OMPI_F90_BUILD_SIZE=small
    elif test "$with_mpi_f90_size" = "medium"; then
        OMPI_F90_BUILD_SIZE=medium
    elif test "$with_mpi_f90_size" = "large"; then
        OMPI_F90_BUILD_SIZE=large
    else
        { echo "$as_me:$LINENO: result: Unrecognized size: $with_mpi_f90_size" >&5
echo "${ECHO_T}Unrecognized size: $with_mpi_f90_size" >&6; }
        { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi

 if test "$OMPI_F90_BUILD_SIZE" = "trivial"; then
  OMPI_WANT_BUILD_F90_TRIVIAL_TRUE=
  OMPI_WANT_BUILD_F90_TRIVIAL_FALSE='#'
else
  OMPI_WANT_BUILD_F90_TRIVIAL_TRUE='#'
  OMPI_WANT_BUILD_F90_TRIVIAL_FALSE=
fi

 if test "$OMPI_F90_BUILD_SIZE" = "small"; then
  OMPI_WANT_BUILD_F90_SMALL_TRUE=
  OMPI_WANT_BUILD_F90_SMALL_FALSE='#'
else
  OMPI_WANT_BUILD_F90_SMALL_TRUE='#'
  OMPI_WANT_BUILD_F90_SMALL_FALSE=
fi

 if test "$OMPI_F90_BUILD_SIZE" = "medium"; then
  OMPI_WANT_BUILD_F90_MEDIUM_TRUE=
  OMPI_WANT_BUILD_F90_MEDIUM_FALSE='#'
else
  OMPI_WANT_BUILD_F90_MEDIUM_TRUE='#'
  OMPI_WANT_BUILD_F90_MEDIUM_FALSE=
fi

 if test "$OMPI_F90_BUILD_SIZE" = "large"; then
  OMPI_WANT_BUILD_F90_LARGE_TRUE=
  OMPI_WANT_BUILD_F90_LARGE_FALSE='#'
else
  OMPI_WANT_BUILD_F90_LARGE_TRUE='#'
  OMPI_WANT_BUILD_F90_LARGE_FALSE=
fi



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

#
# MPI profiling
#

{ echo "$as_me:$LINENO: checking whether to enable PMPI" >&5
echo $ECHO_N "checking whether to enable PMPI... $ECHO_C" >&6; }
# Check whether --enable-mpi-profile 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 was given.
if test "${enable_mpi_cxx+set}" = set; then
  enableval=$enable_mpi_cxx;
fi

if test "$enable_mpi_cxx" != "no"; then
    { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
    WANT_MPI_CXX_SUPPORT=1
else
    { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
    WANT_MPI_CXX_SUPPORT=0
fi

{ echo "$as_me:$LINENO: checking if want MPI::SEEK_SET support" >&5
echo $ECHO_N "checking if want MPI::SEEK_SET support... $ECHO_C" >&6; }
# Check whether --enable-mpi-cxx-seek was given.
if test "${enable_mpi_cxx_seek+set}" = set; then
  enableval=$enable_mpi_cxx_seek;
fi

if test "$enable_mpi_cxx_seek" != "no" ; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
  OMPI_WANT_MPI_CXX_SEEK=1
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
  OMPI_WANT_MPI_CXX_SEEK=0
fi

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


#
# Do we want to disable weak symbols for some reason?
#

{ echo "$as_me:$LINENO: checking if want to enable weak symbol support" >&5
echo $ECHO_N "checking if want to enable weak symbol support... $ECHO_C" >&6; }
# Check whether --enable-weak-symbols 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 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 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 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 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 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 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 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 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 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 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 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:4789: Loading cross-compile file $with_cross, with contents below" >&5
else
    echo Loading cross-compile file $with_cross, with contents below >&5
fi

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

#
# Do we want to install binaries?
#
# Check whether --enable-binaries was given.
if test "${enable_binaries+set}" = set; then
  enableval=$enable_binaries;
fi

 if test "$enable_binaries" != "no"; then
  OMPI_INSTALL_BINARIES_TRUE=
  OMPI_INSTALL_BINARIES_FALSE='#'
else
  OMPI_INSTALL_BINARIES_TRUE='#'
  OMPI_INSTALL_BINARIES_FALSE=
fi


#
# Do we want to disable IPv6 support?
#
{ echo "$as_me:$LINENO: checking if want IPv6 support" >&5
echo $ECHO_N "checking if want IPv6 support... $ECHO_C" >&6; }
# Check whether --enable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then
  enableval=$enable_ipv6;
fi

if test "$enable_ipv6" = "no"; then
    { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
    opal_want_ipv6=0
else
    { echo "$as_me:$LINENO: result: yes (if underlying system supports it)" >&5
echo "${ECHO_T}yes (if underlying system supports it)" >&6; }
    opal_want_ipv6=1
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_IPV6 $opal_want_ipv6
_ACEOF


#
# Do we want orterun's --prefix behavior to be enabled by default?
#
{ echo "$as_me:$LINENO: checking if want orterun \"--prefix\" behavior to be enabled by default" >&5
echo $ECHO_N "checking if want orterun \"--prefix\" behavior to be enabled by default... $ECHO_C" >&6; }
# Check whether --enable-orterun-prefix-by-default was given.
if test "${enable_orterun_prefix_by_default+set}" = set; then
  enableval=$enable_orterun_prefix_by_default;
fi

# Check whether --enable-mpirun-prefix-by-default was given.
if test "${enable_mpirun_prefix_by_default+set}" = set; then
  enableval=$enable_mpirun_prefix_by_default;
fi

if test "$enable_orterun_prefix_by_default" = ""; then
    enable_orterun_prefix_by_default=$enable_mpirun_prefix_by_default
fi
if test "$enable_orterun_prefix_by_default" = "yes"; then
    { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
    orte_want_orterun_prefix_by_default=1
else
    { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
    orte_want_orterun_prefix_by_default=0
fi

cat >>confdefs.h <<_ACEOF
#define ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT $orte_want_orterun_prefix_by_default
_ACEOF



############################################################################
# Libtool: part one
# (before C compiler setup)
############################################################################

#
# Part one of libtool magic.  Enable static so that we have the --with
# tests done up here and can check for OS.  Save the values of
# $enable_static and $enable_shared before setting the defaults,
# because if the user specified --[en|dis]able-[static|shared] on the
# command line, they'll already be set.  In this way, we can tell if
# the user requested something or if the default was set here.
#

ompi_enable_shared="$enable_shared"
ompi_enable_static="$enable_static"
# Check whether --enable-shared 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 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 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 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 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 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 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 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 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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.exe
  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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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.exe
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
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`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
#
# List of possible output files, starting from the most likely.
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
# only as a last resort.  b.out is created by i960 compilers.
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
#
# The IRIX 6 linker writes into existing files which may not be
# executable, retaining their permissions.  Remove them first so a
# subsequent execution test works.
ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { (ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi

{ echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6; }
if test -z "$ac_file"; then
  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

# Check that 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'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 that 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 | *.map | *.inf | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
    *) 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
{ 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
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CFLAGS=""
      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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
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 ISO C89" >&5
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_c89=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 -std 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 -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 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
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_c89=$ac_arg
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6; } ;;
  xno)
    { echo "$as_me:$LINENO: result: unsupported" >&5
echo "${ECHO_T}unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
esac


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/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       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 { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_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.  */

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 conftest2.$ac_objext >&5'
rm -f conftest2.*
if { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 conftest2.$ac_objext >&5'
      rm -f conftest2.*
      if { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core conftest*

fi
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }

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

fi

# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 nonexistent 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 nonexistent 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 grep that handles long lines and -e" >&5
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # Extract the first word of "grep ggrep" to use in msg output
if test -z "$GREP"; then
set dummy grep ggrep; ac_prog_name=$2
if test "${ac_cv_path_GREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_path_GREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in grep ggrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
    # Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_GREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

GREP="$ac_cv_path_GREP"
if test -z "$GREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_GREP=$GREP
fi


fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
if test "${ac_cv_path_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_path_EGREP="$GREP -E"
   else
     # Extract the first word of "egrep" to use in msg output
if test -z "$EGREP"; then
set dummy egrep; ac_prog_name=$2
if test "${ac_cv_path_EGREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_path_EGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in egrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
    # Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_EGREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

EGREP="$ac_cv_path_EGREP"
if test -z "$EGREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_EGREP=$EGREP
fi


   fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



    # AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little
    # careful about ordering here, and AC_REQUIRE these things so that
    # they get stamped out in the right order.








    { echo "$as_me:$LINENO: checking for the C compiler vendor" >&5
echo $ECHO_N "checking for the C compiler vendor... $ECHO_C" >&6; }
if test "${ompi_cv_c_compiler_vendor+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    ompi_check_compiler_vendor_result="unknown"

    # GNU is probably the most common, so check that one as soon as
    # possible.  Intel pretends to be GNU, so need to check Intel
    # before checking for GNU.

    # Intel
    if test "$ompi_check_compiler_vendor_result" = "unknown"; then

    cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__INTEL_COMPILER) || defined(__ICC) )
#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="intel"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="gnu"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="borland"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="borland"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="comeau"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="compaq"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="cray"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="diab"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="hp"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="ibm"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="kai"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="lcc"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="metrowerks"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="sgi"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="mpw"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="microsoft"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="norcroft"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="pelles"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="sas"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="sun"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="tendra"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="tiny"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="usl"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="watcom"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi


    ompi_cv_c_compiler_vendor="$ompi_check_compiler_vendor_result"
    unset ompi_check_compiler_vendor_result

         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

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

    ompi_c_vendor="$ompi_cv_c_compiler_vendor"


    # Check for standard headers, needed here because needed before
    # the types checks.
    { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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>
#include <stdlib.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))
      return 2;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

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

fi


    # GNU C and autotools are inconsistent about whether this is
    # defined so let's make it true everywhere for now...  However, IBM
    # XL compilers on PPC Linux behave really badly when compiled with
    # _GNU_SOURCE defined, so don't define it in that situation.
    #
    # Don't use AC_GNU_SOURCE because it requires that no compiler
    # tests are done before setting it, and we need to at least do
    # enough tests to figure out if we're using XL or not.
    if test "$ompi_cv_c_compiler_vendor" != "ibm"; then


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

fi


    # Do we want code coverage
    if test "$WANT_COVERAGE" = "1"; then
        if test "$ompi_c_vendor" = "gnu" ; then
            # For compilers > gcc-4.x, use --coverage for
            # compiling and linking to circumvent trouble with
            # libgcov.
            CFLAGS_orig="$CFLAGS"
            LDFLAGS_orig="$LDFLAGS"

            CFLAGS="$CFLAGS_orig --coverage"
            LDFLAGS="$LDFLAGS_orig --coverage"
            OMPI_COVERAGE_FLAGS=

            { echo "$as_me:$LINENO: checking if $CC supports --coverage" >&5
echo $ECHO_N "checking if $CC supports --coverage... $ECHO_C" >&6; }
if test "${ompi_cv_cc_coverage+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_cv_cc_coverage="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_cc_coverage="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_cc_coverage" >&5
echo "${ECHO_T}$ompi_cv_cc_coverage" >&6; }

            if test "$ompi_cv_cc_coverage" = "yes" ; then
                OMPI_COVERAGE_FLAGS="--coverage"
                CLEANFILES="*.gcda *.gcno *.gcov ${CLEANFILES}"
            else
                OMPI_COVERAGE_FLAGS="-ftest-coverage -fprofile-arcs"
                CLEANFILES="*.bb *.bbg *.da *.*.gcov ${CLEANFILES}"
            fi
            CFLAGS="$CFLAGS_orig $OMPI_COVERAGE_FLAGS"
            LDFLAGS="$LDFLAGS_orig $OMPI_COVERAGE_FLAGS"
            WRAPPER_EXTRA_CFLAGS="${WRAPPER_EXTRA_CFLAGS} $OMPI_COVERAGE_FLAGS"
            WRAPPER_EXTRA_LDFLAGS="${WRAPPER_EXTRA_LDFLAGS} $OMPI_COVERAGE_FLAGS"


# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${LDFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count

# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_LDFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${WRAPPER_EXTRA_LDFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
            { echo "$as_me:$LINENO: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5
echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;}

            WANT_DEBUG=1
        else
            { echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC" >&5
echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC" >&2;}
            { { echo "$as_me:$LINENO: error: Configure: Cannot continue" >&5
echo "$as_me: error: Configure: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
       fi
    fi

    # Do we want debugging?
    if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then
        if test "$ompi_c_vendor" = "gnu"; then
            CFLAGS="$CFLAGS -g"  # keep the -g3 for when it will become a standard option.
        else
            CFLAGS="$CFLAGS -g"
        fi


# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        { echo "$as_me:$LINENO: WARNING: -g has been added to CFLAGS (--enable-debug)" >&5
echo "$as_me: WARNING: -g has been added to CFLAGS (--enable-debug)" >&2;}
    fi

    # These flags are generally gcc-specific; even the
    # gcc-impersonating compilers won't accept them.
    OMPI_CFLAGS_BEFORE_PICKY="$CFLAGS"
    if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_c_vendor" = "gnu" ; then
        add="-Wall -Wundef -Wno-long-long -Wsign-compare"
        add="$add -Wmissing-prototypes -Wstrict-prototypes"
        add="$add -Wcomment -pedantic"

        # see if -Wno-long-double works...
        CFLAGS_orig="$CFLAGS"
        CFLAGS="$CFLAGS -Wno-long-double"
        { echo "$as_me:$LINENO: checking if $CC supports -Wno-long-double" >&5
echo $ECHO_N "checking if $CC supports -Wno-long-double... $ECHO_C" >&6; }
if test "${ompi_cv_cc_wno_long_double+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_cc_finline_functions" >&5
echo "${ECHO_T}$ompi_cv_cc_finline_functions" >&6; }
        if test "$ompi_cv_cc_finline_functions" = "yes" ; then
            add=" -finline-functions"
        fi
        CFLAGS="$CFLAGS_orig$add"

        CFLAGS_orig="$CFLAGS"
        CFLAGS="$CFLAGS_orig -fno-strict-aliasing"
        add=
        { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
if test "${ompi_cv_cc_fno_strict_aliasing+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_cc_restrict_cflags" >&5
echo "${ECHO_T}$ompi_cv_cc_restrict_cflags" >&6; }
        if test "$ompi_cv_cc_restrict_cflags" = "yes" ; then
            add=" $RESTRICT_CFLAGS"
        fi

        CFLAGS="${CFLAGS_orig}${add}"

# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        if test "$add" != "" ; then
            { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5
echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
        fi
        unset add
    fi

    # see if the C compiler supports __builtin_expect
    { echo "$as_me:$LINENO: checking if $CC supports __builtin_expect" >&5
echo $ECHO_N "checking if $CC supports __builtin_expect... $ECHO_C" >&6; }
if test "${ompi_cv_cc_supports___builtin_expect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
void *ptr = (void*) 0;
           if (__builtin_expect (ptr != (void*) 0, 1)) return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_cc_supports___builtin_expect="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_cc_supports___builtin_expect="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_cc_supports___builtin_expect" >&5
echo "${ECHO_T}$ompi_cv_cc_supports___builtin_expect" >&6; }
    if test "$ompi_cv_cc_supports___builtin_expect" = "yes" ; then
        have_builtin_expect=1
    else
        have_builtin_expect=0
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_C_HAVE_BUILTIN_EXPECT $have_builtin_expect
_ACEOF


    # see if the C compiler supports __builtin_prefetch
    { echo "$as_me:$LINENO: checking if $CC supports __builtin_prefetch" >&5
echo $ECHO_N "checking if $CC supports __builtin_prefetch... $ECHO_C" >&6; }
if test "${ompi_cv_cc_supports___builtin_prefetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
int ptr;
           __builtin_prefetch(&ptr,0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_cc_supports___builtin_prefetch="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_cc_supports___builtin_prefetch="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_cc_supports___builtin_prefetch" >&5
echo "${ECHO_T}$ompi_cv_cc_supports___builtin_prefetch" >&6; }
    if test "$ompi_cv_cc_supports___builtin_prefetch" = "yes" ; then
        have_builtin_prefetch=1
    else
        have_builtin_prefetch=0
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_C_HAVE_BUILTIN_PREFETCH $have_builtin_prefetch
_ACEOF


    # Preload the optflags for the case where the user didn't specify
    # any.  If we're using GNU compilers, use -O3 (since it GNU
    # doesn't require all compilation units to be compiled with the
    # same level of optimization -- selecting a high level of
    # optimization is not prohibitive).  If we're using anything else,
    # be conservative and just use -O.
    #
    # Note: gcc-impersonating compilers accept -O3
    if test "$WANT_DEBUG" = "1"; then
        OPTFLAGS=
    else
        if test "$GCC" = yes; then
            OPTFLAGS="-O3"
        else
            OPTFLAGS="-O"
        fi
    fi



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

##################################
# Optimization flags
##################################

# If the user did not specify optimization flags, add some (the value
# from $OPTFLAGS)

co_arg=""$OMPI_CFLAGS_BEFORE_PICKY""
co_found=0
for co_word in $co_arg; do
    case $co_word in
    -g)    co_found=1 ;;
    -g1)   co_found=1 ;;
    -g2)   co_found=1 ;;
    -g3)   co_found=1 ;;
    +K0)   co_found=1 ;;
    +K1)   co_found=1 ;;
    +K2)   co_found=1 ;;
    +K3)   co_found=1 ;;
    +K4)   co_found=1 ;;
    +K5)   co_found=1 ;;
    -O)    co_found=1 ;;
    -O0)   co_found=1 ;;
    -O1)   co_found=1 ;;
    -O2)   co_found=1 ;;
    -O3)   co_found=1 ;;
    -O4)   co_found=1 ;;
    -O5)   co_found=1 ;;
    -O6)   co_found=1 ;;
    -O7)   co_found=1 ;;
    -O8)   co_found=1 ;;
    -O9)   co_found=1 ;;
    -xO)   co_found=1 ;;
    -xO0)  co_found=1 ;;
    -xO1)  co_found=1 ;;
    -xO2)  co_found=1 ;;
    -xO3)  co_found=1 ;;
    -xO4)  co_found=1 ;;
    -xO5)  co_found=1 ;;
    -xO6)  co_found=1 ;;
    -xO7)  co_found=1 ;;
    -xO8)  co_found=1 ;;
    -xO9)  co_found=1 ;;
    -fast) co_found=1 ;;
    esac
done

if test "$co_found" = "0"; then
    co_result="$OPTFLAGS $co_arg"
else
    co_result="$co_arg"
fi

# Clean up

unset co_found co_word co_arg

    OMPI_CFLAGS_BEFORE_PICKY="$co_result"

    { echo "$as_me:$LINENO: checking for C optimization flags" >&5
echo $ECHO_N "checking for C optimization flags... $ECHO_C" >&6; }


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

##################################
# Optimization flags
##################################

# If the user did not specify optimization flags, add some (the value
# from $OPTFLAGS)

co_arg=""$CFLAGS""
co_found=0
for co_word in $co_arg; do
    case $co_word in
    -g)    co_found=1 ;;
    -g1)   co_found=1 ;;
    -g2)   co_found=1 ;;
    -g3)   co_found=1 ;;
    +K0)   co_found=1 ;;
    +K1)   co_found=1 ;;
    +K2)   co_found=1 ;;
    +K3)   co_found=1 ;;
    +K4)   co_found=1 ;;
    +K5)   co_found=1 ;;
    -O)    co_found=1 ;;
    -O0)   co_found=1 ;;
    -O1)   co_found=1 ;;
    -O2)   co_found=1 ;;
    -O3)   co_found=1 ;;
    -O4)   co_found=1 ;;
    -O5)   co_found=1 ;;
    -O6)   co_found=1 ;;
    -O7)   co_found=1 ;;
    -O8)   co_found=1 ;;
    -O9)   co_found=1 ;;
    -xO)   co_found=1 ;;
    -xO0)  co_found=1 ;;
    -xO1)  co_found=1 ;;
    -xO2)  co_found=1 ;;
    -xO3)  co_found=1 ;;
    -xO4)  co_found=1 ;;
    -xO5)  co_found=1 ;;
    -xO6)  co_found=1 ;;
    -xO7)  co_found=1 ;;
    -xO8)  co_found=1 ;;
    -xO9)  co_found=1 ;;
    -fast) co_found=1 ;;
    esac
done

if test "$co_found" = "0"; then
    co_result="$OPTFLAGS $co_arg"
else
    co_result="$co_arg"
fi

# Clean up

unset co_found co_word co_arg

    { echo "$as_me:$LINENO: result: $co_result" >&5
echo "${ECHO_T}$co_result" >&6; }
    CFLAGS="$co_result"


# If we build on a windows environment with the windows compiler and linker
# then we need some translation functions from the opal/win32 directory.
 if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
  OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE=
  OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE='#'
else
  OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE='#'
  OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE=
fi


#
# Check for some types
#

# On IRIX 5.3, sys/types and inttypes.h are conflicting.









for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_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.  */
$ac_includes_default

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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
typedef long long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef long double ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef int8_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef uint8_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef int16_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef uint16_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef int32_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef uint32_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef int64_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef uint64_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef intptr_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef uintptr_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef mode_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
if test $ac_cv_type_mode_t = yes; then

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


fi

{ echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef ssize_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_ssize_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_ssize_t=no
fi

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

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


fi

{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef ptrdiff_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_ptrdiff_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_ptrdiff_t=no
fi

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

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


fi


#
# Check for type sizes
#

{ echo "$as_me:$LINENO: checking for char" >&5
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
if test "${ac_cv_type_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef char ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef char ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_char=$ac_lo;;
'') if test "$ac_cv_type_char" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_char=0
   fi ;;
esac
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
   typedef char ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_char" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_char=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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
typedef short ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef short ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_short=$ac_lo;;
'') if test "$ac_cv_type_short" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_short=0
   fi ;;
esac
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
   typedef short ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_short" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_short=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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
typedef int ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef int ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_int=$ac_lo;;
'') if test "$ac_cv_type_int" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_int=0
   fi ;;
esac
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
   typedef int ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_int" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_int=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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
typedef long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long=$ac_lo;;
'') if test "$ac_cv_type_long" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_long=0
   fi ;;
esac
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
   typedef long ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_long" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_long=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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
typedef long long ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef long long ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long_long=$ac_lo;;
'') if test "$ac_cv_type_long_long" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_long_long=0
   fi ;;
esac
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
   typedef long long ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_long_long" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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
typedef long double ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef long double ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef long double ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef long double ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef long double ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef long double ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long_double=$ac_lo;;
'') if test "$ac_cv_type_long_double" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long double)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_long_double=0
   fi ;;
esac
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
   typedef long double ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_long_double" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long double)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_long_double=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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
typedef float ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef float ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef float ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef float ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef float ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef float ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_float=$ac_lo;;
'') if test "$ac_cv_type_float" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (float)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_float=0
   fi ;;
esac
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
   typedef float ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_float" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (float)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_float=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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
typedef double ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef double ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef double ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef double ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef double ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef double ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_double=$ac_lo;;
'') if test "$ac_cv_type_double" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (double)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_double=0
   fi ;;
esac
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
   typedef double ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_double" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (double)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_double=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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
typedef void * ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef void * ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef void * ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef void * ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef void * ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef void * ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_void_p=$ac_lo;;
'') if test "$ac_cv_type_void_p" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void *)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_void_p=0
   fi ;;
esac
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
   typedef void * ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_void_p" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void *)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_void_p=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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
typedef size_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef size_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef size_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef size_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef size_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef size_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_size_t=$ac_lo;;
'') if test "$ac_cv_type_size_t" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_size_t=0
   fi ;;
esac
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
   typedef size_t ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_size_t" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_size_t=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF


if test $ac_cv_type_ssize_t = yes ; then
    { echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
if test "${ac_cv_type_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef ssize_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_ssize_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_ssize_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }

# The cast to long int 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.
{ echo "$as_me:$LINENO: checking size of ssize_t" >&5
echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_ssize_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$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
   typedef ssize_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef ssize_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef ssize_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef ssize_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef ssize_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_ssize_t=$ac_lo;;
'') if test "$ac_cv_type_ssize_t" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (ssize_t)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_ssize_t=0
   fi ;;
esac
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
   typedef ssize_t ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_ssize_t=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_ssize_t" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (ssize_t)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_ssize_t=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
_ACEOF


fi
if test $ac_cv_type_ptrdiff_t = yes; then
    { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
typedef ptrdiff_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_ptrdiff_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_ptrdiff_t=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }

# The cast to long int 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.
{ echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6; }
if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$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
   typedef ptrdiff_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef ptrdiff_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef ptrdiff_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef ptrdiff_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef ptrdiff_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
'') if test "$ac_cv_type_ptrdiff_t" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_ptrdiff_t=0
   fi ;;
esac
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
   typedef ptrdiff_t ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_ptrdiff_t" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_ptrdiff_t=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
_ACEOF


fi

#
# Check for type alignments
#


    { echo "$as_me:$LINENO: checking alignment of char" >&5
echo $ECHO_N "checking alignment of char... $ECHO_C" >&6; }
if test "${ompi_cv_c_align_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
   # cross compile - do a non-executable test.  Trick
                                 # taken from the Autoconf 2.59c.  Switch to using
                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
                                 if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; char y; } ompi__type_alignof_;

int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_c_inline=$ac_kw
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  test "$ac_cv_c_inline" != no && break
done

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


case $ac_cv_c_inline in
  inline | yes) ;;
  *)
    case $ac_cv_c_inline in
      no) ac_val=;;
      *) ac_val=$ac_cv_c_inline;;
    esac
    cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
    ;;
esac

# Microsoft compilers support 2 versions of restrict. One for functions, and
# one for variables. The problem is that they don't have an equivalent
# syntax, and the autoconf restrict detection is unable to detect them
# correctly. It detect the restrict keyword as __restrict which break the
# rules for function syntax which is declspec(restrict).
if test "x$ompi_cv_c_compiler_vendor" != "xmicrosoft"; then
  { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
if test "${ac_cv_c_restrict+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_c_restrict=no
   # Try the official restrict keyword, then gcc's __restrict, and
   # the less common variants.
   for ac_kw in restrict __restrict __restrict__ _Restrict; do
     cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
typedef int * int_ptr;
        int foo (int_ptr $ac_kw ip) {
        return ip[0];
       }
int
main ()
{
int s[1];
        int * $ac_kw t = s;
        t[0] = 0;
        return foo(t)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_c_restrict=$ac_kw
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     test "$ac_cv_c_restrict" != no && break
   done

fi
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
 case $ac_cv_c_restrict in
   restrict) ;;
   no)
cat >>confdefs.h <<\_ACEOF
#define restrict
_ACEOF
 ;;
   *)  cat >>confdefs.h <<_ACEOF
#define restrict $ac_cv_c_restrict
_ACEOF
 ;;
 esac

fi

    { echo "$as_me:$LINENO: checking for weak symbol support" >&5
echo $ECHO_N "checking for weak symbol support... $ECHO_C" >&6; }
if test "${ompi_cv_c_weak_symbols+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    # need two files because icc will incorrectly not create the
    # symbols if they are not used in the object file in which they
    # are defined.  Blah!
    # To get to compile with icc, have them in a separate header.
    cat > conftest_weak.h <<EOF
int real(int i);
int fake(int i);
EOF

    cat > conftest_weak.c <<EOF
#include "conftest_weak.h"
#pragma weak fake = real
int real(int i) { return i; }
EOF

    cat > conftest.c <<EOF
#include "conftest_weak.h"
int main() { 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:19799: $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:19806: \$? = $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:19816: $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:19823: \$? = $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
    rm -f conftest_weak.h conftest_weak.c conftest.c 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 ()
{
  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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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; }

rm -rf 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=cpp
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 -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 g++ c++ gpp aCC CC cxx cc++ cl.exe 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
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`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
{ 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
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CXXFLAGS=""
      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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
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
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/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       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=cpp
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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.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 nonexistent 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.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 nonexistent 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    BASECXX="`basename $CXX`"
    CXXFLAGS="$ompi_cxxflags_save"

cat >>confdefs.h <<_ACEOF
#define OMPI_CXX "$CXX"
_ACEOF

    OMPI_CXX_ABSOLUTE="`which $CXX`"





    { echo "$as_me:$LINENO: checking for the C++ compiler vendor" >&5
echo $ECHO_N "checking for the C++ compiler vendor... $ECHO_C" >&6; }
if test "${ompi_cv_cxx_compiler_vendor+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=cpp
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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="intel"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="gnu"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="borland"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="borland"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="comeau"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="compaq"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="cray"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="diab"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="hp"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="ibm"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="kai"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="lcc"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="metrowerks"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="sgi"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="mpw"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="microsoft"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
           ac_ext=cpp
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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="norcroft"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="pelles"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="sas"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="sun"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="tendra"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="tiny"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="usl"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_check_compiler_vendor_result="watcom"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi


    ompi_cv_cxx_compiler_vendor="$ompi_check_compiler_vendor_result"
    unset ompi_check_compiler_vendor_result

         ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

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

    ompi_cxx_vendor="$ompi_cv_c_compiler_vendor"


    # Make sure that the C++ compiler both works and is actually a C++
    # compiler (if not cross-compiling).  Don't just use the AC macro
    # so that we can have a pretty message.  Do something here that
    # should force the linking of C++-specific things (e.g., STL
    # strings) so that we can force a hard check of compiling,
    # linking, and running a C++ application Note that some C
    # compilers, such as at least some versions of the GNU and Intel
    # compilers, will detect that the file extension is ".cc" and
    # therefore switch into a pseudo-C++ personality which works for
    # *compiling*, but does not work for *linking*.  So in this test,
    # we want to cover the entire spectrum (compiling, linking,
    # running).

	if test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ; then


    { echo "$as_me:$LINENO: checking if C++ compiler works" >&5
echo $ECHO_N "checking if C++ compiler works... $ECHO_C" >&6; }
if test "${ompi_cv_Cpp_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

         if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string>
int
main ()
{
std::string foo = "Hello, world"
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_Cpp_works="links (cross compiling)"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_Cpp_works="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string>
int
main ()
{
std::string foo = "Hello, world"
  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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



	fi






    # Do we want code coverage
    if test "$WANT_COVERAGE" = "1"; then
        if test "$ompi_cxx_vendor" = "gnu" ; then
            { echo "$as_me:$LINENO: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5
echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;}
            WANT_DEBUG=1
            CXXFLAGS="${CXXFLAGS} $OMPI_COVERAGE_FLAGS"
            WRAPPER_EXTRA_CXXFLAGS="${WRAPPER_EXTRA_CXXFLAGS} $OMPI_COVERAGE_FLAGS"
        else
            { echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC suite" >&5
echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC suite" >&2;}
            { { echo "$as_me:$LINENO: error: Configure: cannot continue" >&5
echo "$as_me: error: Configure: cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    # Do we want debugging?
    if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then
        CXXFLAGS="$CXXFLAGS -g"

# 1 is the variable name to be uniq-ized
ompi_name=CXXFLAGS

# Go through each item in the variable and only keep the unique ones

ompi_count=0
for val in ${CXXFLAGS}; do
    ompi_done=0
    ompi_i=1
    ompi_found=0

    # Loop over every token we've seen so far

    ompi_done="`expr $ompi_i \> $ompi_count`"
    while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do

	# Have we seen this token already?  Prefix the comparison with
	# "x" so that "-Lfoo" values won't be cause an error.

	ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
	ompi_found=`eval $ompi_eval`

	# Check the ending condition

	ompi_done="`expr $ompi_i \>= $ompi_count`"

	# Increment the counter

	ompi_i="`expr $ompi_i + 1`"
    done

    # If we didn't find the token, add it to the "array"

    if test "$ompi_found" = "0"; then
	ompi_eval="ompi_array_$ompi_i=$val"
	eval $ompi_eval
	ompi_count="`expr $ompi_count + 1`"
    else
	ompi_i="`expr $ompi_i - 1`"
    fi
done

# Take all the items in the "array" and assemble them back into a
# single variable

ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
    ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
    eval $ompi_eval

    ompi_eval="unset ompi_array_$ompi_i"
    eval $ompi_eval

    ompi_done="`expr $ompi_i \>= $ompi_count`"
    ompi_i="`expr $ompi_i + 1`"
done

# Done; do the assignment

ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval

# Clean up

unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
        { echo "$as_me:$LINENO: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&5
echo "$as_me: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&2;}
    fi

    # These flags are generally g++-specific; even the g++-impersonating
    # compilers won't accept them.
    OMPI_CXXFLAGS_BEFORE_PICKY="$CXXFLAGS"
    if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_cxx_vendor" = "gnu"; then
        add="-Wall -Wundef -Wno-long-long"

        # see if -Wno-long-double works...
        ac_ext=cpp
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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 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=cpp
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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 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=cpp
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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_happy=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_happy=0
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ompi_happy=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_happy=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
	if test "$ompi_happy" = "1"; then
	    ompi_exflags="-fhandle-exceptions";
	fi
    fi
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

elif test "`basename $CXX`" = "KCC"; then

    # KCC flags

    ompi_exflags="--exceptions"
fi
CXXFLAGS="$ompi_CXXFLAGS_SAVE"

# Save the result

OMPI_CXX_EXCEPTIONS_CXXFLAGS="$ompi_exflags"
OMPI_CXX_EXCEPTIONS_LDFLAGS="$ompi_exflags"
if test "$ompi_exflags" = ""; then
    { echo "$as_me:$LINENO: result: none necessary" >&5
echo "${ECHO_T}none necessary" >&6; }
else
    { echo "$as_me:$LINENO: result: $ompi_exflags" >&5
echo "${ECHO_T}$ompi_exflags" >&6; }
fi

# Clean up

unset ompi_force_exflags ompi_CXXFLAGS_SAVE ompi_exflags ompi_happy
        if test "$OMPI_CXX_EXCEPTIONS" = "1"; then
            HAVE_CXX_EXCEPTIONS=1
            CFLAGS="$CFLAGS $OMPI_CXX_EXCEPTIONS_CFLAGS"
            FFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_FFLAGS"
            CXXFLAGS="$CXXFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"
            LDFLAGS="$LDFLAGS $OMPI_CXX_EXCEPTIONS_LDFLAGS"

            WRAPPER_EXTRA_CFLAGS="$OMPI_CXX_EXCEPTIONS_CFLAGS ${WRAPPER_EXTRA_CFLAGS}"
            WRAPPER_EXTRA_FFLAGS="$OMPI_CXX_EXCEPTIONS_FFLAGS ${WRAPPER_EXTRA_FFLAGS}"
            WRAPPER_EXTRA_CXXFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CXXFLAGS}"
        fi
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_CXX_EXCEPTION_SUPPORT $HAVE_CXX_EXCEPTIONS
_ACEOF


    # Make sure we can link with the C compiler
    if test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ; then



  { echo "$as_me:$LINENO: checking if C and C++ are link compatible" >&5
echo $ECHO_N "checking if C and C++ are link compatible... $ECHO_C" >&6; }
if test "${ompi_cv_c_link_Cpp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

     testfunc_name="testfunc"

     # Write out C part
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     rm -f conftest_c.$ac_ext
      cat > conftest_c.$ac_ext << EOF
int $testfunc_name(int a);
int $testfunc_name(int a) { return a; }
EOF

     # Now compile both parts

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:22756: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:22763: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

        ompi_lang_link_with_c_libs="$LIBS"
        LIBS="conftest_c.o $LIBS"
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#if defined(c_plusplus) || defined(__cplusplus)
extern "C" int testfunc(int);
#else
extern int testfunc(int);
#endif

int
main ()
{
return testfunc(0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_c_link_Cpp="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_c_link_Cpp="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
        LIBS="$ompi_lang_link_with_c_libs"
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    unset ompi_status
    ompi_cv_c_link_Cpp="no"
fi
     rm -f conftest_c.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

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

  if test "$ompi_cv_c_link_Cpp" = "yes"; then
  :
else
  cat <<EOF >&2
**********************************************************************
* It appears that your C++ compiler is unable to link against object
* files created by your C compiler.  This generally indicates either
* a conflict between the options specified in CFLAGS and CXXFLAGS
* or a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compilers and what error resulted when the commands were executed) is
* available in the config.log file in this directory.
**********************************************************************
EOF
         { { echo "$as_me:$LINENO: error: C and C++ compilers are not link compatible.  Can not continue." >&5
echo "$as_me: error: C and C++ compilers are not link compatible.  Can not continue." >&2;}
   { (exit 1); exit 1; }; }
fi


    fi

    # Find some more characteristics of the C++ compiler

    # config/cxx_find_template_repository.m4

    #
    # Arguments: None
    #
    # Dependencies: None
    #
    # See if the compiler makes template repository directories
    # Warning: this is a really screwy example! -JMS
    #
    # Sets OMPI_CXX_TEMPLATE_REPOSITORY to the template repository, or blank.
    # Must call AC_SUBST manually
    #
    { echo "$as_me:$LINENO: checking for C++ template_repository_directory" >&5
echo $ECHO_N "checking for C++ template_repository_directory... $ECHO_C" >&6; }
if test "${ompi_cv_cxx_template_repository+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

# Find the repository
mkdir conf_tmp_$$
cd conf_tmp_$$
cat > conftest.h <<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()
{
  foo<bar> var1(6);
  foo< foo<bar> > var2(var1);

  some_other_function();
  return 0;
}
EOF

ompi_template_failed=
echo configure:22949: $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:22953: here is the program that failed: >&5
    cat conftest1.C >&5
    echo configure:22955: here is conftest.h: >&5
    cat conftest.h >&5
    ompi_template_failed=1
else
    echo configure:22959: $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:22963: here is the program that failed: >&5
	cat conftest2.C >&5
	echo configure:22965: here is conftest.h: >&5
	cat conftest.h >&5
    else
	rm -rf conftest*

	for ompi_file in `ls`
	do
	    if test "$ompi_file" != "." -a "$ompi_file" != ".."; then
		# Is it a directory?
		if test -d "$ompi_file"; then
		    ompi_template_dir="$ompi_file $ompi_template_dir"

		# Or is it a file?
		else
		    name="`echo $ompi_file | cut -d. -f1`"

		    temp_mask=
		    if test "$name" = "main" -o "$name" = "other"; then
			temp_mask="`echo $ompi_file | cut -d. -f2`"
			if test "$ompi_template_filemask" = ""; then
			ompi_template_filemask="$temp_mask";
			elif test "`echo $ompi_template_filemask | grep $temp_mask`" = ""; then
			ompi_template_filemask="$ompi_template_filemask $temp_mask"
			fi
		    fi
		fi
	    fi
	done
	if test "$ompi_template_filemask" != ""; then
	    temp_mask=
	    for mask in $ompi_template_filemask
	    do
		temp_mask="*.$mask $temp_mask"
	    done
	    ompi_template_filemask=$temp_mask
	fi
    fi
fi
ompi_cv_cxx_template_repository="$ompi_template_dir $ompi_template_filemask"

if test "`echo $ompi_cv_cxx_template_repository`" = ""; then
    ompi_cv_cxx_template_repository="not used"
fi
cd ..
rm -rf conf_tmp_$$

# Clean up
unset ompi_file ompi_template_failed ompi_template_dir
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_template_repository" >&5
echo "${ECHO_T}$ompi_cv_cxx_template_repository" >&6; }

    if test "$ompi_cv_cxx_template_repository" = "not used" ; then
        OMPI_CXX_TEMPLATE_REPOSITORY=
    elif test "$ompi_cv_cxx_template_repository" = "templates not supported" ; then
        OMPI_CXX_TEMPLATE_REPOSITORY=
    else
        OMPI_CXX_TEMPLATE_REPOSITORY="$ompi_cv_cxx_template_repository"
    fi

    # config/cxx_find_template_parameters.m4

#
# Arguments: none
#
# Dependencies: None
#
# Get the C++ compiler template parameters.
#
# Adds to CXXFLAGS

{ echo "$as_me:$LINENO: checking for C++ compiler template parameters" >&5
echo $ECHO_N "checking for C++ compiler template parameters... $ECHO_C" >&6; }
if test "$BASECXX" = "KCC"; then
  new_flags="--one_instantiation_per_object"
  CXXFLAGS="$CXXFLAGS $new_flags"
else
  new_flags="none needed"
fi
{ echo "$as_me:$LINENO: result: $new_flags" >&5
echo "${ECHO_T}$new_flags" >&6; }

#
# Clean up
#
unset new_flags


    # see if the C++ compiler supports __builtin_expect
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    { echo "$as_me:$LINENO: checking if $CXX supports __builtin_expect" >&5
echo $ECHO_N "checking if $CXX supports __builtin_expect... $ECHO_C" >&6; }
if test "${ompi_cv_cxx_supports___builtin_expect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
void *ptr = (void*) 0;
           if (__builtin_expect (ptr != (void*) 0, 1)) return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_cxx_supports___builtin_expect="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_cxx_supports___builtin_expect="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports___builtin_expect" >&5
echo "${ECHO_T}$ompi_cv_cxx_supports___builtin_expect" >&6; }
    if test "$ompi_cv_cxx_supports___builtin_expect" = "yes" ; then
        have_builtin_expect=1
    else
        have_builtin_expect=0
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_HAVE_BUILTIN_EXPECT $have_builtin_expect
_ACEOF

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    # see if the C compiler supports __builtin_prefetch
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    { echo "$as_me:$LINENO: checking if $CXX supports __builtin_prefetch" >&5
echo $ECHO_N "checking if $CXX supports __builtin_prefetch... $ECHO_C" >&6; }
if test "${ompi_cv_cxx_supports___builtin_prefetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
int ptr;
           __builtin_prefetch(&ptr,0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_cxx_supports___builtin_prefetch="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_cxx_supports___builtin_prefetch="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports___builtin_prefetch" >&5
echo "${ECHO_T}$ompi_cv_cxx_supports___builtin_prefetch" >&6; }
    if test "$ompi_cv_cxx_supports___builtin_prefetch" = "yes" ; then
        have_builtin_prefetch=1
    else
        have_builtin_prefetch=0
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_HAVE_BUILTIN_PREFETCH $have_builtin_prefetch
_ACEOF

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    # If we are on HP-UX, ensure that we're using aCC
    case "$host" in
    *hpux*)
        if test "$BASECXX" = "CC"; then
            { echo "$as_me:$LINENO: WARNING: *** You will probably have problems compiling the MPI 2" >&5
echo "$as_me: WARNING: *** You will probably have problems compiling the MPI 2" >&2;}
            { echo "$as_me:$LINENO: WARNING: *** C++ bindings with the HP-UX CC compiler.  You should" >&5
echo "$as_me: WARNING: *** C++ bindings with the HP-UX CC compiler.  You should" >&2;}
            { echo "$as_me:$LINENO: WARNING: *** probably be using the aCC compiler.  Re-run configure" >&5
echo "$as_me: WARNING: *** probably be using the aCC compiler.  Re-run configure" >&2;}
            { echo "$as_me:$LINENO: WARNING: *** with the environment variable \"CXX=aCC\"." >&5
echo "$as_me: WARNING: *** with the environment variable \"CXX=aCC\"." >&2;}
        fi
        ;;
    esac

    # see if the compiler supports const_cast of 2-dimensional arrays
    ac_ext=cpp
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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports_2d_const_cast" >&5
echo "${ECHO_T}$ompi_cv_cxx_supports_2d_const_cast" >&6; }
    if test "$ompi_cv_cxx_supports_2d_const_cast" = "yes" ; then
        use_2d_const_cast=1
    else
        use_2d_const_cast=0
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_SUPPORTS_2D_CONST_CAST $use_2d_const_cast
_ACEOF

    unset use_2d_const_cast
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    # Note: gcc-imperonating compilers accept -O3
    if test "$WANT_DEBUG" = "1"; then
        OPTFLAGS=
    else
        if test "$GXX" = yes; then
            OPTFLAGS="-O3"
        else
            OPTFLAGS="-O"
        fi
    fi

    # config/ompi_check_optflags.m4


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

##################################
# Optimization flags
##################################

# If the user did not specify optimization flags, add some (the value
# from $OPTFLAGS)

co_arg=""$CXXFLAGS""
co_found=0
for co_word in $co_arg; do
    case $co_word in
    -g)    co_found=1 ;;
    -g1)   co_found=1 ;;
    -g2)   co_found=1 ;;
    -g3)   co_found=1 ;;
    +K0)   co_found=1 ;;
    +K1)   co_found=1 ;;
    +K2)   co_found=1 ;;
    +K3)   co_found=1 ;;
    +K4)   co_found=1 ;;
    +K5)   co_found=1 ;;
    -O)    co_found=1 ;;
    -O0)   co_found=1 ;;
    -O1)   co_found=1 ;;
    -O2)   co_found=1 ;;
    -O3)   co_found=1 ;;
    -O4)   co_found=1 ;;
    -O5)   co_found=1 ;;
    -O6)   co_found=1 ;;
    -O7)   co_found=1 ;;
    -O8)   co_found=1 ;;
    -O9)   co_found=1 ;;
    -xO)   co_found=1 ;;
    -xO0)  co_found=1 ;;
    -xO1)  co_found=1 ;;
    -xO2)  co_found=1 ;;
    -xO3)  co_found=1 ;;
    -xO4)  co_found=1 ;;
    -xO5)  co_found=1 ;;
    -xO6)  co_found=1 ;;
    -xO7)  co_found=1 ;;
    -xO8)  co_found=1 ;;
    -xO9)  co_found=1 ;;
    -fast) co_found=1 ;;
    esac
done

if test "$co_found" = "0"; then
    co_result="$OPTFLAGS $co_arg"
else
    co_result="$co_arg"
fi

# Clean up

unset co_found co_word co_arg

    { echo "$as_me:$LINENO: checking for C++ optimization flags" >&5
echo $ECHO_N "checking for C++ optimization flags... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: $co_result" >&5
echo "${ECHO_T}$co_result" >&6; }
    CXXFLAGS="$co_result"


# check for type sizes

ac_ext=cpp
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
typedef bool ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef bool ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef bool ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef bool ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef bool ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef bool ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_bool=$ac_lo;;
'') if test "$ac_cv_type_bool" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (bool)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_bool=0
   fi ;;
esac
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
   typedef bool ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_bool" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (bool)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_bool=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  cat >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_;

static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
static unsigned long int 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)
    return 1;
  if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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()
{
    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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"

rm -rf 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



depcc="$CCAS"   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_CCAS_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_CCAS_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/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       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_CCAS_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CCAS_dependencies_compiler_type=none
fi

fi
{ echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  am__fastdepCCAS_TRUE=
  am__fastdepCCAS_FALSE='#'
else
  am__fastdepCCAS_TRUE='#'
  am__fastdepCCAS_FALSE=
fi



{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
if test "${lt_cv_path_NM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
    done
    IFS="$lt_save_ifs"
  done
  : ${lt_cv_path_NM=no}
fi
fi
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
if test "$lt_cv_path_NM" != "no"; then
  NM="$lt_cv_path_NM"
else
  # Didn't find any BSD compatible name lister, look for dumpbin.
  if test -n "$ac_tool_prefix"; then
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$DUMPBIN"; then
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


    test -n "$DUMPBIN" && break
  done
fi
if test -z "$DUMPBIN"; then
  ac_ct_DUMPBIN=$DUMPBIN
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_DUMPBIN"; then
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


  test -n "$ac_ct_DUMPBIN" && break
done

  if test "x$ac_ct_DUMPBIN" = x; then
    DUMPBIN=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    DUMPBIN=$ac_ct_DUMPBIN
  fi
fi


  if test "$DUMPBIN" != ":"; then
    NM="$DUMPBIN"
  fi
fi
test -z "$NM" && NM=nm






{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
if test "${lt_cv_nm_interface+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:24555: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:24558: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:24561: output\"" >&5)
  cat conftest.out >&5
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    lt_cv_nm_interface="MS dumpbin"
  fi
  rm -f conftest*
fi
{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
echo "${ECHO_T}$lt_cv_nm_interface" >&6; }

{ echo "$as_me:$LINENO: checking for fgrep" >&5
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
if test "${ac_cv_path_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_path_FGREP="$GREP -F"
   else
     # Extract the first word of "fgrep" to use in msg output
if test -z "$FGREP"; then
set dummy fgrep; ac_prog_name=$2
if test "${ac_cv_path_FGREP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_path_FGREP_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in fgrep; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
    # Check for GNU ac_path_FGREP and select it if it is found.
  # Check for GNU $ac_path_FGREP
case `"$ac_path_FGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo 'FGREP' >> "conftest.nl"
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_FGREP="$ac_path_FGREP"
      ac_path_FGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_FGREP_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

FGREP="$ac_cv_path_FGREP"
if test -z "$FGREP"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_FGREP=$FGREP
fi


   fi
fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"







    # OS X Leopard ld bus errors if you have "-g" in the link line
    # with our assembly (!).  So remove it from CCASFLAGS if it's
    # there (and we're on Leopard).
    { echo "$as_me:$LINENO: checking if need to remove -g from CCASFLAGS" >&5
echo $ECHO_N "checking if need to remove -g from CCASFLAGS... $ECHO_C" >&6; }
    case "$host" in
        *-apple-darwin9.*)
            for ompi_config_asm_flag in $CCASFLAGS; do
                if test "$ompi_config_asm_flag" != "-g"; then
                    ompi_config_asm_flags_new="$ompi_config_asm_flags_new $ompi_config_asm_flag"
                fi
            done
            CCASFLAGS="$ompi_config_asm_flags_new"
            { echo "$as_me:$LINENO: result: OS X Leopard - yes ($CCASFLAGS)" >&5
echo "${ECHO_T}OS X Leopard - yes ($CCASFLAGS)" >&6; }
            ;;
        *)
            { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
            ;;
    esac
    unset ompi_config_asm_flags_new ompi_config_asm_flag

    { 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 was given.
if test "${enable_smp_locks+set}" = set; then
  enableval=$enable_smp_locks;
fi

    if test "$enable_smp_locks" != "no"; then
        { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
        want_smp_locks=1
    else
        { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
        want_smp_locks=0
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_SMP_LOCKS $want_smp_locks
_ACEOF


    if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
        ompi_cv_asm_arch="WINDOWS"
    else

    { echo "$as_me:$LINENO: checking if .proc/endp is needed" >&5
echo $ECHO_N "checking if .proc/endp is needed... $ECHO_C" >&6; }
if test "${ompi_cv_asm_need_proc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ompi_cv_asm_need_proc="no"
                    cat >conftest.s <<EOF

     .proc mysym
mysym:
     .endp 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_need_proc="yes"
else
  # save compiler output and failed program
  cat conftest.out >&5
  echo "configure: failed program was:" >&5
  cat conftest.s >&5
  :
fi
rm -rf conftest*
unset ompi_assemble

                    rm -f conftest.out
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_asm_need_proc" >&5
echo "${ECHO_T}$ompi_cv_asm_need_proc" >&6; }

    if test "$ompi_cv_asm_need_proc" = "yes" ; then
       ompi_cv_asm_proc=".proc"
       ompi_cv_asm_endproc=".endp"
    else
       ompi_cv_asm_proc="#"
       ompi_cv_asm_endproc="#"
    fi


    { echo "$as_me:$LINENO: checking directive for setting text section" >&5
echo $ECHO_N "checking directive for setting text section... $ECHO_C" >&6; }
    ompi_cv_asm_text=""
    if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
        # text section will be brought in with the rest of
        # header for MS - leave blank for now
        ompi_cv_asm_text=""
    else
        case $host in
            *-aix*)
                ompi_cv_asm_text=".csect .text[PR]"
            ;;
            *)
                ompi_cv_asm_text=".text"
            ;;
        esac
    fi
    { echo "$as_me:$LINENO: result: $ompi_cv_asm_text" >&5
echo "${ECHO_T}$ompi_cv_asm_text" >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_TEXT "$ompi_cv_asm_text"
_ACEOF

    OMPI_ASM_TEXT="$ompi_cv_asm_text"



    { echo "$as_me:$LINENO: checking directive for exporting symbols" >&5
echo $ECHO_N "checking directive for exporting symbols... $ECHO_C" >&6; }
    ompi_cv_asm_global=""
    if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
        ompi_cv_asm_global="PUBLIC"
    else
        case $host in
            *)
                ompi_cv_asm_global=".globl"
            ;;
        esac
    fi
    { echo "$as_me:$LINENO: result: $ompi_cv_asm_global" >&5
echo "${ECHO_T}$ompi_cv_asm_global" >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_GLOBAL "$ompi_cv_asm_global"
_ACEOF

    OMPI_ASM_GLOBAL="$ompi_cv_asm_global"



    # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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:24859: $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:24866: \$? = $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:24879: 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 -rf 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()
{
    gsym_test_func();
    return 0;
}
EOF
        cat >conftest.s <<EOF

$ompi_cv_asm_text
$ompi_cv_asm_proc ${sym}gsym_test_func
$ompi_cv_asm_global ${sym}gsym_test_func
${sym}gsym_test_func${ompi_cv_asm_label_suffix}
$ompi_cv_asm_endproc ${sym}gsym_test_func

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 -rf conftest*
unset ompi_assemble

        if test "$asm_result" = "1" ; then
            ompi_cv_asm_gsym="$sym"
            break
        fi
    done
    rm -rf 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 -rf 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 -rf 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 -rf 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 -rf conftest*
unset ompi_assemble

    # test for both 16 and 10 (decimal and hex notations)
    echo "configure: .align test address offset is $ompi_asm_addr" >&5
    if test "$ompi_asm_addr" = "16" -o "$ompi_asm_addr" = "10" ; then
       ompi_cv_asm_align_log="yes"
    else
        ompi_cv_asm_align_log="no"
    fi
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_asm_align_log" >&5
echo "${ECHO_T}$ompi_cv_asm_align_log" >&6; }

    if test "$ompi_cv_asm_align_log" = "yes" -o "$ompi_cv_asm_align_log" = "1" ; then
        ompi_asm_align_log_result=1
    else
        ompi_asm_align_log_result=0
    fi


cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_ALIGN_LOG $asm_align_log_result
_ACEOF


    unset omp_asm_addr asm_result


        # find our architecture for purposes of assembly stuff
        ompi_cv_asm_arch="UNSUPPORTED"
        OMPI_GCC_INLINE_ASSIGN=""
        OMPI_ASM_SUPPORT_64BIT=0
        case "${host}" in
        i?86-*|x86_64*)
            if test "$ac_cv_sizeof_long" = "4" ; then
                ompi_cv_asm_arch="IA32"
            else
                ompi_cv_asm_arch="AMD64"
            fi
            OMPI_ASM_SUPPORT_64BIT=1
            OMPI_GCC_INLINE_ASSIGN='"movl $0, %0" : "=&r"(ret)'
            ;;

        ia64-*)
            ompi_cv_asm_arch="IA64"
            OMPI_ASM_SUPPORT_64BIT=1
            OMPI_GCC_INLINE_ASSIGN='"mov %0=r0\n;;\n" : "=&r"(ret)'
            ;;

        alpha-*|alphaev[4-8]-*|alphaev56-*|alphaev6[78]-*)
            ompi_cv_asm_arch="ALPHA"
            OMPI_ASM_SUPPORT_64BIT=1
            OMPI_GCC_INLINE_ASSIGN='"bis $31,$31,%0" : "=&r"(ret)'
            ;;

        mips-*|mips64-*)
            # Should really find some way to make sure that we are on
            # a MIPS III machine (r4000 and later)
            ompi_cv_asm_arch="MIPS"
            OMPI_ASM_SUPPORT_64BIT=1
            OMPI_GCC_INLINE_ASSIGN='"or %0,$0,$0" : "=&r"(ret)'
            ;;

        powerpc-*|powerpc64-*)

    { echo "$as_me:$LINENO: checking if PowerPC registers have r prefix" >&5
echo $ECHO_N "checking if PowerPC registers have r prefix... $ECHO_C" >&6; }
    cat >conftest.s <<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 -rf conftest*
unset ompi_assemble

fi
rm -rf 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 -rf 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 -rf 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  asm_result="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	asm_result="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  asm_result="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	asm_result="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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=cpp
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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  asm_result="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	asm_result="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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=cpp
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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  asm_result="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	asm_result="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext

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

    if test "$asm_result" = "yes" ; then
        OMPI_CXX_DEC_INLINE_ASSEMBLY=1
    else
        OMPI_CXX_DEC_INLINE_ASSEMBLY=0
    fi


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

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    unset OMPI_CXX_DEC_INLINE_ASSEMBLY asm_result



    { echo "$as_me:$LINENO: checking if $CXX supports XLC inline assembly" >&5
echo $ECHO_N "checking if $CXX supports XLC inline assembly... $ECHO_C" >&6; }

    OMPI_CXX_XLC_INLINE_ASSEMBLY=0
    asm_result="no"
    if test "$CXX" = "xlC" -o "$CXX" = "xlc++" ; then
        OMPI_CXX_XLC_INLINE_ASSEMBLY=1
        asm_result="yes"
    fi

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

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


    unset OMPI_CXX_XLC_INLINE_ASSEMBLY


         # format:
         #   config_file-text-global-label_suffix-gsym-lsym-type-size-align_log-ppc_r_reg-64_bit-gnu_stack
         asm_format="${ompi_asm_arch_config}"
         asm_format="${asm_format}-${ompi_cv_asm_text}-${ompi_cv_asm_global}"
         asm_format="${asm_format}-${ompi_cv_asm_label_suffix}-${ompi_cv_asm_gsym}"
         asm_format="${asm_format}-${ompi_cv_asm_lsym}"
         asm_format="${asm_format}-${ompi_cv_asm_type}-${ompi_asm_size}"
         asm_format="${asm_format}-${ompi_asm_align_log_result}"
         if test "$ompi_cv_asm_arch" = "POWERPC32" -o "$ompi_cv_asm_arch" = "POWERPC64" ; then
             asm_format="${asm_format}-${ompi_cv_asm_powerpc_r_reg}"
         else
             asm_format="${asm_format}-1"
         fi
         asm_format="${asm_format}-${OMPI_ASM_SUPPORT_64BIT}"
         ompi_cv_asm_format="${asm_format}-${ompi_cv_asm_gnu_stack}"
         # For the Makefile, need to escape the $ as $$.  Don't display
         # this version, but make sure the Makefile gives the right thing
         # when regenerating the files because the base has been touched.
         OMPI_ASSEMBLY_FORMAT=`echo "$ompi_cv_asm_format" | sed -e 's/\\\$/\\\$\\\$/'`

        { echo "$as_me:$LINENO: checking for assembly format" >&5
echo $ECHO_N "checking for assembly format... $ECHO_C" >&6; }
        { echo "$as_me:$LINENO: result: $ompi_cv_asm_format" >&5
echo "${ECHO_T}$ompi_cv_asm_format" >&6; }

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


    fi # if cv_c_compiler_vendor = microsoft

    result="OMPI_$ompi_cv_asm_arch"
    OMPI_ASSEMBLY_ARCH="$ompi_cv_asm_arch"
    { echo "$as_me:$LINENO: checking for asssembly architecture" >&5
echo $ECHO_N "checking for asssembly architecture... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: $ompi_cv_asm_arch" >&5
echo "${ECHO_T}$ompi_cv_asm_arch" >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_ASSEMBLY_ARCH $result
_ACEOF






if test "$ompi_cv_asm_arch" != "WINDOWS" ; then
    # Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_PERL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$PERL"; then
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 -rf 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 -rf 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_F77" = x; then
    F77=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    F77=$ac_ct_F77
  fi
fi


# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
rm -f a.out

# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
      program main
#ifndef __GNUC__
       choke me
#endif

      end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
if test "$ac_test_FFLAGS" = set; then
  FFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_f77_g = yes; then
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-g -O2"
  else
    FFLAGS="-g"
  fi
else
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    FFLAGS="-O2"
  else
    FFLAGS=
  fi
fi

G77=`test $ac_compiler_gnu = yes && echo yes`
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

FFLAGS="$ompi_fflags_save"
if test -z "$F77"; then
    { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&5
echo "$as_me: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&2;}
    OMPI_WANT_F77_BINDINGS=0
    OMPI_F77="none"
    BASEF77="none"
    OMPI_F77_ABSOLUTE="none"
else
    OMPI_F77="$F77"
    set dummy $OMPI_F77
    OMPI_F77_ARGV0=$2
    BASEF77="`basename $OMPI_F77_ARGV0`"
    OMPI_F77_ABSOLUTE="`which $OMPI_F77_ARGV0`"

    if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
        { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled by user" >&5
echo "$as_me: WARNING: *** Fortran 77 bindings disabled by user" >&2;}
        OMPI_WANT_F77_BINDINGS=0
    else
        OMPI_WANT_F77_BINDINGS=1
    fi
fi

# make sure the compiler actually works, if not cross-compiling
# Don't just use the AC macro so that we can have a pretty
# message.
if test $OMPI_WANT_F77_BINDINGS -eq 1; then


    { echo "$as_me:$LINENO: checking if Fortran 77 compiler works" >&5
echo $ECHO_N "checking if Fortran 77 compiler works... $ECHO_C" >&6; }
if test "${ompi_cv_Fortran_77_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_Fortran_77_works="links (cross compiling)"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_Fortran_77_works="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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


# now make sure we know our linking convention...



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

    { echo "$as_me:$LINENO: checking $F77 external symbol convention" >&5
echo $ECHO_N "checking $F77 external symbol convention... $ECHO_C" >&6; }
if test "${ompi_cv_f77_external_symbol+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$F77" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then
             ompi_cv_f77_external_symbol="skipped"
         else
             cat >conftest.f <<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:26748: $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:26755: \$? = $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:26777: 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 -rf conftest.*


# Make sure we can link with C code...
if test $OMPI_WANT_F77_BINDINGS -eq 1; then



  { echo "$as_me:$LINENO: checking if C and Fortran 77 are link compatible" >&5
echo $ECHO_N "checking if C and Fortran 77 are link compatible... $ECHO_C" >&6; }
if test "${ompi_cv_c_link_Fortran_77+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else


    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo testfunc | grep _ >/dev/null 2>&1 ; then
            testfunc_name=testfunc__
        else
            testfunc_name=testfunc_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        testfunc_name=testfunc_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        testfunc_name=testfunc
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        testfunc_name=testfunc
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        testfunc_name=TESTFUNC
    else
        { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
   { (exit 1); exit 1; }; }
    fi


     # Write out C part
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     rm -f conftest_c.$ac_ext
      cat > conftest_c.$ac_ext << EOF
int $testfunc_name(int a);
int $testfunc_name(int a) { return a; }
EOF

     # Now compile both parts

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26901: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:26908: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

        ompi_lang_link_with_c_libs="$LIBS"
        LIBS="conftest_c.o $LIBS"
        cat >conftest.$ac_ext <<_ACEOF
      program main

       external testfunc
       call testfunc(1)

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_c_link_Fortran_77="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_c_link_Fortran_77="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
        LIBS="$ompi_lang_link_with_c_libs"
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    unset ompi_status
    ompi_cv_c_link_Fortran_77="no"
fi
     rm -f conftest_c.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

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

  if test "$ompi_cv_c_link_Fortran_77" = "yes"; then
  :
else
  cat <<EOF
**********************************************************************
* It appears that your Fortran 77 compiler is unable to link against
* object files created by your C compiler.  This generally indicates
* either a conflict between the options specified in CFLAGS and FFLAGS
* or a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compilers and what error resulted when the commands were executed) is
* available in the config.log file in this directory.
**********************************************************************
EOF
     { { echo "$as_me:$LINENO: error: C and Fortran 77 compilers are not link compatible.  Can not continue." >&5
echo "$as_me: error: C and Fortran 77 compilers are not link compatible.  Can not continue." >&2;}
   { (exit 1); exit 1; }; }
fi


fi



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


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

 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
  OMPI_WANT_F77_BINDINGS_TRUE=
  OMPI_WANT_F77_BINDINGS_FALSE='#'
else
  OMPI_WANT_F77_BINDINGS_TRUE='#'
  OMPI_WANT_F77_BINDINGS_FALSE=
fi




# This allows us to mark bogus types, but still have them be a valid
# [sentinel] value


cat >>confdefs.h <<\_ACEOF
#define ompi_fortran_bogus_type_t int
_ACEOF


# We want to set the #define's for all of these, so invoke the macros
# regardless of whether we have F77 support or not.


    ofc_expected_size=-1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then



    # Determine FORTRAN datatype size.
    # First arg is type, 2nd arg is config var to define
    { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL... $ECHO_C" >&6; }
if test "${ompi_cv_f77_have_LOGICAL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
C
        program main
        LOGICAL bogus_variable
        end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:27205: $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:27212: \$? = $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:27222: $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:27229: \$? = $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:27260: ./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:27267: \$? = $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:27280: 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 -rf conftest*
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICAL" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICAL" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_LOGICAL

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&2;}
            { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL" >&5
echo $ECHO_N "checking for C type corresponding to LOGICAL... $ECHO_C" >&6; }
if test "${ompi_cv_find_type_LOGICAL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then
                           oft_real_type="char"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
                           oft_real_type="int32_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi

         if test -z "$oft_real_type"; then
  ompi_cv_find_type_LOGICAL="not found"
else
  ompi_cv_find_type_LOGICAL="$oft_real_type"
fi

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

    if test "$ompi_cv_find_type_LOGICAL" = "not found"; then
  { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
fi

fi


    if test "$ompi_cv_find_type_LOGICAL" = "not found" ; then
        ofc_c_type=
    else
        ofc_c_type=$ompi_cv_find_type_LOGICAL
    fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

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



    { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL" >&5
echo $ECHO_N "checking alignment of Fortran LOGICAL... $ECHO_C" >&6; }
if test "${ompi_cv_f77_alignment_LOGICAL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | grep _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
   { (exit 1); exit 1; }; }
    fi

        # Fortran module
        cat > conftestf.f <<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:27485: $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:27492: \$? = $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:27502: $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:27509: \$? = $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:27540: ./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:27547: \$? = $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 -rf conftest*
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICAL" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICAL" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICAL

            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

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


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


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

    if test "char, int32_t, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_logical_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_LOGICAL_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_LOGICAL=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_LOGICAL=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_LOGICAL=$ofc_type_alignment

    # Clean up
    unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
    unset ofc_expected_size


    ofc_expected_size=-1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then



    # Determine FORTRAN datatype size.
    # First arg is type, 2nd arg is config var to define
    { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER... $ECHO_C" >&6; }
if test "${ompi_cv_f77_have_INTEGER+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
C
        program main
        INTEGER bogus_variable
        end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:27781: $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:27788: \$? = $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:27798: $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:27805: \$? = $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:27836: ./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:27843: \$? = $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:27856: 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 -rf conftest*
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGER" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGER" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_INTEGER

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&2;}
            { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&2;}
            ofc_have_type=0
        else
            # Look for a corresponding C type (will abort by itself if the
            # type isn't found and we need it)
            ofc_c_type=



    oft_abort_on_fail="yes"
    oft_target_size="$ofc_type_size"

    { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER" >&5
echo $ECHO_N "checking for C type corresponding to INTEGER... $ECHO_C" >&6; }
if test "${ompi_cv_find_type_INTEGER+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
   # Loop over all the types handed to us
         oft_real_type=
         if test "$oft_target_size" != ""; then
  if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
                           oft_real_type="int32_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
                           oft_real_type="int"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
                           oft_real_type="int64_t"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
                           oft_real_type="long long"
                       fi
                   fi
if test -z "$oft_real_type"; then
                       if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
                           oft_real_type="long"
                       fi
                   fi

fi

         if test -z "$oft_real_type"; then
  ompi_cv_find_type_INTEGER="not found"
else
  ompi_cv_find_type_INTEGER="$oft_real_type"
fi

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

    if test "$ompi_cv_find_type_INTEGER" = "not found"; then
  { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
fi

fi


    if test "$ompi_cv_find_type_INTEGER" = "not found" ; then
        ofc_c_type=
    else
        ofc_c_type=$ompi_cv_find_type_INTEGER
    fi

    unset oft_real_type oft_target_size


            if test -z "$ofc_c_type" ; then
                ofc_have_type=0
            fi

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



    { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER" >&5
echo $ECHO_N "checking alignment of Fortran INTEGER... $ECHO_C" >&6; }
if test "${ompi_cv_f77_alignment_INTEGER+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
        # so the general rule is that if there is an _ in the function
        # name, then there are two trailing underscores.  Otherwise,
        # there is only one trailing underscore.  Any idea how to do
        # that with m4_translit?
        if echo align | grep _ >/dev/null 2>&1 ; then
            ompi_ac_align_fn=align__
        else
            ompi_ac_align_fn=align_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_align_fn=align_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_align_fn=align
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_align_fn=ALIGN
    else
        { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
   { (exit 1); exit 1; }; }
    fi

        # Fortran module
        cat > conftestf.f <<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:28056: $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:28063: \$? = $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:28073: $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:28080: \$? = $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:28111: ./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:28118: \$? = $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 -rf conftest*
fi
{ echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGER" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGER" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGER

            fi
        fi
    fi

    # We always need these defines -- even if we don't have a given type,
    # there are some places in the code where we have to have *something*.

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


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


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

    if test "int32_t, int, int64_t, long long, long" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer_t $ofc_c_type
_ACEOF

    fi

    # Save some in shell variables for later use (e.g., need
    # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
    OMPI_FORTRAN_INTEGER_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_INTEGER=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_INTEGER=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_INTEGER=$ofc_type_alignment

    # Clean up
    unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
    unset ofc_expected_size


    ofc_expected_size=1
    ofc_have_type=0
    ofc_type_size=$ac_cv_sizeof_int
    ofc_type_alignment=$ac_cv_sizeof_int
    ofc_c_type=ompi_fortran_bogus_type_t

    # Only check if we actually want the F77 bindings / have a F77
    # compiler.  This allows us to call this macro, even if there is
    # no F77 compiler.  If we have no f77 compiler, then just set a
    # bunch of defaults.
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then



    # Determine FORTRAN datatype size.
    # First arg is type, 2nd arg is config var to define
    { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*1... $ECHO_C" >&6; }
if test "${ompi_cv_f77_have_INTEGERp1+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu

         cat >conftest.$ac_ext <<_ACEOF
C
        program main
        INTEGER*1 bogus_variable
        end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:28352: $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:28359: \$? = $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:28369: $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:28376: \$? = $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:28407: ./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:28414: \$? = $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:28427: 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 -rf 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:28637: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:28644: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28654: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:28661: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    happy="yes"
else
    unset ompi_status
    happy="no"
fi
else
    unset ompi_status
    happy="no"
fi

        if test "$happy" = "no" ; then
            { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*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:28692: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:28699: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:28933: $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:28940: \$? = $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:28950: $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:28957: \$? = $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:28988: ./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:28995: \$? = $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:29008: 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 -rf 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:29218: $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:29225: \$? = $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:29235: $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:29242: \$? = $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:29273: ./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:29280: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:29514: $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:29521: \$? = $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:29531: $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:29538: \$? = $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:29569: ./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:29576: \$? = $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:29589: 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 -rf 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:29789: $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:29796: \$? = $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:29806: $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:29813: \$? = $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:29844: ./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:29851: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:30085: $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:30092: \$? = $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:30102: $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:30109: \$? = $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:30140: ./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:30147: \$? = $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:30160: 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 -rf 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:30355: $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:30362: \$? = $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:30372: $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:30379: \$? = $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:30410: ./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:30417: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:30651: $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:30658: \$? = $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:30668: $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:30675: \$? = $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:30706: ./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:30713: \$? = $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:30726: 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 -rf 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:30921: $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:30928: \$? = $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:30938: $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:30945: \$? = $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:30976: ./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:30983: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:31218: $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:31225: \$? = $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:31235: $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:31242: \$? = $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:31273: ./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:31280: \$? = $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:31293: 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 -rf 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:31483: $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:31490: \$? = $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:31500: $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:31507: \$? = $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:31538: ./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:31545: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:31779: $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:31786: \$? = $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:31796: $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:31803: \$? = $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:31834: ./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:31841: \$? = $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:31854: 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 -rf 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:32044: $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:32051: \$? = $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:32061: $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:32068: \$? = $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:32099: ./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:32106: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:32340: $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:32347: \$? = $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:32357: $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:32364: \$? = $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:32395: ./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:32402: \$? = $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:32415: 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 -rf 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:32605: $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:32612: \$? = $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:32622: $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:32629: \$? = $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:32660: ./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:32667: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:32901: $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:32908: \$? = $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:32918: $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:32925: \$? = $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:32956: ./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:32963: \$? = $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:32976: 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 -rf 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:33166: $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:33173: \$? = $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:33183: $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:33190: \$? = $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:33221: ./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:33228: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:33462: $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:33469: \$? = $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:33479: $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:33486: \$? = $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:33517: ./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:33524: \$? = $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:33537: 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 -rf 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:33727: $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:33734: \$? = $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:33744: $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:33751: \$? = $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:33782: ./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:33789: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:34024: $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:34031: \$? = $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:34041: $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:34048: \$? = $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:34079: ./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:34086: \$? = $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:34099: 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 -rf 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:34224: $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:34231: \$? = $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:34241: $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:34248: \$? = $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:34279: ./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:34286: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:34532: $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:34539: \$? = $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:34549: $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:34556: \$? = $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:34587: ./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:34594: \$? = $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:34607: 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 -rf 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:34732: $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:34739: \$? = $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:34749: $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:34756: \$? = $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:34787: ./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:34794: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:35028: $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:35035: \$? = $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:35045: $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:35052: \$? = $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:35083: ./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:35090: \$? = $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:35103: 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 -rf 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:35228: $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:35235: \$? = $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:35245: $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:35252: \$? = $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:35283: ./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:35290: \$? = $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 -rf 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:35524: $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:35531: \$? = $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:35541: $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:35548: \$? = $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:35579: ./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:35586: \$? = $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:35599: 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 -rf 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:35724: $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:35731: \$? = $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:35741: $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:35748: \$? = $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:35779: ./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:35786: \$? = $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 -rf 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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)
{
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);

    if( SIZEOF_INT >= sizeof(ompi_fortran_logical_t) ) {
        fprintf(f, "%d\n", (int)*logical);
    } else if (SIZEOF_LONG >= sizeof(ompi_fortran_logical_t) ) {
	fprintf(f, "%ld\n", (long) *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:36074: $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:36081: \$? = $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:36091: $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:36098: \$? = $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 Fortran .TRUE..  Aborting." >&5
echo "$as_me: error: Could not determine value of Fortran .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:36129: ./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:36136: \$? = $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
    rm -rf 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:36258: $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:36265: \$? = $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:36275: $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:36282: \$? = $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:36311: ./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:36318: \$? = $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
    rm -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_FC" = x; then
    FC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    FC=$ac_ct_FC
  fi
fi


# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
rm -f a.out

# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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"
        set dummy $OMPI_F90
        OMPI_F90_ARGV0=$2
        BASEF90="`basename $OMPI_F90_ARGV0`"
        OMPI_F90_ABSOLUTE="`which $OMPI_F90_ARGV0`"
    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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

         if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_Fortran_works="links (cross compiling)"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_Fortran_works="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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:36866: $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:36873: \$? = $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:36883: $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:36890: \$? = $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:36900: $OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LDFLAGS $LIBS" >&5
$OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $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:36907: \$? = $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:36934: 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:36947: 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
rm -rf 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


# BWB - FIX ME - remove once everyone updates to LT 2.0.
#
if test $OMPI_WANT_F90_BINDINGS -eq 1; then
  if test $BASEF77 != $BASEF90; then
           lt_ver=`grep '^VERSION' $srcdir/config/ltmain.sh | cut -f2 -d= | cut -f1 -d'.'`
           if test $lt_ver -lt 2 ; then
               { { echo "$as_me:$LINENO: error: You appear to be trying to build the Fortran 90
 layer with Libtool 1.5.x or earlier and a Fortran 77 / Fortran 90 compiler
 combination that will not work with this configuration.  You must either
 use a different Fortran 77 / Fortran 90 compiler (one where it is the same
 compiler for both languages), upgrade to Libtool 2.x, or disable the
 Fortran 90 bindings." >&5
echo "$as_me: error: You appear to be trying to build the Fortran 90
 layer with Libtool 1.5.x or earlier and a Fortran 77 / Fortran 90 compiler
 combination that will not work with this configuration.  You must either
 use a different Fortran 77 / Fortran 90 compiler (one where it is the same
 compiler for both languages), upgrade to Libtool 2.x, or disable the
 Fortran 90 bindings." >&2;}
   { (exit 1); exit 1; }; }
           fi
       fi

fi


# OS X before 10.3 (deployment target) does not allow undefined common
# symbols in shared libraries.  Because we can't figure out how to
# implement MPI_STATUSES_IGNORE and friends wihtout common symbols, on
# OS X we can't build the F90 bindings as a shared library.
{ echo "$as_me:$LINENO: checking for extra arguments to build a shard library" >&5
echo $ECHO_N "checking for extra arguments to build a shard library... $ECHO_C" >&6; }
case "$host" in
    *apple-darwin*)
        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
            { echo "$as_me:$LINENO: result: impossible -- -static" >&5
echo "${ECHO_T}impossible -- -static" >&6; }
            OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-static"
        else
            case ${MACOSX_DEPLOYMENT_TARGET} in
            10.012)
                { echo "$as_me:$LINENO: result: impossible -- -static" >&5
echo "${ECHO_T}impossible -- -static" >&6; }
                OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-static"
                ;;
            10.*)
                { echo "$as_me:$LINENO: result: -Wl,-single_module" >&5
echo "${ECHO_T}-Wl,-single_module" >&6; }
                OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-Wl,-single_module"
            esac
        fi
    ;;
    *)
        { echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6; }
        OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS=""
    ;;
esac


# 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

        ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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_fcflags_srcext_save=$ac_fcflags_srcext
ac_fcflags_srcext=
ac_cv_fc_srcext_f=unknown
for ac_flag in none -qsuffix=f=f -Tf; do
  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
  cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest.$ac_objext conftest.f
ac_fcflags_srcext=$ac_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
  ac_fc_srcext=f
  if test "x$ac_cv_fc_srcext_f" = xnone; then
    ac_fcflags_srcext=""
    FCFLAGS_f=""
  else
    ac_fcflags_srcext=$ac_cv_fc_srcext_f
    FCFLAGS_f=$ac_cv_fc_srcext_f
  fi


fi
ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

        ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 .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_fcflags_srcext_save=$ac_fcflags_srcext
ac_fcflags_srcext=
ac_cv_fc_srcext_f90=unknown
for ac_flag in none -qsuffix=f=f90 -Tf; do
  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
  cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest.$ac_objext conftest.f90
ac_fcflags_srcext=$ac_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
  ac_fc_srcext=f90
  if test "x$ac_cv_fc_srcext_f90" = xnone; then
    ac_fcflags_srcext=""
    FCFLAGS_f90=""
  else
    ac_fcflags_srcext=$ac_cv_fc_srcext_f90
    FCFLAGS_f90=$ac_cv_fc_srcext_f90
  fi


fi
ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

        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:37264: $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:37271: \$? = $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:37310: $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:37317: \$? = $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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:37528: $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:37535: \$? = $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:37545: $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:37552: \$? = $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:37573: 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:37600: ./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:37607: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:37892: $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:37899: \$? = $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:37909: $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:37916: \$? = $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:37937: 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:37964: ./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:37971: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:38254: $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:38261: \$? = $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:38271: $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:38278: \$? = $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:38299: 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:38326: ./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:38333: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:38616: $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:38623: \$? = $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:38633: $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:38640: \$? = $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:38661: 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:38688: ./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:38695: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:38978: $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:38985: \$? = $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:38995: $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:39002: \$? = $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:39023: 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:39050: ./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:39057: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:39340: $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:39347: \$? = $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:39357: $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:39364: \$? = $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:39385: 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:39412: ./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:39419: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:39702: $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:39709: \$? = $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:39719: $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:39726: \$? = $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:39747: 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:39774: ./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:39781: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:40066: $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:40073: \$? = $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:40083: $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:40090: \$? = $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:40111: 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:40138: ./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:40145: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:40428: $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:40435: \$? = $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:40445: $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: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
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:40473: 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:40500: ./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:40507: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:40790: $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:40797: \$? = $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:40807: $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:40814: \$? = $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:40835: 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:40862: ./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:40869: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:41152: $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:41159: \$? = $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:41169: $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:41176: \$? = $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:41197: 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:41224: ./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:41231: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:41514: $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:41521: \$? = $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:41531: $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:41538: \$? = $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:41559: 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:41586: ./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:41593: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:41878: $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:41885: \$? = $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:41895: $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:41902: \$? = $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:41923: 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:41950: ./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:41957: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:42240: $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:42247: \$? = $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:42257: $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:42264: \$? = $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:42285: 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:42312: ./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:42319: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:42602: $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:42609: \$? = $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:42619: $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:42626: \$? = $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:42647: 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:42674: ./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:42681: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:42964: $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:42971: \$? = $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:42981: $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:42988: \$? = $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:43009: 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:43036: ./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:43043: \$? = $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 -rf 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=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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:43326: $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:43333: \$? = $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:43343: $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:43350: \$? = $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:43371: 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:43398: ./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:43405: \$? = $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 -rf 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:43551: $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:43558: \$? = $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:43575: 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:43602: ./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:43609: \$? = $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 -rf 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:43659: $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:43666: \$? = $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:43683: 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:43710: ./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:43717: \$? = $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 -rf 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:43767: $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:43774: \$? = $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:43791: 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:43818: ./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:43825: \$? = $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 -rf 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:43875: $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:43882: \$? = $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:43899: 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:43926: ./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:43933: \$? = $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 -rf 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:43991: $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:43998: \$? = $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:44015: 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:44042: ./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:44049: \$? = $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 -rf 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:44099: $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:44106: \$? = $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:44123: 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:44150: ./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:44157: \$? = $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 -rf 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:44207: $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:44214: \$? = $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:44231: 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:44258: ./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:44265: \$? = $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 -rf 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:44315: $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:44322: \$? = $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:44339: 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:44366: ./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:44373: \$? = $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 -rf 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:44430: $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:44437: \$? = $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:44454: 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:44481: ./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:44488: \$? = $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 -rf 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, we kill variables containing newlines.
# 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.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}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 "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     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 "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  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 \
    stdarg.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 \
    crt_externs.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { as_var=$as_ac_Header; eval "test \"\${$as_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.  */
#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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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, we kill variables containing newlines.
# 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.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}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 "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     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 "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  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
typedef pid_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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; }

# The cast to long int 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.
{ 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 "$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
   typedef pid_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef pid_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
   typedef pid_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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
   typedef pid_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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
   typedef pid_t ac__type_sizeof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_pid_t=$ac_lo;;
'') if test "$ac_cv_type_pid_t" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (pid_t)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_pid_t=0
   fi ;;
esac
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
   typedef pid_t ac__type_sizeof_;
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
	return 1;
      fprintf (f, "%lu\n", i);
    }
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 )
if test "$ac_cv_type_pid_t" = yes; then
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (pid_t)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
   else
     ac_cv_sizeof_pid_t=0
   fi
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
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>

typedef socklen_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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

typedef struct sockaddr_in ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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


# Do we have IPv6 support?
{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
if test "${ac_cv_type_struct_sockaddr_in6+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

typedef struct sockaddr_in6 ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_type_struct_sockaddr_in6=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_sockaddr_in6=no
fi

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

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN6 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core 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, we kill variables containing newlines.
# 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.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}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 "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     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 "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char openpty ();
int
main ()
{
return openpty ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char socket ();
int
main ()
{
return socket ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return sched_yield ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return sched_yield ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return dirname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return dirname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return ceil ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return ceil ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 posix_memalign strsignal _NSGetEnviron
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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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
  (void) va_copy;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  (void) __va_copy;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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__
  (void) __func__;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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, we kill variables containing newlines.
# 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.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}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 "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     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 "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  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


#
# Check for MPI_Aint type.  Yes, there are platforms where
# sizeof(void*) != sizeof(long) (64 bit Windows, apparently).
#
if test $ac_cv_type_ptrdiff_t = yes ; then
    ompi_ptrdiff_t="ptrdiff_t"
elif test $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long ; then
    ompi_ptrdiff_t="long"
elif test $ac_cv_type_long_long = yes -a $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long_long ; then
    ompi_ptrdiff_t="long long"
else
    { { echo "$as_me:$LINENO: error: Could not find datatype to emulate ptrdiff_t.  Cannot continue" >&5
echo "$as_me: error: Could not find datatype to emulate ptrdiff_t.  Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_PTRDIFF_TYPE $ompi_ptrdiff_t
_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  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 bogus endian macros
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
short int 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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.  */
$ac_includes_default
int
main ()
{

  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long int l;
    char c[sizeof (long int)];
  } u;
  u.l = 1;
  return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi

rm -f core 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




# Check whether --with-broken-qsort was given.
if test "${with_broken_qsort+set}" = set; then
  withval=$with_broken_qsort;
fi

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

  if test "$with_broken_qsort" = "yes"; then
    result="yes"
    define_result=1
  else
    result="no"
    define_result=0
  fi
  { echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }

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



{ echo "$as_me:$LINENO: checking if word-sized integers must be word-size aligned" >&5
echo $ECHO_N "checking if word-sized integers must be word-size aligned... $ECHO_C" >&6; }
if test "${ompi_cv_c_word_size_align+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

     if test "$cross_compiling" = yes; then
  ompi_cv_c_word_size_align=yes
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>
int
main ()
{
    long data[2] = {0, 0};
    long *lp;
    int *ip;
    ip = (int*) data;
    ip++;
    lp = (long*) ip;
    return lp[0];
  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_word_size_align=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 )
ompi_cv_c_word_size_align=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ echo "$as_me:$LINENO: result: $ompi_cv_c_word_size_align" >&5
echo "${ECHO_T}$ompi_cv_c_word_size_align" >&6; }
if test $ompi_cv_c_word_size_align = yes; then
  results=1
else
  results=0
fi


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGN_WORD_SIZE_INTEGERS $results
_ACEOF


# 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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=cpp
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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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:48516: $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:48523: \$? = $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:48533: $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:48540: \$? = $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:48563: 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:48577: 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:48591: 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
rm -rf 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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=cpp
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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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:48929: $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:48936: \$? = $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:48946: $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:48953: \$? = $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:48976: 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:48990: 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:49004: 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
rm -rf 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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=cpp
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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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
      CXXCPPFLAGS="$orig_CXXCPPFLAGS"
      LIBS="$orig_LIBS"
      { 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=cpp
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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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"
        LIBS="$orig_LIBS"
        { 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:49462: $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:49469: \$? = $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:49479: $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:49486: \$? = $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:49509: 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:49523: 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:49537: 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
rm -rf 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
      LIBS="$orig_LIBS"
      { 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:49654: $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:49661: \$? = $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:49671: $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:49678: \$? = $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:49701: 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:49715: 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:49729: 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
rm -rf 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_LIBS="$pl"
        { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
        break
      else
        LIBS="$orig_LIBS"
        { 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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=cpp
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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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:50186: $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:50193: \$? = $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:50203: $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:50210: \$? = $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:50233: 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:50247: 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:50261: 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
rm -rf 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 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; }
CFLAGS_save="$CFLAGS"
CFLAGS="$CFLAGS $THREAD_CFLAGS"
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() {
  pthread_t thr;
  int pid, *retval;
  pid = getpid();
  pthread_create(&thr, NULL, checkpid, &pid);
  pthread_join(thr, (void **) &retval);
  exit(*retval);
}
static int ret;
void *checkpid(void *arg) {
   int ppid = *((int *) arg);
   if (ppid == getpid())
     ret = 0;
   else
     ret = 1;
   pthread_exit((void *) &ret);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



CFLAGS="$CFLAGS_save"
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 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 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



depcc="$CCAS"   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_CCAS_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_CCAS_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/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       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_CCAS_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CCAS_dependencies_compiler_type=none
fi

fi
{ echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  am__fastdepCCAS_TRUE=
  am__fastdepCCAS_FALSE='#'
else
  am__fastdepCCAS_TRUE='#'
  am__fastdepCCAS_FALSE=
fi


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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 "x$LEX" != "x:"; then
  cat >conftest.l <<_ACEOF
%%
a { ECHO; }
b { REJECT; }
c { yymore (); }
d { yyless (1); }
e { yyless (input () != 0); }
f { unput (yytext[0]); }
. { BEGIN INITIAL; }
%%
#ifdef YYTEXT_POINTER
extern char *yytext;
#endif
int
main (void)
{
  return ! yylex () + ! yywrap ();
}
_ACEOF
{ (ac_try="$LEX conftest.l"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$LEX conftest.l") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ 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

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; }
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

if test -z "${LEXLIB+set}"; then
  { echo "$as_me:$LINENO: checking lex library" >&5
echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
if test "${ac_cv_lib_lex+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

    ac_save_LIBS=$LIBS
    ac_cv_lib_lex='none needed'
    for ac_lib in '' -lfl -ll; do
      LIBS="$ac_lib $ac_save_LIBS"
      cat >conftest.$ac_ext <<_ACEOF
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_lex=$ac_lib
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
      test "$ac_cv_lib_lex" != 'none needed' && break
    done
    LIBS=$ac_save_LIBS

fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
fi


{ 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
ac_save_LIBS=$LIBS
LIBS="$LEXLIB $ac_save_LIBS"
cat >conftest.$ac_ext <<_ACEOF
#define YYTEXT_POINTER 1
`cat $LEX_OUTPUT_ROOT.c`
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_save_LIBS

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
rm -f conftest.l $LEX_OUTPUT_ROOT.c

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 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, we kill variables containing newlines.
# 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.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}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 "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     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 "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  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; }

ac_ext=m
ac_cpp='$OBJCPP $CPPFLAGS'
ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_objc_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in gcc objcc objc cc CC
  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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 gcc objcc objc cc CC
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_OBJC" = x; then
    OBJC="gcc"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    OBJC=$ac_ct_OBJC
  fi
fi

# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
if test "${ac_cv_objc_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_objc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_objc_compiler_gnu=$ac_compiler_gnu

fi
{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
GOBJC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_OBJCFLAGS=${OBJCFLAGS+set}
ac_save_OBJCFLAGS=$OBJCFLAGS
{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
if test "${ac_cv_prog_objc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_save_objc_werror_flag=$ac_objc_werror_flag
   ac_objc_werror_flag=yes
   ac_cv_prog_objc_g=no
   OBJCFLAGS="-g"
   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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_objc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_objc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	OBJCFLAGS=""
      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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_objc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_objc_werror_flag=$ac_save_objc_werror_flag
	 OBJCFLAGS="-g"
	 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_objc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_objc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_objc_werror_flag=$ac_save_objc_werror_flag
fi
{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
if test "$ac_test_OBJCFLAGS" = set; then
  OBJCFLAGS=$ac_save_OBJCFLAGS
elif test $ac_cv_prog_objc_g = yes; then
  if test "$GOBJC" = yes; then
    OBJCFLAGS="-g -O2"
  else
    OBJCFLAGS="-g"
  fi
else
  if test "$GOBJC" = yes; then
    OBJCFLAGS="-O2"
  else
    OBJCFLAGS=
  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

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/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       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 was given.
if test "${enable_mca_no_build+set}" = set; then
  enableval=$enable_mca_no_build;
fi

    # Check whether --enable-mca-dso was given.
if test "${enable_mca_dso+set}" = set; then
  enableval=$enable_mca_dso;
fi

    # Check whether --enable-mca-static was given.
if test "${enable_mca_static+set}" = set; then
  enableval=$enable_mca_static;
fi

    # Check whether --enable-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: backtrace, installdirs, maffinity, memcpy, memory, paffinity, timer" >&5
echo "${ECHO_T}backtrace, installdirs, 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 "backtrace" = "common" ; then
                              MCA_opal_FRAMEWORKS="backtrace $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/backtrace $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_backtrace_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_backtrace_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_backtrace_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS backtrace"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/backtrace"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_backtrace_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_backtrace_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_backtrace_STATIC_SUBDIRS)"
                          fi
                          if test "backtrace" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/backtrace/libmca_backtrace.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_backtrace_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework backtrace"

    # 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 "backtrace" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/backtrace/base
    fi
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 backtrace" >&5
echo $ECHO_N "checking for no configure components in framework backtrace... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6; }
    { echo "$as_me:$LINENO: checking for m4 configure components in framework backtrace" >&5
echo $ECHO_N "checking for m4 configure components in framework backtrace... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: darwin, execinfo, printstack, none" >&5
echo "${ECHO_T}darwin, execinfo, printstack, none" >&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 backtrace:darwin (m4 configuration macro)"


    project=opal
    framework=backtrace
    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 $OMPI_CONFIGURE_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_backtrace" ; then
            if test "$DIRECT_backtrace" = "$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 backtrace:darwin compile mode" >&5
echo $ECHO_N "checking for MCA component backtrace: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


for ac_func in vm_read_overwrite
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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 backtrace_darwin_happy="yes"
else
  backtrace_darwin_happy="no"
fi
done


    case "${host}" in
    i?86-*|x86_64*)
        if test "$ac_cv_sizeof_long" = "8" ; then
            backtrace_darwin_happy="no"
        fi
    esac

    if test "$backtrace_darwin_happy" = "yes" ; then
       if test "$OMPI_C_GCC_INLINE_ASSEMBLY" = "0" ; then
           backtrace_darwin_happy="no"
       fi
    fi

    if test "$backtrace_darwin_happy" = "yes"; then

for ac_header in mach/mach_vm.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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



for ac_func in mach_vm_region mach_vm_read
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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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

fi


    backtrace_darwin_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`"


    # see if registers are prefixed with __ or not.  On systems
    # previous to Leopard, they were not.  On leopard, it depends on
    # whether code is compiled in UNIX03 mode or not.  Check PPC even
    # if on x86 because x86 always has PPC includes, but the other way
    # around is not guaranteed.
    if test "$backtrace_darwin_happy" = "yes"; then
  { echo "$as_me:$LINENO: checking for ppc_thread_state_t.srr0" >&5
echo $ECHO_N "checking for ppc_thread_state_t.srr0... $ECHO_C" >&6; }
if test "${ac_cv_member_ppc_thread_state_t_srr0+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 <mach/ppc/thread_status.h>

int
main ()
{
static ppc_thread_state_t ac_aggr;
if (ac_aggr.srr0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_member_ppc_thread_state_t_srr0=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 <mach/ppc/thread_status.h>

int
main ()
{
static ppc_thread_state_t ac_aggr;
if (sizeof ac_aggr.srr0)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_member_ppc_thread_state_t_srr0=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_member_ppc_thread_state_t_srr0=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

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

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


fi

fi


    if test "$backtrace_darwin_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=backtrace
    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_backtrace" = "$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_backtrace" = "$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 backtrace:darwin can compile" >&5
echo $ECHO_N "checking if MCA component backtrace: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_backtrace" = "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_backtrace" ; then
        if test "$DIRECT_backtrace" = "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_backtrace_darwin_DSO=1
else
  BUILD_backtrace_darwin_DSO=0
fi

     if test "$BUILD_backtrace_darwin_DSO" = "1"; then
  OMPI_BUILD_backtrace_darwin_DSO_TRUE=
  OMPI_BUILD_backtrace_darwin_DSO_FALSE='#'
else
  OMPI_BUILD_backtrace_darwin_DSO_TRUE='#'
  OMPI_BUILD_backtrace_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 backtrace:execinfo (m4 configuration macro)"


    project=opal
    framework=backtrace
    component=execinfo
    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 $OMPI_CONFIGURE_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_backtrace" ; then
            if test "$DIRECT_backtrace" = "$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 backtrace:execinfo compile mode" >&5
echo $ECHO_N "checking for MCA component backtrace:execinfo 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


for ac_header in execinfo.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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

    # 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return backtrace ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return backtrace ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 backtrace_execinfo_happy="yes"
else
  backtrace_execinfo_happy="no"
fi
done



    if test "$backtrace_execinfo_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=backtrace
    component=execinfo

    # 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_backtrace" = "$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_backtrace" = "$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 backtrace:execinfo can compile" >&5
echo $ECHO_N "checking if MCA component backtrace:execinfo 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_backtrace" = "execinfo" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"execinfo\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"execinfo\" 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_backtrace" ; then
        if test "$DIRECT_backtrace" = "execinfo" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"execinfo\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"execinfo\" 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 execinfo"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_backtrace_execinfo_DSO=1
else
  BUILD_backtrace_execinfo_DSO=0
fi

     if test "$BUILD_backtrace_execinfo_DSO" = "1"; then
  OMPI_BUILD_backtrace_execinfo_DSO_TRUE=
  OMPI_BUILD_backtrace_execinfo_DSO_FALSE='#'
else
  OMPI_BUILD_backtrace_execinfo_DSO_TRUE='#'
  OMPI_BUILD_backtrace_execinfo_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component backtrace:printstack (m4 configuration macro)"


    project=opal
    framework=backtrace
    component=printstack
    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 $OMPI_CONFIGURE_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_backtrace" ; then
            if test "$DIRECT_backtrace" = "$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 backtrace:printstack compile mode" >&5
echo $ECHO_N "checking for MCA component backtrace:printstack 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


for ac_header in ucontext.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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

    # FreeBSD has backtrace in -lexecinfo, usually in libc

for ac_func in printstack
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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 backtrace_printstack_happy="yes"
else
  backtrace_printstack_happy="no"
fi
done


    if test "$backtrace_printstack_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=opal
    framework=backtrace
    component=printstack

    # 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_backtrace" = "$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_backtrace" = "$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 backtrace:printstack can compile" >&5
echo $ECHO_N "checking if MCA component backtrace:printstack 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_backtrace" = "printstack" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"printstack\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"printstack\" 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_backtrace" ; then
        if test "$DIRECT_backtrace" = "printstack" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"printstack\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"printstack\" 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 printstack"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_backtrace_printstack_DSO=1
else
  BUILD_backtrace_printstack_DSO=0
fi

     if test "$BUILD_backtrace_printstack_DSO" = "1"; then
  OMPI_BUILD_backtrace_printstack_DSO_TRUE=
  OMPI_BUILD_backtrace_printstack_DSO_FALSE='#'
else
  OMPI_BUILD_backtrace_printstack_DSO_TRUE='#'
  OMPI_BUILD_backtrace_printstack_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component backtrace:none (m4 configuration macro)"


    project=opal
    framework=backtrace
    component=none
    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 $OMPI_CONFIGURE_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_backtrace" ; then
            if test "$DIRECT_backtrace" = "$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 backtrace:none compile mode" >&5
echo $ECHO_N "checking for MCA component backtrace:none 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
  should_build=1
fi


    if test "$should_build" = "1"; then

    project=opal
    framework=backtrace
    component=none

    # 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_backtrace" = "$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_backtrace" = "$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 backtrace:none can compile" >&5
echo $ECHO_N "checking if MCA component backtrace:none 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_backtrace" = "none" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"none\" 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_backtrace" ; then
        if test "$DIRECT_backtrace" = "none" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"none\" 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 none"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_backtrace_none_DSO=1
else
  BUILD_backtrace_none_DSO=0
fi

     if test "$BUILD_backtrace_none_DSO" = "1"; then
  OMPI_BUILD_backtrace_none_DSO_TRUE=
  OMPI_BUILD_backtrace_none_DSO_FALSE='#'
else
  OMPI_BUILD_backtrace_none_DSO_TRUE='#'
  OMPI_BUILD_backtrace_none_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/backtrace/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component backtrace:$component (need to configure)"


    project=opal
    framework=backtrace
    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 $OMPI_CONFIGURE_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_backtrace" ; then
            if test "$DIRECT_backtrace" = "$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=backtrace
    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_backtrace" = "$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/backtrace/$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/backtrace/$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=backtrace
    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_backtrace" = "$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_backtrace" = "$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 backtrace:$component can compile" >&5
echo $ECHO_N "checking if MCA component backtrace:$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_backtrace" = "$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_backtrace" ; then
        if test "$DIRECT_backtrace" = "$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_backtrace_ALL_COMPONENTS="$all_components"
    MCA_backtrace_STATIC_COMPONENTS="$static_components"
    MCA_backtrace_DSO_COMPONENTS="$dso_components"
    MCA_backtrace_STATIC_LTLIBS="$static_ltlibs"







    MCA_backtrace_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_backtrace_ALL_SUBDIRS="$MCA_backtrace_ALL_SUBDIRS mca/backtrace/$item"
    done



    MCA_backtrace_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_backtrace_STATIC_SUBDIRS="$MCA_backtrace_STATIC_SUBDIRS mca/backtrace/$item"
    done



    MCA_backtrace_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_backtrace_DSO_SUBDIRS="$MCA_backtrace_DSO_SUBDIRS mca/backtrace/$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/backtrace/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 "backtrace" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_backtrace_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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 "installdirs" = "common" ; then
                              MCA_opal_FRAMEWORKS="installdirs $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/installdirs $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_installdirs_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_installdirs_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_installdirs_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS installdirs"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/installdirs"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_installdirs_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_installdirs_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_installdirs_STATIC_SUBDIRS)"
                          fi
                          if test "installdirs" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/installdirs/libmca_installdirs.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_installdirs_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework installdirs"

    # 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 "installdirs" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/installdirs/base
    fi
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 installdirs" >&5
echo $ECHO_N "checking for no configure components in framework installdirs... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6; }
    { echo "$as_me:$LINENO: checking for m4 configure components in framework installdirs" >&5
echo $ECHO_N "checking for m4 configure components in framework installdirs... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: env, config" >&5
echo "${ECHO_T}env, config" >&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 installdirs:env (m4 configuration macro)"


    project=opal
    framework=installdirs
    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 $OMPI_CONFIGURE_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_installdirs" ; then
            if test "$DIRECT_installdirs" = "$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 installdirs:env compile mode" >&5
echo $ECHO_N "checking for MCA component installdirs:env 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
  should_build=1
fi


    if test "$should_build" = "1"; then

    project=opal
    framework=installdirs
    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
                    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_installdirs" = "$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_installdirs" = "$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 installdirs:env can compile" >&5
echo $ECHO_N "checking if MCA component installdirs: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_installdirs" = "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_installdirs" ; then
        if test "$DIRECT_installdirs" = "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_installdirs_env_DSO=1
else
  BUILD_installdirs_env_DSO=0
fi

     if test "$BUILD_installdirs_env_DSO" = "1"; then
  OMPI_BUILD_installdirs_env_DSO_TRUE=
  OMPI_BUILD_installdirs_env_DSO_FALSE='#'
else
  OMPI_BUILD_installdirs_env_DSO_TRUE='#'
  OMPI_BUILD_installdirs_env_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_looking_for_succeed="$happy_value"
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component installdirs:config (m4 configuration macro)"


    project=opal
    framework=installdirs
    component=config
    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 $OMPI_CONFIGURE_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_installdirs" ; then
            if test "$DIRECT_installdirs" = "$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 installdirs:config compile mode" >&5
echo $ECHO_N "checking for MCA component installdirs:config 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


    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"
    OPAL_BINDIR="$bindir"
    OPAL_SBINDIR="$sbindir"
    OPAL_LIBEXECDIR="$libexecdir"
    OPAL_DATAROOTDIR="$datarootdir"
    OPAL_DATADIR="$datadir"
    OPAL_SYSCONFDIR="$sysconfdir"
    OPAL_SHAREDSTATEDIR="$sharedstatedir"
    OPAL_LOCALSTATEDIR="$localstatedir"
    OPAL_LIBDIR="$libdir"
    OPAL_INCLUDEDIR="$includedir"
    OPAL_INFODIR="$infodir"
    OPAL_MANDIR="$mandir"
















    prefix="$ompi_prefix_save"
    exec_prefix="$ompi_exec_prefix_save"


    ac_config_files="$ac_config_files opal/mca/installdirs/config/install_dirs.h"



fi


    if test "$should_build" = "1"; then

    project=opal
    framework=installdirs
    component=config

    # 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_installdirs" = "$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_installdirs" = "$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 installdirs:config can compile" >&5
echo $ECHO_N "checking if MCA component installdirs:config 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_installdirs" = "config" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"config\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"config\" 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_installdirs" ; then
        if test "$DIRECT_installdirs" = "config" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"config\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"config\" 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 config"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_installdirs_config_DSO=1
else
  BUILD_installdirs_config_DSO=0
fi

     if test "$BUILD_installdirs_config_DSO" = "1"; then
  OMPI_BUILD_installdirs_config_DSO_TRUE=
  OMPI_BUILD_installdirs_config_DSO_FALSE='#'
else
  OMPI_BUILD_installdirs_config_DSO_TRUE='#'
  OMPI_BUILD_installdirs_config_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/installdirs/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component installdirs:$component (need to configure)"


    project=opal
    framework=installdirs
    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 $OMPI_CONFIGURE_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_installdirs" ; then
            if test "$DIRECT_installdirs" = "$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=installdirs
    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_installdirs" = "$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/installdirs/$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/installdirs/$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=installdirs
    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_installdirs" = "$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_installdirs" = "$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 installdirs:$component can compile" >&5
echo $ECHO_N "checking if MCA component installdirs:$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_installdirs" = "$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_installdirs" ; then
        if test "$DIRECT_installdirs" = "$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_installdirs_ALL_COMPONENTS="$all_components"
    MCA_installdirs_STATIC_COMPONENTS="$static_components"
    MCA_installdirs_DSO_COMPONENTS="$dso_components"
    MCA_installdirs_STATIC_LTLIBS="$static_ltlibs"







    MCA_installdirs_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_installdirs_ALL_SUBDIRS="$MCA_installdirs_ALL_SUBDIRS mca/installdirs/$item"
    done



    MCA_installdirs_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_installdirs_STATIC_SUBDIRS="$MCA_installdirs_STATIC_SUBDIRS mca/installdirs/$item"
    done



    MCA_installdirs_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_installdirs_DSO_SUBDIRS="$MCA_installdirs_DSO_SUBDIRS mca/installdirs/$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/installdirs/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 "installdirs" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_installdirs_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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 "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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char numa_available ();
int
main ()
{
return numa_available ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_maffinity_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_memcpy_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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


cat >>confdefs.h <<_ACEOF
#define MCA_memcpy_IMPLEMENTATION_HEADER "opal/mca/memcpy/$memcpy_base_include"
_ACEOF

# 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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return malloc_default_zone ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return dlsym ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 was given.
if test "${with_memory_manager+set}" = set; then
  withval=$with_memory_manager;
fi


    # Check whether --enable-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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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
  (void) __malloc_initialize_hook;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
  (void) sbrk;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlsym ();
int
main ()
{
return dlsym ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 $OMPI_CONFIGURE_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 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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
  (void) __malloc_initialize_hook;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return malloc_usable_size ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlsym ();
int
main ()
{
return dlsym ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_memory_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return sched_setaffinity ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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>

typedef cpu_set_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 $OMPI_CONFIGURE_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return processor_bind ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_paffinity_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return time_base_to_time ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pm_cycles ();
int
main ()
{
return pm_cycles ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 $OMPI_CONFIGURE_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 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 $OMPI_CONFIGURE_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 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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return mach_absolute_time ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return gethrtime ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 $OMPI_CONFIGURE_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 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


   case "${host}" in
   alpha*)
        timer_linux_happy="no"
        ;;
   esac

   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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_timer_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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


cat >>confdefs.h <<_ACEOF
#define MCA_timer_IMPLEMENTATION_HEADER "opal/mca/timer/$timer_base_include"
_ACEOF









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, odls, oob, pls, ras, rds, rmaps, rmgr, rml, schema, sds, smr" >&5
echo "${ECHO_T}errmgr, gpr, iof, ns, odls, oob, pls, ras, rds, rmaps, rmgr, rml, schema, sds, smr" >&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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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: hnp, orted, proxy" >&5
echo "${ECHO_T}hnp, orted, proxy" >&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: 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


    ompi_show_subsubsubtitle "MCA component errmgr:hnp (no configuration)"


    project=orte
    framework=errmgr
    component=hnp
    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 $OMPI_CONFIGURE_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=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=errmgr
    component=hnp

    # 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

    project=orte
    framework=errmgr
    component=hnp

    # 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:hnp can compile" >&5
echo $ECHO_N "checking if MCA component errmgr:hnp 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" = "hnp" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"hnp\" 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" = "hnp" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"hnp\" 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 hnp"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_errmgr_hnp_DSO=1
    else
        BUILD_errmgr_hnp_DSO=0
    fi
     if test "$BUILD_errmgr_hnp_DSO" = "1"; then
  OMPI_BUILD_errmgr_hnp_DSO_TRUE=
  OMPI_BUILD_errmgr_hnp_DSO_FALSE='#'
else
  OMPI_BUILD_errmgr_hnp_DSO_TRUE='#'
  OMPI_BUILD_errmgr_hnp_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component errmgr:orted (no configuration)"


    project=orte
    framework=errmgr
    component=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 $OMPI_CONFIGURE_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=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=errmgr
    component=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_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

    project=orte
    framework=errmgr
    component=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_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:orted can compile" >&5
echo $ECHO_N "checking if MCA component errmgr: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_errmgr" = "orted" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"orted\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"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_errmgr" ; then
        if test "$DIRECT_errmgr" = "orted" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"orted\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"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 orted"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_errmgr_orted_DSO=1
    else
        BUILD_errmgr_orted_DSO=0
    fi
     if test "$BUILD_errmgr_orted_DSO" = "1"; then
  OMPI_BUILD_errmgr_orted_DSO_TRUE=
  OMPI_BUILD_errmgr_orted_DSO_FALSE='#'
else
  OMPI_BUILD_errmgr_orted_DSO_TRUE='#'
  OMPI_BUILD_errmgr_orted_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component errmgr:proxy (no configuration)"


    project=orte
    framework=errmgr
    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 $OMPI_CONFIGURE_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=$components_looking_for_succeed
else
  should_build=0
fi



    project=orte
    framework=errmgr
    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_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

    project=orte
    framework=errmgr
    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_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:proxy can compile" >&5
echo $ECHO_N "checking if MCA component errmgr: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_errmgr" = "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_errmgr" ; then
        if test "$DIRECT_errmgr" = "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_errmgr_proxy_DSO=1
    else
        BUILD_errmgr_proxy_DSO=0
    fi
     if test "$BUILD_errmgr_proxy_DSO" = "1"; then
  OMPI_BUILD_errmgr_proxy_DSO_TRUE=
  OMPI_BUILD_errmgr_proxy_DSO_FALSE='#'
else
  OMPI_BUILD_errmgr_proxy_DSO_TRUE='#'
  OMPI_BUILD_errmgr_proxy_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 errmgr:bproc (m4 configuration macro)"


    project=orte
    framework=errmgr
    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 $OMPI_CONFIGURE_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=$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=errmgr
    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_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


    # 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 was given.
if test "${with_bproc+set}" = set; then
  withval=$with_bproc;
fi


    if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
  errmgr_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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char bproc_numnodes ();
int
main ()
{
return bproc_numnodes ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_Header; eval "test \"\${$as_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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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
  errmgr_bproc_CPPFLAGS="$errmgr_bproc_CPPFLAGS -I$with_bproc/include"
                      errmgr_bproc_LDFLAGS="$errmgr_bproc_LDFLAGS -L$with_bproc/lib"
fi

               errmgr_bproc_LIBS="$errmgr_bproc_LIBS -lbproc"
               if test "$ompi_check_bproc_happy" = "new"; then
  errmgr_bproc_good=1
else
  errmgr_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

               errmgr_bproc_good=0
fi


fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$errmgr_bproc_good" = "1"; then
  errmgr_bproc_WRAPPER_EXTRA_LDFLAGS="$errmgr_bproc_LDFLAGS"
           errmgr_bproc_WRAPPER_EXTRA_LIBS="$errmgr_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=errmgr
    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_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:bproc can compile" >&5
echo $ECHO_N "checking if MCA component errmgr: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_errmgr" = "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_errmgr" ; then
        if test "$DIRECT_errmgr" = "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_errmgr_bproc_DSO=1
else
  BUILD_errmgr_bproc_DSO=0
fi

     if test "$BUILD_errmgr_bproc_DSO" = "1"; then
  OMPI_BUILD_errmgr_bproc_DSO_TRUE=
  OMPI_BUILD_errmgr_bproc_DSO_FALSE='#'
else
  OMPI_BUILD_errmgr_bproc_DSO_TRUE='#'
  OMPI_BUILD_errmgr_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/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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_errmgr_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_gpr_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_iof_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_ns_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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 "odls" = "common" ; then
                              MCA_orte_FRAMEWORKS="odls $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/odls $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_odls_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_odls_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_odls_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS odls"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/odls"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_odls_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_odls_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_odls_STATIC_SUBDIRS)"
                          fi
                          if test "odls" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/odls/libmca_odls.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_odls_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework odls"

    # 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 "odls" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/odls/base
    fi
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 odls" >&5
echo $ECHO_N "checking for no configure components in framework odls... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6; }
    { echo "$as_me:$LINENO: checking for m4 configure components in framework odls" >&5
echo $ECHO_N "checking for m4 configure components in framework odls... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: bproc, default" >&5
echo "${ECHO_T}bproc, default" >&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 odls:bproc (m4 configuration macro)"


    project=orte
    framework=odls
    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 $OMPI_CONFIGURE_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_odls" ; then
            if test "$DIRECT_odls" = "$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=odls
    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_odls" = "$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 was given.
if test "${with_bproc+set}" = set; then
  withval=$with_bproc;
fi


    if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
  odls_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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char bproc_numnodes ();
int
main ()
{
return bproc_numnodes ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_Header; eval "test \"\${$as_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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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
  odls_bproc_CPPFLAGS="$odls_bproc_CPPFLAGS -I$with_bproc/include"
                      odls_bproc_LDFLAGS="$odls_bproc_LDFLAGS -L$with_bproc/lib"
fi

               odls_bproc_LIBS="$odls_bproc_LIBS -lbproc"
               if test "$ompi_check_bproc_happy" = "new"; then
  odls_bproc_good=1
else
  odls_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

               odls_bproc_good=0
fi


fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$odls_bproc_good" = "1"; then
  odls_bproc_WRAPPER_EXTRA_LDFLAGS="$odls_bproc_LDFLAGS"
           odls_bproc_WRAPPER_EXTRA_LIBS="$odls_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=odls
    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_odls" = "$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_odls" = "$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 odls:bproc can compile" >&5
echo $ECHO_N "checking if MCA component odls: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_odls" = "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_odls" ; then
        if test "$DIRECT_odls" = "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_odls_bproc_DSO=1
else
  BUILD_odls_bproc_DSO=0
fi

     if test "$BUILD_odls_bproc_DSO" = "1"; then
  OMPI_BUILD_odls_bproc_DSO_TRUE=
  OMPI_BUILD_odls_bproc_DSO_FALSE='#'
else
  OMPI_BUILD_odls_bproc_DSO_TRUE='#'
  OMPI_BUILD_odls_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 odls:default (m4 configuration macro)"


    project=orte
    framework=odls
    component=default
    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 $OMPI_CONFIGURE_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_odls" ; then
            if test "$DIRECT_odls" = "$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=odls
    component=default

    # 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_odls" = "$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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return fork ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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=odls
    component=default

    # 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_odls" = "$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_odls" = "$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 odls:default can compile" >&5
echo $ECHO_N "checking if MCA component odls:default 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_odls" = "default" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"default\" 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_odls" ; then
        if test "$DIRECT_odls" = "default" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"default\" 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 default"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_odls_default_DSO=1
else
  BUILD_odls_default_DSO=0
fi

     if test "$BUILD_odls_default_DSO" = "1"; then
  OMPI_BUILD_odls_default_DSO_TRUE=
  OMPI_BUILD_odls_default_DSO_FALSE='#'
else
  OMPI_BUILD_odls_default_DSO_TRUE='#'
  OMPI_BUILD_odls_default_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/odls/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component odls:$component (need to configure)"


    project=orte
    framework=odls
    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 $OMPI_CONFIGURE_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_odls" ; then
            if test "$DIRECT_odls" = "$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=odls
    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_odls" = "$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/odls/$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/odls/$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=odls
    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_odls" = "$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_odls" = "$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 odls:$component can compile" >&5
echo $ECHO_N "checking if MCA component odls:$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_odls" = "$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_odls" ; then
        if test "$DIRECT_odls" = "$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_odls_ALL_COMPONENTS="$all_components"
    MCA_odls_STATIC_COMPONENTS="$static_components"
    MCA_odls_DSO_COMPONENTS="$dso_components"
    MCA_odls_STATIC_LTLIBS="$static_ltlibs"







    MCA_odls_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_odls_ALL_SUBDIRS="$MCA_odls_ALL_SUBDIRS mca/odls/$item"
    done



    MCA_odls_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_odls_STATIC_SUBDIRS="$MCA_odls_STATIC_SUBDIRS mca/odls/$item"
    done



    MCA_odls_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_odls_DSO_SUBDIRS="$MCA_odls_DSO_SUBDIRS mca/odls/$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/odls/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 "odls" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_odls_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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

typedef struct sockaddr_in ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_oob_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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: proxy" >&5
echo "${ECHO_T}proxy" >&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, cnos, gridengine, poe, rsh, slurm, tm, xgrid" >&5
echo "${ECHO_T}bproc, cnos, gridengine, 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


    ompi_show_subsubsubtitle "MCA component pls:proxy (no configuration)"


    project=orte
    framework=pls
    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 $OMPI_CONFIGURE_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



    project=orte
    framework=pls
    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_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

    project=orte
    framework=pls
    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_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:proxy can compile" >&5
echo $ECHO_N "checking if MCA component pls: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_pls" = "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_pls" ; then
        if test "$DIRECT_pls" = "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_pls_proxy_DSO=1
    else
        BUILD_pls_proxy_DSO=0
    fi
     if test "$BUILD_pls_proxy_DSO" = "1"; then
  OMPI_BUILD_pls_proxy_DSO_TRUE=
  OMPI_BUILD_pls_proxy_DSO_FALSE='#'
else
  OMPI_BUILD_pls_proxy_DSO_TRUE='#'
  OMPI_BUILD_pls_proxy_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 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 $OMPI_CONFIGURE_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 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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char bproc_numnodes ();
int
main ()
{
return bproc_numnodes ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_Header; eval "test \"\${$as_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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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:cnos (m4 configuration macro)"


    project=orte
    framework=pls
    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 $OMPI_CONFIGURE_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=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_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

    pls_cnos_happy="no"
    # see if we should enable super secret utcp support
    if test "$with_pls_cnos" = "utcp" ; then
        pls_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return cnos_barrier ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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
  pls_cnos_happy="yes"
else
  pls_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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 "$pls_cnos_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then

    project=orte
    framework=pls
    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_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:cnos can compile" >&5
echo $ECHO_N "checking if MCA component pls: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_pls" = "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_pls" ; then
        if test "$DIRECT_pls" = "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_pls_cnos_DSO=1
else
  BUILD_pls_cnos_DSO=0
fi

     if test "$BUILD_pls_cnos_DSO" = "1"; then
  OMPI_BUILD_pls_cnos_DSO_TRUE=
  OMPI_BUILD_pls_cnos_DSO_FALSE='#'
else
  OMPI_BUILD_pls_cnos_DSO_TRUE='#'
  OMPI_BUILD_pls_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 pls:gridengine (m4 configuration macro)"


    project=orte
    framework=pls
    component=gridengine
    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 $OMPI_CONFIGURE_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=gridengine

    # 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return fork ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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=gridengine

    # 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:gridengine can compile" >&5
echo $ECHO_N "checking if MCA component pls:gridengine 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" = "gridengine" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"gridengine\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"gridengine\" 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" = "gridengine" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"gridengine\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"gridengine\" 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 gridengine"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pls_gridengine_DSO=1
else
  BUILD_pls_gridengine_DSO=0
fi

     if test "$BUILD_pls_gridengine_DSO" = "1"; then
  OMPI_BUILD_pls_gridengine_DSO_TRUE=
  OMPI_BUILD_pls_gridengine_DSO_FALSE='#'
else
  OMPI_BUILD_pls_gridengine_DSO_TRUE='#'
  OMPI_BUILD_pls_gridengine_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return fork ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return fork ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return execve ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return setpgid ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 was given.
if test "${with_tm+set}" = set; then
  withval=$with_tm;
fi


    ompi_check_tm_found=no
    if test "$with_tm" = "no"; then
  ompi_check_tm_happy="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


    if test "$ompi_check_tm_happy" = "yes"; then
  { echo "$as_me:$LINENO: checking for pbs-config" >&5
echo $ECHO_N "checking for pbs-config... $ECHO_C" >&6; }
           ompi_check_tm_pbs_config="not found"
           if test "$ompi_check_tm_dir" != "" -a -d "$ompi_check_tm_dir" -a -x "$ompi_check_tm_dir/bin/pbs-config"; then
  ompi_check_tm_pbs_config="$ompi_check_tm_dir/bin/pbs-config"
else
  if pbs-config --prefix >/dev/null 2>&1; then
  ompi_check_tm_pbs_config="pbs-config"
fi

fi

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


    # If we have pbs-config, get the flags we need from there and then
    # do simplistic tests looking for the tm headers and symbols

    if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_pbs_config" != "not found"; then
  pls_tm_CPPFLAGS=`$ompi_check_tm_pbs_config --cflags`

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:78796: pls_tm_CPPFLAGS from pbs-config: $pls_tm_CPPFLAGS" >&5
else
    echo pls_tm_CPPFLAGS from pbs-config: $pls_tm_CPPFLAGS >&5
fi


    ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs`
    for ompi_check_tm_val in $ompi_check_tm_flags; do
        if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then
            if test "LDFLAGS" = "LIBS"; then
                pls_tm_LDFLAGS="$pls_tm_LDFLAGS $ompi_check_tm_val"
            fi
        else
            if test "LDFLAGS" = "LDFLAGS"; then
                pls_tm_LDFLAGS="$pls_tm_LDFLAGS $ompi_check_tm_val"
            fi
        fi
    done


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:78819: pls_tm_LDFLAGS from pbs-config: $pls_tm_LDFLAGS" >&5
else
    echo pls_tm_LDFLAGS from pbs-config: $pls_tm_LDFLAGS >&5
fi


    ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs`
    for ompi_check_tm_val in $ompi_check_tm_flags; do
        if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then
            if test "LIBS" = "LIBS"; then
                pls_tm_LIBS="$pls_tm_LIBS $ompi_check_tm_val"
            fi
        else
            if test "LIBS" = "LDFLAGS"; then
                pls_tm_LIBS="$pls_tm_LIBS $ompi_check_tm_val"
            fi
        fi
    done


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:78842: pls_tm_LIBS from pbs-config: $pls_tm_LIBS" >&5
else
    echo pls_tm_LIBS from pbs-config: $pls_tm_LIBS >&5
fi

           # Now that we supposedly have the right flags, try them out.

           CPPFLAGS_save="$CPPFLAGS"
           LDFLAGS_save="$LDFLAGS"
           LIBS_save="$LIBS"

           CPPFLAGS="$CPPFLAGS $pls_tm_CPPFLAGS"
           LIBS="$LIBS $pls_tm_LIBS"
           LDFLAGS="$LDFLAGS $pls_tm_LDFLAGS"

           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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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
  { echo "$as_me:$LINENO: checking for tm_finalize" >&5
echo $ECHO_N "checking for tm_finalize... $ECHO_C" >&6; }
if test "${ac_cv_func_tm_finalize+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 tm_finalize to an innocuous variant, in case <limits.h> declares tm_finalize.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define tm_finalize innocuous_tm_finalize

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char tm_finalize (); 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 tm_finalize

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
/* 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_tm_finalize || defined __stub___tm_finalize
choke me
#endif

int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_tm_finalize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_func_tm_finalize" >&6; }
if test $ac_cv_func_tm_finalize = yes; then
  ompi_check_tm_found="yes"
fi

fi



           CPPFLAGS="$CPPFLAGS_save"
           LDFLAGS="$LDFLAGS_save"
           LIBS="$LIBS_save"
fi


    # If we don't have pbs-config, then we have to look around
    # manually.

    # 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" -a "$ompi_check_tm_found" = "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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_found="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"

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" = "yes" -a "$ompi_check_tm_found" = "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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_found="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"

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


    # Did we find the right stuff?

    if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_found" = "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 $OMPI_CONFIGURE_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 was given.
if test "${with_xgrid+set}" = set; then
  withval=$with_xgrid;
fi


  if test "$with_xgrid" != "no"; then



  { echo "$as_me:$LINENO: checking if C and Objective C are link compatible" >&5
echo $ECHO_N "checking if C and Objective C are link compatible... $ECHO_C" >&6; }
if test "${ompi_cv_c_link_Objective_C+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

     testfunc_name="testfunc"

     # Write out C part
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     rm -f conftest_c.$ac_ext
      cat > conftest_c.$ac_ext << EOF
int $testfunc_name(int a);
int $testfunc_name(int a) { return a; }
EOF

     # Now compile both parts

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:81519: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:81526: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ac_ext=m
ac_cpp='$OBJCPP $CPPFLAGS'
ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_objc_compiler_gnu

        ompi_lang_link_with_c_libs="$LIBS"
        LIBS="conftest_c.o $LIBS"
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#if defined(c_plusplus) || defined(__cplusplus)
extern "C" int testfunc(int);
#else
extern int testfunc(int);
#endif

int
main ()
{
return testfunc(0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_objc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_c_link_Objective_C="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_c_link_Objective_C="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
        LIBS="$ompi_lang_link_with_c_libs"
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    unset ompi_status
    ompi_cv_c_link_Objective_C="no"
fi
     rm -f conftest_c.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

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

  if test "$ompi_cv_c_link_Objective_C" = "yes"; then
  { 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

  ac_ext=m
ac_cpp='$OBJCPP $CPPFLAGS'
ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_objc_compiler_gnu

  ompi_check_xgrid_save_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS -framework XGridFoundation -framework Foundation"
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#import <Foundation/Foundation.h>
#import <XgridFoundation/XgridFoundation.h>
#import <Foundation/NSString.h>

int
main ()
{
NSLog(@"%@", XGConnectionKeyIsOpened);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_objc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_check_xgrid_foundation="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_check_xgrid_foundation="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
  LDFLAGS="$ompi_check_xgrid_save_LDFLAGS"
  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_check_xgrid_foundation" >&5
echo "${ECHO_T}$ompi_cv_check_xgrid_foundation" >&6; }
        if test "$ompi_cv_check_xgrid_foundation" = "yes"; then
  ompi_check_xgrid_happy="yes"
else
  ompi_check_xgrid_happy="no"
fi

else
  ompi_check_xgrid_happy="no"
fi


else
  ompi_check_xgrid_happy="no"
fi


    if test "$ompi_check_xgrid_happy" = "yes"; then
  pls_xgrid_LDFLAGS="$pls_xgrid_LDFLAGS -framework XGridFoundation -framework Foundation"
           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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_pls_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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, localhost" >&5
echo "${ECHO_T}dash_host, 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, gridengine, loadleveler, lsf_bproc, slurm, tm, xgrid" >&5
echo "${ECHO_T}bjs, gridengine, loadleveler, lsf_bproc, 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 $OMPI_CONFIGURE_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: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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char bproc_numnodes ();
int
main ()
{
return bproc_numnodes ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_Header; eval "test \"\${$as_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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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:gridengine (m4 configuration macro)"


    project=orte
    framework=ras
    component=gridengine
    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 $OMPI_CONFIGURE_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=gridengine

    # 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

    { 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return fork ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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=ras
    component=gridengine

    # 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:gridengine can compile" >&5
echo $ECHO_N "checking if MCA component ras:gridengine 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" = "gridengine" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"gridengine\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"gridengine\" 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" = "gridengine" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"gridengine\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"gridengine\" 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 gridengine"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_gridengine_DSO=1
else
  BUILD_ras_gridengine_DSO=0
fi

     if test "$BUILD_ras_gridengine_DSO" = "1"; then
  OMPI_BUILD_ras_gridengine_DSO_TRUE=
  OMPI_BUILD_ras_gridengine_DSO_FALSE='#'
else
  OMPI_BUILD_ras_gridengine_DSO_TRUE='#'
  OMPI_BUILD_ras_gridengine_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:loadleveler (m4 configuration macro)"


    project=orte
    framework=ras
    component=loadleveler
    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 $OMPI_CONFIGURE_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=loadleveler

    # 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-loadleveler was given.
if test "${with_loadleveler+set}" = set; then
  withval=$with_loadleveler;
fi


    if test "$with_loadleveler" = "no"; then
  ompi_check_loadleveler_happy="no"
else
  ompi_check_loadleveler_happy="yes"
           if test ! -z "$with_loadleveler" -a "$with_loadleveler" != "yes"; then
  ompi_check_loadleveler_dir="$with_loadleveler"
else
  ompi_check_loadleveler_dir=""
fi

fi


    if test "$ompi_check_loadleveler_happy" = "yes"; then

    ompi_check_package_ras_loadleveler_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_ras_loadleveler_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_ras_loadleveler_save_LIBS="$LIBS"

    ompi_check_package_ras_loadleveler_orig_CPPFLAGS="$ras_loadleveler_CPPFLAGS"
    ompi_check_package_ras_loadleveler_orig_LDFLAGS="$ras_loadleveler_LDFLAGS"
    ompi_check_package_ras_loadleveler_orig_LIBS="$ras_loadleveler_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_llapi_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_loadleveler_dir" = "/usr" -o "$ompi_check_loadleveler_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_llapi_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for llapi.h" >&5
echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; }
if test "${ac_cv_header_llapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking llapi.h usability" >&5
echo $ECHO_N "checking llapi.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 <llapi.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 llapi.h presence" >&5
echo $ECHO_N "checking llapi.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 <llapi.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: llapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: llapi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: llapi.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: llapi.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: llapi.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: llapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: llapi.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: llapi.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 llapi.h" >&5
echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; }
if test "${ac_cv_header_llapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_llapi_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; }

fi
if test $ac_cv_header_llapi_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_llapi_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_loadleveler_dir" != ""; then
  ras_loadleveler_CPPFLAGS="$ras_loadleveler_CPPFLAGS -I$ompi_check_loadleveler_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_loadleveler_dir/include"
fi

           if test "${ac_cv_header_llapi_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for llapi.h" >&5
echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; }
if test "${ac_cv_header_llapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking llapi.h usability" >&5
echo $ECHO_N "checking llapi.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 <llapi.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 llapi.h presence" >&5
echo $ECHO_N "checking llapi.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 <llapi.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: llapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: llapi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: llapi.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: llapi.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: llapi.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: llapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: llapi.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: llapi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: llapi.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 llapi.h" >&5
echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; }
if test "${ac_cv_header_llapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_llapi_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; }

fi
if test $ac_cv_header_llapi_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_llapi_ll_query
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lllapi  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ll_query ();
int
main ()
{
return ll_query ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_llapi_ll_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
if test $ac_cv_lib_llapi_ll_query = 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_loadleveler_save_LDFLAGS"
                  ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
                  unset ac_cv_lib_llapi_ll_query
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_loadleveler_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 ll_query in -lllapi" >&5
echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lllapi  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ll_query ();
int
main ()
{
return ll_query ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_llapi_ll_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
if test $ac_cv_lib_llapi_ll_query = 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_loadleveler_save_LDFLAGS"
                     ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
                     unset ac_cv_lib_llapi_ll_query
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_loadleveler_LDFLAGS="$ras_loadleveler_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 ll_query in -lllapi" >&5
echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lllapi  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ll_query ();
int
main ()
{
return ll_query ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_llapi_ll_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
if test $ac_cv_lib_llapi_ll_query = 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_loadleveler_save_LDFLAGS"
                          ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
                          unset ac_cv_lib_llapi_ll_query
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_loadleveler_LDFLAGS="$ras_loadleveler_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 ll_query in -lllapi" >&5
echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lllapi  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ll_query ();
int
main ()
{
return ll_query ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_llapi_ll_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
if test $ac_cv_lib_llapi_ll_query = 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_loadleveler_save_LDFLAGS"
                          ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
                          unset ac_cv_lib_llapi_ll_query
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_llapi_ll_query
    ompi_check_package_lib_happy="no"
    if test "" != ""; then
   # libdir was specified - search only there
           ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L"
           LDFLAGS="$LDFLAGS -L"
           { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lllapi  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ll_query ();
int
main ()
{
return ll_query ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_llapi_ll_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
if test $ac_cv_lib_llapi_ll_query = 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_loadleveler_save_LDFLAGS"
                  ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
                  unset ac_cv_lib_llapi_ll_query
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_loadleveler_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 ll_query in -lllapi" >&5
echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lllapi  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ll_query ();
int
main ()
{
return ll_query ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_llapi_ll_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
if test $ac_cv_lib_llapi_ll_query = 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_loadleveler_save_LDFLAGS"
                     ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
                     unset ac_cv_lib_llapi_ll_query
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_loadleveler_LDFLAGS="$ras_loadleveler_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 ll_query in -lllapi" >&5
echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lllapi  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ll_query ();
int
main ()
{
return ll_query ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_llapi_ll_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
if test $ac_cv_lib_llapi_ll_query = 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_loadleveler_save_LDFLAGS"
                          ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
                          unset ac_cv_lib_llapi_ll_query
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_loadleveler_LDFLAGS="$ras_loadleveler_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 ll_query in -lllapi" >&5
echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lllapi  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ll_query ();
int
main ()
{
return ll_query ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_llapi_ll_query=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
if test $ac_cv_lib_llapi_ll_query = 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_loadleveler_save_LDFLAGS"
                          ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
                          unset ac_cv_lib_llapi_ll_query
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_loadleveler_happy="yes"
           ras_loadleveler_LIBS="-lllapi "
else
  ras_loadleveler_CPPFLAGS="$ompi_check_package_ras_loadleveler_orig_CPPFLAGS"
           ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
           ras_loadleveler_LIBS="$ompi_check_package_ras_loadleveler_orig_LIBS"
           ompi_check_loadleveler_happy="no"
fi


    CPPFLAGS="$ompi_check_package_ras_loadleveler_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS"
    LIBS="$ompi_check_package_ras_loadleveler_save_LIBS"

fi


    if test "$ompi_check_loadleveler_happy" = "yes"; then
  ras_loadleveler_good=1
else
  if test ! -z "$with_loadleveler" -a "$with_loadleveler" != "no"; then
  { { echo "$as_me:$LINENO: error: LOADLEVELER support requested but not found.  Aborting" >&5
echo "$as_me: error: LOADLEVELER support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           ras_loadleveler_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ras_loadleveler_good" = "1"; then
  ras_loadleveler_WRAPPER_EXTRA_LDFLAGS="$ras_loadleveler_LDFLAGS"
           ras_loadleveler_WRAPPER_EXTRA_LIBS="$ras_loadleveler_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=loadleveler

    # 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:loadleveler can compile" >&5
echo $ECHO_N "checking if MCA component ras:loadleveler 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" = "loadleveler" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"loadleveler\" 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" = "loadleveler" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"loadleveler\" 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 loadleveler"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_loadleveler_DSO=1
else
  BUILD_ras_loadleveler_DSO=0
fi

     if test "$BUILD_ras_loadleveler_DSO" = "1"; then
  OMPI_BUILD_ras_loadleveler_DSO_TRUE=
  OMPI_BUILD_ras_loadleveler_DSO_FALSE='#'
else
  OMPI_BUILD_ras_loadleveler_DSO_TRUE='#'
  OMPI_BUILD_ras_loadleveler_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 $OMPI_CONFIGURE_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 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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char bproc_numnodes ();
int
main ()
{
return bproc_numnodes ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_Header; eval "test \"\${$as_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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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: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 $OMPI_CONFIGURE_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 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return fork ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return execve ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return setpgid ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 was given.
if test "${with_tm+set}" = set; then
  withval=$with_tm;
fi


    ompi_check_tm_found=no
    if test "$with_tm" = "no"; then
  ompi_check_tm_happy="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


    if test "$ompi_check_tm_happy" = "yes"; then
  { echo "$as_me:$LINENO: checking for pbs-config" >&5
echo $ECHO_N "checking for pbs-config... $ECHO_C" >&6; }
           ompi_check_tm_pbs_config="not found"
           if test "$ompi_check_tm_dir" != "" -a -d "$ompi_check_tm_dir" -a -x "$ompi_check_tm_dir/bin/pbs-config"; then
  ompi_check_tm_pbs_config="$ompi_check_tm_dir/bin/pbs-config"
else
  if pbs-config --prefix >/dev/null 2>&1; then
  ompi_check_tm_pbs_config="pbs-config"
fi

fi

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


    # If we have pbs-config, get the flags we need from there and then
    # do simplistic tests looking for the tm headers and symbols

    if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_pbs_config" != "not found"; then
  ras_tm_CPPFLAGS=`$ompi_check_tm_pbs_config --cflags`

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:86810: ras_tm_CPPFLAGS from pbs-config: $ras_tm_CPPFLAGS" >&5
else
    echo ras_tm_CPPFLAGS from pbs-config: $ras_tm_CPPFLAGS >&5
fi


    ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs`
    for ompi_check_tm_val in $ompi_check_tm_flags; do
        if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then
            if test "LDFLAGS" = "LIBS"; then
                ras_tm_LDFLAGS="$ras_tm_LDFLAGS $ompi_check_tm_val"
            fi
        else
            if test "LDFLAGS" = "LDFLAGS"; then
                ras_tm_LDFLAGS="$ras_tm_LDFLAGS $ompi_check_tm_val"
            fi
        fi
    done


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:86833: ras_tm_LDFLAGS from pbs-config: $ras_tm_LDFLAGS" >&5
else
    echo ras_tm_LDFLAGS from pbs-config: $ras_tm_LDFLAGS >&5
fi


    ompi_check_tm_flags=`$ompi_check_tm_pbs_config --libs`
    for ompi_check_tm_val in $ompi_check_tm_flags; do
        if test "`echo $ompi_check_tm_val | cut -c1-2`" = "-l"; then
            if test "LIBS" = "LIBS"; then
                ras_tm_LIBS="$ras_tm_LIBS $ompi_check_tm_val"
            fi
        else
            if test "LIBS" = "LDFLAGS"; then
                ras_tm_LIBS="$ras_tm_LIBS $ompi_check_tm_val"
            fi
        fi
    done


# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:86856: ras_tm_LIBS from pbs-config: $ras_tm_LIBS" >&5
else
    echo ras_tm_LIBS from pbs-config: $ras_tm_LIBS >&5
fi

           # Now that we supposedly have the right flags, try them out.

           CPPFLAGS_save="$CPPFLAGS"
           LDFLAGS_save="$LDFLAGS"
           LIBS_save="$LIBS"

           CPPFLAGS="$CPPFLAGS $ras_tm_CPPFLAGS"
           LIBS="$LIBS $ras_tm_LIBS"
           LDFLAGS="$LDFLAGS $ras_tm_LDFLAGS"

           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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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
  { echo "$as_me:$LINENO: checking for tm_finalize" >&5
echo $ECHO_N "checking for tm_finalize... $ECHO_C" >&6; }
if test "${ac_cv_func_tm_finalize+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 tm_finalize to an innocuous variant, in case <limits.h> declares tm_finalize.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define tm_finalize innocuous_tm_finalize

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char tm_finalize (); 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 tm_finalize

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
/* 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_tm_finalize || defined __stub___tm_finalize
choke me
#endif

int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_func_tm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_tm_finalize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ echo "$as_me:$LINENO: result: $ac_cv_func_tm_finalize" >&5
echo "${ECHO_T}$ac_cv_func_tm_finalize" >&6; }
if test $ac_cv_func_tm_finalize = yes; then
  ompi_check_tm_found="yes"
fi

fi



           CPPFLAGS="$CPPFLAGS_save"
           LDFLAGS="$LDFLAGS_save"
           LIBS="$LIBS_save"
fi


    # If we don't have pbs-config, then we have to look around
    # manually.

    # 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" -a "$ompi_check_tm_found" = "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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_init ();
int
main ()
{
return tm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_found="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"

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" = "yes" -a "$ompi_check_tm_found" = "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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char tm_finalize ();
int
main ()
{
return tm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_found="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"

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


    # Did we find the right stuff?

    if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_found" = "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 $OMPI_CONFIGURE_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 was given.
if test "${with_xgrid+set}" = set; then
  withval=$with_xgrid;
fi


  if test "$with_xgrid" != "no"; then



  { echo "$as_me:$LINENO: checking if C and Objective C are link compatible" >&5
echo $ECHO_N "checking if C and Objective C are link compatible... $ECHO_C" >&6; }
if test "${ompi_cv_c_link_Objective_C+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

     testfunc_name="testfunc"

     # Write out C part
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

     rm -f conftest_c.$ac_ext
      cat > conftest_c.$ac_ext << EOF
int $testfunc_name(int a);
int $testfunc_name(int a) { return a; }
EOF

     # Now compile both parts

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:89533: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
ompi_status=$?

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
    echo "configure:89540: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ac_ext=m
ac_cpp='$OBJCPP $CPPFLAGS'
ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_objc_compiler_gnu

        ompi_lang_link_with_c_libs="$LIBS"
        LIBS="conftest_c.o $LIBS"
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#if defined(c_plusplus) || defined(__cplusplus)
extern "C" int testfunc(int);
#else
extern int testfunc(int);
#endif

int
main ()
{
return testfunc(0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_objc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_c_link_Objective_C="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_c_link_Objective_C="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
        LIBS="$ompi_lang_link_with_c_libs"
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    unset ompi_status
    ompi_cv_c_link_Objective_C="no"
fi
     rm -f conftest_c.$ac_ext
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

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

  if test "$ompi_cv_c_link_Objective_C" = "yes"; then
  { 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

  ac_ext=m
ac_cpp='$OBJCPP $CPPFLAGS'
ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_objc_compiler_gnu

  ompi_check_xgrid_save_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS -framework XGridFoundation -framework Foundation"
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#import <Foundation/Foundation.h>
#import <XgridFoundation/XgridFoundation.h>
#import <Foundation/NSString.h>

int
main ()
{
NSLog(@"%@", XGConnectionKeyIsOpened);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_objc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ompi_cv_check_xgrid_foundation="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_check_xgrid_foundation="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
  LDFLAGS="$ompi_check_xgrid_save_LDFLAGS"
  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_check_xgrid_foundation" >&5
echo "${ECHO_T}$ompi_cv_check_xgrid_foundation" >&6; }
        if test "$ompi_cv_check_xgrid_foundation" = "yes"; then
  ompi_check_xgrid_happy="yes"
else
  ompi_check_xgrid_happy="no"
fi

else
  ompi_check_xgrid_happy="no"
fi


else
  ompi_check_xgrid_happy="no"
fi


    if test "$ompi_check_xgrid_happy" = "yes"; then
  ras_xgrid_LDFLAGS="$ras_xgrid_LDFLAGS -framework XGridFoundation -framework Foundation"
           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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_ras_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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, proxy, resfile" >&5
echo "${ECHO_T}hostfile, proxy, 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 $OMPI_CONFIGURE_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:proxy (no configuration)"


    project=orte
    framework=rds
    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 $OMPI_CONFIGURE_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=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_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=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_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:proxy can compile" >&5
echo $ECHO_N "checking if MCA component rds: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_rds" = "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_rds" ; then
        if test "$DIRECT_rds" = "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_rds_proxy_DSO=1
    else
        BUILD_rds_proxy_DSO=0
    fi
     if test "$BUILD_rds_proxy_DSO" = "1"; then
  OMPI_BUILD_rds_proxy_DSO_TRUE=
  OMPI_BUILD_rds_proxy_DSO_FALSE='#'
else
  OMPI_BUILD_rds_proxy_DSO_TRUE='#'
  OMPI_BUILD_rds_proxy_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_rds_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_rmaps_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return cnos_barrier ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_rmgr_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return cnos_barrier ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_rml_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_schema_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char bproc_numnodes ();
int
main ()
{
return bproc_numnodes ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_Header; eval "test \"\${$as_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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 $OMPI_CONFIGURE_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return cnos_get_rank ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return pipe ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 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 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return fork ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return execve ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return setpgid ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_sds_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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 "smr" = "common" ; then
                              MCA_orte_FRAMEWORKS="smr $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/smr $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_smr_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_smr_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_smr_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS smr"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/smr"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_smr_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_smr_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_smr_STATIC_SUBDIRS)"
                          fi
                          if test "smr" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/smr/libmca_smr.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_smr_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework smr"

    # 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 "smr" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/smr/base
    fi
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 smr" >&5
echo $ECHO_N "checking for no configure components in framework smr... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6; }
    { echo "$as_me:$LINENO: checking for m4 configure components in framework smr" >&5
echo $ECHO_N "checking for m4 configure components in framework smr... $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 smr:bproc (m4 configuration macro)"


    project=orte
    framework=smr
    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 $OMPI_CONFIGURE_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_smr" ; then
            if test "$DIRECT_smr" = "$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=smr
    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_smr" = "$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 was given.
if test "${with_bproc+set}" = set; then
  withval=$with_bproc;
fi


    if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
  smr_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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char bproc_numnodes ();
int
main ()
{
return bproc_numnodes ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_Header; eval "test \"\${$as_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.  */
#include <stdint.h>
                               #include <sys/socket.h>

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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
  smr_bproc_CPPFLAGS="$smr_bproc_CPPFLAGS -I$with_bproc/include"
                      smr_bproc_LDFLAGS="$smr_bproc_LDFLAGS -L$with_bproc/lib"
fi

               smr_bproc_LIBS="$smr_bproc_LIBS -lbproc"
               if test "$ompi_check_bproc_happy" = "new"; then
  smr_bproc_good=1
else
  smr_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

               smr_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 "$smr_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  have_bproc_api_ver_msg=yes smr_bproc_good=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	have_bproc_api_ver_msg=no  smr_bproc_good=0
fi

rm -f core 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 "$smr_bproc_good" = "1"; then
  smr_bproc_WRAPPER_EXTRA_LDFLAGS="$smr_bproc_LDFLAGS"
           smr_bproc_WRAPPER_EXTRA_LIBS="$smr_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=smr
    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_smr" = "$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_smr" = "$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 smr:bproc can compile" >&5
echo $ECHO_N "checking if MCA component smr: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_smr" = "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_smr" ; then
        if test "$DIRECT_smr" = "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_smr_bproc_DSO=1
else
  BUILD_smr_bproc_DSO=0
fi

     if test "$BUILD_smr_bproc_DSO" = "1"; then
  OMPI_BUILD_smr_bproc_DSO_TRUE=
  OMPI_BUILD_smr_bproc_DSO_FALSE='#'
else
  OMPI_BUILD_smr_bproc_DSO_TRUE='#'
  OMPI_BUILD_smr_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/smr/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component smr:$component (need to configure)"


    project=orte
    framework=smr
    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 $OMPI_CONFIGURE_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_smr" ; then
            if test "$DIRECT_smr" = "$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=smr
    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_smr" = "$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/smr/$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/smr/$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=smr
    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_smr" = "$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_smr" = "$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 smr:$component can compile" >&5
echo $ECHO_N "checking if MCA component smr:$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_smr" = "$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_smr" ; then
        if test "$DIRECT_smr" = "$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_smr_ALL_COMPONENTS="$all_components"
    MCA_smr_STATIC_COMPONENTS="$static_components"
    MCA_smr_DSO_COMPONENTS="$dso_components"
    MCA_smr_STATIC_LTLIBS="$static_ltlibs"







    MCA_smr_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_smr_ALL_SUBDIRS="$MCA_smr_ALL_SUBDIRS mca/smr/$item"
    done



    MCA_smr_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_smr_STATIC_SUBDIRS="$MCA_smr_STATIC_SUBDIRS mca/smr/$item"
    done



    MCA_smr_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_smr_DSO_SUBDIRS="$MCA_smr_DSO_SUBDIRS mca/smr/$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/smr/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 "smr" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_smr_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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, mtl, osc, pml, rcache, topo" >&5
echo "${ECHO_T}allocator, bml, btl, coll, common, io, mpool, mtl, 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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_allocator_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_bml_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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, udapl" >&5
echo "${ECHO_T}gm, mvapi, mx, openib, portals, tcp, udapl" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 was given.
if test "${with_gm+set}" = set; then
  withval=$with_gm;
fi


# Check whether --with-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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gm_init ();
int
main ()
{
return gm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gm_init ();
int
main ()
{
return gm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gm_init ();
int
main ()
{
return gm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gm_init ();
int
main ()
{
return gm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gm_init ();
int
main ()
{
return gm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gm_init ();
int
main ()
{
return gm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gm_init ();
int
main ()
{
return gm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gm_init ();
int
main ()
{
return gm_init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 $OMPI_CONFIGURE_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 was given.
if test "${with_mvapi+set}" = set; then
  withval=$with_mvapi;
fi


# Check whether --with-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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char VAPI_open_hca ();
int
main ()
{
return VAPI_open_hca ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 $OMPI_CONFIGURE_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 was given.
if test "${with_mx+set}" = set; then
  withval=$with_mx;
fi


# Check whether --with-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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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

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

fi

    if test "$ompi_check_mx_happy" = "yes"; then

    #
    # Check if the MX library provide the mx_register_unexp_callback function.
    # With this function, OMPI can avoid having a double matching logic
    # (one on the MX library and one on OMPI) by registering our own matching
    # function.

    { echo "$as_me:$LINENO: checking for a MX version with mx_register_match_callback" >&5
echo $ECHO_N "checking for a MX version with mx_register_match_callback... $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 ()
{
mx_register_unexp_callback(0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  mx_provide_match_callback="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	mx_provide_match_callback="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    { echo "$as_me:$LINENO: result: $mx_provide_match_callback" >&5
echo "${ECHO_T}$mx_provide_match_callback" >&6; }
    if test x"$mx_provide_match_callback" = "xyes"; then

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

           ompi_check_mx_register="yes"
else
  ompi_check_mx_register="no"
fi

    unset mx_provide_match_callback

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 $OMPI_CONFIGURE_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 was given.
if test "${with_openib+set}" = set; then
  withval=$with_openib;
fi


# Check whether --with-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 OpenFabrics" >&5
echo "$as_me: WARNING: POSIX threads not enabled.  May not be able to link with OpenFabrics" >&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"


    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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ibv_open_device ();
int
main ()
{
return ibv_open_device ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 "
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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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



for ac_func in ibv_resize_cq
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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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_resize_cq=1
else
  ompi_check_openib_have_resize_cq=0
fi
done


cat >>confdefs.h <<_ACEOF
#define OMPI_MCA_BTL_OPENIB_HAVE_RESIZE_CQ $ompi_check_openib_have_resize_cq
_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: The OpenFabrics BTL driver does not currently support progress threads.  Disabling BTL." >&5
echo "$as_me: WARNING: The OpenFabrics BTL 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: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&5
echo "$as_me: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&2;}
                  { echo "$as_me:$LINENO: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed.  Later versions of libibverbs do not require libsysfs." >&5
echo "$as_me: WARNING: If you are using libibverbs v1.0 (i.e., OFED v1.0 or v1.1), you *MUST* have both the libsysfs headers and libraries installed.  Later versions of libibverbs do not require libsysfs." >&2;}
                  { { echo "$as_me:$LINENO: error: Aborting." >&5
echo "$as_me: error: Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi

           btl_openib_happy="no"
fi



    if test "$btl_openib_happy" = "yes"; then
  btl_openib_WRAPPER_EXTRA_LDFLAGS="$btl_openib_LDFLAGS"
           btl_openib_WRAPPER_EXTRA_LIBS="$btl_openib_LIBS"

           # With the new openib flags, look for ibv_fork_init
           LDFLAGS_save="$LDFLAGS"
           LIBS_save="$LIBS"
           LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS"
           LIBS="$LIBS $btl_openib_LIBS"

for ac_func in ibv_fork_init
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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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

           LDFLAGS="$LDFLAGS_save"
           LIBS="$LIBS_save"
           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 $OMPI_CONFIGURE_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.
    check_portals_save_CPPFLAGS="$CPPFLAGS"
    check_portals_save_LDFLAGS="$LDFLAGS"
    check_portals_save_LIBS="$LIBS"

    check_portals_CPPFLAGS=
    check_portals_LDFLAGS=
    check_portals_LIBS=

    check_portals_configuration="none"
    ompi_check_portals_happy="yes"

    # Get some configuration information

# Check whether --with-portals was given.
if test "${with_portals+set}" = set; then
  withval=$with_portals;
fi


# Check whether --with-portals-config was given.
if test "${with_portals_config+set}" = set; then
  withval=$with_portals_config;
fi


# Check whether --with-portals-libs was given.
if test "${with_portals_libs+set}" = set; then
  withval=$with_portals_libs;
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"
    elif test "$with_portals_config" = "redstorm" ; then
        with_portals_config="xt3"
    fi
    OMPI_PORTALS_UTCP=0
    OMPI_PORTALS_CRAYXT3=0
    case "$with_portals_config" in
        "utcp")
            OMPI_PORTALS_UTCP=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=1
            check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"
            check_portals_header_prefix=
            { echo "$as_me:$LINENO: result: utcp" >&5
echo "${ECHO_T}utcp" >&6; }
            ;;
        "xt3")
            OMPI_PORTALS_CRAYXT3=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { echo "$as_me:$LINENO: result: Cray XT3" >&5
echo "${ECHO_T}Cray XT3" >&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


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



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


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


    # Add correct -I and -L flags
    if test -n "$with_portals"; then
  if test -d "$with_portals/include"; then
  check_portals_CPPFLAGS="-I$with_portals/include"
                  CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS"
fi

           if test -d "$with_portals/lib"; then
  check_portals_LDFLAGS="-L$with_portals/lib"
                  LDFLAGS="$LDFLAGS $check_portals_LDFLAGS"
fi

fi


    # Try to find all the portals libraries (this is not fun!)
    if test -n "$with_portals_libs" ; then
        check_portals_LIBS=""
        for lib in $with_portals_libs ; do
            check_portals_LIBS="$check_portals_LIBS -l$lib"
        done
    fi

    # check for portals
    LIBS="$LIBS $btl_portals_LIBS"

for ac_header in ${check_portals_header_prefix}portals3.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 <${check_portals_header_prefix}portals3.h>
int
main ()
{
int i; PtlInit(&i);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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"
               ompi_check_portals_happy="yes"
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; }
               ompi_check_portals_happy="yes"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
else
  ompi_check_portals_happy="no"
fi

done


    # reset the flags for the next test
    CPPFLAGS="$check_portals_save_CPPFLAGS"
    LDFLAGS="$check_portals_save_LDFLAGS"
    LIBS="$check_portals_save_LIBS"

    btl_portals_CPPFLAGS="$check_portals_CPPFLAGS"
    btl_portals_LDFLAGS="$check_portals_LDFLAGS"
    btl_portals_LIBS="$check_portals_LIBS"

    if test "$ompi_check_portals_happy" = "yes"; then
  btl_portals_happy="yes"
else
  if test ! -z "$with_portals" -a "$with_portals" != "no"; then
  { { echo "$as_me:$LINENO: error: Portals support requested but not found.  Aborting" >&5
echo "$as_me: error: Portals support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           btl_portals_happy="no"
fi



    if test "$btl_portals_happy" = "yes"; then
  btl_portals_WRAPPER_EXTRA_LDFLAGS="$btl_portals_LDFLAGS"
           btl_portals_WRAPPER_EXTRA_LIBS="$btl_portals_LIBS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build portals




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 $OMPI_CONFIGURE_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

typedef struct sockaddr_in ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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

    ompi_show_subsubsubtitle "MCA component btl:udapl (m4 configuration macro)"


    project=ompi
    framework=btl
    component=udapl
    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 $OMPI_CONFIGURE_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=udapl

    # 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-udapl was given.
if test "${with_udapl+set}" = set; then
  withval=$with_udapl;
fi


# Check whether --with-udapl-libdir was given.
if test "${with_udapl_libdir+set}" = set; then
  withval=$with_udapl_libdir;
fi


    # Special case for OFED/Linux: the default /etc/dat.conf that
    # ships with OFED is broken in that it includes DAT providers that
    # are not guarnateed to work (e.g., it includes providers for ib0,
    # ib1, ib2, ib3, and bond0).  Usually, a sysadmin will need to
    # edit this file to configure it for the specific environment in
    # which it will be used.  Hence, if you run the udapl BTL on
    # Linux/OFED, you'll get a bunch of warning messages about the
    # providers that don't work.  However, on Linux/OFED, you don't
    # really want to use udapl anyway; you likely really want to use
    # the openib BTL (i.e., native verbs, not udapl).

    # So after exploring many different scenarios, the least evil
    # solution seemed to be to disable building the udapl BTL on
    # Linux/OFED *unless the user specifically asks for it.* To be
    # specific: on Linux/OFED, if you do not specify
    # --with-udapl(=DIR), the udapl BTL will not be built.
    if test -z "$with_udapl"; then
  case $host in
              *linux*)
                  { echo "$as_me:$LINENO: WARNING: On Linux and --with-udapl was not specified" >&5
echo "$as_me: WARNING: On Linux and --with-udapl was not specified" >&2;}
                  { echo "$as_me:$LINENO: WARNING: Not building the udapl BTL" >&5
echo "$as_me: WARNING: Not building the udapl BTL" >&2;}
                  with_udapl=no
                  ;;
           esac
fi


    if test ! -z "$with_udapl" -a "$with_udapl" != "yes"; then
  ompi_check_udapl_dir="$with_udapl"
fi

    if test ! -z "$with_udapl_libdir" -a "$with_udapl_libdir" != "yes"; then
  ompi_check_udapl_libdir="$with_udapl_libdir"
fi


    if test "$with_udapl" != "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 udapl" >&5
echo "$as_me: WARNING: POSIX threads not enabled.  May not be able to link with udapl" >&2;}
fi


           ompi_check_udaplbtl_udapl_save_CFLAGS="$CFLAGS"
           ompi_check_udaplbtl_udapl_save_CPPFLAGS="$CPPFLAGS"


    ompi_check_package_btl_udapl_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_udapl_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_udapl_save_LIBS="$LIBS"

    ompi_check_package_btl_udapl_orig_CPPFLAGS="$btl_udapl_CPPFLAGS"
    ompi_check_package_btl_udapl_orig_LDFLAGS="$btl_udapl_LDFLAGS"
    ompi_check_package_btl_udapl_orig_LIBS="$btl_udapl_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_dat_udat_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_udapl_dir" = "/usr" -o "$ompi_check_udapl_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_dat_udat_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for dat/udat.h" >&5
echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking dat/udat.h usability" >&5
echo $ECHO_N "checking dat/udat.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 <dat/udat.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 dat/udat.h presence" >&5
echo $ECHO_N "checking dat/udat.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 <dat/udat.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: dat/udat.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: dat/udat.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: dat/udat.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: dat/udat.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 dat/udat.h" >&5
echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_dat_udat_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; }

fi
if test $ac_cv_header_dat_udat_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_dat_udat_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_udapl_dir" != ""; then
  btl_udapl_CPPFLAGS="$btl_udapl_CPPFLAGS -I$ompi_check_udapl_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_udapl_dir/include"
fi

           if test "${ac_cv_header_dat_udat_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for dat/udat.h" >&5
echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking dat/udat.h usability" >&5
echo $ECHO_N "checking dat/udat.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 <dat/udat.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 dat/udat.h presence" >&5
echo $ECHO_N "checking dat/udat.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 <dat/udat.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: dat/udat.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: dat/udat.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: dat/udat.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: dat/udat.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 dat/udat.h" >&5
echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_dat_udat_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; }

fi
if test $ac_cv_header_dat_udat_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_dat_dat_registry_list_providers
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_udapl_libdir" != ""; then
   # libdir was specified - search only there
           btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_udapl_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_udapl_libdir"
           { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                  btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                  unset ac_cv_lib_dat_dat_registry_list_providers
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                     btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                     unset ac_cv_lib_dat_dat_registry_list_providers
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_udapl_LDFLAGS="$btl_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_udapl_LDFLAGS="$btl_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
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_dat_dat_registry_list_providers
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_udapl_libdir" != ""; then
   # libdir was specified - search only there
           btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_udapl_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_udapl_libdir"
           { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                  btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                  unset ac_cv_lib_dat_dat_registry_list_providers
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                     btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                     unset ac_cv_lib_dat_dat_registry_list_providers
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_udapl_LDFLAGS="$btl_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_udapl_LDFLAGS="$btl_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
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_udapl_happy="yes"
           btl_udapl_LIBS="-ldat "
else
  btl_udapl_CPPFLAGS="$ompi_check_package_btl_udapl_orig_CPPFLAGS"
           btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
           btl_udapl_LIBS="$ompi_check_package_btl_udapl_orig_LIBS"
           ompi_check_udapl_happy="no"
fi


    CPPFLAGS="$ompi_check_package_btl_udapl_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_udapl_save_LIBS"


           # if needed use -ldapl as well
           if test "$ompi_check_udapl_happy" = "no"; then

    ompi_check_package_btl_udapl_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_udapl_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_udapl_save_LIBS="$LIBS"

    ompi_check_package_btl_udapl_orig_CPPFLAGS="$btl_udapl_CPPFLAGS"
    ompi_check_package_btl_udapl_orig_LDFLAGS="$btl_udapl_LDFLAGS"
    ompi_check_package_btl_udapl_orig_LIBS="$btl_udapl_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_dat_udat_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_udapl_dir" = "/usr" -o "$ompi_check_udapl_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_dat_udat_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for dat/udat.h" >&5
echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking dat/udat.h usability" >&5
echo $ECHO_N "checking dat/udat.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 <dat/udat.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 dat/udat.h presence" >&5
echo $ECHO_N "checking dat/udat.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 <dat/udat.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: dat/udat.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: dat/udat.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: dat/udat.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: dat/udat.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 dat/udat.h" >&5
echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_dat_udat_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; }

fi
if test $ac_cv_header_dat_udat_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_dat_udat_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_udapl_dir" != ""; then
  btl_udapl_CPPFLAGS="$btl_udapl_CPPFLAGS -I$ompi_check_udapl_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_udapl_dir/include"
fi

           if test "${ac_cv_header_dat_udat_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for dat/udat.h" >&5
echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking dat/udat.h usability" >&5
echo $ECHO_N "checking dat/udat.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 <dat/udat.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 dat/udat.h presence" >&5
echo $ECHO_N "checking dat/udat.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 <dat/udat.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: dat/udat.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: dat/udat.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: dat/udat.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: dat/udat.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 dat/udat.h" >&5
echo $ECHO_N "checking for dat/udat.h... $ECHO_C" >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_dat_udat_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
echo "${ECHO_T}$ac_cv_header_dat_udat_h" >&6; }

fi
if test $ac_cv_header_dat_udat_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_dat_dat_registry_list_providers
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_udapl_libdir" != ""; then
   # libdir was specified - search only there
           btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_udapl_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_udapl_libdir"
           { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                  btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                  unset ac_cv_lib_dat_dat_registry_list_providers
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                     btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                     unset ac_cv_lib_dat_dat_registry_list_providers
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_udapl_LDFLAGS="$btl_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_udapl_LDFLAGS="$btl_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
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_dat_dat_registry_list_providers
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_udapl_libdir" != ""; then
   # libdir was specified - search only there
           btl_udapl_LDFLAGS="$btl_udapl_LDFLAGS -L$ompi_check_udapl_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_udapl_libdir"
           { echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                  btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                  unset ac_cv_lib_dat_dat_registry_list_providers
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                     btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                     unset ac_cv_lib_dat_dat_registry_list_providers
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_udapl_LDFLAGS="$btl_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_udapl_LDFLAGS="$btl_udapl_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 dat_registry_list_providers in -ldat" >&5
echo $ECHO_N "checking for dat_registry_list_providers in -ldat... $ECHO_C" >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldat -ldapl $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dat_registry_list_providers ();
int
main ()
{
return dat_registry_list_providers ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
echo "${ECHO_T}$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test $ac_cv_lib_dat_dat_registry_list_providers = 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_udapl_save_LDFLAGS"
                          btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
                          unset ac_cv_lib_dat_dat_registry_list_providers
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_udapl_happy="yes"
           btl_udapl_LIBS="-ldat -ldapl"
else
  btl_udapl_CPPFLAGS="$ompi_check_package_btl_udapl_orig_CPPFLAGS"
           btl_udapl_LDFLAGS="$ompi_check_package_btl_udapl_orig_LDFLAGS"
           btl_udapl_LIBS="$ompi_check_package_btl_udapl_orig_LIBS"
           ompi_check_udapl_happy="no"
fi


    CPPFLAGS="$ompi_check_package_btl_udapl_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_udapl_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_udapl_save_LIBS"

fi


           CPPFLAGS="$ompi_check_udaplbtl_udapl_save_CPPFLAGS"
else
  ompi_check_udapl_happy="no"
fi


    if test "$ompi_check_udapl_happy" = "yes"; then
  btl_udapl_happy="yes"
else
  if test ! -z "$with_udapl" -a "$with_udapl" != "no"; then
  { { echo "$as_me:$LINENO: error: uDAPL support requested but not found.  Aborting" >&5
echo "$as_me: error: uDAPL support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           btl_udapl_happy="no"
fi



    if test "$btl_udapl_happy" = "yes"; then
  btl_udapl_WRAPPER_EXTRA_LDFLAGS="$btl_udapl_LDFLAGS"
           btl_udapl_WRAPPER_EXTRA_LIBS="$btl_udapl_LIBS"
           should_build=1
else
  should_build=0
fi


    # Borrowed from MVAPI BTL - a data structure in the uDAPL headers
    # is not fully ISO C.  Remove -pedantic to silence a warning.
    btl_udapl_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`"
    if test "$btl_udapl_CFLAGS" != "$CFLAGS" -a "$btl_udapl_happy" = "yes"; then
  { echo "$as_me:$LINENO: WARNING: Removed -pedantic from CFLAGS for
uDAPL component because the uDAPL headers are not fully ISO C" >&5
echo "$as_me: WARNING: Removed -pedantic from CFLAGS for
uDAPL component because the uDAPL headers are not fully ISO C" >&2;}
fi


    # substitute in the things needed to build udapl





fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=btl
    component=udapl

    # 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:udapl can compile" >&5
echo $ECHO_N "checking if MCA component btl:udapl 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" = "udapl" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"udapl\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"udapl\" 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" = "udapl" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"udapl\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"udapl\" 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 udapl"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_btl_udapl_DSO=1
else
  BUILD_btl_udapl_DSO=0
fi

     if test "$BUILD_btl_udapl_DSO" = "1"; then
  OMPI_BUILD_btl_udapl_DSO_TRUE=
  OMPI_BUILD_btl_udapl_DSO_FALSE='#'
else
  OMPI_BUILD_btl_udapl_DSO_TRUE='#'
  OMPI_BUILD_btl_udapl_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_btl_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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, self, sm, tuned" >&5
echo "${ECHO_T}basic, 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 $OMPI_CONFIGURE_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: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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_coll_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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: mx, portals" >&5
echo "${ECHO_T}mx, portals" >&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 $OMPI_CONFIGURE_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


    ompi_show_subsubsubtitle "MCA component common:mx (m4 configuration macro)"


    project=ompi
    framework=common
    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 $OMPI_CONFIGURE_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


    # 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=common
    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_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


    # 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 was given.
if test "${with_mx+set}" = set; then
  withval=$with_mx;
fi


# Check whether --with-mx-libdir was given.
if test "${with_mx_libdir+set}" = set; then
  withval=$with_mx_libdir;
fi


    ompi_check_mx_common_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_mx_common_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_mx_common_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_common_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_common_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_common_mx_save_LIBS="$LIBS"

    ompi_check_package_common_mx_orig_CPPFLAGS="$common_mx_CPPFLAGS"
    ompi_check_package_common_mx_orig_LDFLAGS="$common_mx_LDFLAGS"
    ompi_check_package_common_mx_orig_LIBS="$common_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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
  common_mx_CPPFLAGS="$common_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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
           common_mx_LDFLAGS="$common_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_common_mx_save_LDFLAGS"
                  common_mx_LDFLAGS="$ompi_check_package_common_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_common_mx_save_LDFLAGS"
                     common_mx_LDFLAGS="$ompi_check_package_common_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
  common_mx_LDFLAGS="$common_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_common_mx_save_LDFLAGS"
                          common_mx_LDFLAGS="$ompi_check_package_common_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
  common_mx_LDFLAGS="$common_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_common_mx_save_LDFLAGS"
                          common_mx_LDFLAGS="$ompi_check_package_common_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
           common_mx_LDFLAGS="$common_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_common_mx_save_LDFLAGS"
                  common_mx_LDFLAGS="$ompi_check_package_common_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_common_mx_save_LDFLAGS"
                     common_mx_LDFLAGS="$ompi_check_package_common_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
  common_mx_LDFLAGS="$common_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_common_mx_save_LDFLAGS"
                          common_mx_LDFLAGS="$ompi_check_package_common_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
  common_mx_LDFLAGS="$common_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_common_mx_save_LDFLAGS"
                          common_mx_LDFLAGS="$ompi_check_package_common_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"
           common_mx_LIBS="-lmyriexpress "
else
  common_mx_CPPFLAGS="$ompi_check_package_common_mx_orig_CPPFLAGS"
           common_mx_LDFLAGS="$ompi_check_package_common_mx_orig_LDFLAGS"
           common_mx_LIBS="$ompi_check_package_common_mx_orig_LIBS"
           ompi_check_mx_happy="no"
fi


    CPPFLAGS="$ompi_check_package_common_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_common_mx_save_LDFLAGS"
    LIBS="$ompi_check_package_common_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_common_mx_save_CPPFLAGS $common_mx_CPPFLAGS"
    LDFLAGS="$ompi_check_mx_common_mx_save_LDFLAGS $common_mx_LDFLAGS"
    LIBS="$ompi_check_mx_common_mx_save_LIBS $common_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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_COMMON_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

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

fi

    if test "$ompi_check_mx_happy" = "yes"; then

    #
    # Check if the MX library provide the mx_register_unexp_callback function.
    # With this function, OMPI can avoid having a double matching logic
    # (one on the MX library and one on OMPI) by registering our own matching
    # function.

    { echo "$as_me:$LINENO: checking for a MX version with mx_register_match_callback" >&5
echo $ECHO_N "checking for a MX version with mx_register_match_callback... $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 ()
{
mx_register_unexp_callback(0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  mx_provide_match_callback="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	mx_provide_match_callback="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    { echo "$as_me:$LINENO: result: $mx_provide_match_callback" >&5
echo "${ECHO_T}$mx_provide_match_callback" >&6; }
    if test x"$mx_provide_match_callback" = "xyes"; then

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

           ompi_check_mx_register="yes"
else
  ompi_check_mx_register="no"
fi

    unset mx_provide_match_callback

fi


    CPPFLAGS="$ompi_check_mx_common_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_mx_common_mx_save_LDFLAGS"
    LIBS="$ompi_check_mx_common_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
  common_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

           common_mx_happy="no"
fi



    if test "$common_mx_happy" = "yes"; then
  common_mx_WRAPPER_EXTRA_LDFLAGS="$common_mx_LDFLAGS"
           common_mx_WRAPPER_EXTRA_LIBS="$common_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=common
    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_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:mx can compile" >&5
echo $ECHO_N "checking if MCA component common: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_common" = "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_common" ; then
        if test "$DIRECT_common" = "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_common_mx_DSO=1
else
  BUILD_common_mx_DSO=0
fi

     if test "$BUILD_common_mx_DSO" = "1"; then
  OMPI_BUILD_common_mx_DSO_TRUE=
  OMPI_BUILD_common_mx_DSO_FALSE='#'
else
  OMPI_BUILD_common_mx_DSO_TRUE='#'
  OMPI_BUILD_common_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 common:portals (m4 configuration macro)"


    project=ompi
    framework=common
    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 $OMPI_CONFIGURE_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


    # 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=common
    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_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


    # 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.
    check_portals_save_CPPFLAGS="$CPPFLAGS"
    check_portals_save_LDFLAGS="$LDFLAGS"
    check_portals_save_LIBS="$LIBS"

    check_portals_CPPFLAGS=
    check_portals_LDFLAGS=
    check_portals_LIBS=

    check_portals_configuration="none"
    ompi_check_portals_happy="yes"

    # Get some configuration information

# Check whether --with-portals was given.
if test "${with_portals+set}" = set; then
  withval=$with_portals;
fi


# Check whether --with-portals-config was given.
if test "${with_portals_config+set}" = set; then
  withval=$with_portals_config;
fi


# Check whether --with-portals-libs was given.
if test "${with_portals_libs+set}" = set; then
  withval=$with_portals_libs;
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"
    elif test "$with_portals_config" = "redstorm" ; then
        with_portals_config="xt3"
    fi
    OMPI_PORTALS_UTCP=0
    OMPI_PORTALS_CRAYXT3=0
    case "$with_portals_config" in
        "utcp")
            OMPI_PORTALS_UTCP=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=1
            check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"
            check_portals_header_prefix=
            { echo "$as_me:$LINENO: result: utcp" >&5
echo "${ECHO_T}utcp" >&6; }
            ;;
        "xt3")
            OMPI_PORTALS_CRAYXT3=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { echo "$as_me:$LINENO: result: Cray XT3" >&5
echo "${ECHO_T}Cray XT3" >&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


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



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


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


    # Add correct -I and -L flags
    if test -n "$with_portals"; then
  if test -d "$with_portals/include"; then
  check_portals_CPPFLAGS="-I$with_portals/include"
                  CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS"
fi

           if test -d "$with_portals/lib"; then
  check_portals_LDFLAGS="-L$with_portals/lib"
                  LDFLAGS="$LDFLAGS $check_portals_LDFLAGS"
fi

fi


    # Try to find all the portals libraries (this is not fun!)
    if test -n "$with_portals_libs" ; then
        check_portals_LIBS=""
        for lib in $with_portals_libs ; do
            check_portals_LIBS="$check_portals_LIBS -l$lib"
        done
    fi

    # check for portals
    LIBS="$LIBS $btl_portals_LIBS"

for ac_header in ${check_portals_header_prefix}portals3.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 <${check_portals_header_prefix}portals3.h>
int
main ()
{
int i; PtlInit(&i);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
               common_portals_WRAPPER_EXTRA_LDFLAGS="$btl_portals_LDFLAGS"
               common_portals_WRAPPER_EXTRA_LIBS="$btl_portals_LIBS"
               ompi_check_portals_happy="yes"
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; }
               ompi_check_portals_happy="yes"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
else
  ompi_check_portals_happy="no"
fi

done


    # reset the flags for the next test
    CPPFLAGS="$check_portals_save_CPPFLAGS"
    LDFLAGS="$check_portals_save_LDFLAGS"
    LIBS="$check_portals_save_LIBS"

    common_portals_CPPFLAGS="$check_portals_CPPFLAGS"
    common_portals_LDFLAGS="$check_portals_LDFLAGS"
    common_portals_LIBS="$check_portals_LIBS"

    if test "$ompi_check_portals_happy" = "yes"; then
  common_portals_happy="yes"
else
  if test ! -z "$with_portals" -a "$with_portals" != "no"; then
  { { echo "$as_me:$LINENO: error: Portals support requested but not found.  Aborting" >&5
echo "$as_me: error: Portals support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           common_portals_happy="no"
fi



    if test "$common_portals_happy" = "yes"; then
  common_portals_WRAPPER_EXTRA_LDFLAGS="$common_portals_LDFLAGS"
           common_portals_WRAPPER_EXTRA_LIBS="$common_portals_LIBS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build portals




fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=common
    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_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:portals can compile" >&5
echo $ECHO_N "checking if MCA component common: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_common" = "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_common" ; then
        if test "$DIRECT_common" = "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_common_portals_DSO=1
else
  BUILD_common_portals_DSO=0
fi

     if test "$BUILD_common_portals_DSO" = "1"; then
  OMPI_BUILD_common_portals_DSO_TRUE=
  OMPI_BUILD_common_portals_DSO_FALSE='#'
else
  OMPI_BUILD_common_portals_DSO_TRUE='#'
  OMPI_BUILD_common_portals_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/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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_common_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 was given.
if test "${enable_io_romio+set}" = set; then
  enableval=$enable_io_romio;
fi


# Check whether --with-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



    if test $should_build -eq 0 -a "$enable_dist" = "yes"; then
  { { echo "$as_me:$LINENO: error: ROMIO disabled but --enable-dist specifed.  This will result in a bad tarball.  Aborting configure." >&5
echo "$as_me: error: ROMIO disabled but --enable-dist specifed.  This will result in a bad tarball.  Aborting configure." >&2;}
   { (exit 1); exit 1; }; }
fi

     if test $should_build -eq 1; then
  MCA_io_romio_SHOULD_BUILD_TRUE=
  MCA_io_romio_SHOULD_BUILD_FALSE='#'
else
  MCA_io_romio_SHOULD_BUILD_TRUE='#'
  MCA_io_romio_SHOULD_BUILD_FALSE=
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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_io_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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: rdma, sm" >&5
echo "${ECHO_T}rdma, 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: " >&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 mpool:rdma (no configuration)"


    project=ompi
    framework=mpool
    component=rdma
    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 $OMPI_CONFIGURE_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=rdma

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

    # 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:rdma can compile" >&5
echo $ECHO_N "checking if MCA component mpool:rdma 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" = "rdma" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"rdma\" 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" = "rdma" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"rdma\" 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 rdma"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_mpool_rdma_DSO=1
    else
        BUILD_mpool_rdma_DSO=0
    fi
     if test "$BUILD_mpool_rdma_DSO" = "1"; then
  OMPI_BUILD_mpool_rdma_DSO_TRUE=
  OMPI_BUILD_mpool_rdma_DSO_FALSE='#'
else
  OMPI_BUILD_mpool_rdma_DSO_TRUE='#'
  OMPI_BUILD_mpool_rdma_DSO_FALSE=
fi


    unset compile_mode

    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 $OMPI_CONFIGURE_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



    # 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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_mpool_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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 "mtl" = "common" ; then
                              MCA_ompi_FRAMEWORKS="mtl $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/mtl $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_mtl_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_mtl_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_mtl_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS mtl"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/mtl"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_mtl_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_mtl_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_mtl_STATIC_SUBDIRS)"
                          fi
                          if test "mtl" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/mtl/libmca_mtl.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_mtl_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework mtl"

    # 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 "mtl" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/mtl/base
    fi
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 mtl" >&5
echo $ECHO_N "checking for no configure components in framework mtl... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6; }
    { echo "$as_me:$LINENO: checking for m4 configure components in framework mtl" >&5
echo $ECHO_N "checking for m4 configure components in framework mtl... $ECHO_C" >&6; }
    { echo "$as_me:$LINENO: result: mx, portals, psm" >&5
echo "${ECHO_T}mx, portals, psm" >&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 mtl:mx (m4 configuration macro)"


    project=ompi
    framework=mtl
    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 $OMPI_CONFIGURE_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_mtl" ; then
            if test "$DIRECT_mtl" = "$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=mtl
    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_mtl" = "$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 was given.
if test "${with_mx+set}" = set; then
  withval=$with_mx;
fi


# Check whether --with-mx-libdir was given.
if test "${with_mx_libdir+set}" = set; then
  withval=$with_mx_libdir;
fi


    ompi_check_mx_mtl_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_mx_mtl_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_mx_mtl_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_mtl_mx_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_mtl_mx_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_mtl_mx_save_LIBS="$LIBS"

    ompi_check_package_mtl_mx_orig_CPPFLAGS="$mtl_mx_CPPFLAGS"
    ompi_check_package_mtl_mx_orig_LDFLAGS="$mtl_mx_LDFLAGS"
    ompi_check_package_mtl_mx_orig_LIBS="$mtl_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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
  mtl_mx_CPPFLAGS="$mtl_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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
           mtl_mx_LDFLAGS="$mtl_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_mtl_mx_save_LDFLAGS"
                  mtl_mx_LDFLAGS="$ompi_check_package_mtl_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_mtl_mx_save_LDFLAGS"
                     mtl_mx_LDFLAGS="$ompi_check_package_mtl_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
  mtl_mx_LDFLAGS="$mtl_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_mtl_mx_save_LDFLAGS"
                          mtl_mx_LDFLAGS="$ompi_check_package_mtl_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
  mtl_mx_LDFLAGS="$mtl_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_mtl_mx_save_LDFLAGS"
                          mtl_mx_LDFLAGS="$ompi_check_package_mtl_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
           mtl_mx_LDFLAGS="$mtl_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_mtl_mx_save_LDFLAGS"
                  mtl_mx_LDFLAGS="$ompi_check_package_mtl_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_mtl_mx_save_LDFLAGS"
                     mtl_mx_LDFLAGS="$ompi_check_package_mtl_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
  mtl_mx_LDFLAGS="$mtl_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_mtl_mx_save_LDFLAGS"
                          mtl_mx_LDFLAGS="$ompi_check_package_mtl_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
  mtl_mx_LDFLAGS="$mtl_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char mx_finalize ();
int
main ()
{
return mx_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_mtl_mx_save_LDFLAGS"
                          mtl_mx_LDFLAGS="$ompi_check_package_mtl_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"
           mtl_mx_LIBS="-lmyriexpress "
else
  mtl_mx_CPPFLAGS="$ompi_check_package_mtl_mx_orig_CPPFLAGS"
           mtl_mx_LDFLAGS="$ompi_check_package_mtl_mx_orig_LDFLAGS"
           mtl_mx_LIBS="$ompi_check_package_mtl_mx_orig_LIBS"
           ompi_check_mx_happy="no"
fi


    CPPFLAGS="$ompi_check_package_mtl_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_mtl_mx_save_LDFLAGS"
    LIBS="$ompi_check_package_mtl_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_mtl_mx_save_CPPFLAGS $mtl_mx_CPPFLAGS"
    LDFLAGS="$ompi_check_mx_mtl_mx_save_LDFLAGS $mtl_mx_LDFLAGS"
    LIBS="$ompi_check_mx_mtl_mx_save_LIBS $mtl_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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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_MTL_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

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

fi

    if test "$ompi_check_mx_happy" = "yes"; then

    #
    # Check if the MX library provide the mx_register_unexp_callback function.
    # With this function, OMPI can avoid having a double matching logic
    # (one on the MX library and one on OMPI) by registering our own matching
    # function.

    { echo "$as_me:$LINENO: checking for a MX version with mx_register_match_callback" >&5
echo $ECHO_N "checking for a MX version with mx_register_match_callback... $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 ()
{
mx_register_unexp_callback(0, 0, 0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  mx_provide_match_callback="yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	mx_provide_match_callback="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    { echo "$as_me:$LINENO: result: $mx_provide_match_callback" >&5
echo "${ECHO_T}$mx_provide_match_callback" >&6; }
    if test x"$mx_provide_match_callback" = "xyes"; then

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

           ompi_check_mx_register="yes"
else
  ompi_check_mx_register="no"
fi

    unset mx_provide_match_callback

fi


    CPPFLAGS="$ompi_check_mx_mtl_mx_save_CPPFLAGS"
    LDFLAGS="$ompi_check_mx_mtl_mx_save_LDFLAGS"
    LIBS="$ompi_check_mx_mtl_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
  mtl_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

           mtl_mx_happy="no"
fi



    if test "$mtl_mx_happy" = "yes"; then
  mtl_mx_WRAPPER_EXTRA_LDFLAGS="$mtl_mx_LDFLAGS"
           mtl_mx_WRAPPER_EXTRA_LIBS="$mtl_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=mtl
    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_mtl" = "$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_mtl" = "$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 mtl:mx can compile" >&5
echo $ECHO_N "checking if MCA component mtl: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_mtl" = "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_mtl" ; then
        if test "$DIRECT_mtl" = "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_mtl_mx_DSO=1
else
  BUILD_mtl_mx_DSO=0
fi

     if test "$BUILD_mtl_mx_DSO" = "1"; then
  OMPI_BUILD_mtl_mx_DSO_TRUE=
  OMPI_BUILD_mtl_mx_DSO_FALSE='#'
else
  OMPI_BUILD_mtl_mx_DSO_TRUE='#'
  OMPI_BUILD_mtl_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 mtl:portals (m4 configuration macro)"


    project=ompi
    framework=mtl
    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 $OMPI_CONFIGURE_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_mtl" ; then
            if test "$DIRECT_mtl" = "$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=mtl
    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_mtl" = "$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.
    check_portals_save_CPPFLAGS="$CPPFLAGS"
    check_portals_save_LDFLAGS="$LDFLAGS"
    check_portals_save_LIBS="$LIBS"

    check_portals_CPPFLAGS=
    check_portals_LDFLAGS=
    check_portals_LIBS=

    check_portals_configuration="none"
    ompi_check_portals_happy="yes"

    # Get some configuration information

# Check whether --with-portals was given.
if test "${with_portals+set}" = set; then
  withval=$with_portals;
fi


# Check whether --with-portals-config was given.
if test "${with_portals_config+set}" = set; then
  withval=$with_portals_config;
fi


# Check whether --with-portals-libs was given.
if test "${with_portals_libs+set}" = set; then
  withval=$with_portals_libs;
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"
    elif test "$with_portals_config" = "redstorm" ; then
        with_portals_config="xt3"
    fi
    OMPI_PORTALS_UTCP=0
    OMPI_PORTALS_CRAYXT3=0
    case "$with_portals_config" in
        "utcp")
            OMPI_PORTALS_UTCP=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=1
            check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"
            check_portals_header_prefix=
            { echo "$as_me:$LINENO: result: utcp" >&5
echo "${ECHO_T}utcp" >&6; }
            ;;
        "xt3")
            OMPI_PORTALS_CRAYXT3=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { echo "$as_me:$LINENO: result: Cray XT3" >&5
echo "${ECHO_T}Cray XT3" >&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


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



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


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


    # Add correct -I and -L flags
    if test -n "$with_portals"; then
  if test -d "$with_portals/include"; then
  check_portals_CPPFLAGS="-I$with_portals/include"
                  CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS"
fi

           if test -d "$with_portals/lib"; then
  check_portals_LDFLAGS="-L$with_portals/lib"
                  LDFLAGS="$LDFLAGS $check_portals_LDFLAGS"
fi

fi


    # Try to find all the portals libraries (this is not fun!)
    if test -n "$with_portals_libs" ; then
        check_portals_LIBS=""
        for lib in $with_portals_libs ; do
            check_portals_LIBS="$check_portals_LIBS -l$lib"
        done
    fi

    # check for portals
    LIBS="$LIBS $btl_portals_LIBS"

for ac_header in ${check_portals_header_prefix}portals3.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 <${check_portals_header_prefix}portals3.h>
int
main ()
{
int i; PtlInit(&i);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
               mtl_portals_WRAPPER_EXTRA_LDFLAGS="$btl_portals_LDFLAGS"
               mtl_portals_WRAPPER_EXTRA_LIBS="$btl_portals_LIBS"
               ompi_check_portals_happy="yes"
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; }
               ompi_check_portals_happy="yes"
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
else
  ompi_check_portals_happy="no"
fi

done


    # reset the flags for the next test
    CPPFLAGS="$check_portals_save_CPPFLAGS"
    LDFLAGS="$check_portals_save_LDFLAGS"
    LIBS="$check_portals_save_LIBS"

    mtl_portals_CPPFLAGS="$check_portals_CPPFLAGS"
    mtl_portals_LDFLAGS="$check_portals_LDFLAGS"
    mtl_portals_LIBS="$check_portals_LIBS"

    if test "$ompi_check_portals_happy" = "yes"; then
  mtl_portals_happy="yes"
else
  if test ! -z "$with_portals" -a "$with_portals" != "no"; then
  { { echo "$as_me:$LINENO: error: Portals support requested but not found.  Aborting" >&5
echo "$as_me: error: Portals support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           mtl_portals_happy="no"
fi



    if test "$mtl_portals_happy" = "yes"; then
  mtl_portals_WRAPPER_EXTRA_LDFLAGS="$mtl_portals_LDFLAGS"
           mtl_portals_WRAPPER_EXTRA_LIBS="$mtl_portals_LIBS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build portals




fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=mtl
    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_mtl" = "$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_mtl" = "$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 mtl:portals can compile" >&5
echo $ECHO_N "checking if MCA component mtl: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_mtl" = "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_mtl" ; then
        if test "$DIRECT_mtl" = "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_mtl_portals_DSO=1
else
  BUILD_mtl_portals_DSO=0
fi

     if test "$BUILD_mtl_portals_DSO" = "1"; then
  OMPI_BUILD_mtl_portals_DSO_TRUE=
  OMPI_BUILD_mtl_portals_DSO_FALSE='#'
else
  OMPI_BUILD_mtl_portals_DSO_TRUE='#'
  OMPI_BUILD_mtl_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 mtl:psm (m4 configuration macro)"


    project=ompi
    framework=mtl
    component=psm
    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 $OMPI_CONFIGURE_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_mtl" ; then
            if test "$DIRECT_mtl" = "$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=mtl
    component=psm

    # 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_mtl" = "$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-psm was given.
if test "${with_psm+set}" = set; then
  withval=$with_psm;
fi


# Check whether --with-psm-libdir was given.
if test "${with_psm_libdir+set}" = set; then
  withval=$with_psm_libdir;
fi


    ompi_check_psm_mtl_psm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_psm_mtl_psm_save_LDFLAGS="$LDFLAGS"
    ompi_check_psm_mtl_psm_save_LIBS="$LIBS"

    if test "$with_psm" != "no"; then
  if test ! -z "$with_psm" -a "$with_psm" != "yes"; then
  ompi_check_psm_dir="$with_psm"
fi

           if test ! -z "$with_psm_libdir" -a "$with_psm_libdir" != "yes"; then
  ompi_check_psm_libdir="$with_psm_libdir"
fi



    ompi_check_package_mtl_psm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_mtl_psm_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_mtl_psm_save_LIBS="$LIBS"

    ompi_check_package_mtl_psm_orig_CPPFLAGS="$mtl_psm_CPPFLAGS"
    ompi_check_package_mtl_psm_orig_LDFLAGS="$mtl_psm_LDFLAGS"
    ompi_check_package_mtl_psm_orig_LIBS="$mtl_psm_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_psm_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_psm_dir" = "/usr" -o "$ompi_check_psm_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_psm_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for psm.h" >&5
echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; }
if test "${ac_cv_header_psm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5
echo "${ECHO_T}$ac_cv_header_psm_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking psm.h usability" >&5
echo $ECHO_N "checking psm.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 <psm.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 psm.h presence" >&5
echo $ECHO_N "checking psm.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 <psm.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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: psm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: psm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: psm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: psm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: psm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: psm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: psm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: psm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: psm.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 psm.h" >&5
echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; }
if test "${ac_cv_header_psm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_psm_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5
echo "${ECHO_T}$ac_cv_header_psm_h" >&6; }

fi
if test $ac_cv_header_psm_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_psm_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_psm_dir" != ""; then
  mtl_psm_CPPFLAGS="$mtl_psm_CPPFLAGS -I$ompi_check_psm_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_psm_dir/include"
fi

           if test "${ac_cv_header_psm_h+set}" = set; then
  { echo "$as_me:$LINENO: checking for psm.h" >&5
echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; }
if test "${ac_cv_header_psm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5
echo "${ECHO_T}$ac_cv_header_psm_h" >&6; }
else
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking psm.h usability" >&5
echo $ECHO_N "checking psm.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 <psm.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 psm.h presence" >&5
echo $ECHO_N "checking psm.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 <psm.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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: psm.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: psm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: psm.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: psm.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: psm.h:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: psm.h: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: psm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: psm.h: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: psm.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: psm.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 psm.h" >&5
echo $ECHO_N "checking for psm.h... $ECHO_C" >&6; }
if test "${ac_cv_header_psm_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_psm_h=$ac_header_preproc
fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5
echo "${ECHO_T}$ac_cv_header_psm_h" >&6; }

fi
if test $ac_cv_header_psm_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_psm_infinipath_psm_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_psm_libdir" != ""; then
   # libdir was specified - search only there
           mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_psm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_psm_libdir"
           { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5
echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test $ac_cv_lib_psm_infinipath_psm_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_mtl_psm_save_LDFLAGS"
                  mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                  unset ac_cv_lib_psm_infinipath_psm_finalize
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_psm_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 psm_finalize in -lpsm_infinipath" >&5
echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test $ac_cv_lib_psm_infinipath_psm_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_mtl_psm_save_LDFLAGS"
                     mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                     unset ac_cv_lib_psm_infinipath_psm_finalize
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mtl_psm_LDFLAGS="$mtl_psm_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 psm_finalize in -lpsm_infinipath" >&5
echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test $ac_cv_lib_psm_infinipath_psm_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_mtl_psm_save_LDFLAGS"
                          mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                          unset ac_cv_lib_psm_infinipath_psm_finalize
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mtl_psm_LDFLAGS="$mtl_psm_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 psm_finalize in -lpsm_infinipath" >&5
echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test $ac_cv_lib_psm_infinipath_psm_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_mtl_psm_save_LDFLAGS"
                          mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                          unset ac_cv_lib_psm_infinipath_psm_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_psm_infinipath_psm_finalize
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_psm_libdir" != ""; then
   # libdir was specified - search only there
           mtl_psm_LDFLAGS="$mtl_psm_LDFLAGS -L$ompi_check_psm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_psm_libdir"
           { echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5
echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test $ac_cv_lib_psm_infinipath_psm_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_mtl_psm_save_LDFLAGS"
                  mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                  unset ac_cv_lib_psm_infinipath_psm_finalize
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_psm_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 psm_finalize in -lpsm_infinipath" >&5
echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test $ac_cv_lib_psm_infinipath_psm_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_mtl_psm_save_LDFLAGS"
                     mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                     unset ac_cv_lib_psm_infinipath_psm_finalize
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mtl_psm_LDFLAGS="$mtl_psm_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 psm_finalize in -lpsm_infinipath" >&5
echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test $ac_cv_lib_psm_infinipath_psm_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_mtl_psm_save_LDFLAGS"
                          mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                          unset ac_cv_lib_psm_infinipath_psm_finalize
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  mtl_psm_LDFLAGS="$mtl_psm_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 psm_finalize in -lpsm_infinipath" >&5
echo $ECHO_N "checking for psm_finalize in -lpsm_infinipath... $ECHO_C" >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpsm_infinipath  $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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char psm_finalize ();
int
main ()
{
return psm_finalize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
echo "${ECHO_T}$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test $ac_cv_lib_psm_infinipath_psm_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_mtl_psm_save_LDFLAGS"
                          mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
                          unset ac_cv_lib_psm_infinipath_psm_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_psm_happy="yes"
           mtl_psm_LIBS="-lpsm_infinipath "
else
  mtl_psm_CPPFLAGS="$ompi_check_package_mtl_psm_orig_CPPFLAGS"
           mtl_psm_LDFLAGS="$ompi_check_package_mtl_psm_orig_LDFLAGS"
           mtl_psm_LIBS="$ompi_check_package_mtl_psm_orig_LIBS"
           ompi_check_psm_happy="no"
fi


    CPPFLAGS="$ompi_check_package_mtl_psm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_mtl_psm_save_LDFLAGS"
    LIBS="$ompi_check_package_mtl_psm_save_LIBS"

else
  ompi_check_psm_happy="no"
fi


    CPPFLAGS="$ompi_check_psm_mtl_psm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_psm_mtl_psm_save_LDFLAGS"
    LIBS="$ompi_check_psm_mtl_psm_save_LIBS"

    if test "$ompi_check_psm_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
  { echo "$as_me:$LINENO: WARNING: PSM driver does not currently support progress threads.  Disabling BTL." >&5
echo "$as_me: WARNING: PSM driver does not currently support progress threads.  Disabling BTL." >&2;}
           ompi_check_psm_happy="no"
fi


    if test "$ompi_check_psm_happy" = "yes"; then
  mtl_psm_happy="yes"
else
  if test ! -z "$with_psm" -a "$with_psm" != "no"; then
  { { echo "$as_me:$LINENO: error: PSM support requested but not found.  Aborting" >&5
echo "$as_me: error: PSM support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           mtl_psm_happy="no"
fi



    if test "$mtl_psm_happy" = "yes"; then
  mtl_psm_WRAPPER_EXTRA_LDFLAGS="$mtl_psm_LDFLAGS"
           mtl_psm_WRAPPER_EXTRA_LIBS="$mtl_psm_LIBS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build psm





fi


    if test "$should_build" = "1"; then

    project=ompi
    framework=mtl
    component=psm

    # 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_mtl" = "$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_mtl" = "$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 mtl:psm can compile" >&5
echo $ECHO_N "checking if MCA component mtl:psm 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_mtl" = "psm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"psm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"psm\" 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_mtl" ; then
        if test "$DIRECT_mtl" = "psm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"psm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"psm\" 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 psm"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_mtl_psm_DSO=1
else
  BUILD_mtl_psm_DSO=0
fi

     if test "$BUILD_mtl_psm_DSO" = "1"; then
  OMPI_BUILD_mtl_psm_DSO_TRUE=
  OMPI_BUILD_mtl_psm_DSO_FALSE='#'
else
  OMPI_BUILD_mtl_psm_DSO_TRUE='#'
  OMPI_BUILD_mtl_psm_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/mtl/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component mtl:$component (need to configure)"


    project=ompi
    framework=mtl
    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 $OMPI_CONFIGURE_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_mtl" ; then
            if test "$DIRECT_mtl" = "$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=mtl
    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_mtl" = "$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/mtl/$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/mtl/$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=mtl
    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_mtl" = "$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_mtl" = "$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 mtl:$component can compile" >&5
echo $ECHO_N "checking if MCA component mtl:$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_mtl" = "$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_mtl" ; then
        if test "$DIRECT_mtl" = "$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_mtl_ALL_COMPONENTS="$all_components"
    MCA_mtl_STATIC_COMPONENTS="$static_components"
    MCA_mtl_DSO_COMPONENTS="$dso_components"
    MCA_mtl_STATIC_LTLIBS="$static_ltlibs"







    MCA_mtl_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_mtl_ALL_SUBDIRS="$MCA_mtl_ALL_SUBDIRS mca/mtl/$item"
    done



    MCA_mtl_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_mtl_STATIC_SUBDIRS="$MCA_mtl_STATIC_SUBDIRS mca/mtl/$item"
    done



    MCA_mtl_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_mtl_DSO_SUBDIRS="$MCA_mtl_DSO_SUBDIRS mca/mtl/$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/mtl/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 "mtl" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_mtl_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_osc_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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: cm, ob1" >&5
echo "${ECHO_T}cm, 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:cm (no configuration)"


    project=ompi
    framework=pml
    component=cm
    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 $OMPI_CONFIGURE_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=cm

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

    # 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:cm can compile" >&5
echo $ECHO_N "checking if MCA component pml:cm 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" = "cm" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"cm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"cm\" 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" = "cm" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"cm\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"cm\" 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 cm"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_pml_cm_DSO=1
    else
        BUILD_pml_cm_DSO=0
    fi
     if test "$BUILD_pml_cm_DSO" = "1"; then
  OMPI_BUILD_pml_cm_DSO_TRUE=
  OMPI_BUILD_pml_cm_DSO_FALSE='#'
else
  OMPI_BUILD_pml_cm_DSO_TRUE='#'
  OMPI_BUILD_pml_cm_DSO_FALSE=
fi


    unset compile_mode

    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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_pml_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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: vma" >&5
echo "${ECHO_T}vma" >&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:vma (no configuration)"


    project=ompi
    framework=rcache
    component=vma
    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 $OMPI_CONFIGURE_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=vma

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

    # 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:vma can compile" >&5
echo $ECHO_N "checking if MCA component rcache:vma 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" = "vma" ; then
        { echo "$as_me:$LINENO: WARNING: MCA component \"vma\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"vma\" 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" = "vma" ; then
            { echo "$as_me:$LINENO: WARNING: MCA component \"vma\" failed to configure properly" >&5
echo "$as_me: WARNING: MCA component \"vma\" 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 vma"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rcache_vma_DSO=1
    else
        BUILD_rcache_vma_DSO=0
    fi
     if test "$BUILD_rcache_vma_DSO" = "1"; then
  OMPI_BUILD_rcache_vma_DSO_TRUE=
  OMPI_BUILD_rcache_vma_DSO_FALSE='#'
else
  OMPI_BUILD_rcache_vma_DSO_TRUE='#'
  OMPI_BUILD_rcache_vma_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_rcache_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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
    { as_dir=$outdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&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 $OMPI_CONFIGURE_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 $OMPI_CONFIGURE_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\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_topo_base_static_components[] = {
`cat $outfile.struct`
  NULL
};

#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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


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



    if test ! -z "$DIRECT_mtl" ; then
        MCA_mtl_DIRECT_CALL_COMPONENT=$DIRECT_mtl
        MCA_mtl_DIRECT_CALL=1
    else
        MCA_mtl_DIRECT_CALL_COMPONENT=
        MCA_mtl_DIRECT_CALL=0
    fi



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


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


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



    # make all the config output statements for the no configure
    # components




ac_config_files="$ac_config_files opal/mca/backtrace/darwin/Makefile"



ac_config_files="$ac_config_files opal/mca/backtrace/execinfo/Makefile"



ac_config_files="$ac_config_files opal/mca/backtrace/none/Makefile"



ac_config_files="$ac_config_files opal/mca/backtrace/printstack/Makefile"



ac_config_files="$ac_config_files opal/mca/installdirs/config/Makefile"



ac_config_files="$ac_config_files opal/mca/installdirs/env/Makefile"



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/errmgr/bproc/Makefile"



ac_config_files="$ac_config_files orte/mca/errmgr/hnp/Makefile"



ac_config_files="$ac_config_files orte/mca/errmgr/orted/Makefile"



ac_config_files="$ac_config_files orte/mca/errmgr/proxy/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/odls/bproc/Makefile"



ac_config_files="$ac_config_files orte/mca/odls/default/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/cnos/Makefile"



ac_config_files="$ac_config_files orte/mca/pls/gridengine/Makefile"



ac_config_files="$ac_config_files orte/mca/pls/poe/Makefile"



ac_config_files="$ac_config_files orte/mca/pls/proxy/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/gridengine/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/loadleveler/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/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/proxy/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/smr/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/btl/udapl/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/basic/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/mx/Makefile"



ac_config_files="$ac_config_files ompi/mca/common/portals/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/rdma/Makefile"



ac_config_files="$ac_config_files ompi/mca/mpool/sm/Makefile"



ac_config_files="$ac_config_files ompi/mca/mtl/mx/Makefile"



ac_config_files="$ac_config_files ompi/mca/mtl/portals/Makefile"



ac_config_files="$ac_config_files ompi/mca/mtl/psm/Makefile"



ac_config_files="$ac_config_files ompi/mca/osc/pt2pt/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/cm/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/ob1/Makefile"



ac_config_files="$ac_config_files ompi/mca/rcache/vma/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, we kill variables containing newlines.
# 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.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}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 "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     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 "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  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 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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>
#include <stdlib.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))
      return 2;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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 fcntl.h stdarg.h inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/ioctl.h sys/devpoll.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 vasprintf fcntl
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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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


{ echo "$as_me:$LINENO: checking for F_SETFD in fcntl.h" >&5
echo $ECHO_N "checking for F_SETFD 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_SETFD
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_SETFD 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*


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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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

havedevpoll=no
if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then

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

        # OMPI: Don't use AC_LIBOBJ(devpoll)
        sources="devpoll.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 { as_var=$as_ac_var; eval "test \"\${$as_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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_var'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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 epfd;

	epfd = epoll_create(256);
	exit (epfd == -1 ? 1 : 0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 core.conftest.* 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 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
typedef pid_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef size_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 int
_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
typedef u_int64_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef u_int32_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef u_int16_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
typedef u_int8_t ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
  return 0;
if (sizeof (ac__type_new_))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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}'"${lt_ltdl_dir+/$lt_ltdl_dir}/libltdlc.la"
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"




# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"


        enable_dlopen=yes



fi





macro_version='2.1a'
macro_revision='1.2500'













ltmain="$ac_aux_dir/ltmain.sh"

# Set options


enable_win32_dll=no





# Check whether --with-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







# Check whether --enable-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 "${ac_cv_path_SED+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" | sed 99q >conftest.sed
     $as_unset ac_script || ac_script=
     # Extract the first word of "sed gsed" to use in msg output
if test -z "$SED"; then
set dummy sed gsed; ac_prog_name=$2
if test "${ac_cv_path_SED+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_path_SED_found=false
# Loop through the user's path and test for each of PROGNAME-LIST
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_prog in sed gsed; do
  for ac_exec_ext in '' $ac_executable_extensions; do
    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
    # Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac


    $ac_path_SED_found && break 3
  done
done

done
IFS=$as_save_IFS


fi

SED="$ac_cv_path_SED"
if test -z "$SED"; then
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
fi

else
  ac_cv_path_SED=$SED
fi

fi
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//"











test -z "$GREP" && GREP=grep



















# Check whether --with-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









# 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
    ;;
  *)
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n "$lt_cv_sys_max_cmd_len"; then
      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`
    else
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      for i in 1 2 3 4 5 6 7 8 ; do
        teststring=$teststring$teststring
      done
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
      # 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.
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
	      test $i != 17 # 1/2 MB should be enough
      do
        i=`expr $i + 1`
        teststring=$teststring$teststring
      done
      # Only check the string length outside the loop.
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
      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`
    fi
    ;;
  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
max_cmd_len=$lt_cv_sys_max_cmd_len







: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}

{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
# Try some XSI features
xsi_shell=no
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,, ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
echo "${ECHO_T}$xsi_shell" >&6; }


{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
echo "${ECHO_T}$lt_shell_append" >&6; }


if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  lt_unset=unset
else
  lt_unset=false
fi





# test EBCDIC or ASCII
case `echo X|tr X '\101'` in
 A) # ASCII based system
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  lt_SP2NL='tr \040 \012'
  lt_NL2SP='tr \015\012 \040\040'
  ;;
 *) # EBCDIC based system
  lt_SP2NL='tr \100 \n'
  lt_NL2SP='tr \r\n \100\100'
  ;;
esac









{ 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 recognize dependent libraries" >&5
echo $ECHO_N "checking how to recognize 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',
  # unless we find 'file', for example because we are cross-compiling.
  if ( file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | 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
  ;;

interix[3-9]*)
  # 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* | k*bsd*-gnu)
  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=pass_all
  ;;

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

rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  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
  ;;

tpf*)
  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 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
else
  AR="$ac_cv_prog_AR"
fi

test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru











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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

test -z "$STRIP" && STRIP=:






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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

test -z "$RANLIB" && RANLIB=:






# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
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


































# 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 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]*\)'

# Define system-specific variables.
case $host_os in
aix*)
  symcode='[BCDT]'
  ;;
cygwin* | mingw* | pw32*)
  symcode='[ABCDGISTW]'
  ;;
hpux*)
  if test "$host_cpu" = ia64; then
    symcode='[ABCDEGRST]'
  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

# If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in
*GNU* | *'with BFD'*)
  symcode='[ABCDGIRSTW]' ;;
esac

# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \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\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"

# 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

# Try without a prefix underscore, 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.
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    # Fake it for dumpbin and say T for any non-static function
    # and D for any global variable.
    # Also find C++ and __fastcall symbols from MSVC++,
    # which start with @ or ?.
    lt_cv_sys_global_symbol_pipe="$AWK '"\
"     {last_section=section; section=\$ 3};"\
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
"     \$ 0!~/External *\|/{next};"\
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
"     {if(hide[section]) next};"\
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
"     ' prfx=^$ac_symprfx"
  else
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  fi

  # Check to see that the pipe works correctly.
  pipe_works=no

  rm -f conftest*
  cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_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 <<_LT_EOF > conftest.$ac_ext
#ifdef __cplusplus
extern "C" {
#endif

_LT_EOF
	  # Now generate the symbol file.
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'

	  cat <<_LT_EOF >> conftest.$ac_ext

/* The mapping between symbol names and symbols.  */
const struct {
  const char *name;
  void       *address;
}
lt__PROGRAM__LTX_preloaded_symbols[] =
{
  { "@PROGRAM@", (void *) 0 },
_LT_EOF
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
	  cat <<\_LT_EOF >> conftest.$ac_ext
  {0, (void *) 0}
};

/* This works around a problem in FreeBSD linker */
#ifdef FREEBSD_WORKAROUND
static const void *lt_preloaded_setup() {
  return lt__PROGRAM__LTX_preloaded_symbols;
}
#endif

#ifdef __cplusplus
}
#endif
_LT_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






















# Check whether --enable-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 134050 "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-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|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-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_i386_fbsd"
	    ;;
	  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-*kfreebsd*-gnu)
	    LD="${LD-ld} -m elf_x86_64_fbsd"
	    ;;
	  x86_64-*linux*)
	    LD="${LD-ld} -m elf_x86_64"
	    ;;
	  ppc*-*linux*|powerpc*-*linux*)
	    LD="${LD-ld} -m elf64ppc"
	    ;;
	  s390*-*linux*|s390*-*tpf*)
	    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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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" ;;
      *)
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
	  LD="${LD-ld} -64"
	fi
	;;
      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`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_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.  */
$ac_includes_default

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&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



ac_ext=cpp
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 -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 g++ c++ gpp aCC CC cxx cc++ cl.exe 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
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`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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
{ 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
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CXXFLAGS=""
      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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
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
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/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       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


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=cpp
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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.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 nonexistent 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.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 nonexistent 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 { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.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
  _lt_caught_CXX_error=yes
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

else
  _lt_caught_CXX_error=yes
fi




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 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_F77" = x; then
    F77=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    F77=$ac_ct_F77
  fi
fi


# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
rm -f a.out

# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
      program main
#ifndef __GNUC__
       choke me
#endif

      end
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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

if test -z "$F77" || test "X$F77" = "Xno"; then
  _lt_disable_F77=yes
fi




ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_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 g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 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_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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 g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 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_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
IFS=$as_save_IFS

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

  if test "x$ac_ct_FC" = x; then
    FC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    FC=$ac_ct_FC
  fi
fi


# Provide some information about the compiler.
echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
rm -f a.out

# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; 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 core 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

if test -z "$FC" || test "X$FC" = "Xno"; then
  _lt_disable_FC=yes
fi




# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'

























test -z "$LN_S" && LN_S="ln -s"














if test -n "${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
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





cat >>confdefs.h <<_ACEOF
#define LT_OBJDIR "$lt_cv_objdir/"
_ACEOF

















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.
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 delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'

# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'

# Global variables:
ofile=libtool
can_build_shared=yes

# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a

with_gnu_ld="$lt_cv_prog_gnu_ld"

old_CC="$CC"
old_CFLAGS="$CFLAGS"

# Set sane defaults for various variables
test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o

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
test -z "$MAGIC_CMD" && MAGIC_CMD=file
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 <<_LT_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

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

_LT_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

# Use C for the default configuration in the libtool script

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

# Code to be used in simple link tests
lt_simple_link_test_code='int main(){return(0);}'







# 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 the default compiler, since it gets overwritten when the other
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
compiler_DEFAULT=$CC

# save warnings/boilerplate of simple test code
ac_outfile=conftest.$ac_objext
echo "$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
echo "$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*


if test -n "$compiler"; then

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
   echo "$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:135908: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:135912: \$? = $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*)
      if test "$host_cpu" = m68k; then
        # 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'
      fi
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | 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).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      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'
      ;;

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

    interix[3-9]*)
      # 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
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic=-Kconform_pic
      fi
      ;;

    *)
      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* | cygwin* | 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'
      ;;

    linux* | k*bsd*-gnu)
      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'
        ;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-Wl,'
	  ;;
	*Sun\ F*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl=''
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic='-KPIC'
      lt_prog_compiler_static='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static='-non_shared'
      ;;

    rdos*)
      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

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
{ 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
   echo "$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:136230: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:136234: \$? = $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






#
# 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"
   echo "$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
   echo "$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:136335: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:136339: \$? = $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 ..
   $RM -r 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; }






  { 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
   echo "$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:136390: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:136394: \$? = $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 ..
   $RM -r 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=
  always_export_symbols=no
  archive_cmds=
  archive_expsym_cmds=
  compiler_needs_object=no
  enable_shared_with_static_runtimes=no
  export_dynamic_flag_spec=
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic=no
  hardcode_direct=no
  hardcode_direct_absolute=no
  hardcode_libdir_flag_spec=
  hardcode_libdir_flag_spec_ld=
  hardcode_libdir_separator=
  hardcode_minus_L=no
  hardcode_shlibpath_var=unsupported
  inherit_rpath=no
  link_all_deplibs=unknown
  module_cmds=
  module_expsym_cmds=
  old_archive_from_new_cmds=
  old_archive_from_expsyms_cmds=
  thread_safe_flag_spec=
  whole_archive_flag_spec=
  # 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=

  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>&1` 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 <<_LT_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.

_LT_EOF
      fi
      ;;

    amigaos*)
      if test "$host_cpu" = m68k; then
        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
      fi

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

    interix[3-9]*)
      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'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      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
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	*)
	  tmp_sharedflag='-shared' ;;
	esac
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; 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 '"$tmp_sharedflag""$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 <<_LT_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.

_LT_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
	;;
	*)
	  # 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.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
	    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
      ;;

    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_direct_absolute=yes
      hardcode_libdir_separator=':'
      link_all_deplibs=yes
      file_list_spec='${wl}-f,'

      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
	  :
	  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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# 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 "$lt_aix_libpath_sed"`
fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 "X${wl}${allow_undefined_flag}" | $Xsed; 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# 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 "$lt_aix_libpath_sed"`
fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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*)
      if test "$host_cpu" = m68k; then
        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
      fi
      # 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 "X$deplibs" | $Xsed -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
	case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
	10.[012])
	  allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
	  ;;
	10.*)
	  allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
	  ;;
	esac
	;;
      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
	if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_apple_cc_single_mod=no
	if test -z "${LT_MULTI_MODULE}"; then
	  # By default we will add the -single_module flag. You can override
	  # by either setting the environment variable LT_MULTI_MODULE
	  # non-empty at configure time, or by adding -multi-module to the
	  # link flags.
	  echo "int foo(void){return 1;}" > conftest.c
	  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	      -dynamiclib ${wl}-single_module conftest.c
	  if test -f libconftest.dylib; then
	      lt_cv_apple_cc_single_mod=yes
	      rm libconftest.dylib
	  fi
	  rm conftest.$ac_ext
	fi
fi

	output_verbose_link_cmd=echo
	if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
	  archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
	  archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
	else
	  archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
	  archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
	fi
	module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
	module_expsym_cmds='sed -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` $xlcverstring'
	  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 "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
	  module_expsym_cmds='sed "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* | 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_flag_spec_ld='+b $libdir'
	hardcode_libdir_separator=:
	hardcode_direct=yes
	hardcode_direct_absolute=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_direct=no
	  hardcode_shlibpath_var=no
	  ;;
	*)
	  hardcode_direct=yes
	  hardcode_direct_absolute=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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
        save_LDFLAGS="$LDFLAGS"
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
        cat >conftest.$ac_ext <<_ACEOF
int foo(void) {}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
        LDFLAGS="$save_LDFLAGS"
      else
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc='no'
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      inherit_rpath=yes
      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
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct=yes
	hardcode_shlibpath_var=no
	hardcode_direct_absolute=yes
	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
      else
	ld_shlibs=no
      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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag=' -expect_unresolved \*'
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc='no'
      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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${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='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -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; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -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
      archive_cmds_need_lc='no'
      hardcode_libdir_separator=:
      ;;

    solaris*)
      no_undefined_flag=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${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}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  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'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      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 and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
	fi
	;;
      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* | sco3.2v5.0.[024]*)
      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='${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,$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
      ;;

    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

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
echo "${ECHO_T}$ld_shlibs" >&6; }
test "$ld_shlibs" = no && can_build_shared=no

with_gnu_ld=$with_gnu_ld















#
# 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*
      echo "$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; }
withGCC=$GCC
if test "$withGCC" = yes; then
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  if $ECHO "$lt_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.
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  else
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  fi
  # Ok, now we have the path, separated by spaces, we can step through it
  # and add multilib dir if necessary.
  lt_tmp_lt_search_path_spec=
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  for lt_sys_path in $lt_search_path_spec; do
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
    else
      test -d "$lt_sys_path" && \
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
    fi
  done
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
BEGIN {RS=" "; FS="/|\n";} {
  lt_foo="";
  lt_count=0;
  for (lt_i = NF; lt_i > 0; lt_i--) {
    if ($lt_i != "" && $lt_i != ".") {
      if ($lt_i == "..") {
        lt_count++;
      } else {
        if (lt_count == 0) {
          lt_foo="/" $lt_i lt_foo;
        } else {
          lt_count--;
        }
      }
    }
  }
  if (lt_foo != "") { lt_freq[lt_foo]++; }
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
}'`
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi
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"
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*)
  if test "$host_cpu" = m68k; then
    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'
  else
    dynamic_linker=no
  fi
  ;;

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 $withGCC,$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~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    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}${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`'

  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  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
  ;;

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
    ;;
  *) # from 4.6 on, and DragonFly
    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'
  ;;

interix[3-9]*)
  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* | k*bsd*-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'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
  shlibpath_overrides_runpath=yes
fi

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

  # 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>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/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'
  ;;

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=qnx
  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='ldqnx.so'
  ;;

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

rdos*)
  dynamic_linker=no
  ;;

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
      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
  shlibpath_overrides_runpath=yes
  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'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    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'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

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-existent 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_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 ||
   test "$inherit_rpath" = yes; 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






  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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shl_load ();
int
main ()
{
return shl_load ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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="-ldld"
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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
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
#endif

int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dld_link ();
int
main ()
{
return dld_link ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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="-ldld"
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 <<_LT_EOF
#line 139150 "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);
}
_LT_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 <<_LT_EOF
#line 139250 "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);
}
_LT_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

















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"
      old_striplib="$STRIP -S"
      { 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












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




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"


ac_ext=cpp
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=
compiler_needs_object_CXX=no
export_dynamic_flag_spec_CXX=
hardcode_direct_CXX=no
hardcode_direct_absolute_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
inherit_rpath_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

# Source file extension for C++ test sources.
ac_ext=cpp

# Object file extension for compiled C++ test sources.
objext=o
objext_CXX=$objext

# No sense in running all these tests if we already determined that
# the CXX compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_caught_CXX_error" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="int some_variable = 0;"

  # Code to be used in simple link tests
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'

  # 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
echo "$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
echo "$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-%%"`


  if test -n "$compiler"; then
    # We don't want -fno-exception when 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 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" | tail -n 1'

    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_direct_absolute_CXX=yes
        hardcode_libdir_separator_CXX=':'
        link_all_deplibs_CXX=yes
        file_list_spec_CXX='${wl}-f,'

        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
	    :
	  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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# 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 "$lt_aix_libpath_sed"`
fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 "X${wl}${allow_undefined_flag}" | $Xsed; 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# 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 "$lt_aix_libpath_sed"`
fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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_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
	    case ${MACOSX_DEPLOYMENT_TARGET-10.0} 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
	    ;;
	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
	  if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_apple_cc_single_mod=no
	  if test -z "${LT_MULTI_MODULE}"; then
	    # By default we will add the -single_module flag. You can override
	    # by either setting the environment variable LT_MULTI_MODULE
	    # non-empty at configure time, or by adding -multi-module to the
	    # link flags.
	    echo "int foo(void){return 1;}" > conftest.c
	    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
		-dynamiclib ${wl}-single_module conftest.c
	    if test -f libconftest.dylib; then
		lt_cv_apple_cc_single_mod=yes
		rm libconftest.dylib
	    fi
	    rm conftest.$ac_ext
	  fi
fi

	  output_verbose_link_cmd=echo
	  if test "X$lt_cv_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'
	    archive_expsym_cmds_CXX='sed "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_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'
	    archive_expsym_cmds_CXX='sed "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_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
	  module_expsym_cmds_CXX='sed "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"` $xlcverstring'
	      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 "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
	      module_expsym_cmds_CXX='sed "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* | 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) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
            ;;
          *)
            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*)
              ;;
            *)
	      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_direct_absolute_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 "X$list" | $Xsed'
	    ;;
          *)
	    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
        ;;

      interix[3-9]*)
	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 "X-set_version $verstring" | $Xsed` -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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${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 "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
	      fi
	    fi
	    link_all_deplibs_CXX=yes
	    ;;
        esac
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        hardcode_libdir_separator_CXX=:
        inherit_rpath_CXX=yes
        ;;

      linux* | k*bsd*-gnu)
        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 "X$list" | $Xsed'

	    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* | ecpc* )
	    # 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* | pgcpp*)
            # Portland Group C++ compiler
	    case `$CC -V` in
	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
	      prelink_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
	      old_archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
		$RANLIB $oldlib'
	      archive_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
		rm -rf $tpldir~
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
	      ;;
	    *) # Version 6 will use weak symbols
	      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'
	      ;;
	    esac

	    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 "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      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='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	      compiler_needs_object_CXX=yes

	      # Not sure whether something based on
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
	      # would be better.
	      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'
	      ;;
	    esac
	    ;;
	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::"'
	;;

      *nto* | *qnx*)
        ld_shlibs_CXX=yes
	;;

      openbsd2*)
        # C++ shared libraries are fairly broken
	ld_shlibs_CXX=no
	;;

      openbsd*)
	if test -f /usr/libexec/ld.so; then
	  hardcode_direct_CXX=yes
	  hardcode_shlibpath_var_CXX=no
	  hardcode_direct_absolute_CXX=yes
	  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
	else
	  ld_shlibs_CXX=no
	fi
	;;

      osf3* | 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.
	    case $host in
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
	    esac
	    ;;
          RCC*)
	    # Rational C++ 2.4.1
	    # FIXME: insert proper C++ library support
	    ld_shlibs_CXX=no
	    ;;
          cxx*)
	    case $host in
	      osf3*)
	        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 "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
		;;
	      *)
	        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 "X-set_version $verstring" | $Xsed` -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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
	          $RM $lib.exp'
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
		;;
	    esac

	    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 "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
	    ;;
	  *)
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
	      case $host in
	        osf3*)
	          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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	        *)
	          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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
		  ;;
	      esac

	      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 compiler driver will combine and reorder linker options,
		# but understands `-z linker_flag'.
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
		whole_archive_flag_spec_CXX='-z allextract$convenience -z 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'
	      case $host_os in
		solaris2.[0-5] | solaris2.[0-5].*) ;;
		*)
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
		  ;;
	      esac
	    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.
	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='${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,$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
      ;;

      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"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # 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=

cat > conftest.$ac_ext <<_LT_EOF
class Foo
{
public:
  Foo (void) { a = 0; }
private:
  int a;
};
_LT_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
interix[3-9]*)
  # 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=
  ;;

linux*)
  case `$CC -V 2>&1 | sed 5q` in
  *Sun\ C*)
    # Sun C++ 5.9

    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  esac
  ;;

solaris*)
  case $cc_basename in
  CC*)
    # The more standards-conforming stlport4 library is
    # incompatible with the Cstd library. Avoid specifying
    # it if it's in CXXFLAGS. Ignore libCrun as
    # -library=stlport4 depends on it.
    case " $CXX $CXXFLAGS " in
    *" -library=stlport4 "*)
      solaris_use_stlport4=yes
      ;;
    esac

    # 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.
    if test "$solaris_use_stlport4" != yes; then
      postdeps_CXX='-library=Cstd -library=Crun'
    fi
    ;;
  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*)
      if test "$host_cpu" = m68k; then
        # 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'
      fi
      ;;
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | 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).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      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=
      ;;
    interix[3-9]*)
      # 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
      ;;
    *qnx* | *nto*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_CXX='-fPIC -shared'
      ;;
    *)
      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_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* | 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* | k*bsd*-gnu)
	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* | pgcpp*)
	    # 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'
	    ;;
	  *)
	    case `$CC -V 2>&1 | sed 5q` in
	    *Sun\ C*)
	      # Sun C++ 5.9
	      lt_prog_compiler_pic_CXX='-KPIC'
	      lt_prog_compiler_static_CXX='-Bstatic'
	      lt_prog_compiler_wl_CXX='-Qoption ld '
	      ;;
	    esac
	    ;;
	esac
	;;
      lynxos*)
	;;
      m88k*)
	;;
      mvs*)
	case $cc_basename in
	  cxx*)
	    lt_prog_compiler_pic_CXX='-W c,exportall'
	    ;;
	  *)
	    ;;
	esac
	;;
      netbsd*)
	;;
      *qnx* | *nto*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
        lt_prog_compiler_pic_CXX='-fPIC -shared'
        ;;
      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
	;;
      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
	;;
      tandem*)
	case $cc_basename in
	  NCC*)
	    # NonStop-UX NCC 3.20
	    lt_prog_compiler_pic_CXX='-KPIC'
	    ;;
	  *)
	    ;;
	esac
	;;
      vxworks*)
	;;
      *)
	lt_prog_compiler_can_build_shared_CXX=no
	;;
    esac
  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
{ 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
   echo "$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:141278: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:141282: \$? = $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



#
# 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"
   echo "$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
   echo "$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:141377: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:141381: \$? = $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 ..
   $RM -r 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; }



    { 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
   echo "$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:141429: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:141433: \$? = $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 ..
   $RM -r 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

with_gnu_ld_CXX=$with_gnu_ld






#
# 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*
      echo "$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; }
withGCC=$GXX
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"
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*)
  if test "$host_cpu" = m68k; then
    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'
  else
    dynamic_linker=no
  fi
  ;;

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 $withGCC,$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~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    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}${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`'

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

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
    ;;
  *) # from 4.6 on, and DragonFly
    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'
  ;;

interix[3-9]*)
  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* | k*bsd*-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'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
  shlibpath_overrides_runpath=yes
fi

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

  # 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>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/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'
  ;;

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=qnx
  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='ldqnx.so'
  ;;

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

rdos*)
  dynamic_linker=no
  ;;

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
      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
  shlibpath_overrides_runpath=yes
  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'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    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'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

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-existent 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_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 ||
   test "$inherit_rpath_CXX" = yes; 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







  fi # test -n "$compiler"

  CC=$lt_save_CC
  LDCXX=$LD
  LD=$lt_save_LD
  GCC=$lt_save_GCC
  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
fi # test "$_lt_caught_CXX_error" != 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



      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_direct_absolute_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
inherit_rpath_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

# No sense in running all these tests if we already determined that
# the F77 compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_disable_F77" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="\
      subroutine t
      return
      end
"

  # Code to be used in simple link tests
  lt_simple_link_test_code="\
      program t
      end
"

  # 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
echo "$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
echo "$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-%%"`


  if test -n "$compiler"; then
    { 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"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    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*)
      if test "$host_cpu" = m68k; then
        # 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'
      fi
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | 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).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      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'
      ;;

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

    interix[3-9]*)
      # 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
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_F77='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_F77=-Kconform_pic
      fi
      ;;

    *)
      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* | cygwin* | 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'
      ;;

    linux* | k*bsd*-gnu)
      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'
        ;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic_F77='-KPIC'
	  lt_prog_compiler_static_F77='-Bstatic'
	  lt_prog_compiler_wl_F77='-Wl,'
	  ;;
	*Sun\ F*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic_F77='-KPIC'
	  lt_prog_compiler_static_F77='-Bstatic'
	  lt_prog_compiler_wl_F77=''
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic_F77='-KPIC'
      lt_prog_compiler_static_F77='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_F77='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_F77='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_F77='-non_shared'
      ;;

    rdos*)
      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

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
{ 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
   echo "$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:142806: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:142810: \$? = $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



#
# 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"
   echo "$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
   echo "$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:142905: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:142909: \$? = $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 ..
   $RM -r 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; }



    { 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
   echo "$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:142957: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:142961: \$? = $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 ..
   $RM -r 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=
  always_export_symbols_F77=no
  archive_cmds_F77=
  archive_expsym_cmds_F77=
  compiler_needs_object_F77=no
  enable_shared_with_static_runtimes_F77=no
  export_dynamic_flag_spec_F77=
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic_F77=no
  hardcode_direct_F77=no
  hardcode_direct_absolute_F77=no
  hardcode_libdir_flag_spec_F77=
  hardcode_libdir_flag_spec_ld_F77=
  hardcode_libdir_separator_F77=
  hardcode_minus_L_F77=no
  hardcode_shlibpath_var_F77=unsupported
  inherit_rpath_F77=no
  link_all_deplibs_F77=unknown
  module_cmds_F77=
  module_expsym_cmds_F77=
  old_archive_from_new_cmds_F77=
  old_archive_from_expsyms_cmds_F77=
  thread_safe_flag_spec_F77=
  whole_archive_flag_spec_F77=
  # 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=

  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>&1` 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 <<_LT_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.

_LT_EOF
      fi
      ;;

    amigaos*)
      if test "$host_cpu" = m68k; then
        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
      fi

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

    interix[3-9]*)
      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'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      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
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object_F77=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	*)
	  tmp_sharedflag='-shared' ;;
	esac
	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; 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 '"$tmp_sharedflag""$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 <<_LT_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.

_LT_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
	;;
	*)
	  # 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.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
	    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
      ;;

    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_direct_absolute_F77=yes
      hardcode_libdir_separator_F77=':'
      link_all_deplibs_F77=yes
      file_list_spec_F77='${wl}-f,'

      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
	  :
	  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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# 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 "$lt_aix_libpath_sed"`
fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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 "X${wl}${allow_undefined_flag}" | $Xsed; 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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# 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 "$lt_aix_libpath_sed"`
fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      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*)
      if test "$host_cpu" = m68k; then
        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
      fi
      # 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 "X$deplibs" | $Xsed -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
	case ${MACOSX_DEPLOYMENT_TARGET-10.0} 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
	;;
      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
	if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_apple_cc_single_mod=no
	if test -z "${LT_MULTI_MODULE}"; then
	  # By default we will add the -single_module flag. You can override
	  # by either setting the environment variable LT_MULTI_MODULE
	  # non-empty at configure time, or by adding -multi-module to the
	  # link flags.
	  echo "int foo(void){return 1;}" > conftest.c
	  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	      -dynamiclib ${wl}-single_module conftest.c
	  if test -f libconftest.dylib; then
	      lt_cv_apple_cc_single_mod=yes
	      rm libconftest.dylib
	  fi
	  rm conftest.$ac_ext
	fi
fi

	output_verbose_link_cmd=echo
	if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
	  archive_cmds_F77='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
	  archive_expsym_cmds_F77='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
	else
	  archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
	  archive_expsym_cmds_F77='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
	fi
	module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
	module_expsym_cmds_F77='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~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` $xlcverstring'
	  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 "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
	  module_expsym_cmds_F77='sed "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* | 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_flag_spec_ld_F77='+b $libdir'
	hardcode_libdir_separator_F77=:
	hardcode_direct_F77=yes
	hardcode_direct_absolute_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_direct_F77=no
	  hardcode_shlibpath_var_F77=no
	  ;;
	*)
	  hardcode_direct_F77=yes
	  hardcode_direct_absolute_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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
        save_LDFLAGS="$LDFLAGS"
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
        cat >conftest.$ac_ext <<_ACEOF
int foo(void) {}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
        LDFLAGS="$save_LDFLAGS"
      else
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc_F77='no'
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_F77=:
      inherit_rpath_F77=yes
      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
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct_F77=yes
	hardcode_shlibpath_var_F77=no
	hardcode_direct_absolute_F77=yes
	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
      else
	ld_shlibs_F77=no
      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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_F77=' -expect_unresolved \*'
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc_F77='no'
      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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${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='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -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; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -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
      archive_cmds_need_lc_F77='no'
      hardcode_libdir_separator_F77=:
      ;;

    solaris*)
      no_undefined_flag_F77=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${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}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  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'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds_F77='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      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 and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
	fi
	;;
      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* | sco3.2v5.0.[024]*)
      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='${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,$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
      ;;

    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

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
	;;
      esac
    fi
  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

with_gnu_ld_F77=$with_gnu_ld






#
# 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*
      echo "$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; }
withGCC=$G77
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"
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*)
  if test "$host_cpu" = m68k; then
    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'
  else
    dynamic_linker=no
  fi
  ;;

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 $withGCC,$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~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    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}${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`'

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

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
    ;;
  *) # from 4.6 on, and DragonFly
    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'
  ;;

interix[3-9]*)
  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* | k*bsd*-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'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
  cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_f77_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
  shlibpath_overrides_runpath=yes
fi

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

  # 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>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/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'
  ;;

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=qnx
  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='ldqnx.so'
  ;;

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

rdos*)
  dynamic_linker=no
  ;;

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
      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
  shlibpath_overrides_runpath=yes
  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'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    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'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

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-existent 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_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 ||
   test "$inherit_rpath_F77" = yes; 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







  fi # test -n "$compiler"

  CC="$lt_save_CC"
fi # test "$_lt_disable_F77" != 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



      ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu


archive_cmds_need_lc_FC=no
allow_undefined_flag_FC=
always_export_symbols_FC=no
archive_expsym_cmds_FC=
export_dynamic_flag_spec_FC=
hardcode_direct_FC=no
hardcode_direct_absolute_FC=no
hardcode_libdir_flag_spec_FC=
hardcode_libdir_flag_spec_ld_FC=
hardcode_libdir_separator_FC=
hardcode_minus_L_FC=no
hardcode_automatic_FC=no
inherit_rpath_FC=no
module_cmds_FC=
module_expsym_cmds_FC=
link_all_deplibs_FC=unknown
old_archive_cmds_FC=$old_archive_cmds
no_undefined_flag_FC=
whole_archive_flag_spec_FC=
enable_shared_with_static_runtimes_FC=no

# Source file extension for fc test sources.
ac_ext=${ac_fc_srcext-f}

# Object file extension for compiled fc test sources.
objext=o
objext_FC=$objext

# No sense in running all these tests if we already determined that
# the FC compiler isn't working.  Some variables (like enable_shared)
# are currently assumed to apply to all compilers on this platform,
# and will be corrupted by setting them based on a non-working compiler.
if test "$_lt_disable_FC" != yes; then
  # Code to be used in simple compile tests
  lt_simple_compile_test_code="\
      subroutine t
      return
      end
"

  # Code to be used in simple link tests
  lt_simple_link_test_code="\
      program t
      end
"

  # 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
echo "$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
echo "$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=${FC-"f95"}
  compiler=$CC
  compiler_FC=$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-%%"`


  if test -n "$compiler"; then
    { 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_FC="$ac_cv_fc_compiler_gnu"
    LD_FC="$LD"

    ## CAVEAT EMPTOR:
    ## There is no encapsulation within the following macros, do not change
    ## the running order or otherwise move them around unless you know exactly
    ## what you are doing...
    # Dependencies to place before and after the object being linked:
predep_objects_FC=
postdep_objects_FC=
predeps_FC=
postdeps_FC=
compiler_lib_search_path_FC=

cat > conftest.$ac_ext <<_LT_EOF
      subroutine foo
      implicit none
      integer a
      a=0
      return
      end
_LT_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_FC"; then
	     compiler_lib_search_path_FC="${prev}${p}"
	   else
	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${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_FC"; then
	   postdeps_FC="${prev}${p}"
	 else
	   postdeps_FC="${postdeps_FC} ${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_FC"; then
	   predep_objects_FC="$p"
	 else
	   predep_objects_FC="$predep_objects_FC $p"
	 fi
       else
	 if test -z "$postdep_objects_FC"; then
	   postdep_objects_FC="$p"
	 else
	   postdep_objects_FC="$postdep_objects_FC $p"
	 fi
       fi
       ;;

    *) ;; # Ignore the rest.

    esac
  done

  # Clean up.
  rm -f a.out a.exe
else
  echo "libtool.m4: error: problem compiling FC test program"
fi

$RM -f confest.$objext

# PORTME: override above test on systems where it is broken


case " $postdeps_FC " in
*" -lc "*) archive_cmds_need_lc_FC=no ;;
esac











    lt_prog_compiler_wl_FC=
lt_prog_compiler_pic_FC=
lt_prog_compiler_static_FC=

{ 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_FC='-Wl,'
    lt_prog_compiler_static_FC='-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_FC='-Bstatic'
      fi
      ;;

    amigaos*)
      if test "$host_cpu" = m68k; then
        # 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_FC='-m68020 -resident32 -malways-restore-a4'
      fi
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | 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).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
      ;;

    darwin* | rhapsody*)
      # PIC is the default on this platform
      # Common symbols not allowed in MH_DYLIB files
      lt_prog_compiler_pic_FC='-fno-common'
      ;;

    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_FC='-fPIC'
	;;
      esac
      ;;

    interix[3-9]*)
      # 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_FC=no
      enable_shared=no
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_FC='-fPIC -shared'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	lt_prog_compiler_pic_FC=-Kconform_pic
      fi
      ;;

    *)
      lt_prog_compiler_pic_FC='-fPIC'
      ;;
    esac
  else
    # PORTME Check for flag to pass linker flags through the system compiler.
    case $host_os in
    aix*)
      lt_prog_compiler_wl_FC='-Wl,'
      if test "$host_cpu" = ia64; then
	# AIX 5 now supports IA64 processor
	lt_prog_compiler_static_FC='-Bstatic'
      else
	lt_prog_compiler_static_FC='-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_FC='-qnocommon'
        lt_prog_compiler_wl_FC='-Wl,'
        ;;
      esac
      ;;

    mingw* | cygwin* | 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_FC='-DDLL_EXPORT'
      ;;

    hpux9* | hpux10* | hpux11*)
      lt_prog_compiler_wl_FC='-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_FC='+Z'
	;;
      esac
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
      ;;

    irix5* | irix6* | nonstopux*)
      lt_prog_compiler_wl_FC='-Wl,'
      # PIC (with -KPIC) is the default.
      lt_prog_compiler_static_FC='-non_shared'
      ;;

    linux* | k*bsd*-gnu)
      case $cc_basename in
      icc* | ecc*)
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='-KPIC'
	lt_prog_compiler_static_FC='-static'
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
	# which looks to be a dead project)
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='-fpic'
	lt_prog_compiler_static_FC='-Bstatic'
        ;;
      ccc*)
        lt_prog_compiler_wl_FC='-Wl,'
        # All Alpha code is PIC.
        lt_prog_compiler_static_FC='-non_shared'
        ;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic_FC='-KPIC'
	  lt_prog_compiler_static_FC='-Bstatic'
	  lt_prog_compiler_wl_FC='-Wl,'
	  ;;
	*Sun\ F*)
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
	  lt_prog_compiler_pic_FC='-KPIC'
	  lt_prog_compiler_static_FC='-Bstatic'
	  lt_prog_compiler_wl_FC=''
	  ;;
	esac
	;;
      esac
      ;;

    newsos6)
      lt_prog_compiler_pic_FC='-KPIC'
      lt_prog_compiler_static_FC='-Bstatic'
      ;;

    *nto* | *qnx*)
      # QNX uses GNU C++, but need to define -shared option too, otherwise
      # it will coredump.
      lt_prog_compiler_pic_FC='-fPIC -shared'
      ;;

    osf3* | osf4* | osf5*)
      lt_prog_compiler_wl_FC='-Wl,'
      # All OSF/1 code is PIC.
      lt_prog_compiler_static_FC='-non_shared'
      ;;

    rdos*)
      lt_prog_compiler_static_FC='-non_shared'
      ;;

    solaris*)
      lt_prog_compiler_pic_FC='-KPIC'
      lt_prog_compiler_static_FC='-Bstatic'
      case $cc_basename in
      f77* | f90* | f95*)
	lt_prog_compiler_wl_FC='-Qoption ld ';;
      *)
	lt_prog_compiler_wl_FC='-Wl,';;
      esac
      ;;

    sunos4*)
      lt_prog_compiler_wl_FC='-Qoption ld '
      lt_prog_compiler_pic_FC='-PIC'
      lt_prog_compiler_static_FC='-Bstatic'
      ;;

    sysv4 | sysv4.2uw2* | sysv4.3*)
      lt_prog_compiler_wl_FC='-Wl,'
      lt_prog_compiler_pic_FC='-KPIC'
      lt_prog_compiler_static_FC='-Bstatic'
      ;;

    sysv4*MP*)
      if test -d /usr/nec ;then
	lt_prog_compiler_pic_FC='-Kconform_pic'
	lt_prog_compiler_static_FC='-Bstatic'
      fi
      ;;

    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
      lt_prog_compiler_wl_FC='-Wl,'
      lt_prog_compiler_pic_FC='-KPIC'
      lt_prog_compiler_static_FC='-Bstatic'
      ;;

    unicos*)
      lt_prog_compiler_wl_FC='-Wl,'
      lt_prog_compiler_can_build_shared_FC=no
      ;;

    uts4*)
      lt_prog_compiler_pic_FC='-pic'
      lt_prog_compiler_static_FC='-Bstatic'
      ;;

    *)
      lt_prog_compiler_can_build_shared_FC=no
      ;;
    esac
  fi

case $host_os in
  # For platforms which do not support PIC, -DPIC is meaningless:
  *djgpp*)
    lt_prog_compiler_pic_FC=
    ;;
  *)
    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
    ;;
esac
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6; }



#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_FC"; then
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6; }
if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_pic_works_FC=no
   ac_outfile=conftest.$ac_objext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   lt_compiler_flag="$lt_prog_compiler_pic_FC"
   # 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:145473: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:145477: \$? = $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_FC=yes
     fi
   fi
   $RM conftest*

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

if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
    case $lt_prog_compiler_pic_FC in
     "" | " "*) ;;
     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
     esac
else
    lt_prog_compiler_pic_FC=
     lt_prog_compiler_can_build_shared_FC=no
fi

fi



#
# Check to make sure the static flag actually works.
#
wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
{ 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_FC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_prog_compiler_static_works_FC=no
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   echo "$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_FC=yes
       fi
     else
       lt_prog_compiler_static_works_FC=yes
     fi
   fi
   $RM conftest*
   LDFLAGS="$save_LDFLAGS"

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

if test x"$lt_prog_compiler_static_works_FC" = xyes; then
    :
else
    lt_prog_compiler_static_FC=
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_FC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_FC=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$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:145572: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:145576: \$? = $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_FC=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 ..
   $RM -r conftest
   $RM conftest*

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



    { 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_FC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_prog_compiler_c_o_FC=no
   $RM -r conftest 2>/dev/null
   mkdir conftest
   cd conftest
   mkdir out
   echo "$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:145624: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:145628: \$? = $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_FC=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 ..
   $RM -r conftest
   $RM conftest*

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




hard_links="nottested"
if test "$lt_cv_prog_compiler_c_o_FC" = 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_FC=
  always_export_symbols_FC=no
  archive_cmds_FC=
  archive_expsym_cmds_FC=
  compiler_needs_object_FC=no
  enable_shared_with_static_runtimes_FC=no
  export_dynamic_flag_spec_FC=
  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  hardcode_automatic_FC=no
  hardcode_direct_FC=no
  hardcode_direct_absolute_FC=no
  hardcode_libdir_flag_spec_FC=
  hardcode_libdir_flag_spec_ld_FC=
  hardcode_libdir_separator_FC=
  hardcode_minus_L_FC=no
  hardcode_shlibpath_var_FC=unsupported
  inherit_rpath_FC=no
  link_all_deplibs_FC=unknown
  module_cmds_FC=
  module_expsym_cmds_FC=
  old_archive_from_new_cmds_FC=
  old_archive_from_expsyms_cmds_FC=
  thread_safe_flag_spec_FC=
  whole_archive_flag_spec_FC=
  # include_expsyms should be a list of space-separated symbols to be *always*
  # included in the symbol list
  include_expsyms_FC=
  # 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_FC="_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=

  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_FC=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_FC='${wl}-rpath ${wl}$libdir'
    export_dynamic_flag_spec_FC='${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_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    else
      whole_archive_flag_spec_FC=
    fi
    supports_anon_versioning=no
    case `$LD -v 2>&1` 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_FC=no
	cat <<_LT_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.

_LT_EOF
      fi
      ;;

    amigaos*)
      if test "$host_cpu" = m68k; then
        archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
        hardcode_libdir_flag_spec_FC='-L$libdir'
        hardcode_minus_L_FC=yes
      fi

      # 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_FC=no
      ;;

    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	allow_undefined_flag_FC=unsupported
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
	# support --undefined.  This deserves some investigation.  FIXME
	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
      else
	ld_shlibs_FC=no
      fi
      ;;

    cygwin* | mingw* | pw32*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
      # as there is no search path for DLLs.
      hardcode_libdir_flag_spec_FC='-L$libdir'
      allow_undefined_flag_FC=unsupported
      always_export_symbols_FC=no
      enable_shared_with_static_runtimes_FC=yes
      export_symbols_cmds_FC='$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_FC='$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_FC='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_FC=no
      fi
      ;;

    interix[3-9]*)
      hardcode_direct_FC=no
      hardcode_shlibpath_var_FC=no
      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
      export_dynamic_flag_spec_FC='${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_FC='$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_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;

    gnu* | linux* | tpf* | k*bsd*-gnu)
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
	case $cc_basename in
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
	esac
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
	 && test "$tmp_diet" = no
      then
	tmp_addflag=
	case $cc_basename,$host_cpu in
        pgcc*)				# Portland Group C compiler
	  whole_archive_flag_spec_FC='${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_FC='${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
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ C*)			# Sun C 5.9
	  whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
	  compiler_needs_object_FC=yes
	  tmp_sharedflag='-G' ;;
	*Sun\ F*)			# Sun Fortran 8.3
	  tmp_sharedflag='-G' ;;
	*)
	  tmp_sharedflag='-shared' ;;
	esac
	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'

        if test "x$supports_anon_versioning" = xyes; then
          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
	    echo "local: *; };" >> $output_objdir/$libname.ver~
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi
      else
        ld_shlibs_FC=no
      fi
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
	wlarc=
      else
	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_FC='$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_FC=no
	cat <<_LT_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.

_LT_EOF
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_FC=no
      fi
      ;;

    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
      case `$LD -v 2>&1` in
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
	ld_shlibs_FC=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
	;;
	*)
	  # 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.
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
	  else
	    ld_shlibs_FC=no
	  fi
	;;
      esac
      ;;

    sunos4*)
      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      wlarc=
      hardcode_direct_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    *)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
      else
	ld_shlibs_FC=no
      fi
      ;;
    esac

    if test "$ld_shlibs_FC" = no; then
      runpath_var=
      hardcode_libdir_flag_spec_FC=
      export_dynamic_flag_spec_FC=
      whole_archive_flag_spec_FC=
    fi
  else
    # PORTME fill in a description of your system's linker (not GNU ld)
    case $host_os in
    aix3*)
      allow_undefined_flag_FC=unsupported
      always_export_symbols_FC=yes
      archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
      # Note: this linker hardcodes the directories in LIBPATH if there
      # are no directories specified by -L.
      hardcode_minus_L_FC=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_FC=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_FC='$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_FC='$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_FC=''
      hardcode_direct_FC=yes
      hardcode_direct_absolute_FC=yes
      hardcode_libdir_separator_FC=':'
      link_all_deplibs_FC=yes
      file_list_spec_FC='${wl}-f,'

      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
	  :
	  else
	  # We have old collect2
	  hardcode_direct_FC=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_FC=yes
	  hardcode_libdir_flag_spec_FC='-L$libdir'
	  hardcode_libdir_separator_FC=
	  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_FC=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_FC='-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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# 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 "$lt_aix_libpath_sed"`
fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
        archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
      else
	if test "$host_cpu" = ia64; then
	  hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
	  allow_undefined_flag_FC="-z nodefs"
	  archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
	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 { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then

lt_aix_libpath_sed='
    /Import File Strings/,/^$/ {
	/^0/ {
	    s/^0  *\(.*\)$/\1/
	    p
	}
    }'
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
# 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 "$lt_aix_libpath_sed"`
fi
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi

	 hardcode_libdir_flag_spec_FC='${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_FC=' ${wl}-bernotok'
	  allow_undefined_flag_FC=' ${wl}-berok'
	  # Exported symbols can be pulled into shared objects from archives
	  whole_archive_flag_spec_FC='$convenience'
	  archive_cmds_need_lc_FC=yes
	  # This is similar to how AIX traditionally builds its shared libraries.
	  archive_expsym_cmds_FC="\$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*)
      if test "$host_cpu" = m68k; then
        archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
        hardcode_libdir_flag_spec_FC='-L$libdir'
        hardcode_minus_L_FC=yes
      fi
      # see comment about different semantics on the GNU ld section
      ld_shlibs_FC=no
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_FC=-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_FC=' '
      allow_undefined_flag_FC=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_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
      # The linker will automatically build a .lib file if we build a DLL.
      old_archive_from_new_cmds_FC='true'
      # FIXME: Should let the user specify the lib program.
      old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
      fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
      enable_shared_with_static_runtimes_FC=yes
      ;;

    darwin* | rhapsody*)
      case $host_os in
      rhapsody* | darwin1.[012])
	allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
	;;
      *) # Darwin 1.3 on
	case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
	10.[012])
	  allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
	  ;;
	10.*)
	  allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
	  ;;
	esac
	;;
      esac
      archive_cmds_need_lc_FC=no
      hardcode_direct_FC=no
      hardcode_automatic_FC=yes
      hardcode_shlibpath_var_FC=unsupported
      whole_archive_flag_spec_FC=''
      link_all_deplibs_FC=yes
      if test "$GCC" = yes ; then
	if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  lt_cv_apple_cc_single_mod=no
	if test -z "${LT_MULTI_MODULE}"; then
	  # By default we will add the -single_module flag. You can override
	  # by either setting the environment variable LT_MULTI_MODULE
	  # non-empty at configure time, or by adding -multi-module to the
	  # link flags.
	  echo "int foo(void){return 1;}" > conftest.c
	  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	      -dynamiclib ${wl}-single_module conftest.c
	  if test -f libconftest.dylib; then
	      lt_cv_apple_cc_single_mod=yes
	      rm libconftest.dylib
	  fi
	  rm conftest.$ac_ext
	fi
fi

	output_verbose_link_cmd=echo
	if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
	  archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
	  archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
	else
	  archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
	  archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
	fi
	module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
	module_expsym_cmds_FC='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
      else
	case $cc_basename in
	xlc*)
	  output_verbose_link_cmd=echo
	  archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $xlcverstring'
	  module_cmds_FC='$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_FC='sed "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
	  module_expsym_cmds_FC='sed "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_FC=no
	  ;;
	esac
      fi
      ;;

    dgux*)
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_FC='-L$libdir'
      hardcode_shlibpath_var_FC=no
      ;;

    freebsd1*)
      ld_shlibs_FC=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_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
      hardcode_libdir_flag_spec_FC='-R$libdir'
      hardcode_direct_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    freebsd2*)
      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_FC=yes
      hardcode_minus_L_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    freebsd* | dragonfly*)
      archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
      hardcode_libdir_flag_spec_FC='-R$libdir'
      hardcode_direct_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    hpux9*)
      if test "$GCC" = yes; then
	archive_cmds_FC='$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_FC='$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_FC='${wl}+b ${wl}$libdir'
      hardcode_libdir_separator_FC=:
      hardcode_direct_FC=yes

      # hardcode_minus_L: Not really in the search PATH,
      # but as the default location of the library.
      hardcode_minus_L_FC=yes
      export_dynamic_flag_spec_FC='${wl}-E'
      ;;

    hpux10*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_FC='$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_FC='${wl}+b ${wl}$libdir'
	hardcode_libdir_flag_spec_ld_FC='+b $libdir'
	hardcode_libdir_separator_FC=:
	hardcode_direct_FC=yes
	hardcode_direct_absolute_FC=yes
	export_dynamic_flag_spec_FC='${wl}-E'
	# hardcode_minus_L: Not really in the search PATH,
	# but as the default location of the library.
	hardcode_minus_L_FC=yes
      fi
      ;;

    hpux11*)
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
	case $host_cpu in
	hppa*64*)
	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_FC='$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_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	ia64*)
	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
	  ;;
	*)
	  archive_cmds_FC='$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_FC='${wl}+b ${wl}$libdir'
	hardcode_libdir_separator_FC=:

	case $host_cpu in
	hppa*64*|ia64*)
	  hardcode_direct_FC=no
	  hardcode_shlibpath_var_FC=no
	  ;;
	*)
	  hardcode_direct_FC=yes
	  hardcode_direct_absolute_FC=yes
	  export_dynamic_flag_spec_FC='${wl}-E'

	  # hardcode_minus_L: Not really in the search PATH,
	  # but as the default location of the library.
	  hardcode_minus_L_FC=yes
	  ;;
	esac
      fi
      ;;

    irix5* | irix6* | nonstopux*)
      if test "$GCC" = yes; then
	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	# Try to use the -exported_symbol ld option, if it does not
	# work, assume that -exports_file does not work either and
	# implicitly export all symbols.
        save_LDFLAGS="$LDFLAGS"
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
        cat >conftest.$ac_ext <<_ACEOF
int foo(void) {}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
        LDFLAGS="$save_LDFLAGS"
      else
	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
      fi
      archive_cmds_need_lc_FC='no'
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_FC=:
      inherit_rpath_FC=yes
      link_all_deplibs_FC=yes
      ;;

    netbsd*)
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
      else
	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
      fi
      hardcode_libdir_flag_spec_FC='-R$libdir'
      hardcode_direct_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    newsos6)
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_direct_FC=yes
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_FC=:
      hardcode_shlibpath_var_FC=no
      ;;

    *nto* | *qnx*)
      ;;

    openbsd*)
      if test -f /usr/libexec/ld.so; then
	hardcode_direct_FC=yes
	hardcode_shlibpath_var_FC=no
	hardcode_direct_absolute_FC=yes
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
	  hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
	  export_dynamic_flag_spec_FC='${wl}-E'
	else
	  case $host_os in
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
	     archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
	     hardcode_libdir_flag_spec_FC='-R$libdir'
	     ;;
	   *)
	     archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
	     hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
	     ;;
	  esac
	fi
      else
	ld_shlibs_FC=no
      fi
      ;;

    os2*)
      hardcode_libdir_flag_spec_FC='-L$libdir'
      hardcode_minus_L_FC=yes
      allow_undefined_flag_FC=unsupported
      archive_cmds_FC='$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_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
      ;;

    osf3*)
      if test "$GCC" = yes; then
	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
      else
	allow_undefined_flag_FC=' -expect_unresolved \*'
	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
      fi
      archive_cmds_need_lc_FC='no'
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator_FC=:
      ;;

    osf4* | osf5*)	# as osf3* with the addition of -msym flag
      if test "$GCC" = yes; then
	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
	hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
      else
	allow_undefined_flag_FC=' -expect_unresolved \*'
	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
	archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'

	# Both c and cxx compiler support -rpath directly
	hardcode_libdir_flag_spec_FC='-rpath $libdir'
      fi
      archive_cmds_need_lc_FC='no'
      hardcode_libdir_separator_FC=:
      ;;

    solaris*)
      no_undefined_flag_FC=' -z defs'
      if test "$GCC" = yes; then
	wlarc='${wl}'
	archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
      else
	case `$CC -V 2>&1` in
	*"Compilers 5.0"*)
	  wlarc=''
	  archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  archive_expsym_cmds_FC='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'
	  ;;
	*)
	  wlarc='${wl}'
	  archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
	  ;;
	esac
      fi
      hardcode_libdir_flag_spec_FC='-R$libdir'
      hardcode_shlibpath_var_FC=no
      case $host_os in
      solaris2.[0-5] | solaris2.[0-5].*) ;;
      *)
	# The compiler driver will combine and reorder linker options,
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
	# but is careful enough not to reorder.
	# Supported since Solaris 2.6 (maybe 2.5.1?)
	if test "$GCC" = yes; then
	  whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
	else
	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
	fi
	;;
      esac
      link_all_deplibs_FC=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_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
      fi
      hardcode_libdir_flag_spec_FC='-L$libdir'
      hardcode_direct_FC=yes
      hardcode_minus_L_FC=yes
      hardcode_shlibpath_var_FC=no
      ;;

    sysv4)
      case $host_vendor in
	sni)
	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_FC=yes # is this really true???
	;;
	siemens)
	  ## LD is ld it makes a PLAMLIB
	  ## CC just makes a GrossModule.
	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
	  reload_cmds_FC='$CC -r -o $output$reload_objs'
	  hardcode_direct_FC=no
        ;;
	motorola)
	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
	;;
      esac
      runpath_var='LD_RUN_PATH'
      hardcode_shlibpath_var_FC=no
      ;;

    sysv4.3*)
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_shlibpath_var_FC=no
      export_dynamic_flag_spec_FC='-Bexport'
      ;;

    sysv4*MP*)
      if test -d /usr/nec; then
	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
	hardcode_shlibpath_var_FC=no
	runpath_var=LD_RUN_PATH
	hardcode_runpath_var=yes
	ld_shlibs_FC=yes
      fi
      ;;

    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
      no_undefined_flag_FC='${wl}-z,text'
      archive_cmds_need_lc_FC=no
      hardcode_shlibpath_var_FC=no
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_FC='$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_FC='${wl}-z,text'
      allow_undefined_flag_FC='${wl}-z,nodefs'
      archive_cmds_need_lc_FC=no
      hardcode_shlibpath_var_FC=no
      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
      hardcode_libdir_separator_FC=':'
      link_all_deplibs_FC=yes
      export_dynamic_flag_spec_FC='${wl}-Bexport'
      runpath_var='LD_RUN_PATH'

      if test "$GCC" = yes; then
	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      else
	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
      fi
      ;;

    uts4*)
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      hardcode_libdir_flag_spec_FC='-L$libdir'
      hardcode_shlibpath_var_FC=no
      ;;

    *)
      ld_shlibs_FC=no
      ;;
    esac

    if test x$host_vendor = xsni; then
      case $host in
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
	export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
	;;
      esac
    fi
  fi

{ echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
echo "${ECHO_T}$ld_shlibs_FC" >&6; }
test "$ld_shlibs_FC" = no && can_build_shared=no

with_gnu_ld_FC=$with_gnu_ld






#
# Do we need to explicitly link libc?
#
case "x$archive_cmds_need_lc_FC" in
x|xyes)
  # Assume -lc should be added
  archive_cmds_need_lc_FC=yes

  if test "$enable_shared" = yes && test "$GCC" = yes; then
    case $archive_cmds_FC 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*
      echo "$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_FC
	pic_flag=$lt_prog_compiler_pic_FC
        compiler_flags=-v
        linker_flags=-v
        verstring=
        output_objdir=.
        libname=conftest
        lt_save_allow_undefined_flag=$allow_undefined_flag_FC
        allow_undefined_flag_FC=
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  (eval $archive_cmds_FC 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_FC=no
        else
	  archive_cmds_need_lc_FC=yes
        fi
        allow_undefined_flag_FC=$lt_save_allow_undefined_flag
      else
        cat conftest.err 1>&5
      fi
      $RM conftest*
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6; }
      ;;
    esac
  fi
  ;;
esac
































































    { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
withGCC=$ac_cv_fc_compiler_gnu
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"
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*)
  if test "$host_cpu" = m68k; then
    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'
  else
    dynamic_linker=no
  fi
  ;;

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 $withGCC,$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~
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
      fi'
    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}${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`'

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

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
    ;;
  *) # from 4.6 on, and DragonFly
    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'
  ;;

interix[3-9]*)
  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* | k*bsd*-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'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  # Some binutils ld are patched to set DT_RUNPATH
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
  cat >conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
  shlibpath_overrides_runpath=yes
fi

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir

  # 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>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/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'
  ;;

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=qnx
  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='ldqnx.so'
  ;;

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

rdos*)
  dynamic_linker=no
  ;;

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
      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
  shlibpath_overrides_runpath=yes
  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'
  else
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    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'
  ;;

tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  need_lib_prefix=no
  need_version=no
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  ;;

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_FC=
if test -n "$hardcode_libdir_flag_spec_FC" ||
   test -n "$runpath_var_FC" ||
   test "X$hardcode_automatic_FC" = "Xyes" ; then

  # We can hardcode non-existent directories.
  if test "$hardcode_direct_FC" != 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_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
     test "$hardcode_minus_L_FC" != no; then
    # Linking always hardcodes the temporary library directory.
    hardcode_action_FC=relink
  else
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    hardcode_action_FC=immediate
  fi
else
  # We cannot hardcode anything, or else we can only hardcode existing
  # directories.
  hardcode_action_FC=unsupported
fi
{ echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
echo "${ECHO_T}$hardcode_action_FC" >&6; }

if test "$hardcode_action_FC" = relink ||
   test "$inherit_rpath_FC" = yes; 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







  fi # test -n "$compiler"

  CC="$lt_save_CC"
fi # test "$_lt_disable_FC" != 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









        ac_config_commands="$ac_config_commands libtool"




# Only expand once:



# 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:147816: $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 -e 's,^libtool: *,,' -e 's,^link: *,,'`
    fi
    status="$?"

# 1 is the message
# 2 is whether to put a prefix or not
if test -n "yes"; then
    echo "configure:147829: \$? = $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

# eat any extra whitespace in CC, as libtool will do the same
tmpCC=`echo $CC | sed -e 's/\//\\\\\//g'`
output=`echo $output | sed -e "s/^$tmpCC//"`
eval "set $output"
extra_ldflags=
while test -n "$1"; do
    case "$1" in
    *.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; }
    OMPI_WRAPPER_EXTRA_INCLUDES="$ORTE_WRAPPER_EXTRA_INCLUDES"

    { 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=""
    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=""
    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"

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 ompi/tools/ortetools/Makefile test/Makefile test/event/Makefile test/asm/Makefile test/class/Makefile test/memory/Makefile test/support/Makefile test/threads/Makefile test/peruse/Makefile test/datatype/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, we kill variables containing newlines.
# 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.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}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 "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     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 "$as_me:$LINENO: updating cache $cache_file" >&5
echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  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}'

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_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$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 "${OMPI_INSTALL_BINARIES_TRUE}" && test -z "${OMPI_INSTALL_BINARIES_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_INSTALL_BINARIES\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_INSTALL_BINARIES\" 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 "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"am__fastdepCCAS\" 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 "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"am__fastdepCCAS\" 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_backtrace_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_darwin_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_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_backtrace_execinfo_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_execinfo_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_execinfo_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_execinfo_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_backtrace_printstack_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_printstack_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_printstack_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_printstack_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_backtrace_none_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_none_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_none_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_backtrace_none_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_installdirs_env_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_env_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_installdirs_env_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_installdirs_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_installdirs_config_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_config_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_installdirs_config_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_installdirs_config_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_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_errmgr_hnp_DSO_TRUE}" && test -z "${OMPI_BUILD_errmgr_hnp_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_errmgr_hnp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_errmgr_hnp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_errmgr_orted_DSO_TRUE}" && test -z "${OMPI_BUILD_errmgr_orted_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_errmgr_orted_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_errmgr_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_errmgr_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_errmgr_proxy_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_errmgr_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_errmgr_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_errmgr_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_errmgr_bproc_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_errmgr_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_errmgr_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_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_odls_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_odls_bproc_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_odls_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_odls_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_odls_default_DSO_TRUE}" && test -z "${OMPI_BUILD_odls_default_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_odls_default_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_odls_default_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_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_proxy_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_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_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_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_cnos_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_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_pls_gridengine_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_gridengine_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_gridengine_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pls_gridengine_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_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_gridengine_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_gridengine_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_gridengine_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_gridengine_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_loadleveler_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_loadleveler_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_loadleveler_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_ras_loadleveler_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_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_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_rds_proxy_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rds_proxy_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rds_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_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_smr_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_smr_bproc_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_smr_bproc_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_smr_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_btl_udapl_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_udapl_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_udapl_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_btl_udapl_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_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_common_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_common_mx_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_mx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_common_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_common_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_common_portals_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_common_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${MCA_io_romio_SHOULD_BUILD_TRUE}" && test -z "${MCA_io_romio_SHOULD_BUILD_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"MCA_io_romio_SHOULD_BUILD\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"MCA_io_romio_SHOULD_BUILD\" 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_rdma_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_rdma_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_rdma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_mpool_rdma_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_mtl_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_mx_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_mx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_mtl_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_mtl_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_portals_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_mtl_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_mtl_psm_DSO_TRUE}" && test -z "${OMPI_BUILD_mtl_psm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_psm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_mtl_psm_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_cm_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_cm_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_cm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_pml_cm_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_vma_DSO_TRUE}" && test -z "${OMPI_BUILD_rcache_vma_DSO_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rcache_vma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"OMPI_BUILD_rcache_vma_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 "${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_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 more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
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+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# 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

# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
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
IFS=$as_save_IFS

     ;;
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_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
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) >/dev/null 2>&1 && $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; 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'`

# CDPATH.
$as_unset CDPATH



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {

  # 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 after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, 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
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\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 sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    as_ln_s='cp -p'
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$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
        test -d "$1/.";
      else
	case $1 in
        -*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

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


exec 6>&1

# Save the log message, to keep $[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by Open MPI $as_me 1.2.5, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

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 and configuration settings, 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 commands:
$config_commands

Report bugs to <bug-autoconf@gnu.org>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
Open MPI config.status 1.2.5
configured by $0, generated by GNU Autoconf 2.61,
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

Copyright (C) 2006 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
_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
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --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;;
  --he | --h)
    # Conflict between --help and --header
    { 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 ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { 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"
     ac_need_defaults=false ;;

  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 CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  CONFIG_SHELL=$SHELL
  export CONFIG_SHELL
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"


# 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

sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst'
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'

LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT'

# Quote evaled strings.
for var in NM \
SED \
GREP \
EGREP \
FGREP \
LD \
LN_S \
lt_SP2NL \
lt_NL2SP \
reload_flag \
deplibs_check_method \
file_magic_cmd \
AR \
AR_FLAGS \
STRIP \
RANLIB \
CC \
CFLAGS \
compiler \
lt_cv_sys_global_symbol_pipe \
lt_cv_sys_global_symbol_to_cdecl \
lt_cv_sys_global_symbol_to_c_name_address \
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
SHELL \
ECHO \
lt_prog_compiler_no_builtin_flag \
lt_prog_compiler_wl \
lt_prog_compiler_pic \
lt_prog_compiler_static \
lt_cv_prog_compiler_c_o \
need_locks \
shrext_cmds \
export_dynamic_flag_spec \
whole_archive_flag_spec \
compiler_needs_object \
with_gnu_ld \
allow_undefined_flag \
no_undefined_flag \
hardcode_libdir_flag_spec \
hardcode_libdir_flag_spec_ld \
hardcode_libdir_separator \
fix_srcfile_path \
exclude_expsyms \
include_expsyms \
file_list_spec \
variables_saved_for_relink \
libname_spec \
library_names_spec \
soname_spec \
finish_eval \
old_striplib \
striplib \
predep_objects \
postdep_objects \
predeps \
postdeps \
compiler_lib_search_path \
LD_CXX \
LD_F77 \
LD_FC \
compiler_CXX \
compiler_F77 \
compiler_FC \
lt_prog_compiler_no_builtin_flag_CXX \
lt_prog_compiler_no_builtin_flag_F77 \
lt_prog_compiler_no_builtin_flag_FC \
lt_prog_compiler_wl_CXX \
lt_prog_compiler_wl_F77 \
lt_prog_compiler_wl_FC \
lt_prog_compiler_pic_CXX \
lt_prog_compiler_pic_F77 \
lt_prog_compiler_pic_FC \
lt_prog_compiler_static_CXX \
lt_prog_compiler_static_F77 \
lt_prog_compiler_static_FC \
lt_cv_prog_compiler_c_o_CXX \
lt_cv_prog_compiler_c_o_F77 \
lt_cv_prog_compiler_c_o_FC \
export_dynamic_flag_spec_CXX \
export_dynamic_flag_spec_F77 \
export_dynamic_flag_spec_FC \
whole_archive_flag_spec_CXX \
whole_archive_flag_spec_F77 \
whole_archive_flag_spec_FC \
compiler_needs_object_CXX \
compiler_needs_object_F77 \
compiler_needs_object_FC \
with_gnu_ld_CXX \
with_gnu_ld_F77 \
with_gnu_ld_FC \
allow_undefined_flag_CXX \
allow_undefined_flag_F77 \
allow_undefined_flag_FC \
no_undefined_flag_CXX \
no_undefined_flag_F77 \
no_undefined_flag_FC \
hardcode_libdir_flag_spec_CXX \
hardcode_libdir_flag_spec_F77 \
hardcode_libdir_flag_spec_FC \
hardcode_libdir_flag_spec_ld_CXX \
hardcode_libdir_flag_spec_ld_F77 \
hardcode_libdir_flag_spec_ld_FC \
hardcode_libdir_separator_CXX \
hardcode_libdir_separator_F77 \
hardcode_libdir_separator_FC \
fix_srcfile_path_CXX \
fix_srcfile_path_F77 \
fix_srcfile_path_FC \
exclude_expsyms_CXX \
exclude_expsyms_F77 \
exclude_expsyms_FC \
include_expsyms_CXX \
include_expsyms_F77 \
include_expsyms_FC \
file_list_spec_CXX \
file_list_spec_F77 \
file_list_spec_FC \
predep_objects_CXX \
predep_objects_F77 \
predep_objects_FC \
postdep_objects_CXX \
postdep_objects_F77 \
postdep_objects_FC \
predeps_CXX \
predeps_F77 \
predeps_FC \
postdeps_CXX \
postdeps_F77 \
postdeps_FC \
compiler_lib_search_path_CXX \
compiler_lib_search_path_F77 \
compiler_lib_search_path_FC; do
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Double-quote double-evaled strings.
for var in reload_cmds \
old_postinstall_cmds \
old_postuninstall_cmds \
old_archive_cmds \
extract_expsyms_cmds \
old_archive_from_new_cmds \
old_archive_from_expsyms_cmds \
archive_cmds \
archive_expsym_cmds \
module_cmds \
module_expsym_cmds \
export_symbols_cmds \
prelink_cmds \
postinstall_cmds \
postuninstall_cmds \
finish_cmds \
sys_lib_search_path_spec \
sys_lib_dlsearch_path_spec \
old_archive_cmds_CXX \
old_archive_cmds_F77 \
old_archive_cmds_FC \
old_archive_from_new_cmds_CXX \
old_archive_from_new_cmds_F77 \
old_archive_from_new_cmds_FC \
old_archive_from_expsyms_cmds_CXX \
old_archive_from_expsyms_cmds_F77 \
old_archive_from_expsyms_cmds_FC \
archive_cmds_CXX \
archive_cmds_F77 \
archive_cmds_FC \
archive_expsym_cmds_CXX \
archive_expsym_cmds_F77 \
archive_expsym_cmds_FC \
module_cmds_CXX \
module_cmds_F77 \
module_cmds_FC \
module_expsym_cmds_CXX \
module_expsym_cmds_F77 \
module_expsym_cmds_FC \
export_symbols_cmds_CXX \
export_symbols_cmds_F77 \
export_symbols_cmds_FC \
prelink_cmds_CXX \
prelink_cmds_F77 \
prelink_cmds_FC; do
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
    *[\\\\\\\`\\"\\\$]*)
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
      ;;
    *)
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
      ;;
    esac
done

# Fix-up fallback echo if it was mangled by the above quoting rules.
case \$lt_ECHO in
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  ;;
esac

ac_aux_dir='$ac_aux_dir'
xsi_shell='$xsi_shell'
lt_shell_append='$lt_shell_append'

# See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then
   setopt NO_GLOB_SUBST
fi


    PACKAGE='$PACKAGE'
    VERSION='$VERSION'
    TIMESTAMP='$TIMESTAMP'
    RM='$RM'
    ofile='$ofile'










_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "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" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "opal/mca/backtrace/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/Makefile" ;;
    "opal/mca/installdirs/config/install_dirs.h") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/install_dirs.h" ;;
    "opal/mca/installdirs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/Makefile" ;;
    "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/odls/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/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/smr/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/smr/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/mtl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/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" ;;
    "opal/mca/backtrace/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/darwin/Makefile" ;;
    "opal/mca/backtrace/execinfo/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/execinfo/Makefile" ;;
    "opal/mca/backtrace/none/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/none/Makefile" ;;
    "opal/mca/backtrace/printstack/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/printstack/Makefile" ;;
    "opal/mca/installdirs/config/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/Makefile" ;;
    "opal/mca/installdirs/env/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/env/Makefile" ;;
    "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/errmgr/bproc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/bproc/Makefile" ;;
    "orte/mca/errmgr/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/hnp/Makefile" ;;
    "orte/mca/errmgr/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/orted/Makefile" ;;
    "orte/mca/errmgr/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/proxy/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/odls/bproc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/bproc/Makefile" ;;
    "orte/mca/odls/default/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/default/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/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/cnos/Makefile" ;;
    "orte/mca/pls/gridengine/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/gridengine/Makefile" ;;
    "orte/mca/pls/poe/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/poe/Makefile" ;;
    "orte/mca/pls/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/proxy/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/gridengine/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/gridengine/Makefile" ;;
    "orte/mca/ras/loadleveler/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/loadleveler/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/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/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rds/proxy/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/smr/bproc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/smr/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/btl/udapl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/udapl/Makefile" ;;
    "ompi/mca/coll/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/basic/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/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/mx/Makefile" ;;
    "ompi/mca/common/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/portals/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/rdma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/rdma/Makefile" ;;
    "ompi/mca/mpool/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/sm/Makefile" ;;
    "ompi/mca/mtl/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/mx/Makefile" ;;
    "ompi/mca/mtl/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/portals/Makefile" ;;
    "ompi/mca/mtl/psm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/psm/Makefile" ;;
    "ompi/mca/osc/pt2pt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/pt2pt/Makefile" ;;
    "ompi/mca/pml/cm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/cm/Makefile" ;;
    "ompi/mca/pml/ob1/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/ob1/Makefile" ;;
    "ompi/mca/rcache/vma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/vma/Makefile" ;;
    "ompi/mca/topo/unity/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/unity/Makefile" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "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" ;;
    "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" ;;
    "ompi/tools/ortetools/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ortetools/Makefile" ;;
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
    "test/event/Makefile") CONFIG_FILES="$CONFIG_FILES test/event/Makefile" ;;
    "test/asm/Makefile") CONFIG_FILES="$CONFIG_FILES test/asm/Makefile" ;;
    "test/class/Makefile") CONFIG_FILES="$CONFIG_FILES test/class/Makefile" ;;
    "test/memory/Makefile") CONFIG_FILES="$CONFIG_FILES test/memory/Makefile" ;;
    "test/support/Makefile") CONFIG_FILES="$CONFIG_FILES test/support/Makefile" ;;
    "test/threads/Makefile") CONFIG_FILES="$CONFIG_FILES test/threads/Makefile" ;;
    "test/peruse/Makefile") CONFIG_FILES="$CONFIG_FILES test/peruse/Makefile" ;;
    "test/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES test/datatype/Makefile" ;;

  *) { { 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_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 against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$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 "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} ||
{
   echo "$me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

#
# Set up the sed scripts for 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

_ACEOF



ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
SHELL!$SHELL$ac_delim
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
exec_prefix!$exec_prefix$ac_delim
prefix!$prefix$ac_delim
program_transform_name!$program_transform_name$ac_delim
bindir!$bindir$ac_delim
sbindir!$sbindir$ac_delim
libexecdir!$libexecdir$ac_delim
datarootdir!$datarootdir$ac_delim
datadir!$datadir$ac_delim
sysconfdir!$sysconfdir$ac_delim
sharedstatedir!$sharedstatedir$ac_delim
localstatedir!$localstatedir$ac_delim
includedir!$includedir$ac_delim
oldincludedir!$oldincludedir$ac_delim
docdir!$docdir$ac_delim
infodir!$infodir$ac_delim
htmldir!$htmldir$ac_delim
dvidir!$dvidir$ac_delim
pdfdir!$pdfdir$ac_delim
psdir!$psdir$ac_delim
libdir!$libdir$ac_delim
localedir!$localedir$ac_delim
mandir!$mandir$ac_delim
DEFS!$DEFS$ac_delim
ECHO_C!$ECHO_C$ac_delim
ECHO_N!$ECHO_N$ac_delim
ECHO_T!$ECHO_T$ac_delim
LIBS!$LIBS$ac_delim
build_alias!$build_alias$ac_delim
host_alias!$host_alias$ac_delim
target_alias!$target_alias$ac_delim
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
INSTALL_DATA!$INSTALL_DATA$ac_delim
am__isrc!$am__isrc$ac_delim
CYGPATH_W!$CYGPATH_W$ac_delim
PACKAGE!$PACKAGE$ac_delim
VERSION!$VERSION$ac_delim
ACLOCAL!$ACLOCAL$ac_delim
AUTOCONF!$AUTOCONF$ac_delim
AUTOMAKE!$AUTOMAKE$ac_delim
AUTOHEADER!$AUTOHEADER$ac_delim
MAKEINFO!$MAKEINFO$ac_delim
install_sh!$install_sh$ac_delim
STRIP!$STRIP$ac_delim
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
mkdir_p!$mkdir_p$ac_delim
AWK!$AWK$ac_delim
SET_MAKE!$SET_MAKE$ac_delim
am__leading_dot!$am__leading_dot$ac_delim
AMTAR!$AMTAR$ac_delim
am__tar!$am__tar$ac_delim
am__untar!$am__untar$ac_delim
CONFIGURE_DEPENDENCIES!$CONFIGURE_DEPENDENCIES$ac_delim
OMPI_CONFIGURE_USER!$OMPI_CONFIGURE_USER$ac_delim
OMPI_CONFIGURE_HOST!$OMPI_CONFIGURE_HOST$ac_delim
OMPI_CONFIGURE_DATE!$OMPI_CONFIGURE_DATE$ac_delim
OMPI_MAJOR_VERSION!$OMPI_MAJOR_VERSION$ac_delim
OMPI_MINOR_VERSION!$OMPI_MINOR_VERSION$ac_delim
OMPI_RELEASE_VERSION!$OMPI_RELEASE_VERSION$ac_delim
OMPI_GREEK_VERSION!$OMPI_GREEK_VERSION$ac_delim
OMPI_WANT_SVN!$OMPI_WANT_SVN$ac_delim
OMPI_SVN_R!$OMPI_SVN_R$ac_delim
OMPI_VERSION!$OMPI_VERSION$ac_delim
ORTE_MAJOR_VERSION!$ORTE_MAJOR_VERSION$ac_delim
ORTE_MINOR_VERSION!$ORTE_MINOR_VERSION$ac_delim
ORTE_RELEASE_VERSION!$ORTE_RELEASE_VERSION$ac_delim
ORTE_GREEK_VERSION!$ORTE_GREEK_VERSION$ac_delim
ORTE_WANT_SVN!$ORTE_WANT_SVN$ac_delim
ORTE_SVN_R!$ORTE_SVN_R$ac_delim
ORTE_VERSION!$ORTE_VERSION$ac_delim
OPAL_MAJOR_VERSION!$OPAL_MAJOR_VERSION$ac_delim
OPAL_MINOR_VERSION!$OPAL_MINOR_VERSION$ac_delim
OPAL_RELEASE_VERSION!$OPAL_RELEASE_VERSION$ac_delim
OPAL_GREEK_VERSION!$OPAL_GREEK_VERSION$ac_delim
OPAL_WANT_SVN!$OPAL_WANT_SVN$ac_delim
OPAL_SVN_R!$OPAL_SVN_R$ac_delim
OPAL_VERSION!$OPAL_VERSION$ac_delim
OMPI_TOP_BUILDDIR!$OMPI_TOP_BUILDDIR$ac_delim
OMPI_TOP_SRCDIR!$OMPI_TOP_SRCDIR$ac_delim
CLEANFILES!$CLEANFILES$ac_delim
build!$build$ac_delim
build_cpu!$build_cpu$ac_delim
build_vendor!$build_vendor$ac_delim
build_os!$build_os$ac_delim
host!$host$ac_delim
host_cpu!$host_cpu$ac_delim
host_vendor!$host_vendor$ac_delim
host_os!$host_os$ac_delim
ac_prefix_program!$ac_prefix_program$ac_delim
top_ompi_srcdir!$top_ompi_srcdir$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
top_ompi_builddir!$top_ompi_builddir$ac_delim
OMPI_WANT_BUILD_F90_TRIVIAL_TRUE!$OMPI_WANT_BUILD_F90_TRIVIAL_TRUE$ac_delim
OMPI_WANT_BUILD_F90_TRIVIAL_FALSE!$OMPI_WANT_BUILD_F90_TRIVIAL_FALSE$ac_delim
OMPI_WANT_BUILD_F90_SMALL_TRUE!$OMPI_WANT_BUILD_F90_SMALL_TRUE$ac_delim
OMPI_WANT_BUILD_F90_SMALL_FALSE!$OMPI_WANT_BUILD_F90_SMALL_FALSE$ac_delim
OMPI_WANT_BUILD_F90_MEDIUM_TRUE!$OMPI_WANT_BUILD_F90_MEDIUM_TRUE$ac_delim
OMPI_WANT_BUILD_F90_MEDIUM_FALSE!$OMPI_WANT_BUILD_F90_MEDIUM_FALSE$ac_delim
OMPI_WANT_BUILD_F90_LARGE_TRUE!$OMPI_WANT_BUILD_F90_LARGE_TRUE$ac_delim
OMPI_WANT_BUILD_F90_LARGE_FALSE!$OMPI_WANT_BUILD_F90_LARGE_FALSE$ac_delim
OMPI_F90_BUILD_SIZE!$OMPI_F90_BUILD_SIZE$ac_delim
MPIF_H_PMPI_W_FUNCS!$MPIF_H_PMPI_W_FUNCS$ac_delim
WANT_INSTALL_HEADERS_TRUE!$WANT_INSTALL_HEADERS_TRUE$ac_delim
WANT_INSTALL_HEADERS_FALSE!$WANT_INSTALL_HEADERS_FALSE$ac_delim
WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE!$WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE$ac_delim
WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE!$WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE$ac_delim
WANT_PERUSE_TRUE!$WANT_PERUSE_TRUE$ac_delim
WANT_PERUSE_FALSE!$WANT_PERUSE_FALSE$ac_delim
OMPI_FORTRAN_MAX_ARRAY_RANK!$OMPI_FORTRAN_MAX_ARRAY_RANK$ac_delim
OMPI_INSTALL_BINARIES_TRUE!$OMPI_INSTALL_BINARIES_TRUE$ac_delim
OMPI_INSTALL_BINARIES_FALSE!$OMPI_INSTALL_BINARIES_FALSE$ac_delim
CC!$CC$ac_delim
CFLAGS!$CFLAGS$ac_delim
LDFLAGS!$LDFLAGS$ac_delim
CPPFLAGS!$CPPFLAGS$ac_delim
ac_ct_CC!$ac_ct_CC$ac_delim
EXEEXT!$EXEEXT$ac_delim
OBJEXT!$OBJEXT$ac_delim
DEPDIR!$DEPDIR$ac_delim
am__include!$am__include$ac_delim
am__quote!$am__quote$ac_delim
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
CCDEPMODE!$CCDEPMODE$ac_delim
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
OMPI_CC_ABSOLUTE!$OMPI_CC_ABSOLUTE$ac_delim
CPP!$CPP$ac_delim
GREP!$GREP$ac_delim
EGREP!$EGREP$ac_delim
OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE!$OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE$ac_delim
OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE!$OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE$ac_delim
WANT_MPI_BINDINGS_LAYER_TRUE!$WANT_MPI_BINDINGS_LAYER_TRUE$ac_delim
WANT_MPI_BINDINGS_LAYER_FALSE!$WANT_MPI_BINDINGS_LAYER_FALSE$ac_delim
WANT_PMPI_BINDINGS_LAYER_TRUE!$WANT_PMPI_BINDINGS_LAYER_TRUE$ac_delim
WANT_PMPI_BINDINGS_LAYER_FALSE!$WANT_PMPI_BINDINGS_LAYER_FALSE$ac_delim
COMPILE_PROFILING_SEPARATELY_TRUE!$COMPILE_PROFILING_SEPARATELY_TRUE$ac_delim
COMPILE_PROFILING_SEPARATELY_FALSE!$COMPILE_PROFILING_SEPARATELY_FALSE$ac_delim
CXX!$CXX$ac_delim
CXXFLAGS!$CXXFLAGS$ac_delim
ac_ct_CXX!$ac_ct_CXX$ac_delim
CXXDEPMODE!$CXXDEPMODE$ac_delim
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
CXXCPP!$CXXCPP$ac_delim
OMPI_CXX_ABSOLUTE!$OMPI_CXX_ABSOLUTE$ac_delim
WANT_MPI_CXX_BINDINGS_TRUE!$WANT_MPI_CXX_BINDINGS_TRUE$ac_delim
WANT_MPI_CXX_BINDINGS_FALSE!$WANT_MPI_CXX_BINDINGS_FALSE$ac_delim
CCAS!$CCAS$ac_delim
CCASFLAGS!$CCASFLAGS$ac_delim
CCASDEPMODE!$CCASDEPMODE$ac_delim
am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
OMPI_ASM_TEXT!$OMPI_ASM_TEXT$ac_delim
OMPI_AS_GLOBAL!$OMPI_AS_GLOBAL$ac_delim
OBJDUMP!$OBJDUMP$ac_delim
OMPI_AS_LABEL_SUFFIX!$OMPI_AS_LABEL_SUFFIX$ac_delim
OMPI_ASM_GSYM!$OMPI_ASM_GSYM$ac_delim
DUMPBIN!$DUMPBIN$ac_delim
ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
NM!$NM$ac_delim
OMPI_ASM_LSYM!$OMPI_ASM_LSYM$ac_delim
OMPI_ASM_TYPE!$OMPI_ASM_TYPE$ac_delim
OMPI_ASM_SUPPORT_64BIT!$OMPI_ASM_SUPPORT_64BIT$ac_delim
OMPI_ASSEMBLY_FORMAT!$OMPI_ASSEMBLY_FORMAT$ac_delim
OMPI_ASSEMBLY_ARCH!$OMPI_ASSEMBLY_ARCH$ac_delim
FGREP!$FGREP$ac_delim
PERL!$PERL$ac_delim
OMPI_HAVE_ASM_FILE_TRUE!$OMPI_HAVE_ASM_FILE_TRUE$ac_delim
OMPI_HAVE_ASM_FILE_FALSE!$OMPI_HAVE_ASM_FILE_FALSE$ac_delim
OMPI_ASM_FILE!$OMPI_ASM_FILE$ac_delim
F77!$F77$ac_delim
FFLAGS!$FFLAGS$ac_delim
ac_ct_F77!$ac_ct_F77$ac_delim
OMPI_WANT_F77_BINDINGS_TRUE!$OMPI_WANT_F77_BINDINGS_TRUE$ac_delim
OMPI_WANT_F77_BINDINGS_FALSE!$OMPI_WANT_F77_BINDINGS_FALSE$ac_delim
OMPI_F77_ABSOLUTE!$OMPI_F77_ABSOLUTE$ac_delim
WANT_MPI_F77_BINDINGS_LAYER_TRUE!$WANT_MPI_F77_BINDINGS_LAYER_TRUE$ac_delim
WANT_MPI_F77_BINDINGS_LAYER_FALSE!$WANT_MPI_F77_BINDINGS_LAYER_FALSE$ac_delim
WANT_PMPI_F77_BINDINGS_LAYER_TRUE!$WANT_PMPI_F77_BINDINGS_LAYER_TRUE$ac_delim
WANT_PMPI_F77_BINDINGS_LAYER_FALSE!$WANT_PMPI_F77_BINDINGS_LAYER_FALSE$ac_delim
FC!$FC$ac_delim
FCFLAGS!$FCFLAGS$ac_delim
ac_ct_FC!$ac_ct_FC$ac_delim
OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS!$OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS$ac_delim
FCFLAGS_f!$FCFLAGS_f$ac_delim
FCFLAGS_f90!$FCFLAGS_f90$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
OMPI_WANT_F90_BINDINGS_TRUE!$OMPI_WANT_F90_BINDINGS_TRUE$ac_delim
OMPI_WANT_F90_BINDINGS_FALSE!$OMPI_WANT_F90_BINDINGS_FALSE$ac_delim
OMPI_F90_ABSOLUTE!$OMPI_F90_ABSOLUTE$ac_delim
OMPI_FC_MODULE_FLAG!$OMPI_FC_MODULE_FLAG$ac_delim
OMPI_SIZEOF_F90_LOGICAL!$OMPI_SIZEOF_F90_LOGICAL$ac_delim
OMPI_SIZEOF_F90_INTEGER!$OMPI_SIZEOF_F90_INTEGER$ac_delim
OMPI_SIZEOF_F90_INTEGER1!$OMPI_SIZEOF_F90_INTEGER1$ac_delim
OMPI_SIZEOF_F90_INTEGER2!$OMPI_SIZEOF_F90_INTEGER2$ac_delim
OMPI_SIZEOF_F90_INTEGER4!$OMPI_SIZEOF_F90_INTEGER4$ac_delim
OMPI_SIZEOF_F90_INTEGER8!$OMPI_SIZEOF_F90_INTEGER8$ac_delim
OMPI_SIZEOF_F90_INTEGER16!$OMPI_SIZEOF_F90_INTEGER16$ac_delim
OMPI_SIZEOF_F90_REAL!$OMPI_SIZEOF_F90_REAL$ac_delim
OMPI_SIZEOF_F90_REAL4!$OMPI_SIZEOF_F90_REAL4$ac_delim
OMPI_SIZEOF_F90_REAL8!$OMPI_SIZEOF_F90_REAL8$ac_delim
OMPI_SIZEOF_F90_REAL16!$OMPI_SIZEOF_F90_REAL16$ac_delim
OMPI_SIZEOF_F90_DOUBLE_PRECISION!$OMPI_SIZEOF_F90_DOUBLE_PRECISION$ac_delim
OMPI_SIZEOF_F90_COMPLEX!$OMPI_SIZEOF_F90_COMPLEX$ac_delim
OMPI_SIZEOF_F90_COMPLEX8!$OMPI_SIZEOF_F90_COMPLEX8$ac_delim
OMPI_SIZEOF_F90_COMPLEX16!$OMPI_SIZEOF_F90_COMPLEX16$ac_delim
OMPI_SIZEOF_F90_COMPLEX32!$OMPI_SIZEOF_F90_COMPLEX32$ac_delim
OMPI_SIZEOF_F90_DOUBLE_COMPLEX!$OMPI_SIZEOF_F90_DOUBLE_COMPLEX$ac_delim
OMPI_F90_IKINDS!$OMPI_F90_IKINDS$ac_delim
OMPI_F90_RKINDS!$OMPI_F90_RKINDS$ac_delim
OMPI_F90_CKINDS!$OMPI_F90_CKINDS$ac_delim
OMPI_MPI_INTEGER_KIND!$OMPI_MPI_INTEGER_KIND$ac_delim
OMPI_MPI_ADDRESS_KIND!$OMPI_MPI_ADDRESS_KIND$ac_delim
OMPI_MPI_OFFSET_KIND!$OMPI_MPI_OFFSET_KIND$ac_delim
OMPI_HAVE_POSIX_THREADS_TRUE!$OMPI_HAVE_POSIX_THREADS_TRUE$ac_delim
OMPI_HAVE_POSIX_THREADS_FALSE!$OMPI_HAVE_POSIX_THREADS_FALSE$ac_delim
OMPI_HAVE_SOLARIS_THREADS_TRUE!$OMPI_HAVE_SOLARIS_THREADS_TRUE$ac_delim
OMPI_HAVE_SOLARIS_THREADS_FALSE!$OMPI_HAVE_SOLARIS_THREADS_FALSE$ac_delim
LN_S!$LN_S$ac_delim
LEX!$LEX$ac_delim
LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
LEXLIB!$LEXLIB$ac_delim
CASE_SENSITIVE_FS_TRUE!$CASE_SENSITIVE_FS_TRUE$ac_delim
CASE_SENSITIVE_FS_FALSE!$CASE_SENSITIVE_FS_FALSE$ac_delim
backtrace_darwin_CFLAGS!$backtrace_darwin_CFLAGS$ac_delim
OMPI_BUILD_backtrace_darwin_DSO_TRUE!$OMPI_BUILD_backtrace_darwin_DSO_TRUE$ac_delim
OMPI_BUILD_backtrace_darwin_DSO_FALSE!$OMPI_BUILD_backtrace_darwin_DSO_FALSE$ac_delim
OMPI_BUILD_backtrace_execinfo_DSO_TRUE!$OMPI_BUILD_backtrace_execinfo_DSO_TRUE$ac_delim
OMPI_BUILD_backtrace_execinfo_DSO_FALSE!$OMPI_BUILD_backtrace_execinfo_DSO_FALSE$ac_delim
OMPI_BUILD_backtrace_printstack_DSO_TRUE!$OMPI_BUILD_backtrace_printstack_DSO_TRUE$ac_delim
OMPI_BUILD_backtrace_printstack_DSO_FALSE!$OMPI_BUILD_backtrace_printstack_DSO_FALSE$ac_delim
OMPI_BUILD_backtrace_none_DSO_TRUE!$OMPI_BUILD_backtrace_none_DSO_TRUE$ac_delim
OMPI_BUILD_backtrace_none_DSO_FALSE!$OMPI_BUILD_backtrace_none_DSO_FALSE$ac_delim
MCA_backtrace_ALL_COMPONENTS!$MCA_backtrace_ALL_COMPONENTS$ac_delim
MCA_backtrace_STATIC_COMPONENTS!$MCA_backtrace_STATIC_COMPONENTS$ac_delim
MCA_backtrace_DSO_COMPONENTS!$MCA_backtrace_DSO_COMPONENTS$ac_delim
MCA_backtrace_STATIC_LTLIBS!$MCA_backtrace_STATIC_LTLIBS$ac_delim
MCA_backtrace_ALL_SUBDIRS!$MCA_backtrace_ALL_SUBDIRS$ac_delim
MCA_backtrace_STATIC_SUBDIRS!$MCA_backtrace_STATIC_SUBDIRS$ac_delim
MCA_backtrace_DSO_SUBDIRS!$MCA_backtrace_DSO_SUBDIRS$ac_delim
OMPI_BUILD_installdirs_env_DSO_TRUE!$OMPI_BUILD_installdirs_env_DSO_TRUE$ac_delim
OMPI_BUILD_installdirs_env_DSO_FALSE!$OMPI_BUILD_installdirs_env_DSO_FALSE$ac_delim
OPAL_PREFIX!$OPAL_PREFIX$ac_delim
OPAL_EXEC_PREFIX!$OPAL_EXEC_PREFIX$ac_delim
OPAL_BINDIR!$OPAL_BINDIR$ac_delim
OPAL_SBINDIR!$OPAL_SBINDIR$ac_delim
OPAL_LIBEXECDIR!$OPAL_LIBEXECDIR$ac_delim
OPAL_DATAROOTDIR!$OPAL_DATAROOTDIR$ac_delim
OPAL_DATADIR!$OPAL_DATADIR$ac_delim
OPAL_SYSCONFDIR!$OPAL_SYSCONFDIR$ac_delim
OPAL_SHAREDSTATEDIR!$OPAL_SHAREDSTATEDIR$ac_delim
OPAL_LOCALSTATEDIR!$OPAL_LOCALSTATEDIR$ac_delim
OPAL_LIBDIR!$OPAL_LIBDIR$ac_delim
OPAL_INCLUDEDIR!$OPAL_INCLUDEDIR$ac_delim
OPAL_INFODIR!$OPAL_INFODIR$ac_delim
OPAL_MANDIR!$OPAL_MANDIR$ac_delim
OMPI_BUILD_installdirs_config_DSO_TRUE!$OMPI_BUILD_installdirs_config_DSO_TRUE$ac_delim
OMPI_BUILD_installdirs_config_DSO_FALSE!$OMPI_BUILD_installdirs_config_DSO_FALSE$ac_delim
MCA_installdirs_ALL_COMPONENTS!$MCA_installdirs_ALL_COMPONENTS$ac_delim
MCA_installdirs_STATIC_COMPONENTS!$MCA_installdirs_STATIC_COMPONENTS$ac_delim
MCA_installdirs_DSO_COMPONENTS!$MCA_installdirs_DSO_COMPONENTS$ac_delim
MCA_installdirs_STATIC_LTLIBS!$MCA_installdirs_STATIC_LTLIBS$ac_delim
MCA_installdirs_ALL_SUBDIRS!$MCA_installdirs_ALL_SUBDIRS$ac_delim
MCA_installdirs_STATIC_SUBDIRS!$MCA_installdirs_STATIC_SUBDIRS$ac_delim
MCA_installdirs_DSO_SUBDIRS!$MCA_installdirs_DSO_SUBDIRS$ac_delim
OMPI_BUILD_maffinity_first_use_DSO_TRUE!$OMPI_BUILD_maffinity_first_use_DSO_TRUE$ac_delim
OMPI_BUILD_maffinity_first_use_DSO_FALSE!$OMPI_BUILD_maffinity_first_use_DSO_FALSE$ac_delim
maffinity_libnuma_CPPFLAGS!$maffinity_libnuma_CPPFLAGS$ac_delim
maffinity_libnuma_LDFLAGS!$maffinity_libnuma_LDFLAGS$ac_delim
maffinity_libnuma_LIBS!$maffinity_libnuma_LIBS$ac_delim
OMPI_BUILD_maffinity_libnuma_DSO_TRUE!$OMPI_BUILD_maffinity_libnuma_DSO_TRUE$ac_delim
OMPI_BUILD_maffinity_libnuma_DSO_FALSE!$OMPI_BUILD_maffinity_libnuma_DSO_FALSE$ac_delim
MCA_maffinity_ALL_COMPONENTS!$MCA_maffinity_ALL_COMPONENTS$ac_delim
MCA_maffinity_STATIC_COMPONENTS!$MCA_maffinity_STATIC_COMPONENTS$ac_delim
MCA_maffinity_DSO_COMPONENTS!$MCA_maffinity_DSO_COMPONENTS$ac_delim
MCA_maffinity_STATIC_LTLIBS!$MCA_maffinity_STATIC_LTLIBS$ac_delim
MCA_maffinity_ALL_SUBDIRS!$MCA_maffinity_ALL_SUBDIRS$ac_delim
MCA_maffinity_STATIC_SUBDIRS!$MCA_maffinity_STATIC_SUBDIRS$ac_delim
MCA_maffinity_DSO_SUBDIRS!$MCA_maffinity_DSO_SUBDIRS$ac_delim
MCA_memcpy_ALL_COMPONENTS!$MCA_memcpy_ALL_COMPONENTS$ac_delim
MCA_memcpy_STATIC_COMPONENTS!$MCA_memcpy_STATIC_COMPONENTS$ac_delim
MCA_memcpy_DSO_COMPONENTS!$MCA_memcpy_DSO_COMPONENTS$ac_delim
MCA_memcpy_STATIC_LTLIBS!$MCA_memcpy_STATIC_LTLIBS$ac_delim
MCA_memcpy_ALL_SUBDIRS!$MCA_memcpy_ALL_SUBDIRS$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
MCA_memcpy_STATIC_SUBDIRS!$MCA_memcpy_STATIC_SUBDIRS$ac_delim
MCA_memcpy_DSO_SUBDIRS!$MCA_memcpy_DSO_SUBDIRS$ac_delim
OMPI_BUILD_memory_darwin_DSO_TRUE!$OMPI_BUILD_memory_darwin_DSO_TRUE$ac_delim
OMPI_BUILD_memory_darwin_DSO_FALSE!$OMPI_BUILD_memory_darwin_DSO_FALSE$ac_delim
memory_ptmalloc2_LIBS!$memory_ptmalloc2_LIBS$ac_delim
OMPI_BUILD_memory_ptmalloc2_DSO_TRUE!$OMPI_BUILD_memory_ptmalloc2_DSO_TRUE$ac_delim
OMPI_BUILD_memory_ptmalloc2_DSO_FALSE!$OMPI_BUILD_memory_ptmalloc2_DSO_FALSE$ac_delim
memory_malloc_hooks_LIBS!$memory_malloc_hooks_LIBS$ac_delim
OMPI_BUILD_memory_malloc_hooks_DSO_TRUE!$OMPI_BUILD_memory_malloc_hooks_DSO_TRUE$ac_delim
OMPI_BUILD_memory_malloc_hooks_DSO_FALSE!$OMPI_BUILD_memory_malloc_hooks_DSO_FALSE$ac_delim
MCA_memory_ALL_COMPONENTS!$MCA_memory_ALL_COMPONENTS$ac_delim
MCA_memory_STATIC_COMPONENTS!$MCA_memory_STATIC_COMPONENTS$ac_delim
MCA_memory_DSO_COMPONENTS!$MCA_memory_DSO_COMPONENTS$ac_delim
MCA_memory_STATIC_LTLIBS!$MCA_memory_STATIC_LTLIBS$ac_delim
MCA_memory_ALL_SUBDIRS!$MCA_memory_ALL_SUBDIRS$ac_delim
MCA_memory_STATIC_SUBDIRS!$MCA_memory_STATIC_SUBDIRS$ac_delim
MCA_memory_DSO_SUBDIRS!$MCA_memory_DSO_SUBDIRS$ac_delim
OMPI_BUILD_paffinity_linux_DSO_TRUE!$OMPI_BUILD_paffinity_linux_DSO_TRUE$ac_delim
OMPI_BUILD_paffinity_linux_DSO_FALSE!$OMPI_BUILD_paffinity_linux_DSO_FALSE$ac_delim
OMPI_BUILD_paffinity_solaris_DSO_TRUE!$OMPI_BUILD_paffinity_solaris_DSO_TRUE$ac_delim
OMPI_BUILD_paffinity_solaris_DSO_FALSE!$OMPI_BUILD_paffinity_solaris_DSO_FALSE$ac_delim
OMPI_BUILD_paffinity_windows_DSO_TRUE!$OMPI_BUILD_paffinity_windows_DSO_TRUE$ac_delim
OMPI_BUILD_paffinity_windows_DSO_FALSE!$OMPI_BUILD_paffinity_windows_DSO_FALSE$ac_delim
MCA_paffinity_ALL_COMPONENTS!$MCA_paffinity_ALL_COMPONENTS$ac_delim
MCA_paffinity_STATIC_COMPONENTS!$MCA_paffinity_STATIC_COMPONENTS$ac_delim
MCA_paffinity_DSO_COMPONENTS!$MCA_paffinity_DSO_COMPONENTS$ac_delim
MCA_paffinity_STATIC_LTLIBS!$MCA_paffinity_STATIC_LTLIBS$ac_delim
MCA_paffinity_ALL_SUBDIRS!$MCA_paffinity_ALL_SUBDIRS$ac_delim
MCA_paffinity_STATIC_SUBDIRS!$MCA_paffinity_STATIC_SUBDIRS$ac_delim
MCA_paffinity_DSO_SUBDIRS!$MCA_paffinity_DSO_SUBDIRS$ac_delim
timer_aix_LIBS!$timer_aix_LIBS$ac_delim
OMPI_BUILD_timer_aix_DSO_TRUE!$OMPI_BUILD_timer_aix_DSO_TRUE$ac_delim
OMPI_BUILD_timer_aix_DSO_FALSE!$OMPI_BUILD_timer_aix_DSO_FALSE$ac_delim
OMPI_BUILD_timer_altix_DSO_TRUE!$OMPI_BUILD_timer_altix_DSO_TRUE$ac_delim
OMPI_BUILD_timer_altix_DSO_FALSE!$OMPI_BUILD_timer_altix_DSO_FALSE$ac_delim
OMPI_BUILD_timer_darwin_DSO_TRUE!$OMPI_BUILD_timer_darwin_DSO_TRUE$ac_delim
OMPI_BUILD_timer_darwin_DSO_FALSE!$OMPI_BUILD_timer_darwin_DSO_FALSE$ac_delim
OMPI_BUILD_timer_solaris_DSO_TRUE!$OMPI_BUILD_timer_solaris_DSO_TRUE$ac_delim
OMPI_BUILD_timer_solaris_DSO_FALSE!$OMPI_BUILD_timer_solaris_DSO_FALSE$ac_delim
OMPI_BUILD_timer_windows_DSO_TRUE!$OMPI_BUILD_timer_windows_DSO_TRUE$ac_delim
OMPI_BUILD_timer_windows_DSO_FALSE!$OMPI_BUILD_timer_windows_DSO_FALSE$ac_delim
OMPI_BUILD_timer_linux_DSO_TRUE!$OMPI_BUILD_timer_linux_DSO_TRUE$ac_delim
OMPI_BUILD_timer_linux_DSO_FALSE!$OMPI_BUILD_timer_linux_DSO_FALSE$ac_delim
MCA_timer_ALL_COMPONENTS!$MCA_timer_ALL_COMPONENTS$ac_delim
MCA_timer_STATIC_COMPONENTS!$MCA_timer_STATIC_COMPONENTS$ac_delim
MCA_timer_DSO_COMPONENTS!$MCA_timer_DSO_COMPONENTS$ac_delim
MCA_timer_STATIC_LTLIBS!$MCA_timer_STATIC_LTLIBS$ac_delim
MCA_timer_ALL_SUBDIRS!$MCA_timer_ALL_SUBDIRS$ac_delim
MCA_timer_STATIC_SUBDIRS!$MCA_timer_STATIC_SUBDIRS$ac_delim
MCA_timer_DSO_SUBDIRS!$MCA_timer_DSO_SUBDIRS$ac_delim
MCA_opal_FRAMEWORKS!$MCA_opal_FRAMEWORKS$ac_delim
MCA_opal_FRAMEWORKS_SUBDIRS!$MCA_opal_FRAMEWORKS_SUBDIRS$ac_delim
MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim
MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim
MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim
MCA_opal_FRAMEWORK_LIBS!$MCA_opal_FRAMEWORK_LIBS$ac_delim
OMPI_BUILD_errmgr_hnp_DSO_TRUE!$OMPI_BUILD_errmgr_hnp_DSO_TRUE$ac_delim
OMPI_BUILD_errmgr_hnp_DSO_FALSE!$OMPI_BUILD_errmgr_hnp_DSO_FALSE$ac_delim
OMPI_BUILD_errmgr_orted_DSO_TRUE!$OMPI_BUILD_errmgr_orted_DSO_TRUE$ac_delim
OMPI_BUILD_errmgr_orted_DSO_FALSE!$OMPI_BUILD_errmgr_orted_DSO_FALSE$ac_delim
OMPI_BUILD_errmgr_proxy_DSO_TRUE!$OMPI_BUILD_errmgr_proxy_DSO_TRUE$ac_delim
OMPI_BUILD_errmgr_proxy_DSO_FALSE!$OMPI_BUILD_errmgr_proxy_DSO_FALSE$ac_delim
errmgr_bproc_CPPFLAGS!$errmgr_bproc_CPPFLAGS$ac_delim
errmgr_bproc_LDFLAGS!$errmgr_bproc_LDFLAGS$ac_delim
errmgr_bproc_LIBS!$errmgr_bproc_LIBS$ac_delim
OMPI_BUILD_errmgr_bproc_DSO_TRUE!$OMPI_BUILD_errmgr_bproc_DSO_TRUE$ac_delim
OMPI_BUILD_errmgr_bproc_DSO_FALSE!$OMPI_BUILD_errmgr_bproc_DSO_FALSE$ac_delim
MCA_errmgr_ALL_COMPONENTS!$MCA_errmgr_ALL_COMPONENTS$ac_delim
MCA_errmgr_STATIC_COMPONENTS!$MCA_errmgr_STATIC_COMPONENTS$ac_delim
MCA_errmgr_DSO_COMPONENTS!$MCA_errmgr_DSO_COMPONENTS$ac_delim
MCA_errmgr_STATIC_LTLIBS!$MCA_errmgr_STATIC_LTLIBS$ac_delim
MCA_errmgr_ALL_SUBDIRS!$MCA_errmgr_ALL_SUBDIRS$ac_delim
MCA_errmgr_STATIC_SUBDIRS!$MCA_errmgr_STATIC_SUBDIRS$ac_delim
MCA_errmgr_DSO_SUBDIRS!$MCA_errmgr_DSO_SUBDIRS$ac_delim
OMPI_BUILD_gpr_null_DSO_TRUE!$OMPI_BUILD_gpr_null_DSO_TRUE$ac_delim
OMPI_BUILD_gpr_null_DSO_FALSE!$OMPI_BUILD_gpr_null_DSO_FALSE$ac_delim
OMPI_BUILD_gpr_proxy_DSO_TRUE!$OMPI_BUILD_gpr_proxy_DSO_TRUE$ac_delim
OMPI_BUILD_gpr_proxy_DSO_FALSE!$OMPI_BUILD_gpr_proxy_DSO_FALSE$ac_delim
OMPI_BUILD_gpr_replica_DSO_TRUE!$OMPI_BUILD_gpr_replica_DSO_TRUE$ac_delim
OMPI_BUILD_gpr_replica_DSO_FALSE!$OMPI_BUILD_gpr_replica_DSO_FALSE$ac_delim
MCA_gpr_ALL_COMPONENTS!$MCA_gpr_ALL_COMPONENTS$ac_delim
MCA_gpr_STATIC_COMPONENTS!$MCA_gpr_STATIC_COMPONENTS$ac_delim
MCA_gpr_DSO_COMPONENTS!$MCA_gpr_DSO_COMPONENTS$ac_delim
MCA_gpr_STATIC_LTLIBS!$MCA_gpr_STATIC_LTLIBS$ac_delim
MCA_gpr_ALL_SUBDIRS!$MCA_gpr_ALL_SUBDIRS$ac_delim
MCA_gpr_STATIC_SUBDIRS!$MCA_gpr_STATIC_SUBDIRS$ac_delim
MCA_gpr_DSO_SUBDIRS!$MCA_gpr_DSO_SUBDIRS$ac_delim
OMPI_BUILD_iof_proxy_DSO_TRUE!$OMPI_BUILD_iof_proxy_DSO_TRUE$ac_delim
OMPI_BUILD_iof_proxy_DSO_FALSE!$OMPI_BUILD_iof_proxy_DSO_FALSE$ac_delim
OMPI_BUILD_iof_svc_DSO_TRUE!$OMPI_BUILD_iof_svc_DSO_TRUE$ac_delim
OMPI_BUILD_iof_svc_DSO_FALSE!$OMPI_BUILD_iof_svc_DSO_FALSE$ac_delim
MCA_iof_ALL_COMPONENTS!$MCA_iof_ALL_COMPONENTS$ac_delim
MCA_iof_STATIC_COMPONENTS!$MCA_iof_STATIC_COMPONENTS$ac_delim
MCA_iof_DSO_COMPONENTS!$MCA_iof_DSO_COMPONENTS$ac_delim
MCA_iof_STATIC_LTLIBS!$MCA_iof_STATIC_LTLIBS$ac_delim
MCA_iof_ALL_SUBDIRS!$MCA_iof_ALL_SUBDIRS$ac_delim
MCA_iof_STATIC_SUBDIRS!$MCA_iof_STATIC_SUBDIRS$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
MCA_iof_DSO_SUBDIRS!$MCA_iof_DSO_SUBDIRS$ac_delim
OMPI_BUILD_ns_proxy_DSO_TRUE!$OMPI_BUILD_ns_proxy_DSO_TRUE$ac_delim
OMPI_BUILD_ns_proxy_DSO_FALSE!$OMPI_BUILD_ns_proxy_DSO_FALSE$ac_delim
OMPI_BUILD_ns_replica_DSO_TRUE!$OMPI_BUILD_ns_replica_DSO_TRUE$ac_delim
OMPI_BUILD_ns_replica_DSO_FALSE!$OMPI_BUILD_ns_replica_DSO_FALSE$ac_delim
MCA_ns_ALL_COMPONENTS!$MCA_ns_ALL_COMPONENTS$ac_delim
MCA_ns_STATIC_COMPONENTS!$MCA_ns_STATIC_COMPONENTS$ac_delim
MCA_ns_DSO_COMPONENTS!$MCA_ns_DSO_COMPONENTS$ac_delim
MCA_ns_STATIC_LTLIBS!$MCA_ns_STATIC_LTLIBS$ac_delim
MCA_ns_ALL_SUBDIRS!$MCA_ns_ALL_SUBDIRS$ac_delim
MCA_ns_STATIC_SUBDIRS!$MCA_ns_STATIC_SUBDIRS$ac_delim
MCA_ns_DSO_SUBDIRS!$MCA_ns_DSO_SUBDIRS$ac_delim
odls_bproc_CPPFLAGS!$odls_bproc_CPPFLAGS$ac_delim
odls_bproc_LDFLAGS!$odls_bproc_LDFLAGS$ac_delim
odls_bproc_LIBS!$odls_bproc_LIBS$ac_delim
OMPI_BUILD_odls_bproc_DSO_TRUE!$OMPI_BUILD_odls_bproc_DSO_TRUE$ac_delim
OMPI_BUILD_odls_bproc_DSO_FALSE!$OMPI_BUILD_odls_bproc_DSO_FALSE$ac_delim
OMPI_BUILD_odls_default_DSO_TRUE!$OMPI_BUILD_odls_default_DSO_TRUE$ac_delim
OMPI_BUILD_odls_default_DSO_FALSE!$OMPI_BUILD_odls_default_DSO_FALSE$ac_delim
MCA_odls_ALL_COMPONENTS!$MCA_odls_ALL_COMPONENTS$ac_delim
MCA_odls_STATIC_COMPONENTS!$MCA_odls_STATIC_COMPONENTS$ac_delim
MCA_odls_DSO_COMPONENTS!$MCA_odls_DSO_COMPONENTS$ac_delim
MCA_odls_STATIC_LTLIBS!$MCA_odls_STATIC_LTLIBS$ac_delim
MCA_odls_ALL_SUBDIRS!$MCA_odls_ALL_SUBDIRS$ac_delim
MCA_odls_STATIC_SUBDIRS!$MCA_odls_STATIC_SUBDIRS$ac_delim
MCA_odls_DSO_SUBDIRS!$MCA_odls_DSO_SUBDIRS$ac_delim
OMPI_BUILD_oob_tcp_DSO_TRUE!$OMPI_BUILD_oob_tcp_DSO_TRUE$ac_delim
OMPI_BUILD_oob_tcp_DSO_FALSE!$OMPI_BUILD_oob_tcp_DSO_FALSE$ac_delim
MCA_oob_ALL_COMPONENTS!$MCA_oob_ALL_COMPONENTS$ac_delim
MCA_oob_STATIC_COMPONENTS!$MCA_oob_STATIC_COMPONENTS$ac_delim
MCA_oob_DSO_COMPONENTS!$MCA_oob_DSO_COMPONENTS$ac_delim
MCA_oob_STATIC_LTLIBS!$MCA_oob_STATIC_LTLIBS$ac_delim
MCA_oob_ALL_SUBDIRS!$MCA_oob_ALL_SUBDIRS$ac_delim
MCA_oob_STATIC_SUBDIRS!$MCA_oob_STATIC_SUBDIRS$ac_delim
MCA_oob_DSO_SUBDIRS!$MCA_oob_DSO_SUBDIRS$ac_delim
OMPI_BUILD_pls_proxy_DSO_TRUE!$OMPI_BUILD_pls_proxy_DSO_TRUE$ac_delim
OMPI_BUILD_pls_proxy_DSO_FALSE!$OMPI_BUILD_pls_proxy_DSO_FALSE$ac_delim
pls_bproc_CPPFLAGS!$pls_bproc_CPPFLAGS$ac_delim
pls_bproc_LDFLAGS!$pls_bproc_LDFLAGS$ac_delim
pls_bproc_LIBS!$pls_bproc_LIBS$ac_delim
OMPI_BUILD_pls_bproc_DSO_TRUE!$OMPI_BUILD_pls_bproc_DSO_TRUE$ac_delim
OMPI_BUILD_pls_bproc_DSO_FALSE!$OMPI_BUILD_pls_bproc_DSO_FALSE$ac_delim
OMPI_BUILD_pls_cnos_DSO_TRUE!$OMPI_BUILD_pls_cnos_DSO_TRUE$ac_delim
OMPI_BUILD_pls_cnos_DSO_FALSE!$OMPI_BUILD_pls_cnos_DSO_FALSE$ac_delim
OMPI_BUILD_pls_gridengine_DSO_TRUE!$OMPI_BUILD_pls_gridengine_DSO_TRUE$ac_delim
OMPI_BUILD_pls_gridengine_DSO_FALSE!$OMPI_BUILD_pls_gridengine_DSO_FALSE$ac_delim
OMPI_BUILD_pls_poe_DSO_TRUE!$OMPI_BUILD_pls_poe_DSO_TRUE$ac_delim
OMPI_BUILD_pls_poe_DSO_FALSE!$OMPI_BUILD_pls_poe_DSO_FALSE$ac_delim
OMPI_BUILD_pls_rsh_DSO_TRUE!$OMPI_BUILD_pls_rsh_DSO_TRUE$ac_delim
OMPI_BUILD_pls_rsh_DSO_FALSE!$OMPI_BUILD_pls_rsh_DSO_FALSE$ac_delim
pls_slurm_CPPFLAGS!$pls_slurm_CPPFLAGS$ac_delim
pls_slurm_LDFLAGS!$pls_slurm_LDFLAGS$ac_delim
pls_slurm_LIBS!$pls_slurm_LIBS$ac_delim
OMPI_BUILD_pls_slurm_DSO_TRUE!$OMPI_BUILD_pls_slurm_DSO_TRUE$ac_delim
OMPI_BUILD_pls_slurm_DSO_FALSE!$OMPI_BUILD_pls_slurm_DSO_FALSE$ac_delim
pls_tm_CPPFLAGS!$pls_tm_CPPFLAGS$ac_delim
pls_tm_LDFLAGS!$pls_tm_LDFLAGS$ac_delim
pls_tm_LIBS!$pls_tm_LIBS$ac_delim
OMPI_BUILD_pls_tm_DSO_TRUE!$OMPI_BUILD_pls_tm_DSO_TRUE$ac_delim
OMPI_BUILD_pls_tm_DSO_FALSE!$OMPI_BUILD_pls_tm_DSO_FALSE$ac_delim
OBJC!$OBJC$ac_delim
OBJCFLAGS!$OBJCFLAGS$ac_delim
ac_ct_OBJC!$ac_ct_OBJC$ac_delim
OBJCDEPMODE!$OBJCDEPMODE$ac_delim
am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
pls_xgrid_OBJCFLAGS!$pls_xgrid_OBJCFLAGS$ac_delim
pls_xgrid_LDFLAGS!$pls_xgrid_LDFLAGS$ac_delim
OMPI_BUILD_pls_xgrid_DSO_TRUE!$OMPI_BUILD_pls_xgrid_DSO_TRUE$ac_delim
OMPI_BUILD_pls_xgrid_DSO_FALSE!$OMPI_BUILD_pls_xgrid_DSO_FALSE$ac_delim
MCA_pls_ALL_COMPONENTS!$MCA_pls_ALL_COMPONENTS$ac_delim
MCA_pls_STATIC_COMPONENTS!$MCA_pls_STATIC_COMPONENTS$ac_delim
MCA_pls_DSO_COMPONENTS!$MCA_pls_DSO_COMPONENTS$ac_delim
MCA_pls_STATIC_LTLIBS!$MCA_pls_STATIC_LTLIBS$ac_delim
MCA_pls_ALL_SUBDIRS!$MCA_pls_ALL_SUBDIRS$ac_delim
MCA_pls_STATIC_SUBDIRS!$MCA_pls_STATIC_SUBDIRS$ac_delim
MCA_pls_DSO_SUBDIRS!$MCA_pls_DSO_SUBDIRS$ac_delim
OMPI_BUILD_ras_dash_host_DSO_TRUE!$OMPI_BUILD_ras_dash_host_DSO_TRUE$ac_delim
OMPI_BUILD_ras_dash_host_DSO_FALSE!$OMPI_BUILD_ras_dash_host_DSO_FALSE$ac_delim
OMPI_BUILD_ras_localhost_DSO_TRUE!$OMPI_BUILD_ras_localhost_DSO_TRUE$ac_delim
OMPI_BUILD_ras_localhost_DSO_FALSE!$OMPI_BUILD_ras_localhost_DSO_FALSE$ac_delim
ras_bjs_CPPFLAGS!$ras_bjs_CPPFLAGS$ac_delim
ras_bjs_LDFLAGS!$ras_bjs_LDFLAGS$ac_delim
ras_bjs_LIBS!$ras_bjs_LIBS$ac_delim
OMPI_BUILD_ras_bjs_DSO_TRUE!$OMPI_BUILD_ras_bjs_DSO_TRUE$ac_delim
OMPI_BUILD_ras_bjs_DSO_FALSE!$OMPI_BUILD_ras_bjs_DSO_FALSE$ac_delim
OMPI_BUILD_ras_gridengine_DSO_TRUE!$OMPI_BUILD_ras_gridengine_DSO_TRUE$ac_delim
OMPI_BUILD_ras_gridengine_DSO_FALSE!$OMPI_BUILD_ras_gridengine_DSO_FALSE$ac_delim
ras_loadleveler_CPPFLAGS!$ras_loadleveler_CPPFLAGS$ac_delim
ras_loadleveler_LDFLAGS!$ras_loadleveler_LDFLAGS$ac_delim
ras_loadleveler_LIBS!$ras_loadleveler_LIBS$ac_delim
OMPI_BUILD_ras_loadleveler_DSO_TRUE!$OMPI_BUILD_ras_loadleveler_DSO_TRUE$ac_delim
OMPI_BUILD_ras_loadleveler_DSO_FALSE!$OMPI_BUILD_ras_loadleveler_DSO_FALSE$ac_delim
ras_lsf_bproc_CPPFLAGS!$ras_lsf_bproc_CPPFLAGS$ac_delim
ras_lsf_bproc_LDFLAGS!$ras_lsf_bproc_LDFLAGS$ac_delim
ras_lsf_bproc_LIBS!$ras_lsf_bproc_LIBS$ac_delim
OMPI_BUILD_ras_lsf_bproc_DSO_TRUE!$OMPI_BUILD_ras_lsf_bproc_DSO_TRUE$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
OMPI_BUILD_ras_lsf_bproc_DSO_FALSE!$OMPI_BUILD_ras_lsf_bproc_DSO_FALSE$ac_delim
ras_slurm_CPPFLAGS!$ras_slurm_CPPFLAGS$ac_delim
ras_slurm_LDFLAGS!$ras_slurm_LDFLAGS$ac_delim
ras_slurm_LIBS!$ras_slurm_LIBS$ac_delim
OMPI_BUILD_ras_slurm_DSO_TRUE!$OMPI_BUILD_ras_slurm_DSO_TRUE$ac_delim
OMPI_BUILD_ras_slurm_DSO_FALSE!$OMPI_BUILD_ras_slurm_DSO_FALSE$ac_delim
ras_tm_CPPFLAGS!$ras_tm_CPPFLAGS$ac_delim
ras_tm_LDFLAGS!$ras_tm_LDFLAGS$ac_delim
ras_tm_LIBS!$ras_tm_LIBS$ac_delim
OMPI_BUILD_ras_tm_DSO_TRUE!$OMPI_BUILD_ras_tm_DSO_TRUE$ac_delim
OMPI_BUILD_ras_tm_DSO_FALSE!$OMPI_BUILD_ras_tm_DSO_FALSE$ac_delim
OMPI_BUILD_ras_xgrid_DSO_TRUE!$OMPI_BUILD_ras_xgrid_DSO_TRUE$ac_delim
OMPI_BUILD_ras_xgrid_DSO_FALSE!$OMPI_BUILD_ras_xgrid_DSO_FALSE$ac_delim
MCA_ras_ALL_COMPONENTS!$MCA_ras_ALL_COMPONENTS$ac_delim
MCA_ras_STATIC_COMPONENTS!$MCA_ras_STATIC_COMPONENTS$ac_delim
MCA_ras_DSO_COMPONENTS!$MCA_ras_DSO_COMPONENTS$ac_delim
MCA_ras_STATIC_LTLIBS!$MCA_ras_STATIC_LTLIBS$ac_delim
MCA_ras_ALL_SUBDIRS!$MCA_ras_ALL_SUBDIRS$ac_delim
MCA_ras_STATIC_SUBDIRS!$MCA_ras_STATIC_SUBDIRS$ac_delim
MCA_ras_DSO_SUBDIRS!$MCA_ras_DSO_SUBDIRS$ac_delim
OMPI_BUILD_rds_hostfile_DSO_TRUE!$OMPI_BUILD_rds_hostfile_DSO_TRUE$ac_delim
OMPI_BUILD_rds_hostfile_DSO_FALSE!$OMPI_BUILD_rds_hostfile_DSO_FALSE$ac_delim
OMPI_BUILD_rds_proxy_DSO_TRUE!$OMPI_BUILD_rds_proxy_DSO_TRUE$ac_delim
OMPI_BUILD_rds_proxy_DSO_FALSE!$OMPI_BUILD_rds_proxy_DSO_FALSE$ac_delim
OMPI_BUILD_rds_resfile_DSO_TRUE!$OMPI_BUILD_rds_resfile_DSO_TRUE$ac_delim
OMPI_BUILD_rds_resfile_DSO_FALSE!$OMPI_BUILD_rds_resfile_DSO_FALSE$ac_delim
MCA_rds_ALL_COMPONENTS!$MCA_rds_ALL_COMPONENTS$ac_delim
MCA_rds_STATIC_COMPONENTS!$MCA_rds_STATIC_COMPONENTS$ac_delim
MCA_rds_DSO_COMPONENTS!$MCA_rds_DSO_COMPONENTS$ac_delim
MCA_rds_STATIC_LTLIBS!$MCA_rds_STATIC_LTLIBS$ac_delim
MCA_rds_ALL_SUBDIRS!$MCA_rds_ALL_SUBDIRS$ac_delim
MCA_rds_STATIC_SUBDIRS!$MCA_rds_STATIC_SUBDIRS$ac_delim
MCA_rds_DSO_SUBDIRS!$MCA_rds_DSO_SUBDIRS$ac_delim
OMPI_BUILD_rmaps_round_robin_DSO_TRUE!$OMPI_BUILD_rmaps_round_robin_DSO_TRUE$ac_delim
OMPI_BUILD_rmaps_round_robin_DSO_FALSE!$OMPI_BUILD_rmaps_round_robin_DSO_FALSE$ac_delim
MCA_rmaps_ALL_COMPONENTS!$MCA_rmaps_ALL_COMPONENTS$ac_delim
MCA_rmaps_STATIC_COMPONENTS!$MCA_rmaps_STATIC_COMPONENTS$ac_delim
MCA_rmaps_DSO_COMPONENTS!$MCA_rmaps_DSO_COMPONENTS$ac_delim
MCA_rmaps_STATIC_LTLIBS!$MCA_rmaps_STATIC_LTLIBS$ac_delim
MCA_rmaps_ALL_SUBDIRS!$MCA_rmaps_ALL_SUBDIRS$ac_delim
MCA_rmaps_STATIC_SUBDIRS!$MCA_rmaps_STATIC_SUBDIRS$ac_delim
MCA_rmaps_DSO_SUBDIRS!$MCA_rmaps_DSO_SUBDIRS$ac_delim
OMPI_BUILD_rmgr_proxy_DSO_TRUE!$OMPI_BUILD_rmgr_proxy_DSO_TRUE$ac_delim
OMPI_BUILD_rmgr_proxy_DSO_FALSE!$OMPI_BUILD_rmgr_proxy_DSO_FALSE$ac_delim
OMPI_BUILD_rmgr_urm_DSO_TRUE!$OMPI_BUILD_rmgr_urm_DSO_TRUE$ac_delim
OMPI_BUILD_rmgr_urm_DSO_FALSE!$OMPI_BUILD_rmgr_urm_DSO_FALSE$ac_delim
OMPI_BUILD_rmgr_cnos_DSO_TRUE!$OMPI_BUILD_rmgr_cnos_DSO_TRUE$ac_delim
OMPI_BUILD_rmgr_cnos_DSO_FALSE!$OMPI_BUILD_rmgr_cnos_DSO_FALSE$ac_delim
MCA_rmgr_ALL_COMPONENTS!$MCA_rmgr_ALL_COMPONENTS$ac_delim
MCA_rmgr_STATIC_COMPONENTS!$MCA_rmgr_STATIC_COMPONENTS$ac_delim
MCA_rmgr_DSO_COMPONENTS!$MCA_rmgr_DSO_COMPONENTS$ac_delim
MCA_rmgr_STATIC_LTLIBS!$MCA_rmgr_STATIC_LTLIBS$ac_delim
MCA_rmgr_ALL_SUBDIRS!$MCA_rmgr_ALL_SUBDIRS$ac_delim
MCA_rmgr_STATIC_SUBDIRS!$MCA_rmgr_STATIC_SUBDIRS$ac_delim
MCA_rmgr_DSO_SUBDIRS!$MCA_rmgr_DSO_SUBDIRS$ac_delim
OMPI_BUILD_rml_oob_DSO_TRUE!$OMPI_BUILD_rml_oob_DSO_TRUE$ac_delim
OMPI_BUILD_rml_oob_DSO_FALSE!$OMPI_BUILD_rml_oob_DSO_FALSE$ac_delim
OMPI_BUILD_rml_cnos_DSO_TRUE!$OMPI_BUILD_rml_cnos_DSO_TRUE$ac_delim
OMPI_BUILD_rml_cnos_DSO_FALSE!$OMPI_BUILD_rml_cnos_DSO_FALSE$ac_delim
MCA_rml_ALL_COMPONENTS!$MCA_rml_ALL_COMPONENTS$ac_delim
MCA_rml_STATIC_COMPONENTS!$MCA_rml_STATIC_COMPONENTS$ac_delim
MCA_rml_DSO_COMPONENTS!$MCA_rml_DSO_COMPONENTS$ac_delim
MCA_rml_STATIC_LTLIBS!$MCA_rml_STATIC_LTLIBS$ac_delim
MCA_rml_ALL_SUBDIRS!$MCA_rml_ALL_SUBDIRS$ac_delim
MCA_rml_STATIC_SUBDIRS!$MCA_rml_STATIC_SUBDIRS$ac_delim
MCA_rml_DSO_SUBDIRS!$MCA_rml_DSO_SUBDIRS$ac_delim
MCA_schema_ALL_COMPONENTS!$MCA_schema_ALL_COMPONENTS$ac_delim
MCA_schema_STATIC_COMPONENTS!$MCA_schema_STATIC_COMPONENTS$ac_delim
MCA_schema_DSO_COMPONENTS!$MCA_schema_DSO_COMPONENTS$ac_delim
MCA_schema_STATIC_LTLIBS!$MCA_schema_STATIC_LTLIBS$ac_delim
MCA_schema_ALL_SUBDIRS!$MCA_schema_ALL_SUBDIRS$ac_delim
MCA_schema_STATIC_SUBDIRS!$MCA_schema_STATIC_SUBDIRS$ac_delim
MCA_schema_DSO_SUBDIRS!$MCA_schema_DSO_SUBDIRS$ac_delim
OMPI_BUILD_sds_env_DSO_TRUE!$OMPI_BUILD_sds_env_DSO_TRUE$ac_delim
OMPI_BUILD_sds_env_DSO_FALSE!$OMPI_BUILD_sds_env_DSO_FALSE$ac_delim
OMPI_BUILD_sds_seed_DSO_TRUE!$OMPI_BUILD_sds_seed_DSO_TRUE$ac_delim
OMPI_BUILD_sds_seed_DSO_FALSE!$OMPI_BUILD_sds_seed_DSO_FALSE$ac_delim
OMPI_BUILD_sds_singleton_DSO_TRUE!$OMPI_BUILD_sds_singleton_DSO_TRUE$ac_delim
OMPI_BUILD_sds_singleton_DSO_FALSE!$OMPI_BUILD_sds_singleton_DSO_FALSE$ac_delim
sds_bproc_CPPFLAGS!$sds_bproc_CPPFLAGS$ac_delim
sds_bproc_LDFLAGS!$sds_bproc_LDFLAGS$ac_delim
sds_bproc_LIBS!$sds_bproc_LIBS$ac_delim
OMPI_BUILD_sds_bproc_DSO_TRUE!$OMPI_BUILD_sds_bproc_DSO_TRUE$ac_delim
OMPI_BUILD_sds_bproc_DSO_FALSE!$OMPI_BUILD_sds_bproc_DSO_FALSE$ac_delim
OMPI_BUILD_sds_cnos_DSO_TRUE!$OMPI_BUILD_sds_cnos_DSO_TRUE$ac_delim
OMPI_BUILD_sds_cnos_DSO_FALSE!$OMPI_BUILD_sds_cnos_DSO_FALSE$ac_delim
OMPI_BUILD_sds_pipe_DSO_TRUE!$OMPI_BUILD_sds_pipe_DSO_TRUE$ac_delim
OMPI_BUILD_sds_pipe_DSO_FALSE!$OMPI_BUILD_sds_pipe_DSO_FALSE$ac_delim
sds_portals_utcp_CPPFLAGS!$sds_portals_utcp_CPPFLAGS$ac_delim
sds_portals_utcp_LDFLAGS!$sds_portals_utcp_LDFLAGS$ac_delim
sds_portals_utcp_LIBS!$sds_portals_utcp_LIBS$ac_delim
OMPI_BUILD_sds_portals_utcp_DSO_TRUE!$OMPI_BUILD_sds_portals_utcp_DSO_TRUE$ac_delim
OMPI_BUILD_sds_portals_utcp_DSO_FALSE!$OMPI_BUILD_sds_portals_utcp_DSO_FALSE$ac_delim
sds_slurm_CPPFLAGS!$sds_slurm_CPPFLAGS$ac_delim
sds_slurm_LDFLAGS!$sds_slurm_LDFLAGS$ac_delim
sds_slurm_LIBS!$sds_slurm_LIBS$ac_delim
OMPI_BUILD_sds_slurm_DSO_TRUE!$OMPI_BUILD_sds_slurm_DSO_TRUE$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-6.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
OMPI_BUILD_sds_slurm_DSO_FALSE!$OMPI_BUILD_sds_slurm_DSO_FALSE$ac_delim
MCA_sds_ALL_COMPONENTS!$MCA_sds_ALL_COMPONENTS$ac_delim
MCA_sds_STATIC_COMPONENTS!$MCA_sds_STATIC_COMPONENTS$ac_delim
MCA_sds_DSO_COMPONENTS!$MCA_sds_DSO_COMPONENTS$ac_delim
MCA_sds_STATIC_LTLIBS!$MCA_sds_STATIC_LTLIBS$ac_delim
MCA_sds_ALL_SUBDIRS!$MCA_sds_ALL_SUBDIRS$ac_delim
MCA_sds_STATIC_SUBDIRS!$MCA_sds_STATIC_SUBDIRS$ac_delim
MCA_sds_DSO_SUBDIRS!$MCA_sds_DSO_SUBDIRS$ac_delim
smr_bproc_CPPFLAGS!$smr_bproc_CPPFLAGS$ac_delim
smr_bproc_LDFLAGS!$smr_bproc_LDFLAGS$ac_delim
smr_bproc_LIBS!$smr_bproc_LIBS$ac_delim
OMPI_BUILD_smr_bproc_DSO_TRUE!$OMPI_BUILD_smr_bproc_DSO_TRUE$ac_delim
OMPI_BUILD_smr_bproc_DSO_FALSE!$OMPI_BUILD_smr_bproc_DSO_FALSE$ac_delim
MCA_smr_ALL_COMPONENTS!$MCA_smr_ALL_COMPONENTS$ac_delim
MCA_smr_STATIC_COMPONENTS!$MCA_smr_STATIC_COMPONENTS$ac_delim
MCA_smr_DSO_COMPONENTS!$MCA_smr_DSO_COMPONENTS$ac_delim
MCA_smr_STATIC_LTLIBS!$MCA_smr_STATIC_LTLIBS$ac_delim
MCA_smr_ALL_SUBDIRS!$MCA_smr_ALL_SUBDIRS$ac_delim
MCA_smr_STATIC_SUBDIRS!$MCA_smr_STATIC_SUBDIRS$ac_delim
MCA_smr_DSO_SUBDIRS!$MCA_smr_DSO_SUBDIRS$ac_delim
MCA_orte_FRAMEWORKS!$MCA_orte_FRAMEWORKS$ac_delim
MCA_orte_FRAMEWORKS_SUBDIRS!$MCA_orte_FRAMEWORKS_SUBDIRS$ac_delim
MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim
MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim
MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim
MCA_orte_FRAMEWORK_LIBS!$MCA_orte_FRAMEWORK_LIBS$ac_delim
OMPI_BUILD_allocator_basic_DSO_TRUE!$OMPI_BUILD_allocator_basic_DSO_TRUE$ac_delim
OMPI_BUILD_allocator_basic_DSO_FALSE!$OMPI_BUILD_allocator_basic_DSO_FALSE$ac_delim
OMPI_BUILD_allocator_bucket_DSO_TRUE!$OMPI_BUILD_allocator_bucket_DSO_TRUE$ac_delim
OMPI_BUILD_allocator_bucket_DSO_FALSE!$OMPI_BUILD_allocator_bucket_DSO_FALSE$ac_delim
MCA_allocator_ALL_COMPONENTS!$MCA_allocator_ALL_COMPONENTS$ac_delim
MCA_allocator_STATIC_COMPONENTS!$MCA_allocator_STATIC_COMPONENTS$ac_delim
MCA_allocator_DSO_COMPONENTS!$MCA_allocator_DSO_COMPONENTS$ac_delim
MCA_allocator_STATIC_LTLIBS!$MCA_allocator_STATIC_LTLIBS$ac_delim
MCA_allocator_ALL_SUBDIRS!$MCA_allocator_ALL_SUBDIRS$ac_delim
MCA_allocator_STATIC_SUBDIRS!$MCA_allocator_STATIC_SUBDIRS$ac_delim
MCA_allocator_DSO_SUBDIRS!$MCA_allocator_DSO_SUBDIRS$ac_delim
OMPI_BUILD_bml_r2_DSO_TRUE!$OMPI_BUILD_bml_r2_DSO_TRUE$ac_delim
OMPI_BUILD_bml_r2_DSO_FALSE!$OMPI_BUILD_bml_r2_DSO_FALSE$ac_delim
MCA_bml_ALL_COMPONENTS!$MCA_bml_ALL_COMPONENTS$ac_delim
MCA_bml_STATIC_COMPONENTS!$MCA_bml_STATIC_COMPONENTS$ac_delim
MCA_bml_DSO_COMPONENTS!$MCA_bml_DSO_COMPONENTS$ac_delim
MCA_bml_STATIC_LTLIBS!$MCA_bml_STATIC_LTLIBS$ac_delim
MCA_bml_ALL_SUBDIRS!$MCA_bml_ALL_SUBDIRS$ac_delim
MCA_bml_STATIC_SUBDIRS!$MCA_bml_STATIC_SUBDIRS$ac_delim
MCA_bml_DSO_SUBDIRS!$MCA_bml_DSO_SUBDIRS$ac_delim
OMPI_BUILD_btl_self_DSO_TRUE!$OMPI_BUILD_btl_self_DSO_TRUE$ac_delim
OMPI_BUILD_btl_self_DSO_FALSE!$OMPI_BUILD_btl_self_DSO_FALSE$ac_delim
OMPI_BUILD_btl_sm_DSO_TRUE!$OMPI_BUILD_btl_sm_DSO_TRUE$ac_delim
OMPI_BUILD_btl_sm_DSO_FALSE!$OMPI_BUILD_btl_sm_DSO_FALSE$ac_delim
btl_gm_CFLAGS!$btl_gm_CFLAGS$ac_delim
btl_gm_CPPFLAGS!$btl_gm_CPPFLAGS$ac_delim
btl_gm_LDFLAGS!$btl_gm_LDFLAGS$ac_delim
btl_gm_LIBS!$btl_gm_LIBS$ac_delim
OMPI_BUILD_btl_gm_DSO_TRUE!$OMPI_BUILD_btl_gm_DSO_TRUE$ac_delim
OMPI_BUILD_btl_gm_DSO_FALSE!$OMPI_BUILD_btl_gm_DSO_FALSE$ac_delim
btl_mvapi_CFLAGS!$btl_mvapi_CFLAGS$ac_delim
btl_mvapi_CPPFLAGS!$btl_mvapi_CPPFLAGS$ac_delim
btl_mvapi_LDFLAGS!$btl_mvapi_LDFLAGS$ac_delim
btl_mvapi_LIBS!$btl_mvapi_LIBS$ac_delim
OMPI_BUILD_btl_mvapi_DSO_TRUE!$OMPI_BUILD_btl_mvapi_DSO_TRUE$ac_delim
OMPI_BUILD_btl_mvapi_DSO_FALSE!$OMPI_BUILD_btl_mvapi_DSO_FALSE$ac_delim
btl_mx_CFLAGS!$btl_mx_CFLAGS$ac_delim
btl_mx_CPPFLAGS!$btl_mx_CPPFLAGS$ac_delim
btl_mx_LDFLAGS!$btl_mx_LDFLAGS$ac_delim
btl_mx_LIBS!$btl_mx_LIBS$ac_delim
OMPI_BUILD_btl_mx_DSO_TRUE!$OMPI_BUILD_btl_mx_DSO_TRUE$ac_delim
OMPI_BUILD_btl_mx_DSO_FALSE!$OMPI_BUILD_btl_mx_DSO_FALSE$ac_delim
btl_openib_CFLAGS!$btl_openib_CFLAGS$ac_delim
btl_openib_CPPFLAGS!$btl_openib_CPPFLAGS$ac_delim
btl_openib_LDFLAGS!$btl_openib_LDFLAGS$ac_delim
btl_openib_LIBS!$btl_openib_LIBS$ac_delim
OMPI_BUILD_btl_openib_DSO_TRUE!$OMPI_BUILD_btl_openib_DSO_TRUE$ac_delim
OMPI_BUILD_btl_openib_DSO_FALSE!$OMPI_BUILD_btl_openib_DSO_FALSE$ac_delim
btl_portals_CPPFLAGS!$btl_portals_CPPFLAGS$ac_delim
btl_portals_LDFLAGS!$btl_portals_LDFLAGS$ac_delim
btl_portals_LIBS!$btl_portals_LIBS$ac_delim
OMPI_BUILD_btl_portals_DSO_TRUE!$OMPI_BUILD_btl_portals_DSO_TRUE$ac_delim
OMPI_BUILD_btl_portals_DSO_FALSE!$OMPI_BUILD_btl_portals_DSO_FALSE$ac_delim
OMPI_BUILD_btl_tcp_DSO_TRUE!$OMPI_BUILD_btl_tcp_DSO_TRUE$ac_delim
OMPI_BUILD_btl_tcp_DSO_FALSE!$OMPI_BUILD_btl_tcp_DSO_FALSE$ac_delim
btl_udapl_CFLAGS!$btl_udapl_CFLAGS$ac_delim
btl_udapl_CPPFLAGS!$btl_udapl_CPPFLAGS$ac_delim
btl_udapl_LDFLAGS!$btl_udapl_LDFLAGS$ac_delim
btl_udapl_LIBS!$btl_udapl_LIBS$ac_delim
OMPI_BUILD_btl_udapl_DSO_TRUE!$OMPI_BUILD_btl_udapl_DSO_TRUE$ac_delim
OMPI_BUILD_btl_udapl_DSO_FALSE!$OMPI_BUILD_btl_udapl_DSO_FALSE$ac_delim
MCA_btl_ALL_COMPONENTS!$MCA_btl_ALL_COMPONENTS$ac_delim
MCA_btl_STATIC_COMPONENTS!$MCA_btl_STATIC_COMPONENTS$ac_delim
MCA_btl_DSO_COMPONENTS!$MCA_btl_DSO_COMPONENTS$ac_delim
MCA_btl_STATIC_LTLIBS!$MCA_btl_STATIC_LTLIBS$ac_delim
MCA_btl_ALL_SUBDIRS!$MCA_btl_ALL_SUBDIRS$ac_delim
MCA_btl_STATIC_SUBDIRS!$MCA_btl_STATIC_SUBDIRS$ac_delim
MCA_btl_DSO_SUBDIRS!$MCA_btl_DSO_SUBDIRS$ac_delim
OMPI_BUILD_coll_basic_DSO_TRUE!$OMPI_BUILD_coll_basic_DSO_TRUE$ac_delim
OMPI_BUILD_coll_basic_DSO_FALSE!$OMPI_BUILD_coll_basic_DSO_FALSE$ac_delim
OMPI_BUILD_coll_self_DSO_TRUE!$OMPI_BUILD_coll_self_DSO_TRUE$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-7.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
OMPI_BUILD_coll_self_DSO_FALSE!$OMPI_BUILD_coll_self_DSO_FALSE$ac_delim
OMPI_BUILD_coll_sm_DSO_TRUE!$OMPI_BUILD_coll_sm_DSO_TRUE$ac_delim
OMPI_BUILD_coll_sm_DSO_FALSE!$OMPI_BUILD_coll_sm_DSO_FALSE$ac_delim
OMPI_BUILD_coll_tuned_DSO_TRUE!$OMPI_BUILD_coll_tuned_DSO_TRUE$ac_delim
OMPI_BUILD_coll_tuned_DSO_FALSE!$OMPI_BUILD_coll_tuned_DSO_FALSE$ac_delim
MCA_coll_ALL_COMPONENTS!$MCA_coll_ALL_COMPONENTS$ac_delim
MCA_coll_STATIC_COMPONENTS!$MCA_coll_STATIC_COMPONENTS$ac_delim
MCA_coll_DSO_COMPONENTS!$MCA_coll_DSO_COMPONENTS$ac_delim
MCA_coll_STATIC_LTLIBS!$MCA_coll_STATIC_LTLIBS$ac_delim
MCA_coll_ALL_SUBDIRS!$MCA_coll_ALL_SUBDIRS$ac_delim
MCA_coll_STATIC_SUBDIRS!$MCA_coll_STATIC_SUBDIRS$ac_delim
MCA_coll_DSO_SUBDIRS!$MCA_coll_DSO_SUBDIRS$ac_delim
OMPI_BUILD_common_sm_DSO_TRUE!$OMPI_BUILD_common_sm_DSO_TRUE$ac_delim
OMPI_BUILD_common_sm_DSO_FALSE!$OMPI_BUILD_common_sm_DSO_FALSE$ac_delim
common_mx_CFLAGS!$common_mx_CFLAGS$ac_delim
common_mx_CPPFLAGS!$common_mx_CPPFLAGS$ac_delim
common_mx_LDFLAGS!$common_mx_LDFLAGS$ac_delim
common_mx_LIBS!$common_mx_LIBS$ac_delim
OMPI_BUILD_common_mx_DSO_TRUE!$OMPI_BUILD_common_mx_DSO_TRUE$ac_delim
OMPI_BUILD_common_mx_DSO_FALSE!$OMPI_BUILD_common_mx_DSO_FALSE$ac_delim
common_portals_CPPFLAGS!$common_portals_CPPFLAGS$ac_delim
common_portals_LDFLAGS!$common_portals_LDFLAGS$ac_delim
common_portals_LIBS!$common_portals_LIBS$ac_delim
OMPI_BUILD_common_portals_DSO_TRUE!$OMPI_BUILD_common_portals_DSO_TRUE$ac_delim
OMPI_BUILD_common_portals_DSO_FALSE!$OMPI_BUILD_common_portals_DSO_FALSE$ac_delim
MCA_common_ALL_COMPONENTS!$MCA_common_ALL_COMPONENTS$ac_delim
MCA_common_STATIC_COMPONENTS!$MCA_common_STATIC_COMPONENTS$ac_delim
MCA_common_DSO_COMPONENTS!$MCA_common_DSO_COMPONENTS$ac_delim
MCA_common_STATIC_LTLIBS!$MCA_common_STATIC_LTLIBS$ac_delim
MCA_common_ALL_SUBDIRS!$MCA_common_ALL_SUBDIRS$ac_delim
MCA_common_STATIC_SUBDIRS!$MCA_common_STATIC_SUBDIRS$ac_delim
MCA_common_DSO_SUBDIRS!$MCA_common_DSO_SUBDIRS$ac_delim
MCA_io_romio_SHOULD_BUILD_TRUE!$MCA_io_romio_SHOULD_BUILD_TRUE$ac_delim
MCA_io_romio_SHOULD_BUILD_FALSE!$MCA_io_romio_SHOULD_BUILD_FALSE$ac_delim
OMPI_BUILD_io_romio_DSO_TRUE!$OMPI_BUILD_io_romio_DSO_TRUE$ac_delim
OMPI_BUILD_io_romio_DSO_FALSE!$OMPI_BUILD_io_romio_DSO_FALSE$ac_delim
MCA_io_ALL_COMPONENTS!$MCA_io_ALL_COMPONENTS$ac_delim
MCA_io_STATIC_COMPONENTS!$MCA_io_STATIC_COMPONENTS$ac_delim
MCA_io_DSO_COMPONENTS!$MCA_io_DSO_COMPONENTS$ac_delim
MCA_io_STATIC_LTLIBS!$MCA_io_STATIC_LTLIBS$ac_delim
MCA_io_ALL_SUBDIRS!$MCA_io_ALL_SUBDIRS$ac_delim
MCA_io_STATIC_SUBDIRS!$MCA_io_STATIC_SUBDIRS$ac_delim
MCA_io_DSO_SUBDIRS!$MCA_io_DSO_SUBDIRS$ac_delim
OMPI_BUILD_mpool_rdma_DSO_TRUE!$OMPI_BUILD_mpool_rdma_DSO_TRUE$ac_delim
OMPI_BUILD_mpool_rdma_DSO_FALSE!$OMPI_BUILD_mpool_rdma_DSO_FALSE$ac_delim
OMPI_BUILD_mpool_sm_DSO_TRUE!$OMPI_BUILD_mpool_sm_DSO_TRUE$ac_delim
OMPI_BUILD_mpool_sm_DSO_FALSE!$OMPI_BUILD_mpool_sm_DSO_FALSE$ac_delim
MCA_mpool_ALL_COMPONENTS!$MCA_mpool_ALL_COMPONENTS$ac_delim
MCA_mpool_STATIC_COMPONENTS!$MCA_mpool_STATIC_COMPONENTS$ac_delim
MCA_mpool_DSO_COMPONENTS!$MCA_mpool_DSO_COMPONENTS$ac_delim
MCA_mpool_STATIC_LTLIBS!$MCA_mpool_STATIC_LTLIBS$ac_delim
MCA_mpool_ALL_SUBDIRS!$MCA_mpool_ALL_SUBDIRS$ac_delim
MCA_mpool_STATIC_SUBDIRS!$MCA_mpool_STATIC_SUBDIRS$ac_delim
MCA_mpool_DSO_SUBDIRS!$MCA_mpool_DSO_SUBDIRS$ac_delim
mtl_mx_CFLAGS!$mtl_mx_CFLAGS$ac_delim
mtl_mx_CPPFLAGS!$mtl_mx_CPPFLAGS$ac_delim
mtl_mx_LDFLAGS!$mtl_mx_LDFLAGS$ac_delim
mtl_mx_LIBS!$mtl_mx_LIBS$ac_delim
OMPI_BUILD_mtl_mx_DSO_TRUE!$OMPI_BUILD_mtl_mx_DSO_TRUE$ac_delim
OMPI_BUILD_mtl_mx_DSO_FALSE!$OMPI_BUILD_mtl_mx_DSO_FALSE$ac_delim
mtl_portals_CPPFLAGS!$mtl_portals_CPPFLAGS$ac_delim
mtl_portals_LDFLAGS!$mtl_portals_LDFLAGS$ac_delim
mtl_portals_LIBS!$mtl_portals_LIBS$ac_delim
OMPI_BUILD_mtl_portals_DSO_TRUE!$OMPI_BUILD_mtl_portals_DSO_TRUE$ac_delim
OMPI_BUILD_mtl_portals_DSO_FALSE!$OMPI_BUILD_mtl_portals_DSO_FALSE$ac_delim
mtl_psm_CFLAGS!$mtl_psm_CFLAGS$ac_delim
mtl_psm_CPPFLAGS!$mtl_psm_CPPFLAGS$ac_delim
mtl_psm_LDFLAGS!$mtl_psm_LDFLAGS$ac_delim
mtl_psm_LIBS!$mtl_psm_LIBS$ac_delim
OMPI_BUILD_mtl_psm_DSO_TRUE!$OMPI_BUILD_mtl_psm_DSO_TRUE$ac_delim
OMPI_BUILD_mtl_psm_DSO_FALSE!$OMPI_BUILD_mtl_psm_DSO_FALSE$ac_delim
MCA_mtl_ALL_COMPONENTS!$MCA_mtl_ALL_COMPONENTS$ac_delim
MCA_mtl_STATIC_COMPONENTS!$MCA_mtl_STATIC_COMPONENTS$ac_delim
MCA_mtl_DSO_COMPONENTS!$MCA_mtl_DSO_COMPONENTS$ac_delim
MCA_mtl_STATIC_LTLIBS!$MCA_mtl_STATIC_LTLIBS$ac_delim
MCA_mtl_ALL_SUBDIRS!$MCA_mtl_ALL_SUBDIRS$ac_delim
MCA_mtl_STATIC_SUBDIRS!$MCA_mtl_STATIC_SUBDIRS$ac_delim
MCA_mtl_DSO_SUBDIRS!$MCA_mtl_DSO_SUBDIRS$ac_delim
OMPI_BUILD_osc_pt2pt_DSO_TRUE!$OMPI_BUILD_osc_pt2pt_DSO_TRUE$ac_delim
OMPI_BUILD_osc_pt2pt_DSO_FALSE!$OMPI_BUILD_osc_pt2pt_DSO_FALSE$ac_delim
MCA_osc_ALL_COMPONENTS!$MCA_osc_ALL_COMPONENTS$ac_delim
MCA_osc_STATIC_COMPONENTS!$MCA_osc_STATIC_COMPONENTS$ac_delim
MCA_osc_DSO_COMPONENTS!$MCA_osc_DSO_COMPONENTS$ac_delim
MCA_osc_STATIC_LTLIBS!$MCA_osc_STATIC_LTLIBS$ac_delim
MCA_osc_ALL_SUBDIRS!$MCA_osc_ALL_SUBDIRS$ac_delim
MCA_osc_STATIC_SUBDIRS!$MCA_osc_STATIC_SUBDIRS$ac_delim
MCA_osc_DSO_SUBDIRS!$MCA_osc_DSO_SUBDIRS$ac_delim
OMPI_BUILD_pml_cm_DSO_TRUE!$OMPI_BUILD_pml_cm_DSO_TRUE$ac_delim
OMPI_BUILD_pml_cm_DSO_FALSE!$OMPI_BUILD_pml_cm_DSO_FALSE$ac_delim
OMPI_BUILD_pml_ob1_DSO_TRUE!$OMPI_BUILD_pml_ob1_DSO_TRUE$ac_delim
OMPI_BUILD_pml_ob1_DSO_FALSE!$OMPI_BUILD_pml_ob1_DSO_FALSE$ac_delim
MCA_pml_ALL_COMPONENTS!$MCA_pml_ALL_COMPONENTS$ac_delim
MCA_pml_STATIC_COMPONENTS!$MCA_pml_STATIC_COMPONENTS$ac_delim
MCA_pml_DSO_COMPONENTS!$MCA_pml_DSO_COMPONENTS$ac_delim
MCA_pml_STATIC_LTLIBS!$MCA_pml_STATIC_LTLIBS$ac_delim
MCA_pml_ALL_SUBDIRS!$MCA_pml_ALL_SUBDIRS$ac_delim
MCA_pml_STATIC_SUBDIRS!$MCA_pml_STATIC_SUBDIRS$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-8.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
CEOF$ac_eof
_ACEOF


ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  cat >conf$$subs.sed <<_ACEOF
MCA_pml_DSO_SUBDIRS!$MCA_pml_DSO_SUBDIRS$ac_delim
OMPI_BUILD_rcache_vma_DSO_TRUE!$OMPI_BUILD_rcache_vma_DSO_TRUE$ac_delim
OMPI_BUILD_rcache_vma_DSO_FALSE!$OMPI_BUILD_rcache_vma_DSO_FALSE$ac_delim
MCA_rcache_ALL_COMPONENTS!$MCA_rcache_ALL_COMPONENTS$ac_delim
MCA_rcache_STATIC_COMPONENTS!$MCA_rcache_STATIC_COMPONENTS$ac_delim
MCA_rcache_DSO_COMPONENTS!$MCA_rcache_DSO_COMPONENTS$ac_delim
MCA_rcache_STATIC_LTLIBS!$MCA_rcache_STATIC_LTLIBS$ac_delim
MCA_rcache_ALL_SUBDIRS!$MCA_rcache_ALL_SUBDIRS$ac_delim
MCA_rcache_STATIC_SUBDIRS!$MCA_rcache_STATIC_SUBDIRS$ac_delim
MCA_rcache_DSO_SUBDIRS!$MCA_rcache_DSO_SUBDIRS$ac_delim
OMPI_BUILD_topo_unity_DSO_TRUE!$OMPI_BUILD_topo_unity_DSO_TRUE$ac_delim
OMPI_BUILD_topo_unity_DSO_FALSE!$OMPI_BUILD_topo_unity_DSO_FALSE$ac_delim
MCA_topo_ALL_COMPONENTS!$MCA_topo_ALL_COMPONENTS$ac_delim
MCA_topo_STATIC_COMPONENTS!$MCA_topo_STATIC_COMPONENTS$ac_delim
MCA_topo_DSO_COMPONENTS!$MCA_topo_DSO_COMPONENTS$ac_delim
MCA_topo_STATIC_LTLIBS!$MCA_topo_STATIC_LTLIBS$ac_delim
MCA_topo_ALL_SUBDIRS!$MCA_topo_ALL_SUBDIRS$ac_delim
MCA_topo_STATIC_SUBDIRS!$MCA_topo_STATIC_SUBDIRS$ac_delim
MCA_topo_DSO_SUBDIRS!$MCA_topo_DSO_SUBDIRS$ac_delim
MCA_ompi_FRAMEWORKS!$MCA_ompi_FRAMEWORKS$ac_delim
MCA_ompi_FRAMEWORKS_SUBDIRS!$MCA_ompi_FRAMEWORKS_SUBDIRS$ac_delim
MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim
MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim
MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim
MCA_ompi_FRAMEWORK_LIBS!$MCA_ompi_FRAMEWORK_LIBS$ac_delim
MCA_pml_DIRECT_CALL_HEADER!$MCA_pml_DIRECT_CALL_HEADER$ac_delim
MCA_mtl_DIRECT_CALL_HEADER!$MCA_mtl_DIRECT_CALL_HEADER$ac_delim
MCA_PROJECT_SUBDIRS!$MCA_PROJECT_SUBDIRS$ac_delim
OMPI_LIBEVENT_SOURCES!$OMPI_LIBEVENT_SOURCES$ac_delim
LIBLTDL!$LIBLTDL$ac_delim
LTDLINCL!$LTDLINCL$ac_delim
INCLTDL!$INCLTDL$ac_delim
LIBTOOL!$LIBTOOL$ac_delim
SED!$SED$ac_delim
LD!$LD$ac_delim
AR!$AR$ac_delim
RANLIB!$RANLIB$ac_delim
lt_ECHO!$lt_ECHO$ac_delim
LIBLTDL_SUBDIR!$LIBLTDL_SUBDIR$ac_delim
LIBLTDL_LTLIB!$LIBLTDL_LTLIB$ac_delim
OPAL_LTDL_CPPFLAGS!$OPAL_LTDL_CPPFLAGS$ac_delim
WANT_LIBLTDL_TRUE!$WANT_LIBLTDL_TRUE$ac_delim
WANT_LIBLTDL_FALSE!$WANT_LIBLTDL_FALSE$ac_delim
CFLAGS_WITHOUT_OPTFLAGS!$CFLAGS_WITHOUT_OPTFLAGS$ac_delim
TOTALVIEW_DEBUG_FLAGS!$TOTALVIEW_DEBUG_FLAGS$ac_delim
CXXCPPFLAGS!$CXXCPPFLAGS$ac_delim
OPAL_WRAPPER_EXTRA_CPPFLAGS!$OPAL_WRAPPER_EXTRA_CPPFLAGS$ac_delim
OPAL_WRAPPER_EXTRA_CFLAGS!$OPAL_WRAPPER_EXTRA_CFLAGS$ac_delim
OPAL_WRAPPER_EXTRA_CXXFLAGS!$OPAL_WRAPPER_EXTRA_CXXFLAGS$ac_delim
OPAL_WRAPPER_EXTRA_LDFLAGS!$OPAL_WRAPPER_EXTRA_LDFLAGS$ac_delim
OPAL_WRAPPER_EXTRA_LIBS!$OPAL_WRAPPER_EXTRA_LIBS$ac_delim
OPAL_WRAPPER_EXTRA_INCLUDES!$OPAL_WRAPPER_EXTRA_INCLUDES$ac_delim
ORTE_WRAPPER_EXTRA_CPPFLAGS!$ORTE_WRAPPER_EXTRA_CPPFLAGS$ac_delim
ORTE_WRAPPER_EXTRA_CFLAGS!$ORTE_WRAPPER_EXTRA_CFLAGS$ac_delim
ORTE_WRAPPER_EXTRA_CXXFLAGS!$ORTE_WRAPPER_EXTRA_CXXFLAGS$ac_delim
ORTE_WRAPPER_EXTRA_LDFLAGS!$ORTE_WRAPPER_EXTRA_LDFLAGS$ac_delim
ORTE_WRAPPER_EXTRA_LIBS!$ORTE_WRAPPER_EXTRA_LIBS$ac_delim
ORTE_WRAPPER_EXTRA_INCLUDES!$ORTE_WRAPPER_EXTRA_INCLUDES$ac_delim
OMPI_WRAPPER_EXTRA_CPPFLAGS!$OMPI_WRAPPER_EXTRA_CPPFLAGS$ac_delim
OMPI_WRAPPER_EXTRA_CFLAGS!$OMPI_WRAPPER_EXTRA_CFLAGS$ac_delim
OMPI_WRAPPER_EXTRA_CXXFLAGS!$OMPI_WRAPPER_EXTRA_CXXFLAGS$ac_delim
OMPI_WRAPPER_EXTRA_FFLAGS!$OMPI_WRAPPER_EXTRA_FFLAGS$ac_delim
OMPI_WRAPPER_EXTRA_FCFLAGS!$OMPI_WRAPPER_EXTRA_FCFLAGS$ac_delim
OMPI_WRAPPER_EXTRA_LDFLAGS!$OMPI_WRAPPER_EXTRA_LDFLAGS$ac_delim
OMPI_WRAPPER_EXTRA_LIBS!$OMPI_WRAPPER_EXTRA_LIBS$ac_delim
OMPI_WRAPPER_EXTRA_INCLUDES!$OMPI_WRAPPER_EXTRA_INCLUDES$ac_delim
OMPI_WRAPPER_CXX_LIB!$OMPI_WRAPPER_CXX_LIB$ac_delim
OMPI_WRAPPER_CXX_REQUIRED_FILE!$OMPI_WRAPPER_CXX_REQUIRED_FILE$ac_delim
OMPI_WRAPPER_F77_REQUIRED_FILE!$OMPI_WRAPPER_F77_REQUIRED_FILE$ac_delim
OMPI_WRAPPER_F90_REQUIRED_FILE!$OMPI_WRAPPER_F90_REQUIRED_FILE$ac_delim
WRAPPER_EXTRA_CFLAGS!$WRAPPER_EXTRA_CFLAGS$ac_delim
WRAPPER_EXTRA_CXXFLAGS!$WRAPPER_EXTRA_CXXFLAGS$ac_delim
WRAPPER_EXTRA_FFLAGS!$WRAPPER_EXTRA_FFLAGS$ac_delim
WRAPPER_EXTRA_FCFLAGS!$WRAPPER_EXTRA_FCFLAGS$ac_delim
WRAPPER_EXTRA_LDFLAGS!$WRAPPER_EXTRA_LDFLAGS$ac_delim
WRAPPER_EXTRA_LIBS!$WRAPPER_EXTRA_LIBS$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
    break
  elif $ac_last_try; then
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
if test -n "$ac_eof"; then
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  ac_eof=`expr $ac_eof + 1`
fi

cat >>$CONFIG_STATUS <<_ACEOF
cat >"\$tmp/subs-9.sed" <<\CEOF$ac_eof
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
_ACEOF
sed '
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
s/^/s,@/; s/!/@,|#_!!_#|/
:n
t n
s/'"$ac_delim"'$/,g/; t
s/$/\\/; p
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
' >>$CONFIG_STATUS <conf$$subs.sed
rm -f conf$$subs.sed
cat >>$CONFIG_STATUS <<_ACEOF
:end
s/|#_!!_#|//g
CEOF$ac_eof
_ACEOF


# 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

cat >>$CONFIG_STATUS <<\_ACEOF
fi # test -n "$CONFIG_FILES"


for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   { (exit 1); exit 1; }; };;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   { (exit 1); exit 1; }; };;
      esac
      ac_file_inputs="$ac_file_inputs $ac_f"
    done

    # 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.  */
    configure_input="Generated from "`IFS=:
	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    fi

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin";;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$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'`
  { as_dir="$ac_dir"
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&2;}
   { (exit 1); exit 1; }; }; }
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=

case `sed -n '/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p
' $ac_file_inputs` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
    s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
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&@top_builddir@&$ac_top_builddir_sub&;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&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
s&@MKDIR_P@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" | sed -f "$tmp/subs-6.sed" | sed -f "$tmp/subs-7.sed" | sed -f "$tmp/subs-8.sed" | sed -f "$tmp/subs-9.sed" >$tmp/out

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}

  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out"; rm -f "$tmp/out";;
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  esac
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
_ACEOF

# Transform confdefs.h into a sed script `conftest.defines', that
# substitutes the proper values into config.h.in to produce config.h.
rm -f conftest.defines conftest.tail
# First, append a space to every undef/define line, to ease matching.
echo 's/$/ /' >conftest.defines
# Then, protect against being on the right side of a sed subst, or in
# an unquoted here document, in config.status.  If some macros were
# called several times there might be several #defines for the same
# symbol, which is useless.  But do not sort them, since the last
# AC_DEFINE must be honored.
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
# NAME is the cpp macro being defined, VALUE is the value it is being given.
# PARAMS is the parameter list in the macro definition--in most cases, it's
# just an empty string.
ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
ac_dB='\\)[	 (].*,\\1define\\2'
ac_dC=' '
ac_dD=' ,'

uniq confdefs.h |
  sed -n '
	t rset
	:rset
	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
	t ok
	d
	:ok
	s/[\\&,]/\\&/g
	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  ' >>conftest.defines

# Remove the space that was appended to ease matching.
# Then replace #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.
# (The regexp can be short, since the line contains either #define or #undef.)
echo 's/ $//
s,^[	 #]*u.*,/* & */,' >>conftest.defines

# Break up conftest.defines:
ac_max_sed_lines=50

# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
# et cetera.
ac_in='$ac_file_inputs'
ac_out='"$tmp/out1"'
ac_nxt='"$tmp/out2"'

while :
do
  # Write a here document:
    cat >>$CONFIG_STATUS <<_ACEOF
    # First, check the format of the line:
    cat >"\$tmp/defines.sed" <<\\CEOF
/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
b
:def
_ACEOF
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  grep . conftest.tail >/dev/null || break
  rm -f conftest.defines
  mv conftest.tail conftest.defines
done
rm -f conftest.defines conftest.tail

echo "ac_result=$ac_in" >>$CONFIG_STATUS
cat >>$CONFIG_STATUS <<\_ACEOF
  if test x"$ac_file" != x-; then
    echo "/* $configure_input  */" >"$tmp/config.h"
    cat "$ac_result" >>"$tmp/config.h"
    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
      rm -f $ac_file
      mv "$tmp/config.h" $ac_file
    fi
  else
    echo "/* $configure_input  */"
    cat "$ac_result"
  fi
  rm -f "$tmp/out12"
# 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" >`$as_dirname -- $ac_file ||
$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
 ;;

  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) 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.
  # Grep'ing the whole file is not good either: AIX grep has a line
  # limit of 2048, but all sed's we know have understand at least 4000.
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
    dirpart=`$as_dirname -- "$mf" ||
$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=`$as_dirname -- "$file" ||
$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'`
    { as_dir=$dirpart/$fdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$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'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&2;}
   { (exit 1); exit 1; }; }; }
    # echo "creating $dirpart/$file"
    echo '# dummy' > "$dirpart/$file"
  done
done
 ;;
    "libtool":C)

    # 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

    cfgfile="${ofile}T"
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    $RM "$cfgfile"

    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL

# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
#                 2006, 2007 Free Software Foundation, Inc.
#   Written by Gordon Matzigkeit, 1996
#
#   This file is part of GNU Libtool.
#
# GNU Libtool 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.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.
#
# GNU Libtool 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 GNU Libtool; see the file COPYING.  If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


# The names of the tagged configurations supported by this script.
available_tags="CXX F77 FC "

# ### BEGIN LIBTOOL CONFIG

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

# Whether or not to build static libraries.
build_old_libs=$enable_static

# A BSD- or MS-compatible name lister.
NM=$lt_NM

# Which release of libtool.m4 was used?
macro_version=$macro_version
macro_revision=$macro_revision

# What type of objects to build.
pic_mode=$pic_mode

# 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

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

# A grep program that handles long lines.
GREP=$lt_GREP

# An ERE matcher.
EGREP=$lt_EGREP

# A literal string matcher.
FGREP=$lt_FGREP

# Whether we need soft or hard links.
LN_S=$lt_LN_S

# What is the maximum length of a command?
max_cmd_len=$max_cmd_len

# Object file suffix (normally "o").
objext=$ac_objext

# Executable file suffix (normally "").
exeext=$exeext

# whether the shell understands "unset".
lt_unset=$lt_unset

# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL

# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP

# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds

# 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

# The archiver.
AR=$lt_AR
AR_FLAGS=$lt_AR_FLAGS

# A symbol stripping program.
STRIP=$lt_STRIP

# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds

# A C compiler.
LTCC=$lt_CC

# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS

# 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

# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix

# The name of the directory that contains temporary libtool files.
objdir=$objdir

# Shell to use when invoking shell scripts.
SHELL=$lt_SHELL

# An echo program that does not interpret backslashes.
ECHO=$lt_ECHO

# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD

# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# 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

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath

# 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

# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds

# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds

# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds

# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval

# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs

# 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

# 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

# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib


# The linker used to build libraries.
LD=$lt_LD

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds

# A language specific compiler.
CC=$lt_compiler

# Is the compiler the GNU compiler?
with_gcc=$GCC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# 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

# 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

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object

# 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 a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag

# 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 DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute

# 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

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_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

# 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

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects
postdep_objects=$lt_postdep_objects
predeps=$lt_predeps
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

# ### END LIBTOOL CONFIG

_LT_EOF

  case $host_os in
  aix3*)
    cat <<\_LT_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
_LT_EOF
    ;;
  esac


ltmain="$ac_aux_dir/ltmain.sh"


  # 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 '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)

  case $xsi_shell in
  yes)
    cat << \_LT_EOF >> "$cfgfile"
# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
{
  case ${1} in
    */*) func_dirname_result="${1%/*}${2}" ;;
    *  ) func_dirname_result="${3}" ;;
  esac
}

# func_basename file
func_basename ()
{
  func_basename_result="${1##*/}"
}

# func_dirname_and_basename file append nondir_replacement
# perform func_basename and func_dirname in a single function
# call:
#   dirname:  Compute the dirname of FILE.  If nonempty,
#             add APPEND to the result, otherwise set result
#             to NONDIR_REPLACEMENT.
#             value returned in "$func_dirname_result"
#   basename: Compute filename of FILE.
#             value retuned in "$func_basename_result"
# Implementation must be kept synchronized with func_dirname
# and func_basename. For efficiency, we do not delegate to
# those functions but instead duplicate the functionality here.
func_dirname_and_basename ()
{
  case ${1} in
    */*) func_dirname_result="${1%/*}${2}" ;;
    *  ) func_dirname_result="${3}" ;;
  esac
  func_basename_result="${1##*/}"
}

# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
func_stripname ()
{
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  # positional parameters, so assign one to ordinary parameter first.
  func_stripname_result=${3}
  func_stripname_result=${func_stripname_result#"${1}"}
  func_stripname_result=${func_stripname_result%"${2}"}
}

# func_opt_split
func_opt_split ()
{
  func_opt_split_opt=${1%%=*}
  func_opt_split_arg=${1#*=}
}

# func_lo2o object
func_lo2o ()
{
  case ${1} in
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    *)    func_lo2o_result=${1} ;;
  esac
}
_LT_EOF
    ;;
  *) # Bourne compatible functions.
    cat << \_LT_EOF >> "$cfgfile"
# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
{
  # Extract subdirectory from the argument.
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  if test "X$func_dirname_result" = "X${1}"; then
    func_dirname_result="${3}"
  else
    func_dirname_result="$func_dirname_result${2}"
  fi
}

# func_basename file
func_basename ()
{
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
}

# func_dirname_and_basename file append nondir_replacement
# perform func_basename and func_dirname in a single function
# call:
#   dirname:  Compute the dirname of FILE.  If nonempty,
#             add APPEND to the result, otherwise set result
#             to NONDIR_REPLACEMENT.
#             value returned in "$func_dirname_result"
#   basename: Compute filename of FILE.
#             value retuned in "$func_basename_result"
# Implementation must be kept synchronized with func_dirname
# and func_basename. For efficiency, we do not delegate to
# those functions but instead duplicate the functionality here.
func_dirname_and_basename ()
{
  # Extract subdirectory from the argument.
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  if test "X$func_dirname_result" = "X${1}"; then
    func_dirname_result="${3}"
  else
    func_dirname_result="$func_dirname_result${2}"
  fi
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
}

# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
# func_strip_suffix prefix name
func_stripname ()
{
  case ${2} in
    .*) func_stripname_result=`$ECHO "X${3}" \
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
    *)  func_stripname_result=`$ECHO "X${3}" \
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  esac
}

# sed scripts:
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
my_sed_long_arg='1s/^-[^=]*=//'

# func_opt_split
func_opt_split ()
{
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
}

# func_lo2o object
func_lo2o ()
{
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
}
_LT_EOF
esac

case $lt_shell_append in
  yes)
    cat << \_LT_EOF >> "$cfgfile"

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1+=\$2"
}
_LT_EOF
    ;;
  *)
    cat << \_LT_EOF >> "$cfgfile"

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
  eval "$1=\$$1\$2"
}
_LT_EOF
    ;;
  esac


  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)

  mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"


    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: CXX

# The linker used to build libraries.
LD=$lt_LD_CXX

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_CXX

# A language specific compiler.
CC=$lt_compiler_CXX

# Is the compiler the GNU compiler?
with_gcc=$GCC_CXX

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_CXX

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_CXX

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_CXX

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX

# 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

# 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

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_CXX

# 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 a shared archive.
archive_cmds=$lt_archive_cmds_CXX
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_CXX
module_expsym_cmds=$lt_module_expsym_cmds_CXX

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_CXX

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_CXX

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_CXX

# 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 DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_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

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_CXX

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_CXX

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_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

# 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

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_CXX

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_CXX

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_CXX

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_CXX
postdep_objects=$lt_postdep_objects_CXX
predeps=$lt_predeps_CXX
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

# ### END LIBTOOL TAG CONFIG: CXX
_LT_EOF


    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: F77

# The linker used to build libraries.
LD=$lt_LD_F77

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_F77

# A language specific compiler.
CC=$lt_compiler_F77

# Is the compiler the GNU compiler?
with_gcc=$GCC_F77

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_F77

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_F77

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_F77

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77

# 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

# 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

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_F77

# 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 a shared archive.
archive_cmds=$lt_archive_cmds_F77
archive_expsym_cmds=$lt_archive_expsym_cmds_F77

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_F77
module_expsym_cmds=$lt_module_expsym_cmds_F77

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_F77

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_F77

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_F77

# 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 DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_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

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_F77

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_F77

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_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

# 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

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_F77

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_F77

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_F77

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_F77
postdep_objects=$lt_postdep_objects_F77
predeps=$lt_predeps_F77
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

# ### END LIBTOOL TAG CONFIG: F77
_LT_EOF


    cat <<_LT_EOF >> "$ofile"

# ### BEGIN LIBTOOL TAG CONFIG: FC

# The linker used to build libraries.
LD=$lt_LD_FC

# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds_FC

# A language specific compiler.
CC=$lt_compiler_FC

# Is the compiler the GNU compiler?
with_gcc=$GCC_FC

# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC

# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl_FC

# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic_FC

# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static_FC

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc_FC

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC

# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object_FC

# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC

# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC

# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds_FC
archive_expsym_cmds=$lt_archive_expsym_cmds_FC

# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds_FC
module_expsym_cmds=$lt_module_expsym_cmds_FC

# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld_FC

# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag_FC

# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag_FC

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

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

# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct_FC

# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute_FC

# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L_FC

# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var_FC

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

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath_FC

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs_FC

# Fix the shell variable \$srcfile for the compiler.
fix_srcfile_path=$lt_fix_srcfile_path_FC

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols_FC

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds_FC

# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms_FC

# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms_FC

# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds_FC

# Specify filename containing input files.
file_list_spec=$lt_file_list_spec_FC

# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action_FC

# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=$lt_predep_objects_FC
postdep_objects=$lt_postdep_objects_FC
predeps=$lt_predeps_FC
postdeps=$lt_postdeps_FC

# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=$lt_compiler_lib_search_path_FC

# ### END LIBTOOL TAG CONFIG: FC
_LT_EOF

 ;;

  esac
done # for ac_tag


{ (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

