#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.63 for Open MPI 1.4.2.
#
# 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, 2007, 2008 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=:
  # Pre-4.2 versions of Zsh do 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

as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
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.)
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
  $as_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.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# 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 ||
$as_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=:
  # Pre-4.2 versions of Zsh do 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=:
  # Pre-4.2 versions of Zsh do 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 bug-autoconf@gnu.org about your system,
  echo including any error possibly output before this message.
  echo This can help us improve future autoconf versions.
  echo Configuration will now proceed without shell functions.
}



  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" ||
    { $as_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 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  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
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.4.2'
PACKAGE_STRING='Open MPI 1.4.2'
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='LTLIBOBJS
LIBOBJS
WRAPPER_EXTRA_LIBS
WRAPPER_EXTRA_LDFLAGS
WRAPPER_EXTRA_FCFLAGS
WRAPPER_EXTRA_FFLAGS
WRAPPER_EXTRA_CXXFLAGS
WRAPPER_EXTRA_CFLAGS
OMPI_WRAPPER_LIBDIR
OMPI_WRAPPER_INCLUDEDIR
OMPI_WRAPPER_F90_REQUIRED_FILE
OMPI_WRAPPER_F77_REQUIRED_FILE
OMPI_WRAPPER_CXX_REQUIRED_FILE
OMPI_WRAPPER_CXX_LIB
OMPI_WRAPPER_EXTRA_INCLUDES
OMPI_WRAPPER_EXTRA_LIBS
OMPI_WRAPPER_EXTRA_LDFLAGS
OMPI_WRAPPER_EXTRA_FCFLAGS
OMPI_WRAPPER_EXTRA_FFLAGS
OMPI_WRAPPER_EXTRA_CXXFLAGS
OMPI_WRAPPER_EXTRA_CFLAGS
OMPI_WRAPPER_EXTRA_CPPFLAGS
ORTE_WRAPPER_EXTRA_INCLUDES
ORTE_WRAPPER_EXTRA_LIBS
ORTE_WRAPPER_EXTRA_LDFLAGS
ORTE_WRAPPER_EXTRA_CXXFLAGS
ORTE_WRAPPER_EXTRA_CFLAGS
ORTE_WRAPPER_EXTRA_CPPFLAGS
OPAL_WRAPPER_EXTRA_INCLUDES
OPAL_WRAPPER_EXTRA_LIBS
OPAL_WRAPPER_EXTRA_LDFLAGS
OPAL_WRAPPER_EXTRA_CXXFLAGS
OPAL_WRAPPER_EXTRA_CFLAGS
OPAL_WRAPPER_EXTRA_CPPFLAGS
AMCA_PARAM_SETS_DIR
OMPI_LIBMPI_EXTRA_LDFLAGS
OMPI_LIBMPI_EXTRA_LIBS
CXXCPPFLAGS
TOTALVIEW_DEBUG_FLAGS
CFLAGS_WITHOUT_OPTFLAGS
LIBLTDL_SUBDIR
OTOOL64
OTOOL
LIPO
NMEDIT
DSYMUTIL
lt_ECHO
RANLIB
AR
LD
SED
LIBTOOL
DLLTOOL
AS
INCLTDL
LTDLINCL
LTDLDEPS
LIBLTDL
OMPI_LIBEVENT_SOURCES
OMPI_CONTRIB_DIST_SUBDIRS
OMPI_CONTRIB_SUBDIRS
MCA_PROJECT_SUBDIRS
MCA_mtl_DIRECT_CALL_HEADER
MCA_pml_DIRECT_CALL_HEADER
MCA_ompi_FRAMEWORK_LIBS
MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS
MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS
MCA_ompi_FRAMEWORKS_SUBDIRS
MCA_ompi_FRAMEWORKS
MCA_topo_DSO_SUBDIRS
MCA_topo_STATIC_SUBDIRS
MCA_topo_ALL_SUBDIRS
MCA_topo_STATIC_LTLIBS
MCA_topo_DSO_COMPONENTS
MCA_topo_STATIC_COMPONENTS
MCA_topo_ALL_COMPONENTS
OMPI_BUILD_topo_unity_DSO_FALSE
OMPI_BUILD_topo_unity_DSO_TRUE
MCA_rcache_DSO_SUBDIRS
MCA_rcache_STATIC_SUBDIRS
MCA_rcache_ALL_SUBDIRS
MCA_rcache_STATIC_LTLIBS
MCA_rcache_DSO_COMPONENTS
MCA_rcache_STATIC_COMPONENTS
MCA_rcache_ALL_COMPONENTS
OMPI_BUILD_rcache_vma_DSO_FALSE
OMPI_BUILD_rcache_vma_DSO_TRUE
MCA_pubsub_DSO_SUBDIRS
MCA_pubsub_STATIC_SUBDIRS
MCA_pubsub_ALL_SUBDIRS
MCA_pubsub_STATIC_LTLIBS
MCA_pubsub_DSO_COMPONENTS
MCA_pubsub_STATIC_COMPONENTS
MCA_pubsub_ALL_COMPONENTS
OMPI_BUILD_pubsub_orte_DSO_FALSE
OMPI_BUILD_pubsub_orte_DSO_TRUE
MCA_pml_DSO_SUBDIRS
MCA_pml_STATIC_SUBDIRS
MCA_pml_ALL_SUBDIRS
MCA_pml_STATIC_LTLIBS
MCA_pml_DSO_COMPONENTS
MCA_pml_STATIC_COMPONENTS
MCA_pml_ALL_COMPONENTS
OMPI_BUILD_pml_v_DSO_FALSE
OMPI_BUILD_pml_v_DSO_TRUE
MCA_vprotocol_DSO_SUBDIRS
MCA_vprotocol_STATIC_SUBDIRS
MCA_vprotocol_ALL_SUBDIRS
MCA_vprotocol_STATIC_LTLIBS
MCA_vprotocol_DSO_COMPONENTS
MCA_vprotocol_STATIC_COMPONENTS
MCA_vprotocol_ALL_COMPONENTS
OMPI_BUILD_vprotocol_pessimist_DSO_FALSE
OMPI_BUILD_vprotocol_pessimist_DSO_TRUE
OMPI_BUILD_pml_crcpw_DSO_FALSE
OMPI_BUILD_pml_crcpw_DSO_TRUE
OMPI_BUILD_pml_ob1_DSO_FALSE
OMPI_BUILD_pml_ob1_DSO_TRUE
OMPI_BUILD_pml_csum_DSO_FALSE
OMPI_BUILD_pml_csum_DSO_TRUE
OMPI_BUILD_pml_cm_DSO_FALSE
OMPI_BUILD_pml_cm_DSO_TRUE
MCA_osc_DSO_SUBDIRS
MCA_osc_STATIC_SUBDIRS
MCA_osc_ALL_SUBDIRS
MCA_osc_STATIC_LTLIBS
MCA_osc_DSO_COMPONENTS
MCA_osc_STATIC_COMPONENTS
MCA_osc_ALL_COMPONENTS
OMPI_BUILD_osc_rdma_DSO_FALSE
OMPI_BUILD_osc_rdma_DSO_TRUE
OMPI_BUILD_osc_pt2pt_DSO_FALSE
OMPI_BUILD_osc_pt2pt_DSO_TRUE
MCA_mtl_DSO_SUBDIRS
MCA_mtl_STATIC_SUBDIRS
MCA_mtl_ALL_SUBDIRS
MCA_mtl_STATIC_LTLIBS
MCA_mtl_DSO_COMPONENTS
MCA_mtl_STATIC_COMPONENTS
MCA_mtl_ALL_COMPONENTS
OMPI_BUILD_mtl_psm_DSO_FALSE
OMPI_BUILD_mtl_psm_DSO_TRUE
mtl_psm_LIBS
mtl_psm_LDFLAGS
mtl_psm_CPPFLAGS
mtl_psm_CFLAGS
OMPI_BUILD_mtl_portals_DSO_FALSE
OMPI_BUILD_mtl_portals_DSO_TRUE
mtl_portals_LIBS
mtl_portals_LDFLAGS
mtl_portals_CPPFLAGS
OMPI_BUILD_mtl_mx_DSO_FALSE
OMPI_BUILD_mtl_mx_DSO_TRUE
mtl_mx_LIBS
mtl_mx_LDFLAGS
mtl_mx_CPPFLAGS
mtl_mx_CFLAGS
MCA_mpool_DSO_SUBDIRS
MCA_mpool_STATIC_SUBDIRS
MCA_mpool_ALL_SUBDIRS
MCA_mpool_STATIC_LTLIBS
MCA_mpool_DSO_COMPONENTS
MCA_mpool_STATIC_COMPONENTS
MCA_mpool_ALL_COMPONENTS
OMPI_BUILD_mpool_sm_DSO_FALSE
OMPI_BUILD_mpool_sm_DSO_TRUE
OMPI_BUILD_mpool_rdma_DSO_FALSE
OMPI_BUILD_mpool_rdma_DSO_TRUE
OMPI_BUILD_mpool_fake_DSO_FALSE
OMPI_BUILD_mpool_fake_DSO_TRUE
OMPI_MPIF_MPI_IO_INCLUDE
OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE
OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE
MCA_io_DSO_SUBDIRS
MCA_io_STATIC_SUBDIRS
MCA_io_ALL_SUBDIRS
MCA_io_STATIC_LTLIBS
MCA_io_DSO_COMPONENTS
MCA_io_STATIC_COMPONENTS
MCA_io_ALL_COMPONENTS
OMPI_BUILD_io_romio_DSO_FALSE
OMPI_BUILD_io_romio_DSO_TRUE
MCA_io_romio_SHOULD_BUILD_FALSE
MCA_io_romio_SHOULD_BUILD_TRUE
MCA_dpm_DSO_SUBDIRS
MCA_dpm_STATIC_SUBDIRS
MCA_dpm_ALL_SUBDIRS
MCA_dpm_STATIC_LTLIBS
MCA_dpm_DSO_COMPONENTS
MCA_dpm_STATIC_COMPONENTS
MCA_dpm_ALL_COMPONENTS
OMPI_BUILD_dpm_orte_DSO_FALSE
OMPI_BUILD_dpm_orte_DSO_TRUE
MCA_crcp_DSO_SUBDIRS
MCA_crcp_STATIC_SUBDIRS
MCA_crcp_ALL_SUBDIRS
MCA_crcp_STATIC_LTLIBS
MCA_crcp_DSO_COMPONENTS
MCA_crcp_STATIC_COMPONENTS
MCA_crcp_ALL_COMPONENTS
OMPI_BUILD_crcp_bkmrk_DSO_FALSE
OMPI_BUILD_crcp_bkmrk_DSO_TRUE
MCA_common_DSO_SUBDIRS
MCA_common_STATIC_SUBDIRS
MCA_common_ALL_SUBDIRS
MCA_common_STATIC_LTLIBS
MCA_common_DSO_COMPONENTS
MCA_common_STATIC_COMPONENTS
MCA_common_ALL_COMPONENTS
OMPI_BUILD_common_portals_DSO_FALSE
OMPI_BUILD_common_portals_DSO_TRUE
common_portals_LIBS
common_portals_LDFLAGS
common_portals_CPPFLAGS
OMPI_BUILD_common_mx_DSO_FALSE
OMPI_BUILD_common_mx_DSO_TRUE
common_mx_LIBS
common_mx_LDFLAGS
common_mx_CPPFLAGS
common_mx_CFLAGS
OMPI_BUILD_common_sm_DSO_FALSE
OMPI_BUILD_common_sm_DSO_TRUE
MCA_coll_DSO_SUBDIRS
MCA_coll_STATIC_SUBDIRS
MCA_coll_ALL_SUBDIRS
MCA_coll_STATIC_LTLIBS
MCA_coll_DSO_COMPONENTS
MCA_coll_STATIC_COMPONENTS
MCA_coll_ALL_COMPONENTS
OMPI_BUILD_coll_tuned_DSO_FALSE
OMPI_BUILD_coll_tuned_DSO_TRUE
OMPI_BUILD_coll_sync_DSO_FALSE
OMPI_BUILD_coll_sync_DSO_TRUE
OMPI_BUILD_coll_sm_DSO_FALSE
OMPI_BUILD_coll_sm_DSO_TRUE
OMPI_BUILD_coll_self_DSO_FALSE
OMPI_BUILD_coll_self_DSO_TRUE
OMPI_BUILD_coll_inter_DSO_FALSE
OMPI_BUILD_coll_inter_DSO_TRUE
OMPI_BUILD_coll_hierarch_DSO_FALSE
OMPI_BUILD_coll_hierarch_DSO_TRUE
OMPI_BUILD_coll_basic_DSO_FALSE
OMPI_BUILD_coll_basic_DSO_TRUE
MCA_btl_DSO_SUBDIRS
MCA_btl_STATIC_SUBDIRS
MCA_btl_ALL_SUBDIRS
MCA_btl_STATIC_LTLIBS
MCA_btl_DSO_COMPONENTS
MCA_btl_STATIC_COMPONENTS
MCA_btl_ALL_COMPONENTS
OMPI_BUILD_btl_udapl_DSO_FALSE
OMPI_BUILD_btl_udapl_DSO_TRUE
btl_udapl_LIBS
btl_udapl_LDFLAGS
btl_udapl_CPPFLAGS
btl_udapl_CFLAGS
OMPI_BUILD_btl_tcp_DSO_FALSE
OMPI_BUILD_btl_tcp_DSO_TRUE
OMPI_BUILD_btl_portals_DSO_FALSE
OMPI_BUILD_btl_portals_DSO_TRUE
btl_portals_LIBS
btl_portals_LDFLAGS
btl_portals_CPPFLAGS
OMPI_BUILD_btl_openib_DSO_FALSE
OMPI_BUILD_btl_openib_DSO_TRUE
MCA_btl_openib_have_ibcm_FALSE
MCA_btl_openib_have_ibcm_TRUE
MCA_btl_openib_have_rdmacm_FALSE
MCA_btl_openib_have_rdmacm_TRUE
MCA_btl_openib_have_xrc_FALSE
MCA_btl_openib_have_xrc_TRUE
btl_openib_LIBS
btl_openib_LDFLAGS
btl_openib_CPPFLAGS
btl_openib_CFLAGS
OMPI_BUILD_btl_ofud_DSO_FALSE
OMPI_BUILD_btl_ofud_DSO_TRUE
btl_ofud_LIBS
btl_ofud_LDFLAGS
btl_ofud_CPPFLAGS
btl_ofud_CFLAGS
OMPI_BUILD_btl_mx_DSO_FALSE
OMPI_BUILD_btl_mx_DSO_TRUE
btl_mx_LIBS
btl_mx_LDFLAGS
btl_mx_CPPFLAGS
btl_mx_CFLAGS
OMPI_BUILD_btl_gm_DSO_FALSE
OMPI_BUILD_btl_gm_DSO_TRUE
btl_gm_LIBS
btl_gm_LDFLAGS
btl_gm_CPPFLAGS
btl_gm_CFLAGS
OMPI_BUILD_btl_elan_DSO_FALSE
OMPI_BUILD_btl_elan_DSO_TRUE
btl_elan_LIBS
btl_elan_LDFLAGS
btl_elan_CPPFLAGS
btl_elan_CFLAGS
OMPI_BUILD_btl_sm_DSO_FALSE
OMPI_BUILD_btl_sm_DSO_TRUE
OMPI_BUILD_btl_self_DSO_FALSE
OMPI_BUILD_btl_self_DSO_TRUE
MCA_bml_DSO_SUBDIRS
MCA_bml_STATIC_SUBDIRS
MCA_bml_ALL_SUBDIRS
MCA_bml_STATIC_LTLIBS
MCA_bml_DSO_COMPONENTS
MCA_bml_STATIC_COMPONENTS
MCA_bml_ALL_COMPONENTS
OMPI_BUILD_bml_r2_DSO_FALSE
OMPI_BUILD_bml_r2_DSO_TRUE
MCA_allocator_DSO_SUBDIRS
MCA_allocator_STATIC_SUBDIRS
MCA_allocator_ALL_SUBDIRS
MCA_allocator_STATIC_LTLIBS
MCA_allocator_DSO_COMPONENTS
MCA_allocator_STATIC_COMPONENTS
MCA_allocator_ALL_COMPONENTS
OMPI_BUILD_allocator_bucket_DSO_FALSE
OMPI_BUILD_allocator_bucket_DSO_TRUE
OMPI_BUILD_allocator_basic_DSO_FALSE
OMPI_BUILD_allocator_basic_DSO_TRUE
MCA_orte_FRAMEWORK_LIBS
MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS
MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS
MCA_orte_FRAMEWORKS_SUBDIRS
MCA_orte_FRAMEWORKS
MCA_snapc_DSO_SUBDIRS
MCA_snapc_STATIC_SUBDIRS
MCA_snapc_ALL_SUBDIRS
MCA_snapc_STATIC_LTLIBS
MCA_snapc_DSO_COMPONENTS
MCA_snapc_STATIC_COMPONENTS
MCA_snapc_ALL_COMPONENTS
OMPI_BUILD_snapc_full_DSO_FALSE
OMPI_BUILD_snapc_full_DSO_TRUE
MCA_routed_DSO_SUBDIRS
MCA_routed_STATIC_SUBDIRS
MCA_routed_ALL_SUBDIRS
MCA_routed_STATIC_LTLIBS
MCA_routed_DSO_COMPONENTS
MCA_routed_STATIC_COMPONENTS
MCA_routed_ALL_COMPONENTS
OMPI_BUILD_routed_linear_DSO_FALSE
OMPI_BUILD_routed_linear_DSO_TRUE
OMPI_BUILD_routed_direct_DSO_FALSE
OMPI_BUILD_routed_direct_DSO_TRUE
OMPI_BUILD_routed_binomial_DSO_FALSE
OMPI_BUILD_routed_binomial_DSO_TRUE
MCA_rml_DSO_SUBDIRS
MCA_rml_STATIC_SUBDIRS
MCA_rml_ALL_SUBDIRS
MCA_rml_STATIC_LTLIBS
MCA_rml_DSO_COMPONENTS
MCA_rml_STATIC_COMPONENTS
MCA_rml_ALL_COMPONENTS
OMPI_BUILD_rml_ftrm_DSO_FALSE
OMPI_BUILD_rml_ftrm_DSO_TRUE
OMPI_BUILD_rml_oob_DSO_FALSE
OMPI_BUILD_rml_oob_DSO_TRUE
MCA_rmaps_DSO_SUBDIRS
MCA_rmaps_STATIC_SUBDIRS
MCA_rmaps_ALL_SUBDIRS
MCA_rmaps_STATIC_LTLIBS
MCA_rmaps_DSO_COMPONENTS
MCA_rmaps_STATIC_COMPONENTS
MCA_rmaps_ALL_COMPONENTS
OMPI_BUILD_rmaps_seq_DSO_FALSE
OMPI_BUILD_rmaps_seq_DSO_TRUE
OMPI_BUILD_rmaps_round_robin_DSO_FALSE
OMPI_BUILD_rmaps_round_robin_DSO_TRUE
OMPI_BUILD_rmaps_rank_file_DSO_FALSE
OMPI_BUILD_rmaps_rank_file_DSO_TRUE
OMPI_BUILD_rmaps_load_balance_DSO_FALSE
OMPI_BUILD_rmaps_load_balance_DSO_TRUE
MCA_ras_DSO_SUBDIRS
MCA_ras_STATIC_SUBDIRS
MCA_ras_ALL_SUBDIRS
MCA_ras_STATIC_LTLIBS
MCA_ras_DSO_COMPONENTS
MCA_ras_STATIC_COMPONENTS
MCA_ras_ALL_COMPONENTS
OMPI_BUILD_ras_tm_DSO_FALSE
OMPI_BUILD_ras_tm_DSO_TRUE
ras_tm_LIBS
ras_tm_LDFLAGS
ras_tm_CPPFLAGS
OMPI_BUILD_ras_slurm_DSO_FALSE
OMPI_BUILD_ras_slurm_DSO_TRUE
ras_slurm_LIBS
ras_slurm_LDFLAGS
ras_slurm_CPPFLAGS
OMPI_BUILD_ras_lsf_DSO_FALSE
OMPI_BUILD_ras_lsf_DSO_TRUE
ras_lsf_LIBS
ras_lsf_LDFLAGS
ras_lsf_CPPFLAGS
OMPI_BUILD_ras_loadleveler_DSO_FALSE
OMPI_BUILD_ras_loadleveler_DSO_TRUE
ras_loadleveler_LIBS
ras_loadleveler_LDFLAGS
ras_loadleveler_CPPFLAGS
OMPI_BUILD_ras_gridengine_DSO_FALSE
OMPI_BUILD_ras_gridengine_DSO_TRUE
QRSH
OMPI_BUILD_ras_ccp_DSO_FALSE
OMPI_BUILD_ras_ccp_DSO_TRUE
OMPI_BUILD_ras_alps_DSO_FALSE
OMPI_BUILD_ras_alps_DSO_TRUE
MCA_plm_DSO_SUBDIRS
MCA_plm_STATIC_SUBDIRS
MCA_plm_ALL_SUBDIRS
MCA_plm_STATIC_LTLIBS
MCA_plm_DSO_COMPONENTS
MCA_plm_STATIC_COMPONENTS
MCA_plm_ALL_COMPONENTS
OMPI_BUILD_plm_xgrid_DSO_FALSE
OMPI_BUILD_plm_xgrid_DSO_TRUE
plm_xgrid_LDFLAGS
plm_xgrid_OBJCFLAGS
am__fastdepOBJC_FALSE
am__fastdepOBJC_TRUE
OBJCDEPMODE
ac_ct_OBJC
OBJCFLAGS
OBJC
OMPI_BUILD_plm_tm_DSO_FALSE
OMPI_BUILD_plm_tm_DSO_TRUE
plm_tm_LIBS
plm_tm_LDFLAGS
plm_tm_CPPFLAGS
OMPI_BUILD_plm_slurm_DSO_FALSE
OMPI_BUILD_plm_slurm_DSO_TRUE
plm_slurm_LIBS
plm_slurm_LDFLAGS
plm_slurm_CPPFLAGS
OMPI_BUILD_plm_rsh_DSO_FALSE
OMPI_BUILD_plm_rsh_DSO_TRUE
OMPI_BUILD_plm_process_DSO_FALSE
OMPI_BUILD_plm_process_DSO_TRUE
OMPI_BUILD_plm_lsf_DSO_FALSE
OMPI_BUILD_plm_lsf_DSO_TRUE
plm_lsf_LIBS
plm_lsf_LDFLAGS
plm_lsf_CPPFLAGS
OMPI_BUILD_plm_ccp_DSO_FALSE
OMPI_BUILD_plm_ccp_DSO_TRUE
OMPI_BUILD_plm_alps_DSO_FALSE
OMPI_BUILD_plm_alps_DSO_TRUE
MCA_oob_DSO_SUBDIRS
MCA_oob_STATIC_SUBDIRS
MCA_oob_ALL_SUBDIRS
MCA_oob_STATIC_LTLIBS
MCA_oob_DSO_COMPONENTS
MCA_oob_STATIC_COMPONENTS
MCA_oob_ALL_COMPONENTS
OMPI_BUILD_oob_tcp_DSO_FALSE
OMPI_BUILD_oob_tcp_DSO_TRUE
MCA_odls_DSO_SUBDIRS
MCA_odls_STATIC_SUBDIRS
MCA_odls_ALL_SUBDIRS
MCA_odls_STATIC_LTLIBS
MCA_odls_DSO_COMPONENTS
MCA_odls_STATIC_COMPONENTS
MCA_odls_ALL_COMPONENTS
OMPI_BUILD_odls_process_DSO_FALSE
OMPI_BUILD_odls_process_DSO_TRUE
OMPI_BUILD_odls_default_DSO_FALSE
OMPI_BUILD_odls_default_DSO_TRUE
MCA_notifier_DSO_SUBDIRS
MCA_notifier_STATIC_SUBDIRS
MCA_notifier_ALL_SUBDIRS
MCA_notifier_STATIC_LTLIBS
MCA_notifier_DSO_COMPONENTS
MCA_notifier_STATIC_COMPONENTS
MCA_notifier_ALL_COMPONENTS
OMPI_BUILD_notifier_syslog_DSO_FALSE
OMPI_BUILD_notifier_syslog_DSO_TRUE
MCA_iof_DSO_SUBDIRS
MCA_iof_STATIC_SUBDIRS
MCA_iof_ALL_SUBDIRS
MCA_iof_STATIC_LTLIBS
MCA_iof_DSO_COMPONENTS
MCA_iof_STATIC_COMPONENTS
MCA_iof_ALL_COMPONENTS
OMPI_BUILD_iof_tool_DSO_FALSE
OMPI_BUILD_iof_tool_DSO_TRUE
OMPI_BUILD_iof_orted_DSO_FALSE
OMPI_BUILD_iof_orted_DSO_TRUE
OMPI_BUILD_iof_hnp_DSO_FALSE
OMPI_BUILD_iof_hnp_DSO_TRUE
MCA_grpcomm_DSO_SUBDIRS
MCA_grpcomm_STATIC_SUBDIRS
MCA_grpcomm_ALL_SUBDIRS
MCA_grpcomm_STATIC_LTLIBS
MCA_grpcomm_DSO_COMPONENTS
MCA_grpcomm_STATIC_COMPONENTS
MCA_grpcomm_ALL_COMPONENTS
OMPI_BUILD_grpcomm_basic_DSO_FALSE
OMPI_BUILD_grpcomm_basic_DSO_TRUE
OMPI_BUILD_grpcomm_bad_DSO_FALSE
OMPI_BUILD_grpcomm_bad_DSO_TRUE
OMPI_BUILD_grpcomm_cnos_DSO_FALSE
OMPI_BUILD_grpcomm_cnos_DSO_TRUE
MCA_filem_DSO_SUBDIRS
MCA_filem_STATIC_SUBDIRS
MCA_filem_ALL_SUBDIRS
MCA_filem_STATIC_LTLIBS
MCA_filem_DSO_COMPONENTS
MCA_filem_STATIC_COMPONENTS
MCA_filem_ALL_COMPONENTS
OMPI_BUILD_filem_rsh_DSO_FALSE
OMPI_BUILD_filem_rsh_DSO_TRUE
MCA_ess_DSO_SUBDIRS
MCA_ess_STATIC_SUBDIRS
MCA_ess_ALL_SUBDIRS
MCA_ess_STATIC_LTLIBS
MCA_ess_DSO_COMPONENTS
MCA_ess_STATIC_COMPONENTS
MCA_ess_ALL_COMPONENTS
OMPI_BUILD_ess_tool_DSO_FALSE
OMPI_BUILD_ess_tool_DSO_TRUE
OMPI_BUILD_ess_slurm_DSO_FALSE
OMPI_BUILD_ess_slurm_DSO_TRUE
ess_slurm_LIBS
ess_slurm_LDFLAGS
ess_slurm_CPPFLAGS
OMPI_BUILD_ess_singleton_DSO_FALSE
OMPI_BUILD_ess_singleton_DSO_TRUE
OMPI_BUILD_ess_lsf_DSO_FALSE
OMPI_BUILD_ess_lsf_DSO_TRUE
ess_lsf_LIBS
ess_lsf_LDFLAGS
ess_lsf_CPPFLAGS
OMPI_BUILD_ess_hnp_DSO_FALSE
OMPI_BUILD_ess_hnp_DSO_TRUE
OMPI_BUILD_ess_env_DSO_FALSE
OMPI_BUILD_ess_env_DSO_TRUE
OMPI_BUILD_ess_alps_DSO_FALSE
OMPI_BUILD_ess_alps_DSO_TRUE
OMPI_BUILD_ess_cnos_DSO_FALSE
OMPI_BUILD_ess_cnos_DSO_TRUE
OMPI_BUILD_ess_portals_utcp_DSO_FALSE
OMPI_BUILD_ess_portals_utcp_DSO_TRUE
ess_portals_utcp_LIBS
ess_portals_utcp_LDFLAGS
ess_portals_utcp_CPPFLAGS
MCA_errmgr_DSO_SUBDIRS
MCA_errmgr_STATIC_SUBDIRS
MCA_errmgr_ALL_SUBDIRS
MCA_errmgr_STATIC_LTLIBS
MCA_errmgr_DSO_COMPONENTS
MCA_errmgr_STATIC_COMPONENTS
MCA_errmgr_ALL_COMPONENTS
OMPI_BUILD_errmgr_default_DSO_FALSE
OMPI_BUILD_errmgr_default_DSO_TRUE
MCA_opal_FRAMEWORK_LIBS
MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS
MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS
MCA_opal_FRAMEWORKS_SUBDIRS
MCA_opal_FRAMEWORKS
MCA_timer_DSO_SUBDIRS
MCA_timer_STATIC_SUBDIRS
MCA_timer_ALL_SUBDIRS
MCA_timer_STATIC_LTLIBS
MCA_timer_DSO_COMPONENTS
MCA_timer_STATIC_COMPONENTS
MCA_timer_ALL_COMPONENTS
OMPI_BUILD_timer_linux_DSO_FALSE
OMPI_BUILD_timer_linux_DSO_TRUE
OMPI_BUILD_timer_windows_DSO_FALSE
OMPI_BUILD_timer_windows_DSO_TRUE
OMPI_BUILD_timer_solaris_DSO_FALSE
OMPI_BUILD_timer_solaris_DSO_TRUE
OMPI_BUILD_timer_darwin_DSO_FALSE
OMPI_BUILD_timer_darwin_DSO_TRUE
OMPI_BUILD_timer_altix_DSO_FALSE
OMPI_BUILD_timer_altix_DSO_TRUE
OMPI_BUILD_timer_aix_DSO_FALSE
OMPI_BUILD_timer_aix_DSO_TRUE
timer_aix_LIBS
OMPI_BUILD_timer_catamount_DSO_FALSE
OMPI_BUILD_timer_catamount_DSO_TRUE
MCA_paffinity_DSO_SUBDIRS
MCA_paffinity_STATIC_SUBDIRS
MCA_paffinity_ALL_SUBDIRS
MCA_paffinity_STATIC_LTLIBS
MCA_paffinity_DSO_COMPONENTS
MCA_paffinity_STATIC_COMPONENTS
MCA_paffinity_ALL_COMPONENTS
OMPI_BUILD_paffinity_posix_DSO_FALSE
OMPI_BUILD_paffinity_posix_DSO_TRUE
OMPI_BUILD_paffinity_test_DSO_FALSE
OMPI_BUILD_paffinity_test_DSO_TRUE
OMPI_BUILD_paffinity_darwin_DSO_FALSE
OMPI_BUILD_paffinity_darwin_DSO_TRUE
OMPI_BUILD_paffinity_windows_DSO_FALSE
OMPI_BUILD_paffinity_windows_DSO_TRUE
OMPI_BUILD_paffinity_solaris_DSO_FALSE
OMPI_BUILD_paffinity_solaris_DSO_TRUE
OMPI_BUILD_paffinity_linux_DSO_FALSE
OMPI_BUILD_paffinity_linux_DSO_TRUE
PLPA_BUILD_EXECUTABLES_FALSE
PLPA_BUILD_EXECUTABLES_TRUE
PLPA_BUILD_STANDALONE_FALSE
PLPA_BUILD_STANDALONE_TRUE
YFLAGS
YACC
MCA_memory_DSO_SUBDIRS
MCA_memory_STATIC_SUBDIRS
MCA_memory_ALL_SUBDIRS
MCA_memory_STATIC_LTLIBS
MCA_memory_DSO_COMPONENTS
MCA_memory_STATIC_COMPONENTS
MCA_memory_ALL_COMPONENTS
OMPI_BUILD_memory_malloc_solaris_DSO_FALSE
OMPI_BUILD_memory_malloc_solaris_DSO_TRUE
memory_malloc_solaris_LIBS
OMPI_BUILD_memory_ptmalloc2_DSO_FALSE
OMPI_BUILD_memory_ptmalloc2_DSO_TRUE
memory_ptmalloc2_LIBS
MCA_memcpy_DSO_SUBDIRS
MCA_memcpy_STATIC_SUBDIRS
MCA_memcpy_ALL_SUBDIRS
MCA_memcpy_STATIC_LTLIBS
MCA_memcpy_DSO_COMPONENTS
MCA_memcpy_STATIC_COMPONENTS
MCA_memcpy_ALL_COMPONENTS
MCA_memchecker_DSO_SUBDIRS
MCA_memchecker_STATIC_SUBDIRS
MCA_memchecker_ALL_SUBDIRS
MCA_memchecker_STATIC_LTLIBS
MCA_memchecker_DSO_COMPONENTS
MCA_memchecker_STATIC_COMPONENTS
MCA_memchecker_ALL_COMPONENTS
OMPI_BUILD_memchecker_valgrind_DSO_FALSE
OMPI_BUILD_memchecker_valgrind_DSO_TRUE
memchecker_valgrind_CPPFLAGS
OMPI_WANT_MEMCHECKER_FALSE
OMPI_WANT_MEMCHECKER_TRUE
MCA_maffinity_DSO_SUBDIRS
MCA_maffinity_STATIC_SUBDIRS
MCA_maffinity_ALL_SUBDIRS
MCA_maffinity_STATIC_LTLIBS
MCA_maffinity_DSO_COMPONENTS
MCA_maffinity_STATIC_COMPONENTS
MCA_maffinity_ALL_COMPONENTS
OMPI_BUILD_maffinity_libnuma_DSO_FALSE
OMPI_BUILD_maffinity_libnuma_DSO_TRUE
maffinity_libnuma_LIBS
maffinity_libnuma_LDFLAGS
maffinity_libnuma_CPPFLAGS
OMPI_BUILD_maffinity_first_use_DSO_FALSE
OMPI_BUILD_maffinity_first_use_DSO_TRUE
MCA_installdirs_DSO_SUBDIRS
MCA_installdirs_STATIC_SUBDIRS
MCA_installdirs_ALL_SUBDIRS
MCA_installdirs_STATIC_LTLIBS
MCA_installdirs_DSO_COMPONENTS
MCA_installdirs_STATIC_COMPONENTS
MCA_installdirs_ALL_COMPONENTS
OMPI_BUILD_installdirs_windows_DSO_FALSE
OMPI_BUILD_installdirs_windows_DSO_TRUE
OMPI_BUILD_installdirs_config_DSO_FALSE
OMPI_BUILD_installdirs_config_DSO_TRUE
OMPI_BUILD_installdirs_env_DSO_FALSE
OMPI_BUILD_installdirs_env_DSO_TRUE
MCA_crs_DSO_SUBDIRS
MCA_crs_STATIC_SUBDIRS
MCA_crs_ALL_SUBDIRS
MCA_crs_STATIC_LTLIBS
MCA_crs_DSO_COMPONENTS
MCA_crs_STATIC_COMPONENTS
MCA_crs_ALL_COMPONENTS
OMPI_BUILD_crs_self_DSO_FALSE
OMPI_BUILD_crs_self_DSO_TRUE
OMPI_BUILD_crs_blcr_DSO_FALSE
OMPI_BUILD_crs_blcr_DSO_TRUE
crs_blcr_LIBS
crs_blcr_LDFLAGS
crs_blcr_CPPFLAGS
crs_blcr_CFLAGS
crs_blcr_WRAPPER_EXTRA_CPPFLAGS
crs_blcr_WRAPPER_EXTRA_LIBS
crs_blcr_WRAPPER_EXTRA_LDFLAGS
OMPI_BUILD_crs_none_DSO_FALSE
OMPI_BUILD_crs_none_DSO_TRUE
MCA_carto_DSO_SUBDIRS
MCA_carto_STATIC_SUBDIRS
MCA_carto_ALL_SUBDIRS
MCA_carto_STATIC_LTLIBS
MCA_carto_DSO_COMPONENTS
MCA_carto_STATIC_COMPONENTS
MCA_carto_ALL_COMPONENTS
OMPI_BUILD_carto_file_DSO_FALSE
OMPI_BUILD_carto_file_DSO_TRUE
OMPI_BUILD_carto_auto_detect_DSO_FALSE
OMPI_BUILD_carto_auto_detect_DSO_TRUE
MCA_backtrace_DSO_SUBDIRS
MCA_backtrace_STATIC_SUBDIRS
MCA_backtrace_ALL_SUBDIRS
MCA_backtrace_STATIC_LTLIBS
MCA_backtrace_DSO_COMPONENTS
MCA_backtrace_STATIC_COMPONENTS
MCA_backtrace_ALL_COMPONENTS
OMPI_BUILD_backtrace_none_DSO_FALSE
OMPI_BUILD_backtrace_none_DSO_TRUE
OMPI_BUILD_backtrace_darwin_DSO_FALSE
OMPI_BUILD_backtrace_darwin_DSO_TRUE
backtrace_darwin_CFLAGS
OMPI_BUILD_backtrace_printstack_DSO_FALSE
OMPI_BUILD_backtrace_printstack_DSO_TRUE
OMPI_BUILD_backtrace_execinfo_DSO_FALSE
OMPI_BUILD_backtrace_execinfo_DSO_TRUE
CASE_SENSITIVE_FS_FALSE
CASE_SENSITIVE_FS_TRUE
LEXLIB
LEX_OUTPUT_ROOT
LEX
LN_S
WANT_FT_THREAD_FALSE
WANT_FT_THREAD_TRUE
OMPI_HAVE_SOLARIS_THREADS_FALSE
OMPI_HAVE_SOLARIS_THREADS_TRUE
OMPI_HAVE_POSIX_THREADS_FALSE
OMPI_HAVE_POSIX_THREADS_TRUE
OMPI_MPI_OFFSET_KIND
OMPI_MPI_ADDRESS_KIND
OMPI_MPI_INTEGER_KIND
OMPI_F90_CKINDS
OMPI_F90_RKINDS
OMPI_F90_IKINDS
OMPI_SIZEOF_F90_DOUBLE_COMPLEX
OMPI_SIZEOF_F90_COMPLEX32
OMPI_SIZEOF_F90_COMPLEX16
OMPI_SIZEOF_F90_COMPLEX8
OMPI_SIZEOF_F90_COMPLEX
OMPI_SIZEOF_F90_DOUBLE_PRECISION
OMPI_SIZEOF_F90_REAL16
OMPI_SIZEOF_F90_REAL8
OMPI_SIZEOF_F90_REAL4
OMPI_SIZEOF_F90_REAL2
OMPI_SIZEOF_F90_REAL
OMPI_SIZEOF_F90_INTEGER16
OMPI_SIZEOF_F90_INTEGER8
OMPI_SIZEOF_F90_INTEGER4
OMPI_SIZEOF_F90_INTEGER2
OMPI_SIZEOF_F90_INTEGER1
OMPI_SIZEOF_F90_INTEGER
OMPI_SIZEOF_F90_LOGICAL8
OMPI_SIZEOF_F90_LOGICAL4
OMPI_SIZEOF_F90_LOGICAL2
OMPI_SIZEOF_F90_LOGICAL1
OMPI_SIZEOF_F90_LOGICAL
OMPI_FC_MODULE_FLAG
OMPI_F90_ABSOLUTE
OMPI_WANT_F90_BINDINGS_FALSE
OMPI_WANT_F90_BINDINGS_TRUE
FCFLAGS_f90
FCFLAGS_f
OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS
ac_ct_FC
FCFLAGS
FC
WANT_PMPI_F77_BINDINGS_LAYER_FALSE
WANT_PMPI_F77_BINDINGS_LAYER_TRUE
WANT_MPI_F77_BINDINGS_LAYER_FALSE
WANT_MPI_F77_BINDINGS_LAYER_TRUE
OMPI_F77_ABSOLUTE
OMPI_WANT_F77_BINDINGS_FALSE
OMPI_WANT_F77_BINDINGS_TRUE
ac_ct_F77
FFLAGS
F77
OMPI_ASM_FILE
OMPI_HAVE_ASM_FILE_FALSE
OMPI_HAVE_ASM_FILE_TRUE
PERL
FGREP
OMPI_ASSEMBLY_ARCH
OMPI_ASSEMBLY_FORMAT
OMPI_ASM_SUPPORT_64BIT
OMPI_ASM_TYPE
OMPI_ASM_LSYM
NM
ac_ct_DUMPBIN
DUMPBIN
OMPI_ASM_GSYM
OMPI_AS_LABEL_SUFFIX
OBJDUMP
OMPI_AS_GLOBAL
OMPI_ASM_TEXT
am__fastdepCCAS_FALSE
am__fastdepCCAS_TRUE
CCASDEPMODE
CCASFLAGS
CCAS
WANT_MPI_CXX_BINDINGS_FALSE
WANT_MPI_CXX_BINDINGS_TRUE
OMPI_CXX_ABSOLUTE
CXXCPP
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
COMPILE_PROFILING_SEPARATELY_FALSE
COMPILE_PROFILING_SEPARATELY_TRUE
WANT_PMPI_BINDINGS_LAYER_FALSE
WANT_PMPI_BINDINGS_LAYER_TRUE
WANT_MPI_BINDINGS_LAYER_FALSE
WANT_MPI_BINDINGS_LAYER_TRUE
OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE
OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE
EGREP
GREP
CPP
OMPI_CC_ABSOLUTE
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
am__quote
am__include
DEPDIR
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE
OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE
OMPI_INSTALL_BINARIES_FALSE
OMPI_INSTALL_BINARIES_TRUE
WANT_FT_FALSE
WANT_FT_TRUE
ORTE_DISABLE_FULL_SUPPORT_FALSE
ORTE_DISABLE_FULL_SUPPORT_TRUE
OMPI_FORTRAN_MAX_ARRAY_RANK
WANT_PERUSE_FALSE
WANT_PERUSE_TRUE
WANT_INSTALL_HEADERS_FALSE
WANT_INSTALL_HEADERS_TRUE
MPIF_H_PMPI_W_FUNCS
OMPI_F90_BUILD_SIZE
OMPI_WANT_BUILD_F90_LARGE_FALSE
OMPI_WANT_BUILD_F90_LARGE_TRUE
OMPI_WANT_BUILD_F90_MEDIUM_FALSE
OMPI_WANT_BUILD_F90_MEDIUM_TRUE
OMPI_WANT_BUILD_F90_SMALL_FALSE
OMPI_WANT_BUILD_F90_SMALL_TRUE
OMPI_WANT_BUILD_F90_TRIVIAL_FALSE
OMPI_WANT_BUILD_F90_TRIVIAL_TRUE
top_ompi_builddir
top_ompi_srcdir
ac_prefix_program
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
CLEANFILES
OMPI_TOP_SRCDIR
OMPI_TOP_BUILDDIR
libopen_pal_so_version
libopen_rte_so_version
libmca_common_portals_so_version
libmca_common_mx_so_version
libmca_common_sm_so_version
libmpi_f90_so_version
libmpi_f77_so_version
libmpi_cxx_so_version
libmpi_so_version
OPAL_RELEASE_DATE
OPAL_VERSION
OPAL_SVN_R
OPAL_WANT_SVN
OPAL_GREEK_VERSION
OPAL_RELEASE_VERSION
OPAL_MINOR_VERSION
OPAL_MAJOR_VERSION
ORTE_RELEASE_DATE
ORTE_VERSION
ORTE_SVN_R
ORTE_WANT_SVN
ORTE_GREEK_VERSION
ORTE_RELEASE_VERSION
ORTE_MINOR_VERSION
ORTE_MAJOR_VERSION
OMPI_RELEASE_DATE
OMPI_VERSION
OMPI_SVN_R
OMPI_WANT_SVN
OMPI_GREEK_VERSION
OMPI_RELEASE_VERSION
OMPI_MINOR_VERSION
OMPI_MAJOR_VERSION
OMPI_CONFIGURE_DATE
OMPI_CONFIGURE_HOST
OMPI_CONFIGURE_USER
CONFIGURE_DEPENDENCIES
am__untar
am__tar
AMTAR
am__leading_dot
SET_MAKE
AWK
mkdir_p
MKDIR_P
INSTALL_STRIP_PROGRAM
STRIP
install_sh
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
CYGPATH_W
am__isrc
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
OPAL_PARAM_FROM_PLATFORM
OPAL_DEFAULT_MCA_PARAM_CONF
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
with_platform
enable_dist
enable_coverage
enable_branch_probabilities
enable_mem_debug
enable_mem_profile
enable_picky
enable_debug
enable_debug_symbols
enable_sparse_groups
enable_mpi_f77
enable_mpi_f90
with_mpi_f90_size
enable_mpi_profile
enable_mpi_cxx
enable_mpi_cxx_seek
enable_weak_symbols
with_mpi_param_check
with_devel_headers
enable_pretty_print_stacktrace
enable_peruse
with_f90_max_array_dim
enable_pty_support
enable_dlopen
enable_heterogeneous
enable_trace
with_rte_support
with_cross
with_ft
enable_binaries
enable_script_wrapper_compilers
enable_per_user_config_files
enable_ipv6
enable_orterun_prefix_by_default
enable_mpirun_prefix_by_default
with_package_string
with_ident_string
with_openib_control_hdr_padding
with_dst_checksum
enable_shared
enable_static
with_wrapper_cflags
with_wrapper_cxxflags
with_wrapper_fflags
with_wrapper_fcflags
with_wrapper_ldflags
with_wrapper_libs
enable_dependency_tracking
enable_cxx_exceptions
with_exflags
enable_smp_locks
with_broken_qsort
with_threads
enable_mpi_threads
enable_progress_threads
enable_ft_thread
with_cs_fs
enable_mca_no_build
enable_mca_dso
enable_mca_static
enable_mca_direct
with_blcr
with_blcr_libdir
with_libnuma
with_libnuma_libdir
enable_memchecker
with_valgrind
with_memory_manager
enable_emulate
enable_executables
enable_included_mode
with_plpa_symbol_prefix
with_timer
with_portals
with_portals_libs
with_alps
with_lsf
with_lsf_libdir
with_slurm
with_tm
with_xgrid
with_sge
with_loadleveler
with_elan
with_elan_libdir
with_gm
with_gm_libdir
with_mx
with_mx_libdir
with_openib
with_openib_libdir
enable_openib_connectx_xrc
enable_openib_ibcm
enable_openib_rdmacm
with_portals_config
with_udapl
with_udapl_libdir
enable_mpi_io
enable_io_romio
with_io_romio_flags
with_psm
with_psm_libdir
enable_visibility
enable_contrib_no_build
with_contrib_vt_flags
with_event_rtsig
with_pic
enable_fast_install
with_gnu_ld
enable_libtool_lock
'
      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
YACC
YFLAGS
OBJC
OBJCFLAGS'


# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# 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_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   { (exit 1); exit 1; }; }
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=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_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   { (exit 1); exit 1; }; }
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$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_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
   { (exit 1); exit 1; }; }
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
   { (exit 1); exit 1; }; }
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=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 ;;

  -*) { $as_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 &&
      { $as_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.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_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'`
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
   { (exit 1); exit 1; }; } ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
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
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  { $as_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
    $as_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 .` ||
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
   { (exit 1); exit 1; }; }
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  { $as_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 -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    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 .."
  { $as_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" || { $as_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.4.2 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

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.4.2:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --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-branch-probabilities
                          enable profile arcs and branch probability
                          optimization
  --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-sparse-groups  enable sparse process groups (default: not enabled)
  --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 (default:
                          enabled)
  --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: disabled)
  --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)
  --enable-script-wrapper-compilers
                          Use less featured script-based wrapper compilers
                          instead of the standard C-based wrapper compilers.
                          This option ignores the --disable-binaries option
                          and is mainly useful in cross-compile environments
  --enable-per-user-config-files
                          Disable per-user configuration files, to save disk
                          accesses during job strart-up. This is likely
                          desirable for large jobs. Note that this can also be
                          acheived by environment variables at run-time.
                          (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 (default:
                          disabled)
  --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)
  --disable-ft-thread     Disable fault tolerance thread running inside all
                          processes. Requires progress and/or MPI threads
                          (default: enabled)
  --enable-mca-no-build=LIST
                          Comma-separated list of <type>-<component> pairs
                          that will not be built. Example:
                          "--enable-mca-no-build=maffinity,btl-portals" will
                          disable building all maffinity components and the
                          "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-memchecker     Enable memory and buffer checks. Note that disabling
                          will *also* add "memchecker" to the
                          --enable-mca-no-build list (default: disabled)
  --enable-emulate        Emulate __NR_sched_setaffinity and
                          __NR_sched_getaffinity, to allow building on
                          non-Linux systems (for testing)
  --disable-executables   Using --disable-executables disables building and
                          installing the PLPA executables
  --enable-included-mode  Using --enable-included-mode puts the PLPA into
                          "included" mode. The default is
                          --disable-included-mode, meaning that the PLPA is in
                          "standalone" mode.
  --enable-debug          Using --enable-debug enables various
                          maintainer-level debugging controls. This option is
                          not recomended for end users.
  --enable-openib-connectx-xrc
                          Enable ConnectX XRC support. If you do not have
                          InfiniBand ConnectX adapters, you may disable the
                          ConnectX XRC support. If you do not know which
                          InfiniBand adapter is installed on your cluster,
                          leave this option enabled (default: enabled)
  --enable-openib-ibcm    Enable Open Fabrics IBCM support in openib BTL
                          (default: disabled)
  --enable-openib-rdmacm  Enable Open Fabrics RDMACM support in openib BTL
                          (default: enabled)
  --disable-mpi-io        Disable built-in support for MPI-2 I/O, likely
                          because an externally-provided MPI I/O package will
                          be used. Default is to use the internal component
                          system and its specially modified version of ROMIO
  --disable-io-romio      Disable the ROMIO MPI-IO component
  --enable-visibility     enable visibility feature of certain
                          compilers/linkers (default: enabled)
  --enable-contrib-no-build=LIST
                          Comma-separated list of contributed package NAMEs
                          that will not be built. Example:
                          "--enable-contrib-no-build=libnbc,vt" will disable
                          building both the "libnbc" and "vt" contributed
                          software packages.
  --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).
                          Default SIZE is "small".
  --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).
  --without-rte-support   Build without RTE support for systems that do not
                          require it (default: full RTE support built)
  --with-cross=FILE       Specify configure values that can not be determined
                          in a cross-compilation environment. See the Open MPI
                          FAQ.
  --with-ft=TYPE          Specify the type of fault tolerance to enable.
                          Options: LAM (LAM/MPI-like), cr (Checkpoint/Restart)
                          (default: disabled)
  --with-package-string=STRING
                          Use a branding string throughout Open MPI
  --with-ident-string=STRING
                          Embed an ident string into Open MPI object files
  --with-openib-control-hdr-padding
                          Add padding bytes to the openib control header
  --with-dst-checksum     Use an alternative checksum algorithm for messages
  --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-blcr(=DIR)       Path to BLCR Installation
  --with-blcr-libdir=DIR  Search for BLCR libraries in DIR
  --with-libnuma=(DIR)    Build libnuma support, optionally adding
                          DIR/include, DIR/lib, and DIR/lib64 to the search
                          path for headers and libraries
  --with-libnuma-libdir=DIR
                          Directory where the libnuma software is installed
  --with-valgrind(=DIR)   Directory where the valgrind software is installed
  --with-memory-manager=TYPE
                          Use TYPE for intercepting memory management calls to
                          control memory pinning.
  --with-plpa-symbol-prefix=STRING
                          STRING can be any valid C symbol name. It will be
                          prefixed to all public PLPA symbols. Default:
                          "plpa_"
  --with-valgrind(=DIR)   Directory where the valgrind software is installed
  --with-timer=TYPE       Build high resolution timer component TYPE
  --with-portals=DIR      Specify the installation directory of PORTALS
  --with-portals-libs=LIBS
                          Libraries to link with for portals
  --with-alps             Build ALPS scheduler component (default: no)
  --with-lsf(=DIR)        Build LSF support
  --with-lsf-libdir=DIR   Search for LSF libraries in DIR
  --with-slurm            Build SLURM scheduler component (default: yes)
  --with-tm(=DIR)         Directory where the tm software is installed
  --with-xgrid            Build support for the Apple Xgrid batch system
                          (default: yes)
  --with-sge              Build SGE or Grid Engine support (default: no)
  --with-loadleveler(=DIR)
                          Directory where the loadleveler software is
                          installed
  --with-elan(=DIR)       Build Elan (QsNet2) support, searching for libraries
                          in DIR
  --with-elan-libdir=DIR  Search for Elan (QsNet2) libraries in DIR
  --with-gm(=DIR)         Build GM (Myrinet) support, searching for libraries
                          in DIR
  --with-gm-libdir=DIR    Search for GM (Myrinet) 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, optionally adding
                          DIR/include, DIR/lib, and DIR/lib64 to the search
                          path for headers and libraries
  --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", "xt3-modex". (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-contrib-vt-flags=FLAGS
                          Pass FLAGS to the VampirTrace distribution
                          configuration script
  --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
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
              the first program found out of: `bison -y', `byacc', `yacc'.
  YFLAGS      The list of arguments that will be passed by default to $YACC.
              This script will default YFLAGS to the empty string to avoid a
              default value of `-d' given by some make applications.
  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" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && 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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_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
      $as_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.4.2
generated by GNU Autoconf 2.63

Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008 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.4.2, which was
generated by GNU Autoconf 2.63.  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=.
  $as_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=`$as_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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $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=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_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=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_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 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_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 an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  ac_site_file1=$CONFIG_SITE
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test -r "$ac_site_file"; then
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
$as_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
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
$as_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,)
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
$as_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
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_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
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
$as_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
        { { $as_echo "$as_me:$LINENO: error: --with-platform argument must include FILE option" >&5
$as_echo "$as_me: error: --with-platform argument must include FILE option" >&2;}
   { (exit 1); exit 1; }; }
    elif test "$with_platform" = "no" ; then
        { { $as_echo "$as_me:$LINENO: error: --without-platform is not a valid argument" >&5
$as_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
            { { $as_echo "$as_me:$LINENO: error: platform file $with_platform not found" >&5
$as_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:3351: 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:3373: Loaded platform arguments for $platform_loaded" >&5
else
    echo Loaded platform arguments for $platform_loaded >&5
fi

        # look for default mca param file

        # setup by getting full pathname for the platform directories
        platform_base="`dirname $with_platform`"
        # get full pathname of where we are so we can return
        platform_savedir="`pwd`"
        # go to where the platform file is located
        cd "$platform_base"
        # get the full path to this location
        platform_file_dir=`pwd`
        # return to where we started
        cd "$platform_savedir"

        # define an alternate default mca param filename
        platform_alt_mca_file="`basename $platform_loaded`.conf"

        # look where platform file is located for platform.conf name
        if test -r "${platform_file_dir}/${platform_alt_mca_file}" ; then
            OPAL_DEFAULT_MCA_PARAM_CONF=$platform_file_dir/$platform_alt_mca_file

            OPAL_PARAM_FROM_PLATFORM="yes"

        # if not, see if a file is there with the default name
        elif test -r "${platform_file_dir}/openmpi-mca-params.conf" ; then
            OPAL_DEFAULT_MCA_PARAM_CONF=$platform_file_dir/openmpi-mca-params.conf

            OPAL_PARAM_FROM_PLATFORM="yes"

        # if not, then just use the default
        else
            OPAL_DEFAULT_MCA_PARAM_CONF=openmpi-mca-params.conf

            OPAL_PARAM_FROM_PLATFORM="no"

        fi

    else
        OPAL_DEFAULT_MCA_PARAM_CONF=openmpi-mca-params.conf

    fi


#
# Init automake
#
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.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  $as_echo_n "(cached) " >&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
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

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
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
$as_echo "$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'

{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&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".
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&5
$as_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
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Check your system clock" >&5
$as_echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
fi
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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 $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

# 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=
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_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
  $as_echo_n "(cached) " >&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
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
$as_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.4.2'


# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

install_sh=${install_sh-"\$(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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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"}


{ $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
$as_echo_n "checking how to create a ustar tar archive... " >&6; }
# Loop over all known methods to create a tar archive until one works.
_am_tools='gnutar plaintar pax cpio none'
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
# Do not fold the above two line into one, because Tru64 sh and
# Solaris sh will not grok spaces in the rhs of `-'.
for _am_tool in $_am_tools
do
  case $_am_tool in
  gnutar)
    for _am_tar in tar gnutar gtar;
    do
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
   ($_am_tar --version) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } && break
    done
    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
    am__untar="$_am_tar -xf -"
    ;;
  plaintar)
    # Must skip GNU tar: if it does not support --format= it doesn't create
    # ustar tarball either.
    (tar --version) >/dev/null 2>&1 && continue
    am__tar='tar chf - "$$tardir"'
    am__tar_='tar chf - "$tardir"'
    am__untar='tar xf -'
    ;;
  pax)
    am__tar='pax -L -x ustar -w "$$tardir"'
    am__tar_='pax -L -x ustar -w "$tardir"'
    am__untar='pax -r'
    ;;
  cpio)
    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
    am__untar='cpio -i -H ustar -d'
    ;;
  none)
    am__tar=false
    am__tar_=false
    am__untar=false
    ;;
  esac

  # If the value was cached, stop now.  We just wanted to have am__tar
  # and am__untar set.
  test -n "${am_cv_prog_tar_ustar}" && break

  # tar/untar a dummy directory, and stop if the command works
  rm -rf conftest.dir
  mkdir conftest.dir
  echo GrepMe > conftest.dir/file
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
  rm -rf conftest.dir
  if test -s conftest.tar; then
    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
   ($am__untar <conftest.tar) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  fi
done
rm -rf conftest.dir

if test "${am_cv_prog_tar_ustar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  am_cv_prog_tar_ustar=$_am_tool
fi

{ $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
$as_echo "$am_cv_prog_tar_ustar" >&6; }








# 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
        ompi_vers=`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/
	s/^date/OMPI_RELEASE_DATE/
	t print
	b
	: print
	p" < "$srcdir/VERSION"`
	eval "$ompi_vers"

        # 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
                { $as_echo "$as_me:$LINENO: checking for SVN version" >&5
$as_echo_n "checking for SVN version... " >&6; }
                if test -d "$srcdir/.svn" ; then
                    OMPI_SVN_R=r`svnversion "$srcdir"`
                elif test -d "$srcdir/.hg" ; then
                    OMPI_SVN_R=hg`hg -v -R "$srcdir" tip | grep changeset | cut -d: -f3`
                fi
                if test "OMPI_SVN_R" = ""; then
                    OMPI_SVN_R=svn`date '+%m%d%Y'`
                fi
                { $as_echo "$as_me:$LINENO: result: done" >&5
$as_echo "done" >&6; }
            fi
            OMPI_VERSION="${OMPI_VERSION}${OMPI_SVN_R}"
        fi
    fi











    { $as_echo "$as_me:$LINENO: checking Open MPI version" >&5
$as_echo_n "checking Open MPI version... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $OMPI_VERSION" >&5
$as_echo "$OMPI_VERSION" >&6; }
    { $as_echo "$as_me:$LINENO: checking Open MPI release date" >&5
$as_echo_n "checking Open MPI release date... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $OMPI_RELEASE_DATE" >&5
$as_echo "$OMPI_RELEASE_DATE" >&6; }
    { $as_echo "$as_me:$LINENO: checking Open MPI Subversion repository version" >&5
$as_echo_n "checking Open MPI Subversion repository version... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $OMPI_SVN_R" >&5
$as_echo "$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


cat >>confdefs.h <<_ACEOF
#define OMPI_RELEASE_DATE "$OMPI_RELEASE_DATE"
_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
        ompi_vers=`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/
	s/^date/ORTE_RELEASE_DATE/
	t print
	b
	: print
	p" < "$srcdir/VERSION"`
	eval "$ompi_vers"

        # 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
                { $as_echo "$as_me:$LINENO: checking for SVN version" >&5
$as_echo_n "checking for SVN version... " >&6; }
                if test -d "$srcdir/.svn" ; then
                    ORTE_SVN_R=r`svnversion "$srcdir"`
                elif test -d "$srcdir/.hg" ; then
                    ORTE_SVN_R=hg`hg -v -R "$srcdir" tip | grep changeset | cut -d: -f3`
                fi
                if test "ORTE_SVN_R" = ""; then
                    ORTE_SVN_R=svn`date '+%m%d%Y'`
                fi
                { $as_echo "$as_me:$LINENO: result: done" >&5
$as_echo "done" >&6; }
            fi
            ORTE_VERSION="${ORTE_VERSION}${ORTE_SVN_R}"
        fi
    fi











    { $as_echo "$as_me:$LINENO: checking Open Run-Time Environment version" >&5
$as_echo_n "checking Open Run-Time Environment version... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $ORTE_VERSION" >&5
$as_echo "$ORTE_VERSION" >&6; }
    { $as_echo "$as_me:$LINENO: checking Open Run-Time Environment release date" >&5
$as_echo_n "checking Open Run-Time Environment release date... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $ORTE_RELEASE_DATE" >&5
$as_echo "$ORTE_RELEASE_DATE" >&6; }
    { $as_echo "$as_me:$LINENO: checking Open Run-Time Environment Subversion repository version" >&5
$as_echo_n "checking Open Run-Time Environment Subversion repository version... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $ORTE_SVN_R" >&5
$as_echo "$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


cat >>confdefs.h <<_ACEOF
#define ORTE_RELEASE_DATE "$ORTE_RELEASE_DATE"
_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
        ompi_vers=`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/
	s/^date/OPAL_RELEASE_DATE/
	t print
	b
	: print
	p" < "$srcdir/VERSION"`
	eval "$ompi_vers"

        # 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
                { $as_echo "$as_me:$LINENO: checking for SVN version" >&5
$as_echo_n "checking for SVN version... " >&6; }
                if test -d "$srcdir/.svn" ; then
                    OPAL_SVN_R=r`svnversion "$srcdir"`
                elif test -d "$srcdir/.hg" ; then
                    OPAL_SVN_R=hg`hg -v -R "$srcdir" tip | grep changeset | cut -d: -f3`
                fi
                if test "OPAL_SVN_R" = ""; then
                    OPAL_SVN_R=svn`date '+%m%d%Y'`
                fi
                { $as_echo "$as_me:$LINENO: result: done" >&5
$as_echo "done" >&6; }
            fi
            OPAL_VERSION="${OPAL_VERSION}${OPAL_SVN_R}"
        fi
    fi











    { $as_echo "$as_me:$LINENO: checking Open Portable Access Layer version" >&5
$as_echo_n "checking Open Portable Access Layer version... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $OPAL_VERSION" >&5
$as_echo "$OPAL_VERSION" >&6; }
    { $as_echo "$as_me:$LINENO: checking Open Portable Access Layer release date" >&5
$as_echo_n "checking Open Portable Access Layer release date... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $OPAL_RELEASE_DATE" >&5
$as_echo "$OPAL_RELEASE_DATE" >&6; }
    { $as_echo "$as_me:$LINENO: checking Open Portable Access Layer Subversion repository version" >&5
$as_echo_n "checking Open Portable Access Layer Subversion repository version... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $OPAL_SVN_R" >&5
$as_echo "$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


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


    ac_config_files="$ac_config_files opal/include/opal/version.h"



# Get shared library version numbers

. $srcdir/VERSION





# It's icky that we have to hard-code the names of the
# common components here.  :-( This could probably be done
# transparently by adding some intelligence in autogen.sh
# and/or ompi_mca.m4, but I don't have the cycles to do this
# right now.






# List header files to generate

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"


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

{ $as_echo "$as_me:$LINENO: builddir: $OMPI_TOP_BUILDDIR" >&5
$as_echo "$as_me: builddir: $OMPI_TOP_BUILDDIR" >&6;}
{ $as_echo "$as_me:$LINENO: srcdir: $OMPI_TOP_SRCDIR" >&5
$as_echo "$as_me: srcdir: $OMPI_TOP_SRCDIR" >&6;}
if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then
    { $as_echo "$as_me:$LINENO: Detected VPATH build" >&5
$as_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 ||
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   { (exit 1); exit 1; }; }

{ $as_echo "$as_me:$LINENO: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if test "${ac_cv_build+set}" = set; then
  $as_echo_n "(cached) " >&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 &&
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
$as_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` ||
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
$as_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)
#

{ $as_echo "$as_me:$LINENO: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if test "${ac_cv_host+set}" = set; then
  $as_echo_n "(cached) " >&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` ||
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   { (exit 1); exit 1; }; }
fi

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
$as_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
  $as_echo_n "checking for prefix by " >&6
  # Extract the first word of "ompi_clean", so it can be a program name with args.
set dummy ompi_clean; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ac_prefix_program+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
$as_echo "$ac_prefix_program" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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 ||
$as_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 ||
$as_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\"
    ;;
  *)
    { { $as_echo "$as_me:$LINENO: error: prefix \"$prefix\" must be an absolute directory path" >&5
$as_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
    { $as_echo "$as_me:$LINENO: WARNING: Configuring in 'make dist' mode" >&5
$as_echo "$as_me: WARNING: Configuring in 'make dist' mode" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: Most make targets may be non-functional!" >&5
$as_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"

#
# Is this a developer copy?
#
if test -d .svn -o -d .hg; then
    OMPI_DEVEL=1
else
    OMPI_DEVEL=0
fi

#
# Code coverage options
#
{ $as_echo "$as_me:$LINENO: checking whether to run code coverage" >&5
$as_echo_n "checking whether to run code coverage... " >&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
        { $as_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
$as_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;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue processing" >&5
$as_echo "$as_me: error: Cannot continue processing" >&2;}
   { (exit 1); exit 1; }; }
    fi
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_COVERAGE=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WANT_COVERAGE=0
fi


#
# Branch Probabilities options
#
{ $as_echo "$as_me:$LINENO: checking whether to compile with branch probabilities" >&5
$as_echo_n "checking whether to compile with branch probabilities... " >&6; }
# Check whether --enable-branch-probabilities was given.
if test "${enable_branch_probabilities+set}" = set; then
  enableval=$enable_branch_probabilities;
fi

if test "$enable_branch_probabilities" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_BRANCH_PROBABILITIES=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WANT_BRANCH_PROBABILITIES=0
fi


#
# Memory debugging
#

{ $as_echo "$as_me:$LINENO: checking whether to debug memory usage" >&5
$as_echo_n "checking whether to debug memory usage... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_MEM_DEBUG=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WANT_MEM_DEBUG=0
fi
#################### Early development override ####################
if test "$WANT_MEM_DEBUG" = "0" -a -z "$enable_mem_debug" -a "$OMPI_DEVEL" = 1; 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
#

{ $as_echo "$as_me:$LINENO: checking whether to profile memory usage" >&5
$as_echo_n "checking whether to profile memory usage... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_MEM_PROFILE=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WANT_MEM_PROFILE=0
fi
#################### Early development override ####################
if test "$WANT_MEM_PROFILE" = "0" -a -z "$enable_mem_profile" -a "$OMPI_DEVEL" = 1; 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
#

{ $as_echo "$as_me:$LINENO: checking if want developer-level compiler pickyness" >&5
$as_echo_n "checking if want developer-level compiler pickyness... " >&6; }
# Check whether --enable-picky was given.
if test "${enable_picky+set}" = set; then
  enableval=$enable_picky;
fi

if test "$enable_picky" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_PICKY_COMPILER=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WANT_PICKY_COMPILER=0
fi
#################### Early development override ####################
if test "$WANT_PICKY_COMPILER" = "0" -a -z "$enable_picky" -a "$OMPI_DEVEL" = 1; then
    WANT_PICKY_COMPILER=1
    echo "--> developer override: enable picky compiler by default"
fi
#################### Early development override ####################

#
# Developer debugging
#

{ $as_echo "$as_me:$LINENO: checking if want developer-level debugging code" >&5
$as_echo_n "checking if want developer-level debugging code... " >&6; }
# Check whether --enable-debug was given.
if test "${enable_debug+set}" = set; then
  enableval=$enable_debug;
fi

if test "$enable_debug" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_DEBUG=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WANT_DEBUG=0
fi
#################### Early development override ####################
if test "$WANT_DEBUG" = "0" -a -z "$enable_debug" -a "$OMPI_DEVEL" = 1; 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


#
# Sparse Groups
#

{ $as_echo "$as_me:$LINENO: checking if want sparse process groups" >&5
$as_echo_n "checking if want sparse process groups... " >&6; }
# Check whether --enable-sparse-groups was given.
if test "${enable_sparse_groups+set}" = set; then
  enableval=$enable_sparse_groups;
fi

if test "$enable_sparse_groups" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    GROUP_SPARSE=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    GROUP_SPARSE=0
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_GROUP_SPARSE $GROUP_SPARSE
_ACEOF


#
# Fortran 77
#

{ $as_echo "$as_me:$LINENO: checking if want Fortran 77 bindings" >&5
$as_echo_n "checking if want Fortran 77 bindings... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    OMPI_WANT_F77_BINDINGS=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    OMPI_WANT_F77_BINDINGS=0
fi


#
# Fortran 90
#

{ $as_echo "$as_me:$LINENO: checking if want Fortran 90 bindings" >&5
$as_echo_n "checking if want Fortran 90 bindings... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    OMPI_WANT_F90_BINDINGS=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    OMPI_WANT_F90_BINDINGS=0
fi

{ $as_echo "$as_me:$LINENO: checking desired Fortran 90 bindings \"size\"" >&5
$as_echo_n "checking desired Fortran 90 bindings \"size\"... " >&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
    { $as_echo "$as_me:$LINENO: result: disabled (Fortran 90 bindings disabled)" >&5
$as_echo "disabled (Fortran 90 bindings disabled)" >&6; }
elif test "$with_mpi_f90_size" = "no"; then
    OMPI_WANT_F90_BINDINGS=0
    { $as_echo "$as_me:$LINENO: result: disabling F90 MPI module (used specified)" >&5
$as_echo "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
        { $as_echo "$as_me:$LINENO: result: Unrecognized size: $with_mpi_f90_size" >&5
$as_echo "Unrecognized size: $with_mpi_f90_size" >&6; }
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



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

#
# MPI profiling
#

{ $as_echo "$as_me:$LINENO: checking whether to enable PMPI" >&5
$as_echo_n "checking whether to enable PMPI... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_MPI_PROFILING=1
    MPIF_H_PMPI_W_FUNCS=", PMPI_WTICK, PMPI_WTIME"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WANT_MPI_PROFILING=0
    MPIF_H_PMPI_W_FUNCS=
fi



#
# C++
#

{ $as_echo "$as_me:$LINENO: checking if want C++ bindings" >&5
$as_echo_n "checking if want C++ bindings... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_MPI_CXX_SUPPORT=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WANT_MPI_CXX_SUPPORT=0
fi

{ $as_echo "$as_me:$LINENO: checking if want MPI::SEEK_SET support" >&5
$as_echo_n "checking if want MPI::SEEK_SET support... " >&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
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
  OMPI_WANT_MPI_CXX_SEEK=1
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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?
#

{ $as_echo "$as_me:$LINENO: checking if want to enable weak symbol support" >&5
$as_echo_n "checking if want to enable weak symbol support... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_WEAK_SYMBOLS=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WANT_WEAK_SYMBOLS=0
fi

#
# Do we want to disable MPI parameter checking at run-time?
#

{ $as_echo "$as_me:$LINENO: checking if want run-time MPI parameter checking" >&5
$as_echo_n "checking if want run-time MPI parameter checking... " >&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
    { $as_echo "$as_me:$LINENO: result: never" >&5
$as_echo "never" >&6; }
elif test "$with_mpi_param_check" = "yes" -o \
    "$with_mpi_param_check" = "always"; then
    mpi_param_check=1
    { $as_echo "$as_me:$LINENO: result: always" >&5
$as_echo "always" >&6; }
elif test "$with_mpi_param_check" = "runtime" -o \
    -z "$with_mpi_params_check"; then
    { $as_echo "$as_me:$LINENO: result: runtime" >&5
$as_echo "runtime" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: unknown" >&5
$as_echo "unknown" >&6; }
    { $as_echo "$as_me:$LINENO: WARNING: *** Unrecognized --with-mpi-param-check value" >&5
$as_echo "$as_me: WARNING: *** Unrecognized --with-mpi-param-check value" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: *** See \"configure --help\" output" >&5
$as_echo "$as_me: WARNING: *** See \"configure --help\" output" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: *** Defaulting to \"runtime\"" >&5
$as_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?
#

{ $as_echo "$as_me:$LINENO: checking if want to install OMPI header files" >&5
$as_echo_n "checking if want to install OMPI header files... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_INSTALL_HEADERS=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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?
#
{ $as_echo "$as_me:$LINENO: checking if want pretty-print stacktrace" >&5
$as_echo_n "checking if want pretty-print stacktrace... " >&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
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WANT_PRETTY_PRINT_STACKTRACE=0
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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 to enable peruse interface?
#

{ $as_echo "$as_me:$LINENO: checking if peruse support is required" >&5
$as_echo_n "checking if peruse support is required... " >&6; }
# Check whether --enable-peruse was given.
if test "${enable_peruse+set}" = set; then
  enableval=$enable_peruse;
fi

if test "$enable_peruse" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WANT_PERUSE=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking max supported array dimension in F90 MPI bindings" >&5
$as_echo_n "checking max supported array dimension in F90 MPI bindings... " >&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 an integer!), and >=1 and <=7
    expr $with_f90_max_array_dim + 1 > /dev/null 2> /dev/null
    happy=1
    if test "$?" != "0"; then
  happy=0
else
  expr $with_f90_max_array_dim \>= 1 \& $with_f90_max_array_dim \<= 7 > /dev/null 2>/dev/null
           if test "$?" != "0"; then
  happy=0
fi

fi


    # If badness in the above tests, bail
    if test "$happy" = "0"; then
  { $as_echo "$as_me:$LINENO: result: bad value ($with_f90_max_array_dim)" >&5
$as_echo "bad value ($with_f90_max_array_dim)" >&6; }
           { $as_echo "$as_me:$LINENO: WARNING: --with-f90-max-array-dim value must be >=1 and <=7" >&5
$as_echo "$as_me: WARNING: --with-f90-max-array-dim value must be >=1 and <=7" >&2;}
           { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
fi

    OMPI_FORTRAN_MAX_ARRAY_RANK="$with_f90_max_array_dim"
fi
{ $as_echo "$as_me:$LINENO: result: $OMPI_FORTRAN_MAX_ARRAY_RANK" >&5
$as_echo "$OMPI_FORTRAN_MAX_ARRAY_RANK" >&6; }


# do we want PTY support?
{ $as_echo "$as_me:$LINENO: checking if pty support should be enabled" >&5
$as_echo_n "checking if pty support should be enabled... " >&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
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    OMPI_ENABLE_PTY_SUPPORT=0
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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?
#
{ $as_echo "$as_me:$LINENO: checking if user wants dlopen support" >&5
$as_echo_n "checking if user wants dlopen support... " >&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
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
else
    OMPI_ENABLE_DLOPEN_SUPPORT=1
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
fi

#
# Heterogeneous support
#

{ $as_echo "$as_me:$LINENO: checking if heterogeneous support should be enabled" >&5
$as_echo_n "checking if heterogeneous support should be enabled... " >&6; }
# Check whether --enable-heterogeneous was given.
if test "${enable_heterogeneous+set}" = set; then
  enableval=$enable_heterogeneous;
fi

if test "$enable_heterogeneous" = "yes" ; then
     { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
     ompi_want_heterogeneous=1
else
     { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
     ompi_want_heterogeneous=0
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_HETEROGENEOUS_SUPPORT $ompi_want_heterogeneous
_ACEOF


#
# Internal trace file logging (debugging)
#

{ $as_echo "$as_me:$LINENO: checking if want trace file debugging" >&5
$as_echo_n "checking if want trace file debugging... " >&6; }
# Check whether --enable-trace was given.
if test "${enable_trace+set}" = set; then
  enableval=$enable_trace;
fi

if test "$enable_trace" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    opal_want_trace=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    opal_want_trace=0
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_TRACE $opal_want_trace
_ACEOF



#
# Minimal RTE support
#
{ $as_echo "$as_me:$LINENO: checking if want full RTE support" >&5
$as_echo_n "checking if want full RTE support... " >&6; }

# Check whether --with-rte-support was given.
if test "${with_rte_support+set}" = set; then
  withval=$with_rte_support;
fi

if test "$with_rte_support" = "no"; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    orte_without_full_support=1
    list_of_frameworks="errmgr,ess-singleton,ess-hnp,ess-tool,ess-env,filem,grpcomm-basic,grpcomm-bad,iof,odls,oob,plm,ras,rmaps,rml,routed,snapc,btl-sm,coll-sm,common-sm,mpool-sm,dpm-orte,pubsub-orte"
    if test -z $enable_mca_no_build ; then
      enable_mca_no_build="$list_of_frameworks"
    else
      enable_mca_no_build="$enable_mca_no_build,$list_of_frameworks"
    fi
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    orte_without_full_support=0
fi

cat >>confdefs.h <<_ACEOF
#define ORTE_DISABLE_FULL_SUPPORT $orte_without_full_support
_ACEOF

 if test "$with_rte_support" = "no"; then
  ORTE_DISABLE_FULL_SUPPORT_TRUE=
  ORTE_DISABLE_FULL_SUPPORT_FALSE='#'
else
  ORTE_DISABLE_FULL_SUPPORT_TRUE='#'
  ORTE_DISABLE_FULL_SUPPORT_FALSE=
fi


#
# 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
    { { $as_echo "$as_me:$LINENO: error: --with-cross argument must include FILE option" >&5
$as_echo "$as_me: error: --with-cross argument must include FILE option" >&2;}
   { (exit 1); exit 1; }; }
elif test "$with_cross" = "no" ; then
    { { $as_echo "$as_me:$LINENO: error: --without-cross is not a valid argument" >&5
$as_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
        { { $as_echo "$as_me:$LINENO: error: could not find cross-compile data file $with_cross" >&5
$as_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:5473: 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

#
# --with-ft=TYPE
#  TYPE:
#    - LAM (synonym for 'cr' currently)
#    - cr
#  /* General FT sections */
#  #if OPAL_ENABLE_FT == 0 /* FT Disabled globaly */
#  #if OPAL_ENABLE_FT == 1 /* FT Enabled globaly */
#  /* CR Specific sections */
#  #if OPAL_ENABLE_FT_CR == 0 /* FT Ckpt/Restart Disabled */
#  #if OPAL_ENABLE_FT_CR == 1 /* FT Ckpt/Restart Enabled */
#
{ $as_echo "$as_me:$LINENO: checking if want fault tolerance" >&5
$as_echo_n "checking if want fault tolerance... " >&6; }

# Check whether --with-ft was given.
if test "${with_ft+set}" = set; then
  withval=$with_ft; ompi_want_ft=1
else
  ompi_want_ft=0
fi

if test "$with_ft" = "no" -o "$ompi_want_ft" = "0"; then
    ompi_want_ft=0
    ompi_want_ft_cr=0
    { $as_echo "$as_me:$LINENO: result: Disabled fault tolerance" >&5
$as_echo "Disabled fault tolerance" >&6; }
else
    ompi_want_ft=1
    ompi_want_ft_cr=0
    ompi_want_ft_type=none

    # Default value
    if test "$with_ft" = "" -o "$with_ft" = "yes"; then
        ompi_want_ft_type=cr
        ompi_want_ft_cr=1
    elif test "$with_ft" = "LAM"; then
        ompi_want_ft_type=lam
        ompi_want_ft_cr=1
    elif test "$with_ft" = "lam"; then
        ompi_want_ft_type=lam
        ompi_want_ft_cr=1
    elif test "$with_ft" = "CR"; then
        ompi_want_ft_type=cr
        ompi_want_ft_cr=1
    elif test "$with_ft" = "cr"; then
        ompi_want_ft_type=cr
        ompi_want_ft_cr=1
    else
        { $as_echo "$as_me:$LINENO: result: Unrecognized FT TYPE: $with_ft" >&5
$as_echo "Unrecognized FT TYPE: $with_ft" >&6; }
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi
    { $as_echo "$as_me:$LINENO: result: Enabled $with_ft ($ompi_want_ft_type)" >&5
$as_echo "Enabled $with_ft ($ompi_want_ft_type)" >&6; }
    { $as_echo "$as_me:$LINENO: WARNING: **************************************************" >&5
$as_echo "$as_me: WARNING: **************************************************" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: *** Fault Tolerance Integration into Open MPI is *" >&5
$as_echo "$as_me: WARNING: *** Fault Tolerance Integration into Open MPI is *" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: *** a research quality implementation, and care  *" >&5
$as_echo "$as_me: WARNING: *** a research quality implementation, and care  *" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: *** should be used when choosing to enable it.   *" >&5
$as_echo "$as_me: WARNING: *** should be used when choosing to enable it.   *" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: **************************************************" >&5
$as_echo "$as_me: WARNING: **************************************************" >&2;}
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_FT $ompi_want_ft
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_FT_CR $ompi_want_ft_cr
_ACEOF

 if test "$ompi_want_ft" = "1"; then
  WANT_FT_TRUE=
  WANT_FT_FALSE='#'
else
  WANT_FT_TRUE='#'
  WANT_FT_FALSE=
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


# Check whether --enable-script-wrapper-compilers was given.
if test "${enable_script_wrapper_compilers+set}" = set; then
  enableval=$enable_script_wrapper_compilers;
fi

 if test "$enable_script_wrapper_compilers" = "yes"; then
  OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE=
  OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE='#'
else
  OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE='#'
  OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE=
fi

ac_config_files="$ac_config_files ompi/tools/wrappers/ompi_wrapper_script"


#
# Support per-user config files?
#
# Check whether --enable-per-user-config-files was given.
if test "${enable_per_user_config_files+set}" = set; then
  enableval=$enable_per_user_config_files;
fi

if test "$enable_per_user_config_files" = "no" ; then
  result=0
else
  result=1
fi

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


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

if test "$enable_ipv6" = "no"; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    opal_want_ipv6=0
else
    { $as_echo "$as_me:$LINENO: result: yes (if underlying system supports it)" >&5
$as_echo "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?
#
{ $as_echo "$as_me:$LINENO: checking if want orterun \"--prefix\" behavior to be enabled by default" >&5
$as_echo_n "checking if want orterun \"--prefix\" behavior to be enabled by default... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    orte_want_orterun_prefix_by_default=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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


#
# Package/brand string
#
{ $as_echo "$as_me:$LINENO: checking for package/brand string" >&5
$as_echo_n "checking for package/brand string... " >&6; }

# Check whether --with-package-string was given.
if test "${with_package_string+set}" = set; then
  withval=$with_package_string;
fi

if test "$with_package_string" = "" -o "$with_package_string" = "no"; then
    with_package_string="Open MPI $OMPI_CONFIGURE_USER@$OMPI_CONFIGURE_HOST Distribution"
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_PACKAGE_STRING "$with_package_string"
_ACEOF

{ $as_echo "$as_me:$LINENO: result: $with_package_string" >&5
$as_echo "$with_package_string" >&6; }

#
# Ident string
#
{ $as_echo "$as_me:$LINENO: checking for ident string" >&5
$as_echo_n "checking for ident string... " >&6; }

# Check whether --with-ident-string was given.
if test "${with_ident_string+set}" = set; then
  withval=$with_ident_string;
fi

if test "$with_ident_string" = "" -o "$with_ident_string" = "no"; then
    with_ident_string="%VERSION%"
fi
with_ident_string="`echo $with_ident_string | sed -e 's/%VERSION%/'$OMPI_VERSION/`"

cat >>confdefs.h <<_ACEOF
#define OPAL_IDENT_STRING "$with_ident_string"
_ACEOF

{ $as_echo "$as_me:$LINENO: result: $with_ident_string" >&5
$as_echo "$with_ident_string" >&6; }


#
# Add padding to OpenIB header
#
{ $as_echo "$as_me:$LINENO: checking whether to add padding to the openib control header" >&5
$as_echo_n "checking whether to add padding to the openib control header... " >&6; }

# Check whether --with-openib-control-hdr-padding was given.
if test "${with_openib_control_hdr_padding+set}" = set; then
  withval=$with_openib_control_hdr_padding;
fi

if test "$with_openib_control_hdr_padding" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    ompi_openib_pad_hdr=1
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ompi_openib_pad_hdr=0
fi

cat >>confdefs.h <<_ACEOF
#define OMPI_OPENIB_PAD_HDR $ompi_openib_pad_hdr
_ACEOF



#
# Use alternative checksum algorithm
#
{ $as_echo "$as_me:$LINENO: checking whether to use an alternative checksum algo for messages" >&5
$as_echo_n "checking whether to use an alternative checksum algo for messages... " >&6; }

# Check whether --with-dst-checksum was given.
if test "${with_dst_checksum+set}" = set; then
  withval=$with_dst_checksum;
fi

if test "$with_dst_checksum" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    CFLAGS="-DOMPI_CSUM_DST $CFLAGS"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi



if test "$enable_binaries" = "no" -a "$enable_dist" = "yes"; then
    { $as_echo "$as_me:$LINENO: WARNING: --disable-binaries is incompatible with --enable dist" >&5
$as_echo "$as_me: WARNING: --disable-binaries is incompatible with --enable dist" >&2;}
    { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
fi

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

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

ompi_enable_shared="$enable_shared"
ompi_enable_static="$enable_static"
# Check whether --enable-shared 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
        { { $as_echo "$as_me:$LINENO: error: --with-wrapper-cflags must have an argument.  Aborting" >&5
$as_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
        { { $as_echo "$as_me:$LINENO: error: --with-wrapper-cxxflags must have an argument.  Aborting" >&5
$as_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
        { { $as_echo "$as_me:$LINENO: error: --with-wrapper-fflags must have an argument.  Aborting" >&5
$as_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
        { { $as_echo "$as_me:$LINENO: error: --with-wrapper-fcflags must have an argument.  Aborting" >&5
$as_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
        { { $as_echo "$as_me:$LINENO: error: --with-wrapper-ldflags must have an argument.  Aborting" >&5
$as_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
        { { $as_echo "$as_me:$LINENO: error: --with-wrapper-libs must have an argument.  Aborting" >&5
$as_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.
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
$as_echo_n "checking for style of include used by $am_make... " >&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


{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
$as_echo "$_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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
$as_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.
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  $as_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.out.dSYM 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.
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_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 | *.dSYM | *.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

{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
if test -z "$ac_file"; then
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
$as_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.
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_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
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_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
$as_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
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

rm -f -r a.out a.out.dSYM 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.
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if test "${ac_cv_objext+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_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 | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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)
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$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=

{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$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

    set dummy $CC
    ompi_cc_argv0=$2

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=$ompi_cc_argv0

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OMPI_CC_ABSOLUTE="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done




if test "x$CC" != xcc; then
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
else
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
fi
set dummy $CC; ac_cc=`$as_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
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_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
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&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
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
$as_echo "$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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
$as_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


{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  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
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_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
  if test -z "$ac_cv_path_GREP"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
  fi
else
  ac_cv_path_GREP=$GREP
fi

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


{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  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
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_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
  if test -z "$ac_cv_path_EGREP"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable egrep 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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
$as_echo "$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.








    { $as_echo "$as_me:$LINENO: checking for the C compiler vendor" >&5
$as_echo_n "checking for the C compiler vendor... " >&6; }
if test "${ompi_cv_c_compiler_vendor+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_compiler_vendor" >&5
$as_echo "$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.
    { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
$as_echo "$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=

            { $as_echo "$as_me:$LINENO: checking if $CC supports --coverage" >&5
$as_echo_n "checking if $CC supports --coverage... " >&6; }
if test "${ompi_cv_cc_coverage+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cc_coverage" >&5
$as_echo "$ompi_cv_cc_coverage" >&6; }

            if test "$ompi_cv_cc_coverage" = "yes" ; then
                OMPI_COVERAGE_FLAGS="--coverage"
                CLEANFILES="*.gcno ${CLEANFILES}"
                CONFIG_CLEAN_FILES="*.gcda *.gcov ${CONFIG_CLEAN_FILES}"
            else
                OMPI_COVERAGE_FLAGS="-ftest-coverage -fprofile-arcs"
                CLEANFILES="*.bb *.bbg ${CLEANFILES}"
                CONFIG_CLEAN_FILES="*.da *.*.gcov ${CONFIG_CLEAN_FILES}"
            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
            { $as_echo "$as_me:$LINENO: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5
$as_echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;}

            WANT_DEBUG=1
        else
            { $as_echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC" >&5
$as_echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Configure: Cannot continue" >&5
$as_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
        { $as_echo "$as_me:$LINENO: WARNING: -g has been added to CFLAGS (--enable-debug)" >&5
$as_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"
        # Starting with GCC-4.4, the compiler complains about not
        # knowing -Wno-long-double, only if -Wstrict-prototypes is set, too.
        #
        # Actually, this is not real fix, as GCC will pass on any -Wno- flag,
        # have fun with the warning: -Wno-britney
        CFLAGS="$CFLAGS $add -Wno-long-double -Wstrict-prototypes"

        { $as_echo "$as_me:$LINENO: checking if $CC supports -Wno-long-double" >&5
$as_echo_n "checking if $CC supports -Wno-long-double... " >&6; }
if test "${ompi_cv_cc_wno_long_double+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cc_wno_long_double" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS (--enable-picky)" >&5
$as_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=
        { $as_echo "$as_me:$LINENO: checking if $CC supports -finline-functions" >&5
$as_echo_n "checking if $CC supports -finline-functions... " >&6; }
if test "${ompi_cv_cc_finline_functions+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cc_finline_functions" >&5
$as_echo "$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=
        { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
if test "${ompi_cv_cc_fno_strict_aliasing+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cc_fno_strict_aliasing" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5
$as_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=
        { $as_echo "$as_me:$LINENO: checking if $CC supports $RESTRICT_CFLAGS" >&5
$as_echo_n "checking if $CC supports $RESTRICT_CFLAGS... " >&6; }
if test "${ompi_cv_cc_restrict_cflags+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cc_restrict_cflags" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5
$as_echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
        fi
        unset add
    fi

    # see if the C compiler supports __builtin_expect
    { $as_echo "$as_me:$LINENO: checking if $CC supports __builtin_expect" >&5
$as_echo_n "checking if $CC supports __builtin_expect... " >&6; }
if test "${ompi_cv_cc_supports___builtin_expect+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_cc_supports___builtin_expect="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_cc_supports___builtin_expect="no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cc_supports___builtin_expect" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if $CC supports __builtin_prefetch" >&5
$as_echo_n "checking if $CC supports __builtin_prefetch... " >&6; }
if test "${ompi_cv_cc_supports___builtin_prefetch+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_cc_supports___builtin_prefetch="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_cc_supports___builtin_prefetch="no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cc_supports___builtin_prefetch" >&5
$as_echo "$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
    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
    # for an explanation of [ and ] -- they m4 expand to [ and ]
    case $co_word in
    -g)              co_found=1 ;;
    -g[1-3])   co_found=1 ;;
    +K[0-5])   co_found=1 ;;
    -O)              co_found=1 ;;
    -O[0-9])   co_found=1 ;;
    -xO)             co_found=1 ;;
    -xO[0-9])  co_found=1 ;;
    -fast)           co_found=1 ;;

    # The below Sun Studio flags require or
    # trigger -xO optimization
    -xvector*)     co_found=1 ;;
    -xdepend=yes)  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"

    { $as_echo "$as_me:$LINENO: checking for C optimization flags" >&5
$as_echo_n "checking for C optimization flags... " >&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
    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
    # for an explanation of [ and ] -- they m4 expand to [ and ]
    case $co_word in
    -g)              co_found=1 ;;
    -g[1-3])   co_found=1 ;;
    +K[0-5])   co_found=1 ;;
    -O)              co_found=1 ;;
    -O[0-9])   co_found=1 ;;
    -xO)             co_found=1 ;;
    -xO[0-9])  co_found=1 ;;
    -fast)           co_found=1 ;;

    # The below Sun Studio flags require or
    # trigger -xO optimization
    -xvector*)     co_found=1 ;;
    -xdepend=yes)  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

    { $as_echo "$as_me:$LINENO: result: $co_result" >&5
$as_echo "$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


# Do all Interix detections if necessary


    { $as_echo "$as_me:$LINENO: checking for Interix environment" >&5
$as_echo_n "checking for Interix environment... " >&6; }
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#if !defined(__INTERIX)
                    #error Normal Unix environment
                    #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  is_interix=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	is_interix=no
fi

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

        ompi_show_subtitle "Interix detection"

        if ! test -d /usr/include/port; then
            { $as_echo "$as_me:$LINENO: WARNING: Compiling Open MPI under Interix require an up-to-date" >&5
$as_echo "$as_me: WARNING: Compiling Open MPI under Interix require an up-to-date" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: version of libport. Please ask your system administrator" >&5
$as_echo "$as_me: WARNING: version of libport. Please ask your system administrator" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: to install it (pkg_update -L libport)." >&5
$as_echo "$as_me: WARNING: to install it (pkg_update -L libport)." >&2;}
            { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
        #
        # These are the minimum requirements for Interix ...
        #
        { $as_echo "$as_me:$LINENO: WARNING:     -lport was added to the linking flags" >&5
$as_echo "$as_me: WARNING:     -lport was added to the linking flags" >&2;}
        LDFLAGS="-lport $LDFLAGS"
        { $as_echo "$as_me:$LINENO: WARNING:     -D_ALL_SOURCE -D_USE_LIBPORT was added to the compilation flags" >&5
$as_echo "$as_me: WARNING:     -D_ALL_SOURCE -D_USE_LIBPORT was added to the compilation flags" >&2;}
        CFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CFLAGS"
        CPPFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CPPFLAGS"
        CXXFLAGS="-D_ALL_SOURCE -D_USE_LIBPORT -I/usr/include/port $CXXFLAGS"

    fi



# Does the compiler support "ident"-like constructs?


    { $as_echo "$as_me:$LINENO: checking for C ident string support" >&5
$as_echo_n "checking for C ident string support... " >&6; }

    ompi_pragma_ident_happy=0
    ompi_ident_happy=0
    ompi_static_const_char_happy=0

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:10408: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:10415: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_ident_happy=1
         ompi_message="#pragma ident"
else

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:10450: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:10457: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:10492: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:10499: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:10522: 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_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:10552: 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

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:10582: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:10589: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:10612: 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_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:10656: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:10663: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:10686: 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_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:10726: 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

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:10756: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:10763: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:10798: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:10805: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:10828: 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_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:10858: 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

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:10888: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:10895: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:10918: 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_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:10962: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:10969: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:10992: 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_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:11046: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:11053: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:11088: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:11095: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:11118: 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_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:11148: 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

    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:11178: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:11185: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:11208: 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_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CC"
    eval ompi_flags="\$CFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.c <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:11252: $ompi_compiler $ompi_flags -c conftest.c -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -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:11259: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
    echo "configure:11282: 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_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}



cat >>confdefs.h <<_ACEOF
#define OMPI_CC_USE_PRAGMA_IDENT $ompi_pragma_ident_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_CC_USE_IDENT $ompi_ident_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_CC_USE_PRAGMA_COMMENT $ompi_pragma_comment_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_CC_USE_CONST_CHAR_IDENT $ompi_static_const_char_happy
_ACEOF


    { $as_echo "$as_me:$LINENO: result: $ompi_message" >&5
$as_echo "$ompi_message" >&6; }

    unset ompi_pragma_ident_happy ompi_ident_happy ompi_static_const_char_happy ompi_message


#
# 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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


{ $as_echo "$as_me:$LINENO: checking for long long" >&5
$as_echo_n "checking for long long... " >&6; }
if test "${ac_cv_type_long_long+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_long_long=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (long long))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((long long)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_long_long=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
$as_echo "$ac_cv_type_long_long" >&6; }
if test "x$ac_cv_type_long_long" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for long double" >&5
$as_echo_n "checking for long double... " >&6; }
if test "${ac_cv_type_long_double+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_long_double=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (long double))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((long double)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_long_double=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
$as_echo "$ac_cv_type_long_double" >&6; }
if test "x$ac_cv_type_long_double" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
$as_echo_n "checking for int8_t... " >&6; }
if test "${ac_cv_type_int8_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_int8_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (int8_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((int8_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int8_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
$as_echo "$ac_cv_type_int8_t" >&6; }
if test "x$ac_cv_type_int8_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
$as_echo_n "checking for uint8_t... " >&6; }
if test "${ac_cv_type_uint8_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_uint8_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (uint8_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((uint8_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uint8_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
$as_echo "$ac_cv_type_uint8_t" >&6; }
if test "x$ac_cv_type_uint8_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
$as_echo_n "checking for int16_t... " >&6; }
if test "${ac_cv_type_int16_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_int16_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (int16_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((int16_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int16_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
$as_echo "$ac_cv_type_int16_t" >&6; }
if test "x$ac_cv_type_int16_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
$as_echo_n "checking for uint16_t... " >&6; }
if test "${ac_cv_type_uint16_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_uint16_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (uint16_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((uint16_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uint16_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
$as_echo "$ac_cv_type_uint16_t" >&6; }
if test "x$ac_cv_type_uint16_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
$as_echo_n "checking for int32_t... " >&6; }
if test "${ac_cv_type_int32_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_int32_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (int32_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((int32_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int32_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
$as_echo "$ac_cv_type_int32_t" >&6; }
if test "x$ac_cv_type_int32_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
$as_echo_n "checking for uint32_t... " >&6; }
if test "${ac_cv_type_uint32_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_uint32_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (uint32_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((uint32_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uint32_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
$as_echo "$ac_cv_type_uint32_t" >&6; }
if test "x$ac_cv_type_uint32_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
$as_echo_n "checking for int64_t... " >&6; }
if test "${ac_cv_type_int64_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_int64_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (int64_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((int64_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_int64_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
$as_echo "$ac_cv_type_int64_t" >&6; }
if test "x$ac_cv_type_int64_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
$as_echo_n "checking for uint64_t... " >&6; }
if test "${ac_cv_type_uint64_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_uint64_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (uint64_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((uint64_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uint64_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
$as_echo "$ac_cv_type_uint64_t" >&6; }
if test "x$ac_cv_type_uint64_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
$as_echo_n "checking for intptr_t... " >&6; }
if test "${ac_cv_type_intptr_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_intptr_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (intptr_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((intptr_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_intptr_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
$as_echo "$ac_cv_type_intptr_t" >&6; }
if test "x$ac_cv_type_intptr_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
$as_echo_n "checking for uintptr_t... " >&6; }
if test "${ac_cv_type_uintptr_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_uintptr_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (uintptr_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((uintptr_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_uintptr_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
$as_echo "$ac_cv_type_uintptr_t" >&6; }
if test "x$ac_cv_type_uintptr_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
$as_echo_n "checking for mode_t... " >&6; }
if test "${ac_cv_type_mode_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_mode_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (mode_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((mode_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_mode_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
$as_echo "$ac_cv_type_mode_t" >&6; }
if test "x$ac_cv_type_mode_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
$as_echo_n "checking for ssize_t... " >&6; }
if test "${ac_cv_type_ssize_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_ssize_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (ssize_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((ssize_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_ssize_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
$as_echo "$ac_cv_type_ssize_t" >&6; }
if test "x$ac_cv_type_ssize_t" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
$as_echo_n "checking for ptrdiff_t... " >&6; }
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_ptrdiff_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (ptrdiff_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((ptrdiff_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_ptrdiff_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then

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


fi


#
# Check for type sizes
#

# 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.
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
$as_echo_n "checking size of char... " >&6; }
if test "${ac_cv_sizeof_char+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (char)); }
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (char))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (char))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (char))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_char=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_char" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
$as_echo "$ac_cv_sizeof_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR $ac_cv_sizeof_char
_ACEOF


# 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.
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if test "${ac_cv_sizeof_short+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (short)); }
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (short))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (short))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (short))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_short=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# 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.
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if test "${ac_cv_sizeof_int+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (int)); }
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (int))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (int))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (int))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_int=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# 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.
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if test "${ac_cv_sizeof_long+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (long)); }
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (long))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (long))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (long))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
$as_echo "$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
    # 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.
{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if test "${ac_cv_sizeof_long_long+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (long long)); }
static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (long long))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (long long))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (long long))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long_long=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$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
    # 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.
{ $as_echo "$as_me:$LINENO: checking size of long double" >&5
$as_echo_n "checking size of long double... " >&6; }
if test "${ac_cv_sizeof_long_double+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (long double)); }
static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (long double))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (long double))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (long double))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long_double=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
$as_echo "$ac_cv_sizeof_long_double" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
_ACEOF


fi
# 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.
{ $as_echo "$as_me:$LINENO: checking size of float" >&5
$as_echo_n "checking size of float... " >&6; }
if test "${ac_cv_sizeof_float+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (float)); }
static unsigned long int ulongval () { return (long int) (sizeof (float)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (float))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (float))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (float))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_float=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_float" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
$as_echo "$ac_cv_sizeof_float" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_FLOAT $ac_cv_sizeof_float
_ACEOF


# 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.
{ $as_echo "$as_me:$LINENO: checking size of double" >&5
$as_echo_n "checking size of double... " >&6; }
if test "${ac_cv_sizeof_double+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (double)); }
static unsigned long int ulongval () { return (long int) (sizeof (double)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (double))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (double))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (double))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_double=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_double" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
$as_echo "$ac_cv_sizeof_double" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
_ACEOF


# 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.
{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
$as_echo_n "checking size of void *... " >&6; }
if test "${ac_cv_sizeof_void_p+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (void *)); }
static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (void *))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (void *))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (void *))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_void_p=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
$as_echo "$ac_cv_sizeof_void_p" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF


# 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.
{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
$as_echo_n "checking size of size_t... " >&6; }
if test "${ac_cv_sizeof_size_t+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (size_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (size_t))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (size_t))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (size_t))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_size_t=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
$as_echo "$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
    # 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.
{ $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
$as_echo_n "checking size of ssize_t... " >&6; }
if test "${ac_cv_sizeof_ssize_t+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (ssize_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ssize_t))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ssize_t))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ssize_t))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_ssize_t=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
$as_echo "$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
    # 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.
{ $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
$as_echo_n "checking size of ptrdiff_t... " >&6; }
if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (ptrdiff_t))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (ptrdiff_t))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (ptrdiff_t))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
$as_echo "$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
#


    { $as_echo "$as_me:$LINENO: checking alignment of char" >&5
$as_echo_n "checking alignment of char... " >&6; }
if test "${ompi_cv_c_align_char+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_char=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_char=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_char" >&5
$as_echo "$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*

    { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
$as_echo_n "checking alignment of short... " >&6; }
if test "${ompi_cv_c_align_short+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_short=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_short=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_short" >&5
$as_echo "$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*

    { $as_echo "$as_me:$LINENO: checking alignment of wchar_t" >&5
$as_echo_n "checking alignment of wchar_t... " >&6; }
if test "${ompi_cv_c_align_wchar_t+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_wchar_t=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_wchar_t=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_wchar_t" >&5
$as_echo "$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*

    { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
$as_echo_n "checking alignment of int... " >&6; }
if test "${ompi_cv_c_align_int+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_int=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_int=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_int" >&5
$as_echo "$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*

    { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
$as_echo_n "checking alignment of long... " >&6; }
if test "${ompi_cv_c_align_long+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_long=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_long=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_long" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking alignment of long long" >&5
$as_echo_n "checking alignment of long long... " >&6; }
if test "${ompi_cv_c_align_long_long+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_long_long=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_long_long=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_long_long" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking alignment of float" >&5
$as_echo_n "checking alignment of float... " >&6; }
if test "${ompi_cv_c_align_float+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_float=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_float=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_float" >&5
$as_echo "$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*

    { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
$as_echo_n "checking alignment of double... " >&6; }
if test "${ompi_cv_c_align_double+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_double=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_double=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_double" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking alignment of long double" >&5
$as_echo_n "checking alignment of long double... " >&6; }
if test "${ompi_cv_c_align_long_double+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_long_double=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_long_double=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_long_double" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking alignment of void *" >&5
$as_echo_n "checking alignment of void *... " >&6; }
if test "${ompi_cv_c_align_void_p+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_void_p=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_void_p=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_void_p" >&5
$as_echo "$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)
#

{ $as_echo "$as_me:$LINENO: checking for C bool type" >&5
$as_echo_n "checking for C bool type... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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

{ $as_echo "$as_me:$LINENO: result: $MSG" >&5
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if test "${ac_cv_c_inline+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
$as_echo "$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
  { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
if test "${ac_cv_c_restrict+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_restrict=no
   # The order here caters to the fact that C++ does not require restrict.
   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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking for weak symbol support" >&5
$as_echo_n "checking for weak symbol support... " >&6; }
if test "${ompi_cv_c_weak_symbols+set}" = set; then
  $as_echo_n "(cached) " >&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:22064: $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:22071: \$? = $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:22081: $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:22088: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_weak_symbols" >&5
$as_echo "$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

{ $as_echo "$as_me:$LINENO: checking whether icc-8.1 for EM64T works with variable arguments" >&5
$as_echo_n "checking whether icc-8.1 for EM64T works with variable arguments... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_ac_icc_varargs=`test -f conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ompi_ac_icc_varargs=1
fi
rm -rf conftest.dSYM
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
    { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&5
$as_echo "$as_me: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&5
$as_echo "$as_me: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&2;}
    { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi

{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

# Check if we support the offsetof compiler directive




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in have_offsetof_msg; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"have_offsetof_msg\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    { $as_echo "$as_me:$LINENO: checking for functional offsetof macro" >&5
$as_echo_n "checking for functional offsetof macro... " >&6; }
    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>
int
main ()
{
struct foo {int a, b;}; size_t offset = offsetof(struct foo, b);
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_offsetof_msg="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	have_offsetof_msg="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test "$have_offsetof_msg" = "no"; then
        CPPFLAGS="$CPPFLAGS -DNO_PGI_OFFSET"
        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>
int
main ()
{
struct foo {int a, b;}; size_t offset = offsetof(struct foo, b);
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_offsetof_msg="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	have_offsetof_msg="no"
fi

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

        if test "$have_offsetof_msg" = "no"; then
            { $as_echo "$as_me:$LINENO: result: $have_offsetof_msg" >&5
$as_echo "$have_offsetof_msg" >&6; }
            { $as_echo "$as_me:$LINENO: WARNING: Your compiler does not support offsetof macro" >&5
$as_echo "$as_me: WARNING: Your compiler does not support offsetof macro" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Configure: Cannot continue" >&5
$as_echo "$as_me: error: Configure: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    { $as_echo "$as_me:$LINENO: result: $have_offsetof_msg" >&5
$as_echo "$have_offsetof_msg" >&6; }

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



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




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_cxxflags_save; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_cxxflags_save\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$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=

{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
$as_echo "$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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
$as_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

    CXXFLAGS="$ompi_cxxflags_save"

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done




    # Must REQUIRE the PROG_CXX macro and not call it directly here for
    # reasons well-described in the AC2.64 (and beyond) docs.

    BASECXX="`basename $CXX`"

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

    set dummy $CXX
    ompi_cxx_argv0=$2

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=$ompi_cxx_argv0

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OMPI_CXX_ABSOLUTE="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done







    { $as_echo "$as_me:$LINENO: checking for the C++ compiler vendor" >&5
$as_echo_n "checking for the C++ compiler vendor... " >&6; }
if test "${ompi_cv_cxx_compiler_vendor+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cxx_compiler_vendor" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking if C++ compiler works" >&5
$as_echo_n "checking if C++ compiler works... " >&6; }
if test "${ompi_cv_Cpp_works+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_Cpp_works="links (cross compiling)"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_Cpp_works="no"
fi

rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_Cpp_works="yes"
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ompi_cv_Cpp_works="no"
fi
rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_Cpp_works" >&5
$as_echo "$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
           { { $as_echo "$as_me:$LINENO: error: Could not run a simple C++ program.  Aborting." >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC suite" >&5
$as_echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC suite" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Configure: cannot continue" >&5
$as_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
        { $as_echo "$as_me:$LINENO: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&5
$as_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 $add -Wno-long-double -fstrict-prototype"
        { $as_echo "$as_me:$LINENO: checking if $CXX supports -Wno-long-double" >&5
$as_echo_n "checking if $CXX supports -Wno-long-double... " >&6; }
if test "${ompi_cv_cxx_wno_long_double+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cxx_wno_long_double" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&5
$as_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=
        { $as_echo "$as_me:$LINENO: checking if $CXX supports -finline-functions" >&5
$as_echo_n "checking if $CXX supports -finline-functions... " >&6; }
if test "${ompi_cv_cxx_finline_functions+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cxx_finline_functions" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: $add has been added to CXXFLAGS" >&5
$as_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


    { $as_echo "$as_me:$LINENO: checking if want C++ exception handling" >&5
$as_echo_n "checking if want C++ exception handling... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $ENABLE_CXX_EXCEPTIONS" >&5
$as_echo "$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
#

{ $as_echo "$as_me:$LINENO: checking for throw/catch" >&5
$as_echo_n "checking for throw/catch... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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"
{ $as_echo "$as_me:$LINENO: checking for compiler exception flags" >&5
$as_echo_n "checking for compiler exception flags... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
    { $as_echo "$as_me:$LINENO: result: none necessary" >&5
$as_echo "none necessary" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: $ompi_exflags" >&5
$as_echo "$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

            # Test to see if the C compiler likes these flags
            { $as_echo "$as_me:$LINENO: checking to see if C compiler likes the exception flags" >&5
$as_echo_n "checking to see if C compiler likes the exception flags... " >&6; }
            CFLAGS="$CFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"

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

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                               { $as_echo "$as_me:$LINENO: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&5
$as_echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&2;}
                               { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
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


            # We can't test the F77 and F90 compilers now because we
            # haven't found/set the up yet.  So just save the flags
            # and test them later (in ompi_setup_f77.m4 and
            # ompi_setup_f90.m4).

            CXXFLAGS="$CXXFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"
            LDFLAGS="$LDFLAGS $OMPI_CXX_EXCEPTIONS_LDFLAGS"

            WRAPPER_EXTRA_CFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CFLAGS}"
            WRAPPER_EXTRA_FFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_FFLAGS}"
            WRAPPER_EXTRA_FCFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_FCFLAGS}"
            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



  { $as_echo "$as_me:$LINENO: checking if C and C++ are link compatible" >&5
$as_echo_n "checking if C and C++ are link compatible... " >&6; }
if test "${ompi_cv_c_link_Cpp+set}" = set; then
  $as_echo_n "(cached) " >&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:25470: $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:25477: \$? = $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_c_link_Cpp="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_c_link_Cpp="no"
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_link_Cpp" >&5
$as_echo "$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
         { { $as_echo "$as_me:$LINENO: error: C and C++ compilers are not link compatible.  Can not continue." >&5
$as_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
    #
    { $as_echo "$as_me:$LINENO: checking for C++ template_repository_directory" >&5
$as_echo_n "checking for C++ template_repository_directory... " >&6; }
if test "${ompi_cv_cxx_template_repository+set}" = set; then
  $as_echo_n "(cached) " >&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:25669: $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:25673: here is the program that failed: >&5
    cat conftest1.C >&5
    echo configure:25675: here is conftest.h: >&5
    cat conftest.h >&5
    ompi_template_failed=1
else
    echo configure:25679: $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:25683: here is the program that failed: >&5
	cat conftest2.C >&5
	echo configure:25685: 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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cxx_template_repository" >&5
$as_echo "$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

{ $as_echo "$as_me:$LINENO: checking for C++ compiler template parameters" >&5
$as_echo_n "checking for C++ compiler template parameters... " >&6; }
if test "$BASECXX" = "KCC"; then
  new_flags="--one_instantiation_per_object"
  CXXFLAGS="$CXXFLAGS $new_flags"
else
  new_flags="none needed"
fi
{ $as_echo "$as_me:$LINENO: result: $new_flags" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking if $CXX supports __builtin_expect" >&5
$as_echo_n "checking if $CXX supports __builtin_expect... " >&6; }
if test "${ompi_cv_cxx_supports___builtin_expect+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_cxx_supports___builtin_expect="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_cxx_supports___builtin_expect="no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports___builtin_expect" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking if $CXX supports __builtin_prefetch" >&5
$as_echo_n "checking if $CXX supports __builtin_prefetch... " >&6; }
if test "${ompi_cv_cxx_supports___builtin_prefetch+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_cxx_supports___builtin_prefetch="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_cxx_supports___builtin_prefetch="no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports___builtin_prefetch" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** You will probably have problems compiling the MPI 2" >&5
$as_echo "$as_me: WARNING: *** You will probably have problems compiling the MPI 2" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** C++ bindings with the HP-UX CC compiler.  You should" >&5
$as_echo "$as_me: WARNING: *** C++ bindings with the HP-UX CC compiler.  You should" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** probably be using the aCC compiler.  Re-run configure" >&5
$as_echo "$as_me: WARNING: *** probably be using the aCC compiler.  Re-run configure" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** with the environment variable \"CXX=aCC\"." >&5
$as_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

    { $as_echo "$as_me:$LINENO: checking if $CXX supports const_cast<> properly" >&5
$as_echo_n "checking if $CXX supports const_cast<> properly... " >&6; }
if test "${ompi_cv_cxx_supports_2d_const_cast+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports_2d_const_cast" >&5
$as_echo "$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
    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
    # for an explanation of [ and ] -- they m4 expand to [ and ]
    case $co_word in
    -g)              co_found=1 ;;
    -g[1-3])   co_found=1 ;;
    +K[0-5])   co_found=1 ;;
    -O)              co_found=1 ;;
    -O[0-9])   co_found=1 ;;
    -xO)             co_found=1 ;;
    -xO[0-9])  co_found=1 ;;
    -fast)           co_found=1 ;;

    # The below Sun Studio flags require or
    # trigger -xO optimization
    -xvector*)     co_found=1 ;;
    -xdepend=yes)  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

    { $as_echo "$as_me:$LINENO: checking for C++ optimization flags" >&5
$as_echo_n "checking for C++ optimization flags... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $co_result" >&5
$as_echo "$co_result" >&6; }
    CXXFLAGS="$co_result"


# Does the compiler support "ident"-like constructs?


    { $as_echo "$as_me:$LINENO: checking for C++ ident string support" >&5
$as_echo_n "checking for C++ ident string support... " >&6; }

    ompi_pragma_ident_happy=0
    ompi_ident_happy=0
    ompi_static_const_char_happy=0

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26121: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26128: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_ident_happy=1
         ompi_message="#pragma ident"
else

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26163: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26170: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26205: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26212: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

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

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             ompi_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else

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

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

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26295: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26302: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

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

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             ompi_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26369: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26376: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

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

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             ompi_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else

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

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

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26469: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26476: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26511: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26518: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

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

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             ompi_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else

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

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

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26601: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26608: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

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

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             ompi_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26675: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26682: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

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

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             ompi_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#ident "$ompi_ident"
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26759: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26766: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_ident_happy=1
             ompi_message="#ident"
else

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26801: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26808: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

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

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             ompi_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else

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

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

    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26891: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26898: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

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

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             ompi_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}


    eval ompi_compiler="\$CXX"
    eval ompi_flags="\$CXXFLAGS"

    ompi_ident="string_not_coincidentally_inserted_by_the_compiler"
    cat > conftest.cc <<EOF
#pragma comment(exestr,  "$ompi_ident" )
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF

    # "strings" won't always return the ident string.  objdump isn't
    # universal (e.g., OS X doesn't have it), and ...other
    # complications.  So just try to "grep" for the string in the
    # resulting object file.  If the ident is found in "strings" or
    # the grep succeeds, rule that we have this flavor of ident.


# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26965: $ompi_compiler $ompi_flags -c conftest.cc -o conftest.${OBJEXT}" >&5
$ompi_compiler $ompi_flags -c conftest.cc -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:26972: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    if test -f conftest.${OBJEXT}; then
  ompi_output="`strings -a conftest.${OBJEXT} | grep $ompi_ident`"
                             grep $ompi_ident conftest.${OBJEXT} 2>&1 1>/dev/null
                             ompi_status=$?
                             if test "$ompi_output" != "" -o "$ompi_status" = "0"; then
  ompi_pragma_comment_happy=1
                 ompi_message="#pragma comment"
else
  ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else

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

# 1 is the filename
if test -n "conftest.cc" -a -f "conftest.cc"; then
    cat conftest.cc >&5
fi
                             ompi_static_const_char_happy=1
                 ompi_message="static const char"
                            ompi_static_const_char_happy=1
                 ompi_message="static const char"
fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}

fi

else
    unset ompi_status

fi

    unset ompi_compiler ompi_flags ompi_output ompi_status
    rm -rf conftest.* conftest${EXEEXT}



cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_USE_PRAGMA_IDENT $ompi_pragma_ident_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_USE_IDENT $ompi_ident_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_USE_PRAGMA_COMMENT $ompi_pragma_comment_happy
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_USE_CONST_CHAR_IDENT $ompi_static_const_char_happy
_ACEOF


    { $as_echo "$as_me:$LINENO: result: $ompi_message" >&5
$as_echo "$ompi_message" >&6; }

    unset ompi_pragma_ident_happy ompi_ident_happy ompi_static_const_char_happy ompi_message


# 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

# 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.
{ $as_echo "$as_me:$LINENO: checking size of bool" >&5
$as_echo_n "checking size of bool... " >&6; }
if test "${ac_cv_sizeof_bool+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (bool))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (bool))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (bool))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (bool))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (bool))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (bool)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (bool)); }
static unsigned long int ulongval () { return (long int) (sizeof (bool)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (bool))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (bool))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (bool))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_bool=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_bool" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (bool)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5
$as_echo "$ac_cv_sizeof_bool" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_BOOL $ac_cv_sizeof_bool
_ACEOF



# check for type alignments


    { $as_echo "$as_me:$LINENO: checking alignment of bool" >&5
$as_echo_n "checking alignment of bool... " >&6; }
if test "${ompi_cv_c_align_bool+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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;;
'') { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ompi__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_bool=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                                  { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                                  { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_align_bool=`cat conftestval`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                                { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                                { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_echo "$as_me: error: *** Cannot continue." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_align_bool" >&5
$as_echo "$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



##################################
# Only after setting up both
# C and C++ check compiler attributes.
##################################

  { $as_echo "$as_me:$LINENO: checking for __attribute__" >&5
$as_echo_n "checking for __attribute__... " >&6; }

  if test "${ompi_cv___attribute__+set}" = set; then
  $as_echo_n "(cached) " >&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>
       /* Check for the longest available __attribute__ (since gcc-2.3) */
       struct foo {
           char a;
           int x[2] __attribute__ ((__packed__));
        };

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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__=0
fi

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

    if test "$ompi_cv___attribute__" = "1" ; then
        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>
           /* Check for the longest available __attribute__ (since gcc-2.3) */
           struct foo {
               char a;
               int x[2] __attribute__ ((__packed__));
            };

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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__=0
fi

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

fi


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE $ompi_cv___attribute__
_ACEOF


#
# Now that we know the compiler support __attribute__ let's check which kind of
# attributed are supported.
#
  if test "$ompi_cv___attribute__" = "0" ; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ompi_cv___attribute__aligned=0
    ompi_cv___attribute__always_inline=0
    ompi_cv___attribute__cold=0
    ompi_cv___attribute__const=0
    ompi_cv___attribute__deprecated=0
    ompi_cv___attribute__format=0
    ompi_cv___attribute__hot=0
    ompi_cv___attribute__malloc=0
    ompi_cv___attribute__may_alias=0
    ompi_cv___attribute__no_instrument_function=0
    ompi_cv___attribute__nonnull=0
    ompi_cv___attribute__noreturn=0
    ompi_cv___attribute__packed=0
    ompi_cv___attribute__pure=0
    ompi_cv___attribute__sentinel=0
    ompi_cv___attribute__unused=0
    ompi_cv___attribute__visibility=0
    ompi_cv___attribute__warn_unused_result=0
    ompi_cv___attribute__weak_alias=0
  else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }


    { $as_echo "$as_me:$LINENO: checking for __attribute__(aligned)" >&5
$as_echo_n "checking for __attribute__(aligned)... " >&6; }
    if test "${ompi_cv___attribute__aligned+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
struct foo { char text[4]; }  __attribute__ ((__aligned__(8)));
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__aligned=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__aligned=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__aligned=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__aligned" = "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

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

                           extern "C" {
                           struct foo { char text[4]; }  __attribute__ ((__aligned__(8)));
                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__aligned=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__aligned=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__aligned=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__aligned" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__aligned=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__aligned=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__aligned=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__aligned" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi


    #
    # Ignored by PGI-6.2.5; -- recognized by output-parser
    #

    { $as_echo "$as_me:$LINENO: checking for __attribute__(always_inline)" >&5
$as_echo_n "checking for __attribute__(always_inline)... " >&6; }
    if test "${ompi_cv___attribute__always_inline+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int foo (int arg) __attribute__ ((__always_inline__));
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__always_inline=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__always_inline=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__always_inline=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__always_inline" = "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

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

                           extern "C" {
                           int foo (int arg) __attribute__ ((__always_inline__));
                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__always_inline=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__always_inline=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__always_inline=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__always_inline=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__always_inline=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__always_inline=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__always_inline" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:$LINENO: checking for __attribute__(cold)" >&5
$as_echo_n "checking for __attribute__(cold)... " >&6; }
    if test "${ompi_cv___attribute__cold+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__cold__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__cold=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__cold=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__cold=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__cold" = "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

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

                           extern "C" {

         int foo(int arg1, int arg2) __attribute__ ((__cold__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__cold=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__cold=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__cold=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__cold" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__cold=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__cold=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__cold=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__cold" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:$LINENO: checking for __attribute__(const)" >&5
$as_echo_n "checking for __attribute__(const)... " >&6; }
    if test "${ompi_cv___attribute__const+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__const__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__const=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__const=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__const=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__const" = "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

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

                           extern "C" {

         int foo(int arg1, int arg2) __attribute__ ((__const__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__const=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__const=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__const=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__const" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__const=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__const=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__const=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__const" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:$LINENO: checking for __attribute__(deprecated)" >&5
$as_echo_n "checking for __attribute__(deprecated)... " >&6; }
    if test "${ompi_cv___attribute__deprecated+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__deprecated__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__deprecated=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__deprecated=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__deprecated=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__deprecated" = "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

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

                           extern "C" {

         int foo(int arg1, int arg2) __attribute__ ((__deprecated__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__deprecated=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__deprecated=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__deprecated=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__deprecated=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__deprecated=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__deprecated=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__deprecated" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    ATTRIBUTE_CFLAGS=
    case "$ompi_c_vendor" in
        gnu)
            ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we want specifically the warning on format string conversion
            ATTRIBUTE_CFLAGS="-we181"
            ;;
    esac

    { $as_echo "$as_me:$LINENO: checking for __attribute__(format)" >&5
$as_echo_n "checking for __attribute__(format)... " >&6; }
    if test "${ompi_cv___attribute__format+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__format=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__format=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__format=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__format" = "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

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

                           extern "C" {

         int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__format=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__format=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__format=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__format" = "1" -a "
         static int usage (int * argument);
         extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

         static int usage (int * argument) {
             return this_printf (*argument, "%d", argument); /* This should produce a format warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS"

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

         static int usage (int * argument);
         extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));

         static int usage (int * argument) {
             return this_printf (*argument, "%d", argument); /* This should produce a format warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__format=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__format=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__format=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__format" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:$LINENO: checking for __attribute__(hot)" >&5
$as_echo_n "checking for __attribute__(hot)... " >&6; }
    if test "${ompi_cv___attribute__hot+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int foo(int arg1, int arg2) __attribute__ ((__hot__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__hot=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__hot=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__hot=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__hot" = "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

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

                           extern "C" {

         int foo(int arg1, int arg2) __attribute__ ((__hot__));
         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__hot=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__hot=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__hot=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__hot" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__hot=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__hot=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__hot=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__hot" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:$LINENO: checking for __attribute__(malloc)" >&5
$as_echo_n "checking for __attribute__(malloc)... " >&6; }
    if test "${ompi_cv___attribute__malloc+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         int * foo(int arg1) __attribute__ ((__malloc__));
         int * foo(int arg1) { return (int*) malloc(arg1); }

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__malloc=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__malloc=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__malloc=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__malloc" = "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

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

                           extern "C" {

#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         int * foo(int arg1) __attribute__ ((__malloc__));
         int * foo(int arg1) { return (int*) malloc(arg1); }

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__malloc=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__malloc=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__malloc=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__malloc" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__malloc=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__malloc=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__malloc=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__malloc" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers
    # Ignored by intel-9.1.045 -- turn off with -wd1292
    # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check
    #

    { $as_echo "$as_me:$LINENO: checking for __attribute__(may_alias)" >&5
$as_echo_n "checking for __attribute__(may_alias)... " >&6; }
    if test "${ompi_cv___attribute__may_alias+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int * p_value __attribute__ ((__may_alias__));
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__may_alias=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__may_alias=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__may_alias=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__may_alias" = "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

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

                           extern "C" {
                           int * p_value __attribute__ ((__may_alias__));
                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__may_alias=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__may_alias=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__may_alias=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__may_alias=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__may_alias=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__may_alias=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__may_alias" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:$LINENO: checking for __attribute__(no_instrument_function)" >&5
$as_echo_n "checking for __attribute__(no_instrument_function)... " >&6; }
    if test "${ompi_cv___attribute__no_instrument_function+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int * foo(int arg1) __attribute__ ((__no_instrument_function__));
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__no_instrument_function=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__no_instrument_function=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__no_instrument_function=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__no_instrument_function" = "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

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

                           extern "C" {
                           int * foo(int arg1) __attribute__ ((__no_instrument_function__));
                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__no_instrument_function=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__no_instrument_function=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__no_instrument_function=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__no_instrument_function=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__no_instrument_function=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__no_instrument_function=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__no_instrument_function" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Attribute nonnull:
    # Ignored by intel-compiler 9.1.045 -- recognized by cross-check
    # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check
    #
    ATTRIBUTE_CFLAGS=
    case "$ompi_c_vendor" in
        gnu)
            ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we do not want to get ignored attributes warnings, but rather real warnings
            ATTRIBUTE_CFLAGS="-wd1292"
            ;;
    esac

    { $as_echo "$as_me:$LINENO: checking for __attribute__(nonnull)" >&5
$as_echo_n "checking for __attribute__(nonnull)... " >&6; }
    if test "${ompi_cv___attribute__nonnull+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int square(int *arg) __attribute__ ((__nonnull__));
         int square(int *arg) { return *arg; }

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__nonnull=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__nonnull=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__nonnull=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__nonnull" = "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

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

                           extern "C" {

         int square(int *arg) __attribute__ ((__nonnull__));
         int square(int *arg) { return *arg; }

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__nonnull=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__nonnull=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__nonnull=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__nonnull" = "1" -a "
         static int usage(int * argument);
         int square(int * argument) __attribute__ ((__nonnull__));
         int square(int * argument) { return (*argument) * (*argument); }

         static int usage(int * argument) {
             return square( ((void*)0) );    /* This should produce an argument must be nonnull warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS"

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

         static int usage(int * argument);
         int square(int * argument) __attribute__ ((__nonnull__));
         int square(int * argument) { return (*argument) * (*argument); }

         static int usage(int * argument) {
             return square( ((void*)0) );    /* This should produce an argument must be nonnull warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__nonnull=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__nonnull=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__nonnull=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__nonnull" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:$LINENO: checking for __attribute__(noreturn)" >&5
$as_echo_n "checking for __attribute__(noreturn)... " >&6; }
    if test "${ompi_cv___attribute__noreturn+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#  include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         void fatal(int arg1) __attribute__ ((__noreturn__));
         void fatal(int arg1) { exit(arg1); }

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__noreturn=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__noreturn=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__noreturn=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__noreturn" = "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

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

                           extern "C" {

#ifdef HAVE_UNISTD_H
#  include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H
#  include <stdlib.h>
#endif
         void fatal(int arg1) __attribute__ ((__noreturn__));
         void fatal(int arg1) { exit(arg1); }

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__noreturn=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__noreturn=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__noreturn=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__noreturn=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__noreturn=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__noreturn=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__noreturn" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:$LINENO: checking for __attribute__(packed)" >&5
$as_echo_n "checking for __attribute__(packed)... " >&6; }
    if test "${ompi_cv___attribute__packed+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         struct foo {
             char a;
             int x[2] __attribute__ ((__packed__));
         };

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__packed=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__packed=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__packed=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__packed" = "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

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

                           extern "C" {

         struct foo {
             char a;
             int x[2] __attribute__ ((__packed__));
         };

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__packed=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__packed=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__packed=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__packed" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__packed=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__packed=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__packed=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__packed" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:$LINENO: checking for __attribute__(pure)" >&5
$as_echo_n "checking for __attribute__(pure)... " >&6; }
    if test "${ompi_cv___attribute__pure+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int square(int arg) __attribute__ ((__pure__));
         int square(int arg) { return arg * arg; }

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__pure=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__pure=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__pure=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__pure" = "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

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

                           extern "C" {

         int square(int arg) __attribute__ ((__pure__));
         int square(int arg) { return arg * arg; }

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__pure=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__pure=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__pure=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__pure" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__pure=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__pure=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__pure=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__pure" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi


    #
    # Attribute sentinel:
    # Ignored by the intel-9.1.045 -- recognized by cross-check
    #                intel-10.0beta works fine
    # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check
    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
    #
    ATTRIBUTE_CFLAGS=
    case "$ompi_c_vendor" in
        gnu)
            ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we do not want to get ignored attributes warnings
            ATTRIBUTE_CFLAGS="-wd1292"
            ;;
    esac

    { $as_echo "$as_me:$LINENO: checking for __attribute__(sentinel)" >&5
$as_echo_n "checking for __attribute__(sentinel)... " >&6; }
    if test "${ompi_cv___attribute__sentinel+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__sentinel=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__sentinel=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__sentinel=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__sentinel" = "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

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

                           extern "C" {

         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__sentinel=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__sentinel=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__sentinel=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__sentinel" = "1" -a "
         static int usage(int * argument);
         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

         static int usage(int * argument) {
             void * last_arg_should_be_null = argument;
             return my_execlp ("lala", "/home/there", last_arg_should_be_null);   /* This should produce a warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS"

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

         static int usage(int * argument);
         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));

         static int usage(int * argument) {
             void * last_arg_should_be_null = argument;
             return my_execlp ("lala", "/home/there", last_arg_should_be_null);   /* This should produce a warning */
         }
         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__sentinel=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__sentinel=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__sentinel=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__sentinel" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    { $as_echo "$as_me:$LINENO: checking for __attribute__(unused)" >&5
$as_echo_n "checking for __attribute__(unused)... " >&6; }
    if test "${ompi_cv___attribute__unused+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int square(int arg1 __attribute__ ((__unused__)), int arg2);
         int square(int arg1, int arg2) { return arg2; }

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__unused=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__unused=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__unused=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__unused" = "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

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

                           extern "C" {

         int square(int arg1 __attribute__ ((__unused__)), int arg2);
         int square(int arg1, int arg2) { return arg2; }

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__unused=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__unused=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__unused=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__unused" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__unused=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__unused=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__unused=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__unused" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Ignored by PGI-6.2.5 (pgCC) -- recognized by the output-parser
    #

    { $as_echo "$as_me:$LINENO: checking for __attribute__(visibility)" >&5
$as_echo_n "checking for __attribute__(visibility)... " >&6; }
    if test "${ompi_cv___attribute__visibility+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int square(int arg1) __attribute__ ((__visibility__("hidden")));

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__visibility=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__visibility=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__visibility=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__visibility" = "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

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

                           extern "C" {

         int square(int arg1) __attribute__ ((__visibility__("hidden")));

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__visibility=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__visibility=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__visibility=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__visibility" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__visibility=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__visibility=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__visibility=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__visibility" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi



    #
    # Attribute warn_unused_result:
    # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check
    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
    #
    ATTRIBUTE_CFLAGS=
    case "$ompi_c_vendor" in
        gnu)
            ATTRIBUTE_CFLAGS="-Wall"
            ;;
        intel)
            # we do not want to get ignored attributes warnings
            ATTRIBUTE_CFLAGS="-wd1292"
            ;;
    esac

    { $as_echo "$as_me:$LINENO: checking for __attribute__(warn_unused_result)" >&5
$as_echo_n "checking for __attribute__(warn_unused_result)... " >&6; }
    if test "${ompi_cv___attribute__warn_unused_result+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int foo(int arg) __attribute__ ((__warn_unused_result__));
         int foo(int arg) { return arg + 3; }

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__warn_unused_result=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__warn_unused_result=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__warn_unused_result=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__warn_unused_result" = "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

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

                           extern "C" {

         int foo(int arg) __attribute__ ((__warn_unused_result__));
         int foo(int arg) { return arg + 3; }

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__warn_unused_result=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__warn_unused_result=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__warn_unused_result=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__warn_unused_result" = "1" -a "
         static int usage(int * argument);
         int foo(int arg) __attribute__ ((__warn_unused_result__));

         int foo(int arg) { return arg + 3; }
         static int usage(int * argument) {
           foo (*argument);        /* Should produce an unused result warning */
           return 0;
         }

         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);
        " != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$CFLAGS $ATTRIBUTE_CFLAGS"

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

         static int usage(int * argument);
         int foo(int arg) __attribute__ ((__warn_unused_result__));

         int foo(int arg) { return arg + 3; }
         static int usage(int * argument) {
           foo (*argument);        /* Should produce an unused result warning */
           return 0;
         }

         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
         int main(void);

int
main ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__warn_unused_result=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__warn_unused_result=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__warn_unused_result=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__warn_unused_result" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi




    { $as_echo "$as_me:$LINENO: checking for __attribute__(weak_alias)" >&5
$as_echo_n "checking for __attribute__(weak_alias)... " >&6; }
    if test "${ompi_cv___attribute__weak_alias+set}" = set; then
  $as_echo_n "(cached) " >&6
else

        #
        # Try to compile using the C compiler, then C++
        #
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

         int foo(int arg);
         int foo(int arg) { return arg + 3; }
         int foo2(int arg) __attribute__ ((__weak__, __alias__("foo")));

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

                        #
                        # In case we did succeed: Fine, but was this due to the
                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
                        # and if found, reset the ompi_cv__attribute__var=0
                        #
                        ompi_cv___attribute__weak_alias=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__weak_alias=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__weak_alias=0
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test "$ompi_cv___attribute__weak_alias" = "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

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

                           extern "C" {

         int foo(int arg);
         int foo(int arg) { return arg + 3; }
         int foo2(int arg) __attribute__ ((__weak__, __alias__("foo")));

                           }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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___attribute__weak_alias=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__weak_alias=0
                break;
            fi
        done
    fi


else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv___attribute__weak_alias=0
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

        #
        # If the attribute is supported by both compilers,
        # try to recompile a *cross-check*, IFF defined.
        #
        if test '(' "$ompi_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then
            ac_c_werror_flag_safe=$ac_c_werror_flag
            ac_c_werror_flag="yes"
            CFLAGS_safe=$CFLAGS
            CFLAGS="$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 ()
{

                 int i=4711;
                 i=usage(&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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___attribute__weak_alias=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


                 #
                 # In case we did NOT succeed: Fine, but was this due to the
                 # attribute being ignored? Grep for IgNoRe in conftest.err
                 # and if found, reset the ompi_cv__attribute__var=0
                 #
                 ompi_cv___attribute__weak_alias=1


    if test -s conftest.err ; then
        for i in ignore skip ; do
            $GREP -iq $i conftest.err
            if test "$?" = "0" ; then
                ompi_cv___attribute__weak_alias=0
                break;
            fi
        done
    fi


fi

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

            ac_c_werror_flag=$ac_c_werror_flag_safe
            CFLAGS=$CFLAGS_safe
        fi

fi


    if test "$ompi_cv___attribute__weak_alias" = "1" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi


  fi

  # Now that all the values are set, define them


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_ALIGNED $ompi_cv___attribute__aligned
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_ALWAYS_INLINE $ompi_cv___attribute__always_inline
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_COLD $ompi_cv___attribute__cold
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_CONST $ompi_cv___attribute__const
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_DEPRECATED $ompi_cv___attribute__deprecated
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_FORMAT $ompi_cv___attribute__format
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_HOT $ompi_cv___attribute__hot
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_MALLOC $ompi_cv___attribute__malloc
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_MAY_ALIAS $ompi_cv___attribute__may_alias
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $ompi_cv___attribute__no_instrument_function
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_NONNULL $ompi_cv___attribute__nonnull
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_NORETURN $ompi_cv___attribute__noreturn
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_PACKED $ompi_cv___attribute__packed
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_PURE $ompi_cv___attribute__pure
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_SENTINEL $ompi_cv___attribute__sentinel
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_UNUSED $ompi_cv___attribute__unused
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_VISIBILITY $ompi_cv___attribute__visibility
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $ompi_cv___attribute__warn_unused_result
_ACEOF


cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ATTRIBUTE_WEAK_ALIAS $ompi_cv___attribute__weak_alias
_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=

{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
$as_echo "$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


{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
if test "${lt_cv_path_NM+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
$as_echo "$DUMPBIN" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
$as_echo "$ac_ct_DUMPBIN" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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






{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
if test "${lt_cv_nm_interface+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_nm_interface="BSD nm"
  echo "int some_variable = 0;" > conftest.$ac_ext
  (eval echo "\"\$as_me:33207: $ac_compile\"" >&5)
  (eval "$ac_compile" 2>conftest.err)
  cat conftest.err >&5
  (eval echo "\"\$as_me:33210: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  cat conftest.err >&5
  (eval echo "\"\$as_me:33213: 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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
$as_echo "$lt_cv_nm_interface" >&6; }

{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
$as_echo_n "checking for fgrep... " >&6; }
if test "${ac_cv_path_FGREP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   then ac_cv_path_FGREP="$GREP -F"
   else
     if test -z "$FGREP"; then
  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
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_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
  if test -z "$ac_cv_path_FGREP"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable fgrep 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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
$as_echo "$ac_cv_path_FGREP" >&6; }
 FGREP="$ac_cv_path_FGREP"







    # OS X Leopard ld bus errors if you have "-g" or "-gX" in the link line
    # with our assembly (!).  So remove it from CCASFLAGS if it's
    # there (and we're on Leopard).


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_config_asm_flags_new ompi_config_asm_flag; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_config_asm_flags_new ompi_config_asm_flag\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    { $as_echo "$as_me:$LINENO: checking if need to remove -g from CCASFLAGS" >&5
$as_echo_n "checking if need to remove -g from CCASFLAGS... " >&6; }
    case "$host" in
        *-apple-darwin9.*)
            for ompi_config_asm_flag in $CCASFLAGS; do
                # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
                # for an explanation of [ and ] -- they m4 expand
                # to [ and ]
                case $ompi_config_asm_flag in
                -g)            ;;
                -g[0-9]) ;;
                *)
                    ompi_config_asm_flags_new="$ompi_config_asm_flags_new $ompi_config_asm_flag"
                    ;;
                esac
            done
            CCASFLAGS="$ompi_config_asm_flags_new"
            { $as_echo "$as_me:$LINENO: result: OS X Leopard - yes ($CCASFLAGS)" >&5
$as_echo "OS X Leopard - yes ($CCASFLAGS)" >&6; }
            ;;
        *)
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
            ;;
    esac

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


    { $as_echo "$as_me:$LINENO: checking whether to enable smp locks" >&5
$as_echo_n "checking whether to enable smp locks... " >&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
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        want_smp_locks=1
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if .proc/endp is needed" >&5
$as_echo_n "checking if .proc/endp is needed... " >&6; }
if test "${ompi_cv_asm_need_proc+set}" = set; then
  $as_echo_n "(cached) " >&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 -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_need_proc" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking directive for setting text section" >&5
$as_echo_n "checking directive for setting text section... " >&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
    { $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_text" >&5
$as_echo "$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"



    { $as_echo "$as_me:$LINENO: checking directive for exporting symbols" >&5
$as_echo_n "checking directive for exporting symbols... " >&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
    { $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_global" >&5
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    { $as_echo "$as_me:$LINENO: checking if .note.GNU-stack is needed" >&5
$as_echo_n "checking if .note.GNU-stack is needed... " >&6; }
if test "${ompi_cv_asm_gnu_stack_result+set}" = set; then
  $as_echo_n "(cached) " >&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:33567: $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:33574: \$? = $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:33587: 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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_gnu_stack_result" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking suffix for labels" >&5
$as_echo_n "checking suffix for labels... " >&6; }
    ompi_cv_asm_label_suffix=""
    case $host in
        *)
                ompi_cv_asm_label_suffix=":"
        ;;
    esac
    { $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_label_suffix" >&5
$as_echo "$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"



    { $as_echo "$as_me:$LINENO: checking prefix for global symbol labels" >&5
$as_echo_n "checking prefix for global symbol labels... " >&6; }
if test "${ompi_cv_asm_gsym+set}" = set; then
  $as_echo_n "(cached) " >&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 -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_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=$?
  $as_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  $LDFLAGS $LIBS > conftest.link 2>&1"
                 if { (eval echo "$as_me:$LINENO: \"$ompi_link\"") >&5
  (eval $ompi_link) 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_gsym" >&5
$as_echo "$ompi_cv_asm_gsym" >&6; }

    if test "$ompi_cv_asm_gsym" = "none" ; then
       { { $as_echo "$as_me:$LINENO: error: Could not determine global symbol label prefix" >&5
$as_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"






    { $as_echo "$as_me:$LINENO: checking prefix for lsym labels" >&5
$as_echo_n "checking prefix for lsym labels... " >&6; }
if test "${ompi_cv_asm_lsym+set}" = set; then
  $as_echo_n "(cached) " >&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 -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_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
                { $as_echo "$as_me:$LINENO: WARNING: $NM could not read object file" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_lsym" >&5
$as_echo "$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"



        { $as_echo "$as_me:$LINENO: checking prefix for function in .type" >&5
$as_echo_n "checking prefix for function in .type... " >&6; }
if test "${ompi_cv_asm_type+set}" = set; then
  $as_echo_n "(cached) " >&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 -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_type" >&5
$as_echo "$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"



    { $as_echo "$as_me:$LINENO: checking if .size is needed" >&5
$as_echo_n "checking if .size is needed... " >&6; }
if test "${ompi_cv_asm_need_size+set}" = set; then
  $as_echo_n "(cached) " >&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 -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_need_size" >&5
$as_echo "$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





    { $as_echo "$as_me:$LINENO: checking if .align directive takes logarithmic value" >&5
$as_echo_n "checking if .align directive takes logarithmic value... " >&6; }
if test "${ompi_cv_asm_align_log+set}" = set; then
  $as_echo_n "(cached) " >&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 -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_align_log" >&5
$as_echo "$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-*)

    { $as_echo "$as_me:$LINENO: checking if PowerPC registers have r prefix" >&5
$as_echo_n "checking if PowerPC registers have r prefix... " >&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 -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_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 -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_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
  { { $as_echo "$as_me:$LINENO: error: Can not determine how to use PPC registers" >&5
$as_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
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
        { { $as_echo "$as_me:$LINENO: error: CHECK_POWERPC_64BIT called on 64 bit platform.  Internal error." >&5
$as_echo "$as_me: error: CHECK_POWERPC_64BIT called on 64 bit platform.  Internal error." >&2;}
   { (exit 1); exit 1; }; }
    fi
    { $as_echo "$as_me:$LINENO: checking for 64-bit PowerPC assembly support" >&5
$as_echo_n "checking for 64-bit PowerPC assembly support... " >&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 -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_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
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        OMPI_ASM_SUPPORT_64BIT=1
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
                { { $as_echo "$as_me:$LINENO: error: Could not determine PowerPC word size: $ac_cv_sizeof_long" >&5
$as_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

    { $as_echo "$as_me:$LINENO: checking if have Sparc v8+/v9 support" >&5
$as_echo_n "checking if have Sparc v8+/v9 support... " >&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 -o conftest.o conftest.s >conftest.out 2>&1"
fi
if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
  (eval $ompi_assemble) 2>&5
  ac_status=$?
  $as_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
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        have_v8plus=1
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        :
    fi

    unset sparc_result

                if test "$have_v8plus" = "0" ; then
                    OMPI_ASM_SUPPORT_64BIT=0
                    ompi_cv_asm_arch="SPARC"
{ $as_echo "$as_me:$LINENO: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&5
$as_echo "$as_me: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: You must specify the target architecture v8plus" >&5
$as_echo "$as_me: WARNING: You must specify the target architecture v8plus" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CXXFLAGS," >&5
$as_echo "$as_me: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CXXFLAGS," >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&5
$as_echo "$as_me: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&2;}
{ $as_echo "$as_me:$LINENO: WARNING: Sparc processors" >&5
$as_echo "$as_me: WARNING: Sparc processors" >&2;}
{ { $as_echo "$as_me:$LINENO: error: Can not continue." >&5
$as_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
                { { $as_echo "$as_me:$LINENO: error: Could not determine Sparc word size: $ac_cv_sizeof_long" >&5
$as_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)'
            ;;

        *)
            { { $as_echo "$as_me:$LINENO: error: No atomic primitives available for $host" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking if $CC supports GCC inline assembly" >&5
$as_echo_n "checking if $CC supports GCC inline assembly... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  asm_result="yes"
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
asm_result="no"
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  asm_result="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	asm_result="no"
fi

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

    { $as_echo "$as_me:$LINENO: result: $asm_result" >&5
$as_echo "$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



    { $as_echo "$as_me:$LINENO: checking if $CC supports DEC inline assembly" >&5
$as_echo_n "checking if $CC supports DEC inline assembly... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  asm_result="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	asm_result="no"
fi

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

    { $as_echo "$as_me:$LINENO: result: $asm_result" >&5
$as_echo "$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



    { $as_echo "$as_me:$LINENO: checking if $CC supports XLC inline assembly" >&5
$as_echo_n "checking if $CC supports XLC inline assembly... " >&6; }

    OMPI_C_XLC_INLINE_ASSEMBLY=0
    asm_result="no"
    if test "$CC" = "xlc" ; then
        OMPI_XLC_INLINE_ASSEMBLY=1
        asm_result="yes"
    fi

    { $as_echo "$as_me:$LINENO: result: $asm_result" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking if $CXX supports GCC inline assembly" >&5
$as_echo_n "checking if $CXX supports GCC inline assembly... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  asm_result="yes"
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
asm_result="no"
fi
rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  asm_result="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	asm_result="no"
fi

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

    { $as_echo "$as_me:$LINENO: result: $asm_result" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking if $CXX supports DEC inline assembly" >&5
$as_echo_n "checking if $CXX supports DEC inline assembly... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  asm_result="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	asm_result="no"
fi

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

    { $as_echo "$as_me:$LINENO: result: $asm_result" >&5
$as_echo "$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



    { $as_echo "$as_me:$LINENO: checking if $CXX supports XLC inline assembly" >&5
$as_echo_n "checking if $CXX supports XLC inline assembly... " >&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

    { $as_echo "$as_me:$LINENO: result: $asm_result" >&5
$as_echo "$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/\\\$/\\\$\\\$/'`

        { $as_echo "$as_me:$LINENO: checking for assembly format" >&5
$as_echo_n "checking for assembly format... " >&6; }
        { $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_format" >&5
$as_echo "$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"
    { $as_echo "$as_me:$LINENO: checking for asssembly architecture" >&5
$as_echo_n "checking for asssembly architecture... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_arch" >&5
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_PERL+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
$as_echo "$PERL" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi



    # see if we have a pre-built one already
    { $as_echo "$as_me:$LINENO: checking for pre-built assembly file" >&5
$as_echo_n "checking for pre-built assembly file... " >&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
                { $as_echo "$as_me:$LINENO: result: yes ($ompi_cv_asm_file)" >&5
$as_echo "yes ($ompi_cv_asm_file)" >&6; }
            else
                { $as_echo "$as_me:$LINENO: result: no ($ompi_cv_asm_file not found)" >&5
$as_echo "no ($ompi_cv_asm_file not found)" >&6; }
                ompi_cv_asm_file=""
            fi
        fi
    else
        { $as_echo "$as_me:$LINENO: result: no (not in asm-data)" >&5
$as_echo "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?
            { $as_echo "$as_me:$LINENO: checking whether possible to generate assembly file" >&5
$as_echo_n "checking whether possible to generate assembly file... " >&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=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } ; then
                # save the warnings
                cat conftest.out >&5
                { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
            else
                # save output
                cat conftest.out >&5
                ompi_cv_asm_file=""
                { $as_echo "$as_me:$LINENO: result: failed" >&5
$as_echo "failed" >&6; }
                { $as_echo "$as_me:$LINENO: WARNING: Could not build atomic operations assembly file." >&5
$as_echo "$as_me: WARNING: Could not build atomic operations assembly file." >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: There will be no atomic operations for this build." >&5
$as_echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;}
            fi
        else
            { $as_echo "$as_me:$LINENO: WARNING: Could not find prebuilt atomic operations file and could not" >&5
$as_echo "$as_me: WARNING: Could not find prebuilt atomic operations file and could not" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: find perl to attempt to generate a custom assembly file." >&5
$as_echo "$as_me: WARNING: find perl to attempt to generate a custom assembly file." >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: There will be no atomic operations for this build." >&5
$as_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

    { $as_echo "$as_me:$LINENO: checking for atomic assembly filename" >&5
$as_echo_n "checking for atomic assembly filename... " >&6; }
    if test "$ompi_cv_asm_file" = "" ; then
        { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
        result=0
    else
        { $as_echo "$as_me:$LINENO: result: $ompi_cv_asm_file" >&5
$as_echo "$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
#-----------


    ompi_show_subtitle "Fortran 77 compiler"




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_fflags_save; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_fflags_save\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_F77+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
$as_echo "$F77" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
$as_echo "$ac_ct_F77" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    F77=$ac_ct_F77
  fi
fi


# Provide some information about the compiler.
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FFLAGS+set}
ac_save_FFLAGS=$FFLAGS
FFLAGS=
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
if test "${ac_cv_prog_f77_g+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
$as_echo "$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

if test $ac_compiler_gnu = yes; then
  G77=yes
else
  G77=
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

    FFLAGS="$ompi_fflags_save"

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






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

# Must REQUIRE the PROG_F77 macro and not call it directly here for
# reasons well-described in the AC2.64 (and beyond) docs.


if test -z "$F77"; then
    { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&5
$as_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`"

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=$OMPI_F77_ARGV0

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OMPI_F77_ABSOLUTE="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



    if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled by user" >&5
$as_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


    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler works" >&5
$as_echo_n "checking if Fortran 77 compiler works... " >&6; }
if test "${ompi_cv_Fortran_77_works+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_Fortran_77_works="links (cross compiling)"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_Fortran_77_works="no"
fi

rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_Fortran_77_works="yes"
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ompi_cv_Fortran_77_works="no"
fi
rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_Fortran_77_works" >&5
$as_echo "$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
           { { $as_echo "$as_me:$LINENO: error: Could not run a simple Fortran 77 program.  Aborting." >&5
$as_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

    { $as_echo "$as_me:$LINENO: checking $F77 external symbol convention" >&5
$as_echo_n "checking $F77 external symbol convention... " >&6; }
if test "${ompi_cv_f77_external_symbol+set}" = set; then
  $as_echo_n "(cached) " >&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:35643: $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:35650: \$? = $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:35672: 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
                      { { $as_echo "$as_me:$LINENO: error: Could not determine Fortran naming convention." >&5
$as_echo "$as_me: error: Could not determine Fortran naming convention." >&2;}
   { (exit 1); exit 1; }; }
                  fi
else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Fortran compiler did not produce object file" >&5
$as_echo "$as_me: error: Fortran compiler did not produce object file" >&2;}
   { (exit 1); exit 1; }; }
fi
         fi
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_external_symbol" >&5
$as_echo "$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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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



  { $as_echo "$as_me:$LINENO: checking if C and Fortran 77 are link compatible" >&5
$as_echo_n "checking if C and Fortran 77 are link compatible... " >&6; }
if test "${ompi_cv_c_link_Fortran_77+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:35796: $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:35803: \$? = $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_c_link_Fortran_77="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_c_link_Fortran_77="no"
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_link_Fortran_77" >&5
$as_echo "$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 typically indicates
one of a few possibilities:

  - A conflict between CFLAGS and FFLAGS
  - A problem with your compiler installation(s)
  - Different default build options between compilers (e.g., C
    building for 32 bit and Fortran building for 64 bit)
  - Incompatible compilers

Such problems can usually be solved by picking compatible compilers
and/or CFLAGS and FFLAGS.  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
     { { $as_echo "$as_me:$LINENO: error: C and Fortran 77 compilers are not link compatible.  Can not continue." >&5
$as_echo "$as_me: error: C and Fortran 77 compilers are not link compatible.  Can not continue." >&2;}
   { (exit 1); exit 1; }; }
fi


fi


# Test to see if the F77 compilers likes the C++ exceptions flags.  If
# it doesn't, just abort.  We *could* handle this scenario (e.g.,
# probe the F77 compiler for what flags would be necessary), but we're
# kinda assuming that no one will care.  If they do, they'll e-mail us.
{ $as_echo "$as_me:$LINENO: checking to see if F77 compiler likes the C++ exception flags" >&5
$as_echo_n "checking to see if F77 compiler likes the C++ exception flags... " >&6; }
if test $OMPI_WANT_F77_BINDINGS -eq 0; then
    { $as_echo "$as_me:$LINENO: result: skipped (no F77 bindings)" >&5
$as_echo "skipped (no F77 bindings)" >&6; }
elif test "$OMPI_CXX_EXCEPTIONS_CXXFLAGS" = ""; then
    { $as_echo "$as_me:$LINENO: result: skipped (no C++ exceptions flags)" >&5
$as_echo "skipped (no C++ exceptions flags)" >&6; }
else
    FFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"
    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
      program main
        INTEGER I
        I = 3
      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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                       { $as_echo "$as_me:$LINENO: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&5
$as_echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&2;}
                       { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
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


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.




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL... " >&6; }
if test "${ompi_cv_f77_have_LOGICAL+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICAL" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL" >&5
$as_echo_n "checking size of Fortran 77 LOGICAL... " >&6; }
if test "${ompi_cv_f77_sizeof_LOGICAL+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:36220: $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:36227: \$? = $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:36237: $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:36244: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
$as_echo "$as_me: error: Could not determine size of LOGICAL" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of LOGICAL when cross-compiling" >&5
$as_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:36275: ./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:36282: \$? = $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:36295: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
$as_echo "$as_me: error: Could not determine size of LOGICAL" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICAL" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL" >&5
$as_echo_n "checking for C type corresponding to LOGICAL... " >&6; }
if test "${ompi_cv_find_type_LOGICAL+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICAL" >&5
$as_echo "$ompi_cv_find_type_LOGICAL" >&6; }

    if test "$ompi_cv_find_type_LOGICAL" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL" >&5
$as_echo_n "checking alignment of Fortran LOGICAL... " >&6; }
if test "${ompi_cv_f77_alignment_LOGICAL+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:36540: $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:36547: \$? = $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:36557: $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:36564: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL" >&5
$as_echo "$as_me: error: Could not determine alignment of LOGICAL" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL when cross-compiling" >&5
$as_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:36599: ./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:36606: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL" >&5
$as_echo "$as_me: error: Could not determine alignment of LOGICAL" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICAL" >&5
$as_echo "$ompi_cv_f77_alignment_LOGICAL" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICAL

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*1" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*1... " >&6; }
if test "${ompi_cv_f77_have_LOGICALp1+set}" = set; then
  $as_echo_n "(cached) " >&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*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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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_LOGICALp1="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_f77_have_LOGICALp1="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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp1" >&5
$as_echo "$ompi_cv_f77_have_LOGICALp1" >&6; }

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


    else
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*1" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*1... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*1" >&5
$as_echo_n "checking size of Fortran 77 LOGICAL*1... " >&6; }
if test "${ompi_cv_f77_sizeof_LOGICALp1+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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:36925: $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:36932: \$? = $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:36942: $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:36949: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*1" >&5
$as_echo "$as_me: error: Could not determine size of LOGICAL*1" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*1 when cross-compiling" >&5
$as_echo "$as_me: error: Can not determine size of LOGICAL*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:36980: ./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:36987: \$? = $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_LOGICALp1=`cat conftestval`
else

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

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*1" >&5
$as_echo "$as_me: error: Could not determine size of LOGICAL*1" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp1" >&5
$as_echo "$ompi_cv_f77_sizeof_LOGICALp1" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp1

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*1 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 LOGICAL*1 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*1" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*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="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*1" >&5
$as_echo_n "checking for C type corresponding to LOGICAL*1... " >&6; }
if test "${ompi_cv_find_type_LOGICALp1+set}" = set; then
  $as_echo_n "(cached) " >&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_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_LOGICALp1="not found"
else
  ompi_cv_find_type_LOGICALp1="$oft_real_type"
fi

fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp1" >&5
$as_echo "$ompi_cv_find_type_LOGICALp1" >&6; }

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

fi


    if test "$ompi_cv_find_type_LOGICALp1" = "not found" ; then
        ofc_c_type=
    else
        ofc_c_type=$ompi_cv_find_type_LOGICALp1
    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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*1" >&5
$as_echo_n "checking alignment of Fortran LOGICAL*1... " >&6; }
if test "${ompi_cv_f77_alignment_LOGICALp1+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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>
$ompi_conftest_h

#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:37255: $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:37262: \$? = $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:37272: $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:37279: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*1" >&5
$as_echo "$as_me: error: Could not determine alignment of LOGICAL*1" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*1 when cross-compiling" >&5
$as_echo "$as_me: error: Can not determine alignment of LOGICAL*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:37314: ./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:37321: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_LOGICALp1=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*1" >&5
$as_echo "$as_me: error: Could not determine alignment of LOGICAL*1" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp1" >&5
$as_echo "$ompi_cv_f77_alignment_LOGICALp1" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp1

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


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


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


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

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

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_logical1_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_LOGICAL1_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_LOGICAL1=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_LOGICAL1=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_LOGICAL1=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*2... " >&6; }
if test "${ompi_cv_f77_have_LOGICALp2+set}" = set; then
  $as_echo_n "(cached) " >&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*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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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_LOGICALp2="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_f77_have_LOGICALp2="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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp2" >&5
$as_echo "$ompi_cv_f77_have_LOGICALp2" >&6; }

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


    else
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*2... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*2" >&5
$as_echo_n "checking size of Fortran 77 LOGICAL*2... " >&6; }
if test "${ompi_cv_f77_sizeof_LOGICALp2+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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:37640: $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:37647: \$? = $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:37657: $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:37664: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*2" >&5
$as_echo "$as_me: error: Could not determine size of LOGICAL*2" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*2 when cross-compiling" >&5
$as_echo "$as_me: error: Can not determine size of LOGICAL*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:37695: ./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:37702: \$? = $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_LOGICALp2=`cat conftestval`
else

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

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*2" >&5
$as_echo "$as_me: error: Could not determine size of LOGICAL*2" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp2" >&5
$as_echo "$ompi_cv_f77_sizeof_LOGICALp2" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp2

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*2 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 LOGICAL*2 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*2" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*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="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*2" >&5
$as_echo_n "checking for C type corresponding to LOGICAL*2... " >&6; }
if test "${ompi_cv_find_type_LOGICALp2+set}" = set; then
  $as_echo_n "(cached) " >&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_LOGICALp2="not found"
else
  ompi_cv_find_type_LOGICALp2="$oft_real_type"
fi

fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp2" >&5
$as_echo "$ompi_cv_find_type_LOGICALp2" >&6; }

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

fi


    if test "$ompi_cv_find_type_LOGICALp2" = "not found" ; then
        ofc_c_type=
    else
        ofc_c_type=$ompi_cv_find_type_LOGICALp2
    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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*2" >&5
$as_echo_n "checking alignment of Fortran LOGICAL*2... " >&6; }
if test "${ompi_cv_f77_alignment_LOGICALp2+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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>
$ompi_conftest_h

#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:37965: $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:37972: \$? = $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:37982: $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:37989: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*2" >&5
$as_echo "$as_me: error: Could not determine alignment of LOGICAL*2" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*2 when cross-compiling" >&5
$as_echo "$as_me: error: Can not determine alignment of LOGICAL*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:38024: ./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:38031: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_LOGICALp2=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*2" >&5
$as_echo "$as_me: error: Could not determine alignment of LOGICAL*2" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp2" >&5
$as_echo "$ompi_cv_f77_alignment_LOGICALp2" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp2

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


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


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


cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_LOGICAL2 $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_logical2_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_LOGICAL2_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_LOGICAL2=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_LOGICAL2=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_LOGICAL2=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*4... " >&6; }
if test "${ompi_cv_f77_have_LOGICALp4+set}" = set; then
  $as_echo_n "(cached) " >&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*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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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_LOGICALp4="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_f77_have_LOGICALp4="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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp4" >&5
$as_echo "$ompi_cv_f77_have_LOGICALp4" >&6; }

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


    else
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*4... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*4" >&5
$as_echo_n "checking size of Fortran 77 LOGICAL*4... " >&6; }
if test "${ompi_cv_f77_sizeof_LOGICALp4+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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:38350: $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:38357: \$? = $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:38367: $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:38374: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*4" >&5
$as_echo "$as_me: error: Could not determine size of LOGICAL*4" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*4 when cross-compiling" >&5
$as_echo "$as_me: error: Can not determine size of LOGICAL*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:38405: ./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:38412: \$? = $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_LOGICALp4=`cat conftestval`
else

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

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*4" >&5
$as_echo "$as_me: error: Could not determine size of LOGICAL*4" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp4" >&5
$as_echo "$ompi_cv_f77_sizeof_LOGICALp4" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp4

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*4 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 LOGICAL*4 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*4" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*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="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*4" >&5
$as_echo_n "checking for C type corresponding to LOGICAL*4... " >&6; }
if test "${ompi_cv_find_type_LOGICALp4+set}" = set; then
  $as_echo_n "(cached) " >&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_LOGICALp4="not found"
else
  ompi_cv_find_type_LOGICALp4="$oft_real_type"
fi

fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp4" >&5
$as_echo "$ompi_cv_find_type_LOGICALp4" >&6; }

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

fi


    if test "$ompi_cv_find_type_LOGICALp4" = "not found" ; then
        ofc_c_type=
    else
        ofc_c_type=$ompi_cv_find_type_LOGICALp4
    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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*4" >&5
$as_echo_n "checking alignment of Fortran LOGICAL*4... " >&6; }
if test "${ompi_cv_f77_alignment_LOGICALp4+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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>
$ompi_conftest_h

#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:38665: $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:38672: \$? = $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:38682: $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:38689: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*4" >&5
$as_echo "$as_me: error: Could not determine alignment of LOGICAL*4" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*4 when cross-compiling" >&5
$as_echo "$as_me: error: Can not determine alignment of LOGICAL*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:38724: ./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:38731: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_LOGICALp4=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*4" >&5
$as_echo "$as_me: error: Could not determine alignment of LOGICAL*4" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp4" >&5
$as_echo "$ompi_cv_f77_alignment_LOGICALp4" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp4

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


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


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


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

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

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_logical4_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_LOGICAL4_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_LOGICAL4=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_LOGICAL4=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_LOGICAL4=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*8... " >&6; }
if test "${ompi_cv_f77_have_LOGICALp8+set}" = set; then
  $as_echo_n "(cached) " >&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*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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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_LOGICALp8="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_f77_have_LOGICALp8="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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICALp8" >&5
$as_echo "$ompi_cv_f77_have_LOGICALp8" >&6; }

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


    else
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports LOGICAL*8... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL*8" >&5
$as_echo_n "checking size of Fortran 77 LOGICAL*8... " >&6; }
if test "${ompi_cv_f77_sizeof_LOGICALp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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:39050: $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:39057: \$? = $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:39067: $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:39074: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*8" >&5
$as_echo "$as_me: error: Could not determine size of LOGICAL*8" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of LOGICAL*8 when cross-compiling" >&5
$as_echo "$as_me: error: Can not determine size of LOGICAL*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:39105: ./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:39112: \$? = $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_LOGICALp8=`cat conftestval`
else

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

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL*8" >&5
$as_echo "$as_me: error: Could not determine size of LOGICAL*8" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICALp8" >&5
$as_echo "$ompi_cv_f77_sizeof_LOGICALp8" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_LOGICALp8

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL*8 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 LOGICAL*8 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*8" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL*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="yes"
    oft_target_size="$ofc_type_size"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL*8" >&5
$as_echo_n "checking for C type corresponding to LOGICAL*8... " >&6; }
if test "${ompi_cv_find_type_LOGICALp8+set}" = set; then
  $as_echo_n "(cached) " >&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_LOGICALp8="not found"
else
  ompi_cv_find_type_LOGICALp8="$oft_real_type"
fi

fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICALp8" >&5
$as_echo "$ompi_cv_find_type_LOGICALp8" >&6; }

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

fi


    if test "$ompi_cv_find_type_LOGICALp8" = "not found" ; then
        ofc_c_type=
    else
        ofc_c_type=$ompi_cv_find_type_LOGICALp8
    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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL*8" >&5
$as_echo_n "checking alignment of Fortran LOGICAL*8... " >&6; }
if test "${ompi_cv_f77_alignment_LOGICALp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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>
$ompi_conftest_h

#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:39360: $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:39367: \$? = $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:39377: $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:39384: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*8" >&5
$as_echo "$as_me: error: Could not determine alignment of LOGICAL*8" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL*8 when cross-compiling" >&5
$as_echo "$as_me: error: Can not determine alignment of LOGICAL*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:39419: ./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:39426: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_LOGICALp8=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL*8" >&5
$as_echo "$as_me: error: Could not determine alignment of LOGICAL*8" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICALp8" >&5
$as_echo "$ompi_cv_f77_alignment_LOGICALp8" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_LOGICALp8

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


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


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


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

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

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_logical8_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_LOGICAL8_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_LOGICAL8=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_LOGICAL8=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_LOGICAL8=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER... " >&6; }
if test "${ompi_cv_f77_have_INTEGER+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGER" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER" >&5
$as_echo_n "checking size of Fortran 77 INTEGER... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGER+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:39745: $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:39752: \$? = $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:39762: $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:39769: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER when cross-compiling" >&5
$as_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:39800: ./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:39807: \$? = $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:39820: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGER" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to INTEGER" >&5
$as_echo_n "checking for C type corresponding to INTEGER... " >&6; }
if test "${ompi_cv_find_type_INTEGER+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGER" >&5
$as_echo "$ompi_cv_find_type_INTEGER" >&6; }

    if test "$ompi_cv_find_type_INTEGER" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran INTEGER" >&5
$as_echo_n "checking alignment of Fortran INTEGER... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGER+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:40060: $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:40067: \$? = $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:40077: $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:40084: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER when cross-compiling" >&5
$as_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:40119: ./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:40126: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGER" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGER" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGER

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*1... " >&6; }
if test "${ompi_cv_f77_have_INTEGERp1+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp1" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*1... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*1" >&5
$as_echo_n "checking size of Fortran 77 INTEGER*1... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGERp1+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:40445: $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:40452: \$? = $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:40462: $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:40469: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER*1" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER*1 when cross-compiling" >&5
$as_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: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
    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:40520: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER*1" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp1" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*1" >&5
$as_echo_n "checking for C type corresponding to INTEGER*1... " >&6; }
if test "${ompi_cv_find_type_INTEGERp1+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp1" >&5
$as_echo "$ompi_cv_find_type_INTEGERp1" >&6; }

    if test "$ompi_cv_find_type_INTEGERp1" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*1" >&5
$as_echo_n "checking alignment of Fortran INTEGER*1... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGERp1+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:40770: $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:40777: \$? = $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:40787: $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:40794: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*1" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER*1" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*1 when cross-compiling" >&5
$as_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:40829: ./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:40836: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*1" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER*1" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp1" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGERp1" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp1

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*2... " >&6; }
if test "${ompi_cv_f77_have_INTEGERp2+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp2" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*2... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*2" >&5
$as_echo_n "checking size of Fortran 77 INTEGER*2... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGERp2+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:41155: $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:41162: \$? = $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:41172: $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:41179: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER*2" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER*2 when cross-compiling" >&5
$as_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:41210: ./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:41217: \$? = $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:41230: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER*2" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp2" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*2" >&5
$as_echo_n "checking for C type corresponding to INTEGER*2... " >&6; }
if test "${ompi_cv_find_type_INTEGERp2+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp2" >&5
$as_echo "$ompi_cv_find_type_INTEGERp2" >&6; }

    if test "$ompi_cv_find_type_INTEGERp2" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*2" >&5
$as_echo_n "checking alignment of Fortran INTEGER*2... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGERp2+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:41480: $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:41487: \$? = $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:41497: $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:41504: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*2" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER*2" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*2 when cross-compiling" >&5
$as_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:41539: ./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:41546: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*2" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER*2" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp2" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGERp2" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp2

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*4... " >&6; }
if test "${ompi_cv_f77_have_INTEGERp4+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp4" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*4... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*4" >&5
$as_echo_n "checking size of Fortran 77 INTEGER*4... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGERp4+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:41865: $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:41872: \$? = $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:41882: $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:41889: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER*4" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER*4 when cross-compiling" >&5
$as_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:41920: ./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:41927: \$? = $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:41940: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER*4" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp4" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*4" >&5
$as_echo_n "checking for C type corresponding to INTEGER*4... " >&6; }
if test "${ompi_cv_find_type_INTEGERp4+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp4" >&5
$as_echo "$ompi_cv_find_type_INTEGERp4" >&6; }

    if test "$ompi_cv_find_type_INTEGERp4" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*4" >&5
$as_echo_n "checking alignment of Fortran INTEGER*4... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGERp4+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:42180: $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:42187: \$? = $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:42197: $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:42204: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*4" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER*4" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*4 when cross-compiling" >&5
$as_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:42239: ./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:42246: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*4" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER*4" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp4" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGERp4" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp4

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*8... " >&6; }
if test "${ompi_cv_f77_have_INTEGERp8+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp8" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*8... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*8" >&5
$as_echo_n "checking size of Fortran 77 INTEGER*8... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGERp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:42565: $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:42572: \$? = $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:42582: $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:42589: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER*8" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER*8 when cross-compiling" >&5
$as_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:42620: ./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:42627: \$? = $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:42640: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER*8" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp8" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*8" >&5
$as_echo_n "checking for C type corresponding to INTEGER*8... " >&6; }
if test "${ompi_cv_find_type_INTEGERp8+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp8" >&5
$as_echo "$ompi_cv_find_type_INTEGERp8" >&6; }

    if test "$ompi_cv_find_type_INTEGERp8" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*8" >&5
$as_echo_n "checking alignment of Fortran INTEGER*8... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGERp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:42875: $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:42882: \$? = $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:42892: $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:42899: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*8" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER*8" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*8 when cross-compiling" >&5
$as_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:42934: ./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:42941: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*8" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER*8" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp8" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGERp8" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp8

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*16... " >&6; }
if test "${ompi_cv_f77_have_INTEGERp16+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp16" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports INTEGER*16... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*16" >&5
$as_echo_n "checking size of Fortran 77 INTEGER*16... " >&6; }
if test "${ompi_cv_f77_sizeof_INTEGERp16+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:43260: $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:43267: \$? = $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:43277: $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:43284: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER*16" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER*16 when cross-compiling" >&5
$as_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:43315: ./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:43322: \$? = $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:43335: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
$as_echo "$as_me: error: Could not determine size of INTEGER*16" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp16" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*16" >&5
$as_echo_n "checking for C type corresponding to INTEGER*16... " >&6; }
if test "${ompi_cv_find_type_INTEGERp16+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp16" >&5
$as_echo "$ompi_cv_find_type_INTEGERp16" >&6; }

    if test "$ompi_cv_find_type_INTEGERp16" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*16" >&5
$as_echo_n "checking alignment of Fortran INTEGER*16... " >&6; }
if test "${ompi_cv_f77_alignment_INTEGERp16+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:43570: $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:43577: \$? = $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:43587: $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:43594: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*16" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER*16" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*16 when cross-compiling" >&5
$as_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:43629: ./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:43636: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*16" >&5
$as_echo "$as_me: error: Could not determine alignment of INTEGER*16" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp16" >&5
$as_echo "$ompi_cv_f77_alignment_INTEGERp16" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp16

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL... " >&6; }
if test "${ompi_cv_f77_have_REAL+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REAL" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 REAL" >&5
$as_echo_n "checking size of Fortran 77 REAL... " >&6; }
if test "${ompi_cv_f77_sizeof_REAL+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:43956: $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:43963: \$? = $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:43973: $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:43980: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
$as_echo "$as_me: error: Could not determine size of REAL" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of REAL when cross-compiling" >&5
$as_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:44011: ./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:44018: \$? = $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:44031: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
$as_echo "$as_me: error: Could not determine size of REAL" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REAL" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 REAL does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to REAL" >&5
$as_echo_n "checking for C type corresponding to REAL... " >&6; }
if test "${ompi_cv_find_type_REAL+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_REAL" >&5
$as_echo "$ompi_cv_find_type_REAL" >&6; }

    if test "$ompi_cv_find_type_REAL" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran REAL" >&5
$as_echo_n "checking alignment of Fortran REAL... " >&6; }
if test "${ompi_cv_f77_alignment_REAL+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:44261: $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:44268: \$? = $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:44278: $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:44285: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of REAL" >&5
$as_echo "$as_me: error: Could not determine alignment of REAL" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of REAL when cross-compiling" >&5
$as_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:44320: ./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:44327: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of REAL" >&5
$as_echo "$as_me: error: Could not determine alignment of REAL" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REAL" >&5
$as_echo "$ompi_cv_f77_alignment_REAL" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_REAL

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*2... " >&6; }
if test "${ompi_cv_f77_have_REALp2+set}" = set; then
  $as_echo_n "(cached) " >&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*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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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_REALp2="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_f77_have_REALp2="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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp2" >&5
$as_echo "$ompi_cv_f77_have_REALp2" >&6; }

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


    else
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*2" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*2... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 REAL*2" >&5
$as_echo_n "checking size of Fortran 77 REAL*2... " >&6; }
if test "${ompi_cv_f77_sizeof_REALp2+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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:44646: $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:44653: \$? = $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:44663: $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:44670: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*2" >&5
$as_echo "$as_me: error: Could not determine size of REAL*2" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of REAL*2 when cross-compiling" >&5
$as_echo "$as_me: error: Can not determine size of REAL*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:44701: ./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:44708: \$? = $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_REALp2=`cat conftestval`
else

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

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*2" >&5
$as_echo "$as_me: error: Could not determine size of REAL*2" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp2" >&5
$as_echo "$ompi_cv_f77_sizeof_REALp2" >&6; }

    ofc_type_size=$ompi_cv_f77_sizeof_REALp2

        if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*2 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 REAL*2 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*2" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to REAL*2" >&5
$as_echo_n "checking for C type corresponding to REAL*2... " >&6; }
if test "${ompi_cv_find_type_REALp2+set}" = set; then
  $as_echo_n "(cached) " >&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_REALp2="not found"
else
  ompi_cv_find_type_REALp2="$oft_real_type"
fi

fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp2" >&5
$as_echo "$ompi_cv_find_type_REALp2" >&6; }

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

fi


    if test "$ompi_cv_find_type_REALp2" = "not found" ; then
        ofc_c_type=
    else
        ofc_c_type=$ompi_cv_find_type_REALp2
    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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran REAL*2" >&5
$as_echo_n "checking alignment of Fortran REAL*2... " >&6; }
if test "${ompi_cv_f77_alignment_REALp2+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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>
$ompi_conftest_h

#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:44951: $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:44958: \$? = $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:44968: $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:44975: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of REAL*2" >&5
$as_echo "$as_me: error: Could not determine alignment of REAL*2" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of REAL*2 when cross-compiling" >&5
$as_echo "$as_me: error: Can not determine alignment of REAL*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:45010: ./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:45017: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_f77_alignment_REALp2=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of REAL*2" >&5
$as_echo "$as_me: error: Could not determine alignment of REAL*2" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp2" >&5
$as_echo "$ompi_cv_f77_alignment_REALp2" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_REALp2

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


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


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


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

    if test "float, double, long double" != ""; then

cat >>confdefs.h <<_ACEOF
#define ompi_fortran_real2_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_REAL2_C_TYPE=$ofc_c_type
    OMPI_HAVE_FORTRAN_REAL2=$ofc_have_type
    OMPI_SIZEOF_FORTRAN_REAL2=$ofc_type_size
    OMPI_ALIGNMENT_FORTRAN_REAL2=$ofc_type_alignment

    # Clean up

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*4... " >&6; }
if test "${ompi_cv_f77_have_REALp4+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp4" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*4" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*4... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 REAL*4" >&5
$as_echo_n "checking size of Fortran 77 REAL*4... " >&6; }
if test "${ompi_cv_f77_sizeof_REALp4+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:45336: $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:45343: \$? = $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:45353: $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:45360: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
$as_echo "$as_me: error: Could not determine size of REAL*4" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of REAL*4 when cross-compiling" >&5
$as_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:45391: ./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:45398: \$? = $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:45411: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
$as_echo "$as_me: error: Could not determine size of REAL*4" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp4" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to REAL*4" >&5
$as_echo_n "checking for C type corresponding to REAL*4... " >&6; }
if test "${ompi_cv_find_type_REALp4+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp4" >&5
$as_echo "$ompi_cv_find_type_REALp4" >&6; }

    if test "$ompi_cv_find_type_REALp4" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran REAL*4" >&5
$as_echo_n "checking alignment of Fortran REAL*4... " >&6; }
if test "${ompi_cv_f77_alignment_REALp4+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:45641: $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:45648: \$? = $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:45658: $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:45665: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of REAL*4" >&5
$as_echo "$as_me: error: Could not determine alignment of REAL*4" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of REAL*4 when cross-compiling" >&5
$as_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:45700: ./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:45707: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of REAL*4" >&5
$as_echo "$as_me: error: Could not determine alignment of REAL*4" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp4" >&5
$as_echo "$ompi_cv_f77_alignment_REALp4" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_REALp4

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*8... " >&6; }
if test "${ompi_cv_f77_have_REALp8+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp8" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*8... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 REAL*8" >&5
$as_echo_n "checking size of Fortran 77 REAL*8... " >&6; }
if test "${ompi_cv_f77_sizeof_REALp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:46026: $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:46033: \$? = $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:46043: $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:46050: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
$as_echo "$as_me: error: Could not determine size of REAL*8" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of REAL*8 when cross-compiling" >&5
$as_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:46081: ./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:46088: \$? = $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:46101: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
$as_echo "$as_me: error: Could not determine size of REAL*8" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp8" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to REAL*8" >&5
$as_echo_n "checking for C type corresponding to REAL*8... " >&6; }
if test "${ompi_cv_find_type_REALp8+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp8" >&5
$as_echo "$ompi_cv_find_type_REALp8" >&6; }

    if test "$ompi_cv_find_type_REALp8" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran REAL*8" >&5
$as_echo_n "checking alignment of Fortran REAL*8... " >&6; }
if test "${ompi_cv_f77_alignment_REALp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:46331: $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:46338: \$? = $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:46348: $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:46355: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of REAL*8" >&5
$as_echo "$as_me: error: Could not determine alignment of REAL*8" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of REAL*8 when cross-compiling" >&5
$as_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:46390: ./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:46397: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of REAL*8" >&5
$as_echo "$as_me: error: Could not determine alignment of REAL*8" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp8" >&5
$as_echo "$ompi_cv_f77_alignment_REALp8" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_REALp8

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*16... " >&6; }
if test "${ompi_cv_f77_have_REALp16+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp16" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports REAL*16... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 REAL*16" >&5
$as_echo_n "checking size of Fortran 77 REAL*16... " >&6; }
if test "${ompi_cv_f77_sizeof_REALp16+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:46716: $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:46723: \$? = $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:46733: $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:46740: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
$as_echo "$as_me: error: Could not determine size of REAL*16" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of REAL*16 when cross-compiling" >&5
$as_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:46771: ./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:46778: \$? = $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:46791: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
$as_echo "$as_me: error: Could not determine size of REAL*16" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp16" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to REAL*16" >&5
$as_echo_n "checking for C type corresponding to REAL*16... " >&6; }
if test "${ompi_cv_find_type_REALp16+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp16" >&5
$as_echo "$ompi_cv_find_type_REALp16" >&6; }

    if test "$ompi_cv_find_type_REALp16" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran REAL*16" >&5
$as_echo_n "checking alignment of Fortran REAL*16... " >&6; }
if test "${ompi_cv_f77_alignment_REALp16+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:47021: $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:47028: \$? = $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:47038: $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:47045: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of REAL*16" >&5
$as_echo "$as_me: error: Could not determine alignment of REAL*16" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of REAL*16 when cross-compiling" >&5
$as_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:47080: ./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:47087: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of REAL*16" >&5
$as_echo "$as_me: error: Could not determine alignment of REAL*16" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp16" >&5
$as_echo "$ompi_cv_f77_alignment_REALp16" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_REALp16

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



# In some compilers, the bit representation of REAL*16 is not the same
# as the C counterpart that we found.  If this is the case, then we
# want to disable reduction support for MPI_REAL16 (per ticket #1603).

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy define_value msg; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy define_value msg\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    msg="in C"
    if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
  if test "$OMPI_HAVE_FORTRAN_REAL16" = "1"; then
  msg="of $OMPI_FORTRAN_REAL16_C_TYPE"
fi

fi

    { $as_echo "$as_me:$LINENO: checking if REAL*16 matches bit representation $msg" >&5
$as_echo_n "checking if REAL*16 matches bit representation $msg... " >&6; }
if test "${ompi_cv_real16_c_equiv+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$OMPI_WANT_F77_BINDINGS" = "1" -a "$OMPI_HAVE_FORTRAN_REAL16" = "1"; then

            # Make a C function of the Right name

    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 c | $GREP _ >/dev/null 2>&1 ; then
            ompi_ac_c_fn=c__
        else
            ompi_ac_c_fn=c_
        fi
    elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
        ompi_ac_c_fn=c_
    elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
        ompi_ac_c_fn=c
    elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
        ompi_ac_c_fn=c
    elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
        ompi_ac_c_fn=C
    else
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
   { (exit 1); exit 1; }; }
    fi


            # C module
            cat > conftest_c.c <<EOF
#include <stdio.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_c_fn($OMPI_FORTRAN_REAL16_C_TYPE *a) {
    FILE *fp = fopen("conftestval", "w");
    if (NULL == fp) exit(1);
    fprintf(fp, "%s\n", (1.1L == *a) ? "yes" : "no");
    fclose(fp);
}
#ifdef __cplusplus
}
#endif
EOF

            # Fortran module
            cat > conftest_f.f <<EOF
        program bogus
        REAL*16 :: foo
        foo = 1.1
        call c(foo)
        end program bogus
EOF
            rm -f conftestval
            # Compile and link

# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:47317: $CC $CFLAGS -I. -c conftest_c.c" >&5
$CC $CFLAGS -I. -c conftest_c.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:47324: \$? = $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:47334: $F77 $FFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftest_f.f conftest_c.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:47341: \$? = $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
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine if REAL*16 bit-matches C type" >&5
$as_echo "$as_me: error: Could not determine if REAL*16 bit-matches C type" >&2;}
   { (exit 1); exit 1; }; }
fi


            # If it worked so far, try running to see what we get
            if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Can not determine if REAL*16 bit-matches C if cross compiling" >&5
$as_echo "$as_me: error: Can not determine if REAL*16 bit-matches C if 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:47377: ./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:47384: \$? = $ompi_status" >&5
else
    echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
    unset ompi_status
    ompi_cv_real16_c_equiv=`cat conftestval`
else
    unset ompi_status
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                     { { $as_echo "$as_me:$LINENO: error: Could not determine if REAL*16 bit-matches C type" >&5
$as_echo "$as_me: error: Could not determine if REAL*16 bit-matches C type" >&2;}
   { (exit 1); exit 1; }; }

fi

fi


            # All done; whack tmp files
            rm -rf conftest*

else

            # No fortran bindings or no REAL*16
            if test "$OMPI_WANT_F77_BINDINGS" = "0"; then
  msg="no (no Fortran bindings)"
else
  msg="no (no REAL*16)"
fi

            ompi_cv_real16_c_equiv=$msg

fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_real16_c_equiv" >&5
$as_echo "$ompi_cv_real16_c_equiv" >&6; }

    ompi_real16_matches_c=$ompi_cv_real16_c_equiv


    if test "$ompi_real16_matches_c" = "yes"; then
  define_value=1
else
  define_value=0
           { $as_echo "$as_me:$LINENO: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled" >&5
$as_echo "$as_me: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled" >&2;}
fi


cat >>confdefs.h <<_ACEOF
#define OMPI_REAL16_MATCHES_C $define_value
_ACEOF


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5
$as_echo_n "checking if Fortran 77 compiler supports DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_f77_have_DOUBLE_PRECISION+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_DOUBLE_PRECISION" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5
$as_echo_n "checking if Fortran 77 compiler supports DOUBLE PRECISION... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 DOUBLE PRECISION" >&5
$as_echo_n "checking size of Fortran 77 DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_f77_sizeof_DOUBLE_PRECISION+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:47677: $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:47684: \$? = $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:47694: $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:47701: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
$as_echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&5
$as_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:47732: ./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:47739: \$? = $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:47752: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
$as_echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&5
$as_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"

    { $as_echo "$as_me:$LINENO: checking for C type corresponding to DOUBLE PRECISION" >&5
$as_echo_n "checking for C type corresponding to DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_find_type_DOUBLE_PRECISION+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_find_type_DOUBLE_PRECISION" >&5
$as_echo "$ompi_cv_find_type_DOUBLE_PRECISION" >&6; }

    if test "$ompi_cv_find_type_DOUBLE_PRECISION" = "not found"; then
  { $as_echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
$as_echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
           if test "$oft_abort_on_fail" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran DOUBLE PRECISION" >&5
$as_echo_n "checking alignment of Fortran DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_f77_alignment_DOUBLE_PRECISION+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:47982: $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:47989: \$? = $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:47999: $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:48006: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of DOUBLE PRECISION" >&5
$as_echo "$as_me: error: Could not determine alignment of DOUBLE PRECISION" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of DOUBLE PRECISION when cross-compiling" >&5
$as_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:48041: ./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:48048: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of DOUBLE PRECISION" >&5
$as_echo "$as_me: error: Could not determine alignment of DOUBLE PRECISION" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_DOUBLE_PRECISION" >&5
$as_echo "$ompi_cv_f77_alignment_DOUBLE_PRECISION" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_DOUBLE_PRECISION

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done






    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX... " >&6; }
if test "${ompi_cv_f77_have_COMPLEX+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEX" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX" >&5
$as_echo_n "checking size of Fortran 77 COMPLEX... " >&6; }
if test "${ompi_cv_f77_sizeof_COMPLEX+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:48368: $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:48375: \$? = $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:48385: $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:48392: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
$as_echo "$as_me: error: Could not determine size of COMPLEX" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of COMPLEX when cross-compiling" >&5
$as_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:48423: ./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:48430: \$? = $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:48443: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
$as_echo "$as_me: error: Could not determine size of COMPLEX" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEX" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX" >&5
$as_echo_n "checking alignment of Fortran COMPLEX... " >&6; }
if test "${ompi_cv_f77_alignment_COMPLEX+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:48608: $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:48615: \$? = $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:48625: $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:48632: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX" >&5
$as_echo "$as_me: error: Could not determine alignment of COMPLEX" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX when cross-compiling" >&5
$as_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:48667: ./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:48674: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX" >&5
$as_echo "$as_me: error: Could not determine alignment of COMPLEX" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEX" >&5
$as_echo "$ompi_cv_f77_alignment_COMPLEX" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEX

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



# 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




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*8... " >&6; }
if test "${ompi_cv_f77_have_COMPLEXp8+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp8" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*8" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*8... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*8" >&5
$as_echo_n "checking size of Fortran 77 COMPLEX*8... " >&6; }
if test "${ompi_cv_f77_sizeof_COMPLEXp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:49005: $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:49012: \$? = $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:49022: $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:49029: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
$as_echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*8 when cross-compiling" >&5
$as_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:49060: ./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:49067: \$? = $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:49080: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
$as_echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp8" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*8" >&5
$as_echo_n "checking alignment of Fortran COMPLEX*8... " >&6; }
if test "${ompi_cv_f77_alignment_COMPLEXp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:49245: $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:49252: \$? = $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:49262: $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:49269: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*8" >&5
$as_echo "$as_me: error: Could not determine alignment of COMPLEX*8" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*8 when cross-compiling" >&5
$as_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:49304: ./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:49311: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*8" >&5
$as_echo "$as_me: error: Could not determine alignment of COMPLEX*8" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp8" >&5
$as_echo "$ompi_cv_f77_alignment_COMPLEXp8" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp8

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*16... " >&6; }
if test "${ompi_cv_f77_have_COMPLEXp16+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp16" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*16" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*16... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*16" >&5
$as_echo_n "checking size of Fortran 77 COMPLEX*16... " >&6; }
if test "${ompi_cv_f77_sizeof_COMPLEXp16+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:49630: $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:49637: \$? = $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:49647: $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:49654: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
$as_echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*16 when cross-compiling" >&5
$as_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:49685: ./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:49692: \$? = $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:49705: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
$as_echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp16" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*16" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*16" >&5
$as_echo_n "checking alignment of Fortran COMPLEX*16... " >&6; }
if test "${ompi_cv_f77_alignment_COMPLEXp16+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:49870: $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:49877: \$? = $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:49887: $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:49894: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*16" >&5
$as_echo "$as_me: error: Could not determine alignment of COMPLEX*16" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*16 when cross-compiling" >&5
$as_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:49929: ./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:49936: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*16" >&5
$as_echo "$as_me: error: Could not determine alignment of COMPLEX*16" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp16" >&5
$as_echo "$ompi_cv_f77_alignment_COMPLEXp16" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp16

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done





    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type ofc_expected_size\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    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
    { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*32" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*32... " >&6; }
if test "${ompi_cv_f77_have_COMPLEXp32+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp32" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*32" >&5
$as_echo_n "checking if Fortran 77 compiler supports COMPLEX*32... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*32" >&5
$as_echo_n "checking size of Fortran 77 COMPLEX*32... " >&6; }
if test "${ompi_cv_f77_sizeof_COMPLEXp32+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:50255: $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:50262: \$? = $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:50272: $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:50279: \$? = $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
             { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
$as_echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*32 when cross-compiling" >&5
$as_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:50310: ./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:50317: \$? = $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:50330: conftestval not found." >&5
else
    echo conftestval not found. >&5
fi
                       { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
$as_echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    unset ompi_status
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp32" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*32" >&5
$as_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

    unset happy


    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in happy ompi_conftest_h; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"happy ompi_conftest_h\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



    { $as_echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*32" >&5
$as_echo_n "checking alignment of Fortran COMPLEX*32... " >&6; }
if test "${ompi_cv_f77_alignment_COMPLEXp32+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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>
$ompi_conftest_h

#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:50495: $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:50502: \$? = $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:50512: $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:50519: \$? = $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
            { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*32" >&5
$as_echo "$as_me: error: Could not determine alignment of COMPLEX*32" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test "$cross_compiling" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
             { { $as_echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*32 when cross-compiling" >&5
$as_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:50554: ./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:50561: \$? = $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
    { $as_echo "$as_me:$LINENO: result: Error!" >&5
$as_echo "Error!" >&6; }
                 { { $as_echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*32" >&5
$as_echo "$as_me: error: Could not determine alignment of COMPLEX*32" >&2;}
   { (exit 1); exit 1; }; }
fi
fi

        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp32" >&5
$as_echo "$ompi_cv_f77_alignment_COMPLEXp32" >&6; }

    ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp32

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


            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

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



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


    { $as_echo "$as_me:$LINENO: checking for max Fortran MPI handle index" >&5
$as_echo_n "checking for max Fortran MPI handle index... " >&6; }
if test "${ompi_cv_f77_fortran_handle_max+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cint_max=`cat conftest.out`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ompi_cint_max=0
fi
rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_fortran_handle_max" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking FORTRAN value for .TRUE. logical type" >&5
$as_echo_n "checking FORTRAN value for .TRUE. logical type... " >&6; }
if test "${ompi_cv_f77_true_value+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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
                 { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                 { $as_echo "$as_me:$LINENO: WARNING: *** Cannot find confdefs.h file for config test" >&5
$as_echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;}
                 { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                 { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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);
#ifdef HAVE_LONG_LONG
    } else if (SIZEOF_LONG_LONG >= sizeof(ompi_fortran_logical_t) ) {
        fprintf(f, "%lld\n", (long long) *logical);
#endif
    } 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:50901: $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:50908: \$? = $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:50918: $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:50925: \$? = $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
                 { { $as_echo "$as_me:$LINENO: error: Could not determine value of Fortran .TRUE..  Aborting." >&5
$as_echo "$as_me: error: Could not determine value of Fortran .TRUE..  Aborting." >&2;}
   { (exit 1); exit 1; }; }
             fi

             if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine value of .TRUE. when cross-compiling" >&5
$as_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:50956: ./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:50963: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine value of Fotran .TRUE..  Aborting." >&5
$as_echo "$as_me: error: Could not determine value of Fotran .TRUE..  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi
fi

         fi
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_true_value" >&5
$as_echo "$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*


    { $as_echo "$as_me:$LINENO: checking for correct handling of FORTRAN logical arrays" >&5
$as_echo_n "checking for correct handling of FORTRAN logical arrays... " >&6; }
if test "${ompi_cv_f77_logical_array_correct+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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
                 { $as_echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
                 { $as_echo "$as_me:$LINENO: WARNING: *** Cannot find confdefs.h file for config test" >&5
$as_echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;}
                 { $as_echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
                 { { $as_echo "$as_me:$LINENO: error: *** Cannot continue." >&5
$as_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:51085: $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:51092: \$? = $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:51102: $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:51109: \$? = $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
                 { { $as_echo "$as_me:$LINENO: error: Error determining if arrays of logical values work properly." >&5
$as_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:51138: ./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:51145: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f77_logical_array_correct" >&5
$as_echo "$ompi_cv_f77_logical_array_correct" >&6; }

    if test "$ompi_cv_f77_logical_array_correct" = "no" ; then
        { { $as_echo "$as_me:$LINENO: error: Error determining if arrays of logical values work properly." >&5
$as_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
#-----------


    ompi_show_subtitle "Fortran 90/95 compiler"




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_fcflags_save; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_fcflags_save\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_FC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $FC" >&5
$as_echo "$FC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
$as_echo "$ac_ct_FC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    FC=$ac_ct_FC
  fi
fi


# Provide some information about the compiler.
$as_echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
if test "${ac_cv_fc_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FCFLAGS+set}
ac_save_FFLAGS=$FCFLAGS
FCFLAGS=
{ $as_echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
$as_echo_n "checking whether $FC accepts -g... " >&6; }
if test "${ac_cv_prog_fc_g+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
$as_echo "$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"

    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done







if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
    { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&5
$as_echo "$as_me: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings were disabled)" >&5
$as_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
        { $as_echo "$as_me:$LINENO: WARNING: *** but --enable-f90 was explicitly specified" >&5
$as_echo "$as_me: WARNING: *** but --enable-f90 was explicitly specified" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi
elif test "$OMPI_WANT_F90_BINDINGS" = "0" ; then
    { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings disabled by user" >&5
$as_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.
    #

    # Must REQUIRE the PROG_FC macro and not call it directly here for
    # reasons well-described in the AC2.64 (and beyond) docs.


    if test -z "$FC"; then
        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&5
$as_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`"

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=$OMPI_F90_ARGV0

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OMPI_F90_ABSOLUTE="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


    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


    { $as_echo "$as_me:$LINENO: checking if Fortran compiler works" >&5
$as_echo_n "checking if Fortran compiler works... " >&6; }
if test "${ompi_cv_Fortran_works+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_Fortran_works="links (cross compiling)"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_Fortran_works="no"
fi

rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_Fortran_works="yes"
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ompi_cv_Fortran_works="no"
fi
rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_Fortran_works" >&5
$as_echo "$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
           { { $as_echo "$as_me:$LINENO: error: Could not run a simple Fortran program.  Aborting." >&5
$as_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
  { $as_echo "$as_me:$LINENO: checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible" >&5
$as_echo_n "checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible... " >&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:51849: $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:51856: \$? = $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:51866: $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:51873: \$? = $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:51883: $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:51890: \$? = $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:51917: 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:51930: 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
         { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
         { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&2;}
         { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&5
$as_echo "$as_me: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&2;}
         OMPI_WANT_F90_BINDINGS=0
     else
         { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
               { { $as_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
$as_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.
{ $as_echo "$as_me:$LINENO: checking for extra arguments to build a shard library" >&5
$as_echo_n "checking for extra arguments to build a shard library... " >&6; }
case "$host" in
    *apple-darwin*)
        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
            { $as_echo "$as_me:$LINENO: result: impossible -- -static" >&5
$as_echo "impossible -- -static" >&6; }
            OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-static"
        else
            case ${MACOSX_DEPLOYMENT_TARGET} in
            10.012)
                { $as_echo "$as_me:$LINENO: result: impossible -- -static" >&5
$as_echo "impossible -- -static" >&6; }
                OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-static"
                ;;
            10.*)
                { $as_echo "$as_me:$LINENO: result: -Wl,-single_module" >&5
$as_echo "-Wl,-single_module" >&6; }
                OMPI_F90_EXTRA_SHARED_LIBRARY_FLAGS="-Wl,-single_module"
            esac
        fi
    ;;
    *)
        { $as_echo "$as_me:$LINENO: result: none needed" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for Fortran flag to compile .f files" >&5
$as_echo_n "checking for Fortran flag to compile .f files... " >&6; }
if test "${ac_cv_fc_srcext_f+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_f" >&5
$as_echo "$ac_cv_fc_srcext_f" >&6; }
if test "x$ac_cv_fc_srcext_f" = xunknown; then
  { { $as_echo "$as_me:$LINENO: error: Fortran could not compile .f files" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for Fortran flag to compile .f90 files" >&5
$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; }
if test "${ac_cv_fc_srcext_f90+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_f90" >&5
$as_echo "$ac_cv_fc_srcext_f90" >&6; }
if test "x$ac_cv_fc_srcext_f90" = xunknown; then
  { { $as_echo "$as_me:$LINENO: error: Fortran could not compile .f90 files" >&5
$as_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


# Test to see if the F90 compilers likes the C++ exceptions flags.  If
# it doesn't, just abort.  We *could* handle this scenario (e.g.,
# probe the F90 compiler for what flags would be necessary), but we're
# kinda assuming that no one will care.  If they do, they'll e-mail us.
{ $as_echo "$as_me:$LINENO: checking to see if F90 compiler likes the C++ exception flags" >&5
$as_echo_n "checking to see if F90 compiler likes the C++ exception flags... " >&6; }
if test "$OMPI_WANT_F90_BINDINGS" = "0"; then
    { $as_echo "$as_me:$LINENO: result: skipped (no F90 bindings)" >&5
$as_echo "skipped (no F90 bindings)" >&6; }
elif test "$OMPI_CXX_EXCEPTIONS_CXXFLAGS" = ""; then
    { $as_echo "$as_me:$LINENO: result: skipped (no C++ exceptions flags)" >&5
$as_echo "skipped (no C++ exceptions flags)" >&6; }
else
    FCFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"
    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 I
 I = 3
      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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                       { $as_echo "$as_me:$LINENO: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&5
$as_echo "$as_me: WARNING: C++ exception flags are different between the C and C++ compilers; this configure script cannot currently handle this scenario.  Either disable C++ exception support or send mail to the Open MPI users list." >&2;}
                       { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
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

# 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
        { $as_echo "$as_me:$LINENO: checking for Fortran 90 compiler module include flag" >&5
$as_echo_n "checking for Fortran 90 compiler module include flag... " >&6; }
if test "${ompi_cv_f90_module_include_flag+set}" = set; then
  $as_echo_n "(cached) " >&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:52316: $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:52323: \$? = $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.$$
                 { $as_echo "$as_me:$LINENO: result: Whoops!" >&5
$as_echo "Whoops!" >&6; }
                 { $as_echo "$as_me:$LINENO: WARNING: *** Cannot seem to compile an f90 module" >&5
$as_echo "$as_me: WARNING: *** Cannot seem to compile an f90 module" >&2;}
                 { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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:52362: $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:52369: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_module_include_flag" >&5
$as_echo "$ompi_cv_f90_module_include_flag" >&6; }

        OMPI_FC_MODULE_FLAG=$ompi_cv_f90_module_include_flag
        if test "$OMPI_FC_MODULE_FLAG" = ""; then
        { $as_echo "$as_me:$LINENO: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&5
$as_echo "$as_me: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&2;}
        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL" >&5
$as_echo_n "checking if Fortran 90 compiler supports LOGICAL... " >&6; }
if test "${ompi_cv_f90_have_LOGICAL+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICAL" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL" >&5
$as_echo_n "checking size of Fortran 90 LOGICAL... " >&6; }
if test "${ompi_cv_f90_sizeof_LOGICAL+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:52581: $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:52588: \$? = $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:52598: $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:52605: \$? = $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:52626: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL" >&5
$as_echo "$as_me: WARNING: Could not determine size of LOGICAL" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of LOGICAL when cross-compiling" >&5
$as_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:52653: ./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:52660: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICAL" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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


    ofc_fortran_type="LOGICAL*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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*1" >&5
$as_echo_n "checking if Fortran 90 compiler supports LOGICAL*1... " >&6; }
if test "${ompi_cv_f90_have_LOGICALp1+set}" = set; then
  $as_echo_n "(cached) " >&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*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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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_LOGICALp1="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_f90_have_LOGICALp1="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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp1" >&5
$as_echo "$ompi_cv_f90_have_LOGICALp1" >&6; }

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


    else
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*1" >&5
$as_echo_n "checking size of Fortran 90 LOGICAL*1... " >&6; }
if test "${ompi_cv_f90_sizeof_LOGICALp1+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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:52944: $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:52951: \$? = $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:52961: $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:52968: \$? = $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:52989: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*1" >&5
$as_echo "$as_me: WARNING: Could not determine size of LOGICAL*1" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

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


        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp1" >&5
$as_echo "$ompi_cv_f90_sizeof_LOGICALp1" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp1

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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_LOGICAL1
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*1) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*1) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*1)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*1)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL1
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*1 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*1 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*1 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*1 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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_LOGICAL1 $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_LOGICAL1=$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="LOGICAL*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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*2" >&5
$as_echo_n "checking if Fortran 90 compiler supports LOGICAL*2... " >&6; }
if test "${ompi_cv_f90_have_LOGICALp2+set}" = set; then
  $as_echo_n "(cached) " >&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*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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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_LOGICALp2="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_f90_have_LOGICALp2="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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp2" >&5
$as_echo "$ompi_cv_f90_have_LOGICALp2" >&6; }

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


    else
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*2" >&5
$as_echo_n "checking size of Fortran 90 LOGICAL*2... " >&6; }
if test "${ompi_cv_f90_sizeof_LOGICALp2+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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:53307: $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:53314: \$? = $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:53324: $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:53331: \$? = $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:53352: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*2" >&5
$as_echo "$as_me: WARNING: Could not determine size of LOGICAL*2" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

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


        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp2" >&5
$as_echo "$ompi_cv_f90_sizeof_LOGICALp2" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp2

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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_LOGICAL2
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*2) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*2) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*2)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*2)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL2
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*2 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*2 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*2 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*2 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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_LOGICAL2 $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_LOGICAL2=$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="LOGICAL*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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*4" >&5
$as_echo_n "checking if Fortran 90 compiler supports LOGICAL*4... " >&6; }
if test "${ompi_cv_f90_have_LOGICALp4+set}" = set; then
  $as_echo_n "(cached) " >&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*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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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_LOGICALp4="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_f90_have_LOGICALp4="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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp4" >&5
$as_echo "$ompi_cv_f90_have_LOGICALp4" >&6; }

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


    else
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*4" >&5
$as_echo_n "checking size of Fortran 90 LOGICAL*4... " >&6; }
if test "${ompi_cv_f90_sizeof_LOGICALp4+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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:53670: $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:53677: \$? = $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:53687: $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:53694: \$? = $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:53715: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*4" >&5
$as_echo "$as_me: WARNING: Could not determine size of LOGICAL*4" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

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


        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp4" >&5
$as_echo "$ompi_cv_f90_sizeof_LOGICALp4" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp4

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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_LOGICAL4
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*4) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*4) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*4)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*4)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL4
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*4 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*4 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*4 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*4 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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_LOGICAL4 $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_LOGICAL4=$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="LOGICAL*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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL*8" >&5
$as_echo_n "checking if Fortran 90 compiler supports LOGICAL*8... " >&6; }
if test "${ompi_cv_f90_have_LOGICALp8+set}" = set; then
  $as_echo_n "(cached) " >&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*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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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_LOGICALp8="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_f90_have_LOGICALp8="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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICALp8" >&5
$as_echo "$ompi_cv_f90_have_LOGICALp8" >&6; }

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


    else
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL*8" >&5
$as_echo_n "checking size of Fortran 90 LOGICAL*8... " >&6; }
if test "${ompi_cv_f90_sizeof_LOGICALp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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:54033: $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:54040: \$? = $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:54050: $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:54057: \$? = $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:54078: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL*8" >&5
$as_echo "$as_me: WARNING: Could not determine size of LOGICAL*8" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

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


        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICALp8" >&5
$as_echo "$ompi_cv_f90_sizeof_LOGICALp8" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_LOGICALp8

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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_LOGICAL8
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL*8) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL*8) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL*8)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL*8)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL8
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL*8 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL*8 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL*8 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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_LOGICAL8 $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_LOGICAL8=$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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER... " >&6; }
if test "${ompi_cv_f90_have_INTEGER+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGER" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER" >&5
$as_echo_n "checking size of Fortran 90 INTEGER... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGER+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:54398: $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:54405: \$? = $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:54415: $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:54422: \$? = $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:54443: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER when cross-compiling" >&5
$as_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:54470: ./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:54477: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGER" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*1" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER*1... " >&6; }
if test "${ompi_cv_f90_have_INTEGERp1+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp1" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*1" >&5
$as_echo_n "checking size of Fortran 90 INTEGER*1... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGERp1+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:54761: $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:54768: \$? = $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:54778: $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:54785: \$? = $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:54806: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*1" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER*1" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER*1 when cross-compiling" >&5
$as_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:54833: ./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:54840: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp1" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*2" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER*2... " >&6; }
if test "${ompi_cv_f90_have_INTEGERp2+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp2" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*2" >&5
$as_echo_n "checking size of Fortran 90 INTEGER*2... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGERp2+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:55124: $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:55131: \$? = $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:55141: $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:55148: \$? = $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:55169: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*2" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER*2" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER*2 when cross-compiling" >&5
$as_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:55196: ./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:55203: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp2" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*4" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER*4... " >&6; }
if test "${ompi_cv_f90_have_INTEGERp4+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp4" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*4" >&5
$as_echo_n "checking size of Fortran 90 INTEGER*4... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGERp4+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:55487: $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:55494: \$? = $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:55504: $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:55511: \$? = $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:55532: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*4" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER*4" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER*4 when cross-compiling" >&5
$as_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:55559: ./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:55566: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp4" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*8" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER*8... " >&6; }
if test "${ompi_cv_f90_have_INTEGERp8+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp8" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*8" >&5
$as_echo_n "checking size of Fortran 90 INTEGER*8... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGERp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:55850: $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:55857: \$? = $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:55867: $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:55874: \$? = $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:55895: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*8" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER*8" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER*8 when cross-compiling" >&5
$as_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:55922: ./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:55929: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp8" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*16" >&5
$as_echo_n "checking if Fortran 90 compiler supports INTEGER*16... " >&6; }
if test "${ompi_cv_f90_have_INTEGERp16+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp16" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*16" >&5
$as_echo_n "checking size of Fortran 90 INTEGER*16... " >&6; }
if test "${ompi_cv_f90_sizeof_INTEGERp16+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:56213: $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:56220: \$? = $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:56230: $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:56237: \$? = $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:56258: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*16" >&5
$as_echo "$as_me: WARNING: Could not determine size of INTEGER*16" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of INTEGER*16 when cross-compiling" >&5
$as_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:56285: ./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:56292: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp16" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL" >&5
$as_echo_n "checking if Fortran 90 compiler supports REAL... " >&6; }
if test "${ompi_cv_f90_have_REAL+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REAL" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 REAL" >&5
$as_echo_n "checking size of Fortran 90 REAL... " >&6; }
if test "${ompi_cv_f90_sizeof_REAL+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:56578: $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:56585: \$? = $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:56595: $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:56602: \$? = $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:56623: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of REAL" >&5
$as_echo "$as_me: WARNING: Could not determine size of REAL" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of REAL when cross-compiling" >&5
$as_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:56650: ./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:56657: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REAL" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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*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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*2" >&5
$as_echo_n "checking if Fortran 90 compiler supports REAL*2... " >&6; }
if test "${ompi_cv_f90_have_REALp2+set}" = set; then
  $as_echo_n "(cached) " >&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*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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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_REALp2="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_f90_have_REALp2="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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp2" >&5
$as_echo "$ompi_cv_f90_have_REALp2" >&6; }

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


    else
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 REAL*2" >&5
$as_echo_n "checking size of Fortran 90 REAL*2... " >&6; }
if test "${ompi_cv_f90_sizeof_REALp2+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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*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:56941: $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:56948: \$? = $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:56958: $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:56965: \$? = $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:56986: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*2" >&5
$as_echo "$as_me: WARNING: Could not determine size of REAL*2" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

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


        unset happy ompi_conftest_h
        rm -rf conftest*
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp2" >&5
$as_echo "$ompi_cv_f90_sizeof_REALp2" >&6; }

    ofc_type_size=$ompi_cv_f90_sizeof_REALp2

        if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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_REAL2
            if test "$ofc_f77_have_type" = "0"; then
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*2) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*2) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*2)" >&5
$as_echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*2)" >&2;}
            else

                # Check the size of this type against its F77 counterpart
                ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL2
                if test "$ofc_f77_sizeof" != ""; then
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*2 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for REAL*2 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*2 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for REAL*2 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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_REAL2 $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_REAL2=$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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*4" >&5
$as_echo_n "checking if Fortran 90 compiler supports REAL*4... " >&6; }
if test "${ompi_cv_f90_have_REALp4+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp4" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 REAL*4" >&5
$as_echo_n "checking size of Fortran 90 REAL*4... " >&6; }
if test "${ompi_cv_f90_sizeof_REALp4+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:57304: $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:57311: \$? = $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:57321: $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:57328: \$? = $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:57349: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*4" >&5
$as_echo "$as_me: WARNING: Could not determine size of REAL*4" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of REAL*4 when cross-compiling" >&5
$as_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:57376: ./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:57383: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp4" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*8" >&5
$as_echo_n "checking if Fortran 90 compiler supports REAL*8... " >&6; }
if test "${ompi_cv_f90_have_REALp8+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp8" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 REAL*8" >&5
$as_echo_n "checking size of Fortran 90 REAL*8... " >&6; }
if test "${ompi_cv_f90_sizeof_REALp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:57667: $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:57674: \$? = $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:57684: $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:57691: \$? = $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:57712: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*8" >&5
$as_echo "$as_me: WARNING: Could not determine size of REAL*8" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of REAL*8 when cross-compiling" >&5
$as_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:57739: ./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:57746: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp8" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*16" >&5
$as_echo_n "checking if Fortran 90 compiler supports REAL*16... " >&6; }
if test "${ompi_cv_f90_have_REALp16+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp16" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 REAL*16" >&5
$as_echo_n "checking size of Fortran 90 REAL*16... " >&6; }
if test "${ompi_cv_f90_sizeof_REALp16+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:58030: $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:58037: \$? = $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:58047: $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:58054: \$? = $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:58075: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*16" >&5
$as_echo "$as_me: WARNING: Could not determine size of REAL*16" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of REAL*16 when cross-compiling" >&5
$as_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:58102: ./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:58109: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp16" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports DOUBLE PRECISION" >&5
$as_echo_n "checking if Fortran 90 compiler supports DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_f90_have_DOUBLE_PRECISION+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_DOUBLE_PRECISION" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 DOUBLE PRECISION" >&5
$as_echo_n "checking size of Fortran 90 DOUBLE PRECISION... " >&6; }
if test "${ompi_cv_f90_sizeof_DOUBLE_PRECISION+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:58393: $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:58400: \$? = $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:58410: $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:58417: \$? = $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:58438: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of DOUBLE PRECISION" >&5
$as_echo "$as_me: WARNING: Could not determine size of DOUBLE PRECISION" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&5
$as_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:58465: ./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:58472: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_DOUBLE_PRECISION" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX" >&5
$as_echo_n "checking if Fortran 90 compiler supports COMPLEX... " >&6; }
if test "${ompi_cv_f90_have_COMPLEX+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEX" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX" >&5
$as_echo_n "checking size of Fortran 90 COMPLEX... " >&6; }
if test "${ompi_cv_f90_sizeof_COMPLEX+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:58758: $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:58765: \$? = $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:58775: $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:58782: \$? = $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:58803: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX" >&5
$as_echo "$as_me: WARNING: Could not determine size of COMPLEX" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of COMPLEX when cross-compiling" >&5
$as_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:58830: ./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:58837: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEX" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*8" >&5
$as_echo_n "checking if Fortran 90 compiler supports COMPLEX*8... " >&6; }
if test "${ompi_cv_f90_have_COMPLEXp8+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp8" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*8" >&5
$as_echo_n "checking size of Fortran 90 COMPLEX*8... " >&6; }
if test "${ompi_cv_f90_sizeof_COMPLEXp8+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:59121: $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:59128: \$? = $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:59138: $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:59145: \$? = $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:59166: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*8" >&5
$as_echo "$as_me: WARNING: Could not determine size of COMPLEX*8" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*8 when cross-compiling" >&5
$as_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:59193: ./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:59200: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp8" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*16" >&5
$as_echo_n "checking if Fortran 90 compiler supports COMPLEX*16... " >&6; }
if test "${ompi_cv_f90_have_COMPLEXp16+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp16" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*16" >&5
$as_echo_n "checking size of Fortran 90 COMPLEX*16... " >&6; }
if test "${ompi_cv_f90_sizeof_COMPLEXp16+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:59484: $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:59491: \$? = $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:59501: $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:59508: \$? = $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:59529: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*16" >&5
$as_echo "$as_me: WARNING: Could not determine size of COMPLEX*16" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*16 when cross-compiling" >&5
$as_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:59556: ./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:59563: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp16" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*32" >&5
$as_echo_n "checking if Fortran 90 compiler supports COMPLEX*32... " >&6; }
if test "${ompi_cv_f90_have_COMPLEXp32+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp32" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*32" >&5
$as_echo_n "checking size of Fortran 90 COMPLEX*32... " >&6; }
if test "${ompi_cv_f90_sizeof_COMPLEXp32+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:59847: $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:59854: \$? = $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:59864: $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:59871: \$? = $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:59892: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*32" >&5
$as_echo "$as_me: WARNING: Could not determine size of COMPLEX*32" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*32 when cross-compiling" >&5
$as_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:59919: ./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:59926: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp32" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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

    { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports DOUBLE COMPLEX" >&5
$as_echo_n "checking if Fortran 90 compiler supports DOUBLE COMPLEX... " >&6; }
if test "${ompi_cv_f90_have_DOUBLE_COMPLEX+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_have_DOUBLE_COMPLEX" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
$as_echo_n "checking if Fortran 90 compiler supports $ofc_fortran_type... " >&6; }
        { $as_echo "$as_me:$LINENO: result: skipped" >&5
$as_echo "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.



    { $as_echo "$as_me:$LINENO: checking size of Fortran 90 DOUBLE COMPLEX" >&5
$as_echo_n "checking size of Fortran 90 DOUBLE COMPLEX... " >&6; }
if test "${ompi_cv_f90_sizeof_DOUBLE_COMPLEX+set}" = set; then
  $as_echo_n "(cached) " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:60210: $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:60217: \$? = $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:60227: $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:60234: \$? = $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:60255: 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
             { $as_echo "$as_me:$LINENO: WARNING: Could not determine size of DOUBLE COMPLEX" >&5
$as_echo "$as_me: WARNING: Could not determine size of DOUBLE COMPLEX" >&2;}
             { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
             { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
         fi

         if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine size of DOUBLE COMPLEX when cross-compiling" >&5
$as_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:60282: ./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:60289: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine size of DOUBLE COMPLEX" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&5
$as_echo "$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
            { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
$as_echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
$as_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
                { $as_echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&5
$as_echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&5
$as_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
                    { $as_echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
$as_echo_n "checking if Fortran 77 and 90 type sizes match... " >&6; }
                    if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&5
$as_echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&2;}
                        { $as_echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&5
$as_echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&2;}
                        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_echo "$as_me: error: *** Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
                    else
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
        { $as_echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))... " >&6; }
if test "${ompi_cv_f90_int_kind_4+set}" = set; then
  $as_echo_n "(cached) " >&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:60435: $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:60442: \$? = $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:60459: 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
                { $as_echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            fi

            if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
$as_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:60486: ./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:60493: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_4" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))... " >&6; }
if test "${ompi_cv_f90_int_kind_9+set}" = set; then
  $as_echo_n "(cached) " >&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:60543: $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:60550: \$? = $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:60567: 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
                { $as_echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            fi

            if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
$as_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:60594: ./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:60601: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_9" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))... " >&6; }
if test "${ompi_cv_f90_int_kind_18+set}" = set; then
  $as_echo_n "(cached) " >&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:60651: $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:60658: \$? = $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:60675: 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
                { $as_echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            fi

            if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
$as_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:60702: ./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:60709: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))... " >&6; }
if test "${ompi_cv_f90_int_kind_19+set}" = set; then
  $as_echo_n "(cached) " >&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:60759: $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:60766: \$? = $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:60783: 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
                { $as_echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            fi

            if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
$as_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:60810: ./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:60817: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_19" >&5
$as_echo "$ompi_cv_f90_int_kind_19" >&6; }

        OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_19
    else
        OMPI_MPI_INTEGER_KIND=0
    fi

    { { $as_echo "$as_me:$LINENO: error: Cannot support Fortran MPI_INTEGER_KIND!" >&5
$as_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
        { $as_echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))... " >&6; }
if test "${ompi_cv_f90_int_kind_4+set}" = set; then
  $as_echo_n "(cached) " >&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:60875: $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:60882: \$? = $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:60899: 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
                { $as_echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            fi

            if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
$as_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:60926: ./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:60933: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_4" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))... " >&6; }
if test "${ompi_cv_f90_int_kind_9+set}" = set; then
  $as_echo_n "(cached) " >&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:60983: $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:60990: \$? = $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:61007: 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
                { $as_echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            fi

            if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
$as_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:61034: ./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:61041: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_9" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))... " >&6; }
if test "${ompi_cv_f90_int_kind_18+set}" = set; then
  $as_echo_n "(cached) " >&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:61091: $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:61098: \$? = $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:61115: 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
                { $as_echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            fi

            if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
$as_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:61142: ./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:61149: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))... " >&6; }
if test "${ompi_cv_f90_int_kind_19+set}" = set; then
  $as_echo_n "(cached) " >&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:61199: $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:61206: \$? = $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:61223: 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
                { $as_echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            fi

            if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
$as_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:61250: ./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:61257: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_19" >&5
$as_echo "$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
    { { $as_echo "$as_me:$LINENO: error: Cannot support Fortran MPI_ADDRESS_KIND!" >&5
$as_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
        { $as_echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))" >&5
$as_echo_n "checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))... " >&6; }
if test "${ompi_cv_f90_int_kind_18+set}" = set; then
  $as_echo_n "(cached) " >&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:61314: $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:61321: \$? = $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:61338: 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
                { $as_echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&5
$as_echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&2;}
                { $as_echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
$as_echo "$as_me: WARNING: See config.log for details" >&2;}
                { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            fi

            if test "$cross_compiling" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_OFFSET_KIND) when cross-compiling" >&5
$as_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:61365: ./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:61372: \$? = $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
    { { $as_echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)" >&5
$as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5
$as_echo "$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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $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" &&
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_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 net/uio.h sys/utsname.h sys/wait.h syslog.h \
    time.h termios.h ulimit.h unistd.h util.h utmp.h malloc.h \
    ifaddrs.h sys/sysctl.h crt_externs.h regex.h \
    ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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

done

{ $as_echo "$as_me:$LINENO: checking if <stdbool.h> works" >&5
$as_echo_n "checking if <stdbool.h> works... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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

{ $as_echo "$as_me:$LINENO: result: $MSG" >&5
$as_echo "$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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $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" &&
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_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
# 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.
{ $as_echo "$as_me:$LINENO: checking size of pid_t" >&5
$as_echo_n "checking size of pid_t... " >&6; }
if test "${ac_cv_sizeof_pid_t+set}" = set; then
  $as_echo_n "(cached) " >&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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) < 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
See \`config.log' for more details." >&5
$as_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
static long int longval () { return (long int) (sizeof (pid_t)); }
static unsigned long int ulongval () { return (long int) (sizeof (pid_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (pid_t))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (pid_t))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (pid_t))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_pid_t=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_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
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
See \`config.log' for more details." >&5
$as_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 -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
$as_echo "$ac_cv_sizeof_pid_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
_ACEOF



{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
$as_echo_n "checking for socklen_t... " >&6; }
if test "${ac_cv_type_socklen_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_socklen_t=no
cat >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_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof (socklen_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >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_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof ((socklen_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_socklen_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
$as_echo "$ac_cv_type_socklen_t" >&6; }
if test "x$ac_cv_type_socklen_t" = x""yes; then

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


fi
{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5
$as_echo_n "checking for struct sockaddr_in... " >&6; }
if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_struct_sockaddr_in=no
cat >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_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof (struct sockaddr_in))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >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_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof ((struct sockaddr_in)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_sockaddr_in=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5
$as_echo "$ac_cv_type_struct_sockaddr_in" >&6; }
if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then

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


fi
{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
$as_echo_n "checking for struct sockaddr_in6... " >&6; }
if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_struct_sockaddr_in6=no
cat >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_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof (struct sockaddr_in6))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >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_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof ((struct sockaddr_in6)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_sockaddr_in6=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
$as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then

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


fi
{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_struct_sockaddr_storage=no
cat >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_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof (struct sockaddr_storage))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >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_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof ((struct sockaddr_storage)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_sockaddr_storage=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
$as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then

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


fi


{ $as_echo "$as_me:$LINENO: checking whether AF_UNSPEC is declared" >&5
$as_echo_n "checking whether AF_UNSPEC is declared... " >&6; }
if test "${ac_cv_have_decl_AF_UNSPEC+set}" = set; then
  $as_echo_n "(cached) " >&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
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
#ifndef AF_UNSPEC
  (void) AF_UNSPEC;
#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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_AF_UNSPEC=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_AF_UNSPEC=no
fi

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

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


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


fi
{ $as_echo "$as_me:$LINENO: checking whether PF_UNSPEC is declared" >&5
$as_echo_n "checking whether PF_UNSPEC is declared... " >&6; }
if test "${ac_cv_have_decl_PF_UNSPEC+set}" = set; then
  $as_echo_n "(cached) " >&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
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
#ifndef PF_UNSPEC
  (void) PF_UNSPEC;
#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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_PF_UNSPEC=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_PF_UNSPEC=no
fi

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

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


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


fi
{ $as_echo "$as_me:$LINENO: checking whether AF_INET6 is declared" >&5
$as_echo_n "checking whether AF_INET6 is declared... " >&6; }
if test "${ac_cv_have_decl_AF_INET6+set}" = set; then
  $as_echo_n "(cached) " >&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
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
#ifndef AF_INET6
  (void) AF_INET6;
#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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_AF_INET6=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_AF_INET6=no
fi

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

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


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


fi
{ $as_echo "$as_me:$LINENO: checking whether PF_INET6 is declared" >&5
$as_echo_n "checking whether PF_INET6 is declared... " >&6; }
if test "${ac_cv_have_decl_PF_INET6+set}" = set; then
  $as_echo_n "(cached) " >&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
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
#ifndef PF_INET6
  (void) PF_INET6;
#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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_PF_INET6=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_PF_INET6=no
fi

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

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


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


fi



# SA_RESTART in signal.h
{ $as_echo "$as_me:$LINENO: checking if SA_RESTART defined in signal.h" >&5
$as_echo_n "checking if SA_RESTART defined in signal.h... " >&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

{ $as_echo "$as_me:$LINENO: result: $MSG" >&5
$as_echo "$MSG" >&6; }

{ $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
$as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
  $as_echo_n "(cached) " >&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>
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main ()
{
static struct sockaddr ac_aggr;
if (ac_aggr.sa_len)
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_sockaddr_sa_len=yes
else
  $as_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>
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

int
main ()
{
static struct sockaddr ac_aggr;
if (sizeof ac_aggr.sa_len)
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_sockaddr_sa_len=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_member_struct_sockaddr_sa_len=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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
$as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then

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


fi


{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_type" >&5
$as_echo_n "checking for struct dirent.d_type... " >&6; }
if test "${ac_cv_member_struct_dirent_d_type+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_type" >&5
$as_echo "$ac_cv_member_struct_dirent_d_type" >&6; }
if test "x$ac_cv_member_struct_dirent_d_type" = x""yes; then

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


fi


{ $as_echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
$as_echo_n "checking for siginfo_t.si_fd... " >&6; }
if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
$as_echo "$ac_cv_member_siginfo_t_si_fd" >&6; }
if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then

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


fi

{ $as_echo "$as_me:$LINENO: checking for siginfo_t.si_band" >&5
$as_echo_n "checking for siginfo_t.si_band... " >&6; }
if test "${ac_cv_member_siginfo_t_si_band+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_band" >&5
$as_echo "$ac_cv_member_siginfo_t_si_band" >&6; }
if test "x$ac_cv_member_siginfo_t_si_band" = x""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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $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" &&
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache


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

ompi_show_title "Library and Function tests"


{ $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
$as_echo_n "checking for openpty in -lutil... " >&6; }
if test "${ac_cv_lib_util_openpty+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_util_openpty=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_util_openpty=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
$as_echo "$ac_cv_lib_util_openpty" >&6; }
if test "x$ac_cv_lib_util_openpty" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBUTIL 1
_ACEOF

  LIBS="-lutil $LIBS"

fi



{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_nsl_gethostbyname=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_nsl_gethostbyname=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNSL 1
_ACEOF

  LIBS="-lnsl $LIBS"

fi



{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
$as_echo_n "checking for socket in -lsocket... " >&6; }
if test "${ac_cv_lib_socket_socket+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_socket_socket=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_socket_socket=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
$as_echo "$ac_cv_lib_socket_socket" >&6; }
if test "x$ac_cv_lib_socket_socket" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSOCKET 1
_ACEOF

  LIBS="-lsocket $LIBS"

fi


# Solaris has sched_yeild in -lrt, usually in libc

        { $as_echo "$as_me:$LINENO: checking if we need -lrt for sched_yield" >&5
$as_echo_n "checking if we need -lrt for sched_yield... " >&6; }
if test "${ompi_cv_func_lib_sched_yield_rt+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_sched_yield_rt="no"
else
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_sched_yield_rt="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_lib_sched_yield_rt="not found"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_lib_sched_yield_rt" >&5
$as_echo "$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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



# IRIX has dirname in -lgen, usually in libc

        { $as_echo "$as_me:$LINENO: checking if we need -lgen for dirname" >&5
$as_echo_n "checking if we need -lgen for dirname... " >&6; }
if test "${ompi_cv_func_lib_dirname_gen+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_dirname_gen="no"
else
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_dirname_gen="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_lib_dirname_gen="not found"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_lib_dirname_gen" >&5
$as_echo "$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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



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

        { $as_echo "$as_me:$LINENO: checking if we need -lm for ceil" >&5
$as_echo_n "checking if we need -lm for ceil... " >&6; }
if test "${ompi_cv_func_lib_ceil_m+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_ceil_m="no"
else
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_ceil_m="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_lib_ceil_m="not found"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_lib_ceil_m" >&5
$as_echo "$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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done
































for ac_func in asprintf snprintf vasprintf vsnprintf openpty isatty getpwuid fork waitpid execve pipe ptsname setsid mmap mallopt tcgetpgrp posix_memalign strsignal sysconf syslog regcmp regexec regfree _NSGetEnviron socketpair strncpy_s _strdup usleep mkfifo
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


# On some hosts, htonl is a define, so the AC_CHECK_FUNC will get
# confused.  On others, it's in the standard library, but stubbed with
# the magic glibc foo as not implemented.  and on other systems, it's
# just not there.  This covers all cases.
{ $as_echo "$as_me:$LINENO: checking for htonl define" >&5
$as_echo_n "checking for htonl define... " >&6; }
if test "${ompi_cv_htonl_define+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int
main ()
{

#ifndef ntohl
#error "ntohl not defined"
#endif

  ;
  return 0;
}
_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  ompi_cv_htonl_define=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ompi_cv_htonl_define=no
fi

rm -f conftest.err conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_htonl_define" >&5
$as_echo "$ompi_cv_htonl_define" >&6; }
{ $as_echo "$as_me:$LINENO: checking for htonl" >&5
$as_echo_n "checking for htonl... " >&6; }
if test "${ac_cv_func_htonl+set}" = set; then
  $as_echo_n "(cached) " >&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 htonl to an innocuous variant, in case <limits.h> declares htonl.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define htonl innocuous_htonl

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char htonl (); 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 htonl

/* 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 htonl ();
/* 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_htonl || defined __stub___htonl
choke me
#endif

int
main ()
{
return htonl ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_htonl=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_htonl=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_htonl" >&5
$as_echo "$ac_cv_func_htonl" >&6; }
if test "x$ac_cv_func_htonl" = x""yes; then
  ompi_have_htonl=yes
else
  ompi_have_htonl=no
fi

if test "$ompi_cv_htonl_define" = "yes" -o "$ompi_have_htonl" = "yes"; then

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

fi


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

{ $as_echo "$as_me:$LINENO: checking whether va_copy is declared" >&5
$as_echo_n "checking whether va_copy is declared... " >&6; }
if test "${ac_cv_have_decl_va_copy+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_va_copy" >&5
$as_echo "$ac_cv_have_decl_va_copy" >&6; }
if test "x$ac_cv_have_decl_va_copy" = x""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


{ $as_echo "$as_me:$LINENO: checking whether __va_copy is declared" >&5
$as_echo_n "checking whether __va_copy is declared... " >&6; }
if test "${ac_cv_have_decl___va_copy+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___va_copy" >&5
$as_echo "$ac_cv_have_decl___va_copy" >&6; }
if test "x$ac_cv_have_decl___va_copy" = x""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


{ $as_echo "$as_me:$LINENO: checking whether __func__ is declared" >&5
$as_echo_n "checking whether __func__ is declared... " >&6; }
if test "${ac_cv_have_decl___func__+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___func__" >&5
$as_echo "$ac_cv_have_decl___func__" >&6; }
if test "x$ac_cv_have_decl___func__" = x""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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $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" &&
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_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"
{ $as_echo "$as_me:$LINENO: checking checking for type of MPI_Offset" >&5
$as_echo_n "checking checking for type of MPI_Offset... " >&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
{ $as_echo "$as_me:$LINENO: result: $MPI_OFFSET_TYPE" >&5
$as_echo "$MPI_OFFSET_TYPE" >&6; }
if test "$MPI_OFFSET_TYPE" = "not found"; then
	{ $as_echo "$as_me:$LINENO: WARNING: *** Unable to find the right definition for MPI_Offset" >&5
$as_echo "$as_me: WARNING: *** Unable to find the right definition for MPI_Offset" >&2;}
	{ { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
    { { $as_echo "$as_me:$LINENO: error: Could not find datatype to emulate ptrdiff_t.  Cannot continue" >&5
$as_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.
#
{ $as_echo "$as_me:$LINENO: checking checking for an MPI datatype for MPI_Offset" >&5
$as_echo_n "checking checking for an MPI datatype for MPI_Offset... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $MPI_OFFSET_DATATYPE" >&5
$as_echo "$MPI_OFFSET_DATATYPE" >&6; }
if test "$MPI_OFFSET_DATATYPE" = "not found"; then
	{ $as_echo "$as_me:$LINENO: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&5
$as_echo "$as_me: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&2;}
	{ { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
fi

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


# Do we have _SC_NPROCESSORS_ONLN? (only going to pass if we also have
# <unistd.h> and sysconf(), which is ok) OS X 10.4 has <unistd.h> and
# sysconf(), but does not have _SC_NPROCESSORS_ONLN.  Doh!

{ $as_echo "$as_me:$LINENO: checking for _SC_NPROCESSORS_ONLN" >&5
$as_echo_n "checking for _SC_NPROCESSORS_ONLN... " >&6; }
if test "${ompi_cv_have__SC_NPROCESSORS_ONLN+set}" = set; then
  $as_echo_n "(cached) " >&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 <unistd.h>

int
main ()
{
int i = _SC_NPROCESSORS_ONLN;
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_have__SC_NPROCESSORS_ONLN="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_have__SC_NPROCESSORS_ONLN="no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_have__SC_NPROCESSORS_ONLN" >&5
$as_echo "$ompi_cv_have__SC_NPROCESSORS_ONLN" >&6; }
if test "$ompi_cv_have__SC_NPROCESSORS_ONLN" = "yes"; then
  result=1
else
  result=0
fi


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


# all: endian


 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if test "${ac_cv_c_bigendian+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

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

	# Check for potential -arch flags.  It is not universal unless
	# there are some -arch flags.  Note that *ppc* also matches
	# ppc64.  This check is also rather less than ideal.
	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
	esac
else
  $as_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
    if test $ac_cv_c_bigendian = unknown; then
      # 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 <limits.h>

int
main ()
{
#ifndef _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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  $as_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
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then
  # Try to guess by grepping values from an object file.
	 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 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_bigendian=no
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_c_bigendian=yes
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


    fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     cat >>confdefs.h <<\_ACEOF
#define WORDS_BIGENDIAN 1
_ACEOF
;; #(
   no)
      ;; #(
   universal)

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

     ;; #(
   *)
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
$as_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

  { $as_echo "$as_me:$LINENO: checking for broken qsort" >&5
$as_echo_n "checking for broken qsort... " >&6; }

  if test "$with_broken_qsort" = "yes"; then
    result="yes"
    define_result=1
  else
    result="no"
    define_result=0
  fi
  { $as_echo "$as_me:$LINENO: result: $result" >&5
$as_echo "$result" >&6; }

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



{ $as_echo "$as_me:$LINENO: checking if word-sized integers must be word-size aligned" >&5
$as_echo_n "checking if word-sized integers must be word-size aligned... " >&6; }
if test "${ompi_cv_c_word_size_align+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ompi_cv_c_word_size_align=no
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_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 -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_word_size_align" >&5
$as_echo "$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
  { $as_echo "$as_me:$LINENO: checking if C compiler and POSIX threads work as is" >&5
$as_echo_n "checking if C compiler and POSIX threads work as is... " >&6; }
  if test "$HAVE_POSIX_THREADS" = "1" ; then
    run_this_test=1
  else
    case "${host_cpu}-${host_os}" in
      *solaris*)
        { $as_echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5
$as_echo "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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_pthread_c_success=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_pthread_c_success=0
fi

rm -rf conftest.dSYM
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
      { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
      PTHREAD_CPPFLAGS=
      CPPFLAGS="$orig_CPPFLAGS"
      { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
  fi
fi



#
# C++ compiler
#
if test "$ompi_pthread_cxx_success" = "0"; then
  { $as_echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work as is" >&5
$as_echo_n "checking if C++ compiler and POSIX threads work as is... " >&6; }
  if test "$HAVE_POSIX_THREADS" = "1" ; then
    run_this_test=1
  else
    case "${host_cpu}-${host_os}" in
      *solaris*)
        { $as_echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5
$as_echo "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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_pthread_cxx_success=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_pthread_cxx_success=0
fi

rm -rf conftest.dSYM
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
      { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
      PTHREAD_CXXCPPFLAGS=
      CXXCPPFLAGS="$orig_CXXCPPFLAGS"
      { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
  fi
fi



#
# Fortran compiler
#
if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then
  { $as_echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work as is" >&5
$as_echo_n "checking if F77 compiler and POSIX threads work as is... " >&6; }
  if test "$HAVE_POSIX_THREADS" = "1" ; then
    run_this_test=1
  else
    case "${host_cpu}-${host_os}" in
      *solaris*)
        { $as_echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5
$as_echo "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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:66505: $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:66512: \$? = $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:66522: $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:66529: \$? = $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:66552: 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:66566: 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:66580: 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
      { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
    { $as_echo "$as_me:$LINENO: checking if C compiler and POSIX threads work with $pf" >&5
$as_echo_n "checking if C compiler and POSIX threads work with $pf... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_pthread_c_success=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_pthread_c_success=0
fi

rm -rf conftest.dSYM
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"
      { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
      break
    else
      PTHREAD_CFLAGS=
      CFLAGS="$orig_CFLAGS"
      { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
  done
fi



#
# C++ compiler
#
if test "$ompi_pthread_cxx_success" = "0"; then
  for pf in $pflags; do
    { $as_echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $pf" >&5
$as_echo_n "checking if C++ compiler and POSIX threads work with $pf... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_pthread_cxx_success=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_pthread_cxx_success=0
fi

rm -rf conftest.dSYM
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"
      { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
      break
    else
      PTHREAD_CXXFLAGS=
      CXXFLAGS="$orig_CXXFLAGS"
      { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
    { $as_echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $pf" >&5
$as_echo_n "checking if F77 compiler and POSIX threads work with $pf... " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:66926: $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:66933: \$? = $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:66943: $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:66950: \$? = $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:66973: 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:66987: 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:67001: 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"
      { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
      break
    else
      PTHREAD_FFLAGS=
      FFLAGS="$orig_FFLAGS"
      { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
    { $as_echo "$as_me:$LINENO: checking if C compiler and POSIX threads work with $pl" >&5
$as_echo_n "checking if C compiler and POSIX threads work with $pl... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_pthread_c_success=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_pthread_c_success=0
fi

rm -rf conftest.dSYM
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"
      { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
      PTHREAD_CPPFLAGS=
      CPPFLAGS="$orig_CPPFLAGS"
      LIBS="$orig_LIBS"
      { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
    { $as_echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS" >&5
$as_echo_n "checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_pthread_cxx_success=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_pthread_cxx_success=0
fi

rm -rf conftest.dSYM
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
      { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
      CXXCPPFLAGS="$orig_CXXCPPFLAGS"
      LIBS="$orig_LIBS"
      { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
      { { $as_echo "$as_me:$LINENO: error: Can not find working threads configuration.  aborting" >&5
$as_echo "$as_me: error: Can not find working threads configuration.  aborting" >&2;}
   { (exit 1); exit 1; }; }
    fi
  else
    for pl in $plibs; do
      { $as_echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $pl" >&5
$as_echo_n "checking if C++ compiler and POSIX threads work with $pl... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_pthread_cxx_success=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_pthread_cxx_success=0
fi

rm -rf conftest.dSYM
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"
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
      else
        PTHREAD_CXXCPPFLAGS=
        CXXCPPFLAGS="$orig_CXXCPPFLAGS"
        LIBS="$orig_LIBS"
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
    { $as_echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS" >&5
$as_echo_n "checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS... " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:67471: $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:67478: \$? = $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:67488: $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:67495: \$? = $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:67518: 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:67532: 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:67546: 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
      { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
      LIBS="$orig_LIBS"
      { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
      { { $as_echo "$as_me:$LINENO: error: Can not find working threads configuration.  aborting" >&5
$as_echo "$as_me: error: Can not find working threads configuration.  aborting" >&2;}
   { (exit 1); exit 1; }; }
    fi
  else
    for pl in $plibs; do
      { $as_echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $pl" >&5
$as_echo_n "checking if F77 compiler and POSIX threads work with $pl... " >&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
        { { $as_echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
$as_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:67663: $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:67670: \$? = $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:67680: $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:67687: \$? = $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:67710: 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:67724: 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:67738: 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"
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        break
      else
        LIBS="$orig_LIBS"
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
      fi
    done
  fi
fi


# End: OMPI_INTL_POSIX_THREADS_LIBS



#
# check to see if we can set error checking mutexes
#

# LinuxThreads
{ $as_echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  result="yes" defval=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	result="no" defval=0
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $result" >&5
$as_echo "$result" >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP $defval
_ACEOF


# Mac OS X
{ $as_echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_ERRORCHECK" >&5
$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  result="yes" defval=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	result="no" defval=0
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $result" >&5
$as_echo "$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

{ $as_echo "$as_me:$LINENO: checking for working POSIX threads package" >&5
$as_echo_n "checking for working POSIX threads package... " >&6; }
if test "$HAVE_POSIX_THREADS" = "1" ; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking if C compiler and Solaris threads work" >&5
$as_echo_n "checking if C compiler and Solaris threads work... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_sthread_c_success=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_sthread_c_success=0
fi

rm -rf conftest.dSYM
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
    { $as_echo "$as_me:$LINENO: result: yes - $style" >&5
$as_echo "yes - $style" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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"
{ $as_echo "$as_me:$LINENO: checking if C++ compiler and Solaris threads work" >&5
$as_echo_n "checking if C++ compiler and Solaris threads work... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_sthread_cxx_success=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_sthread_cxx_success=0
fi

rm -rf conftest.dSYM
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
    { $as_echo "$as_me:$LINENO: result: yes - $style" >&5
$as_echo "yes - $style" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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"
    { $as_echo "$as_me:$LINENO: checking if F77 compiler and Solaris threads work" >&5
$as_echo_n "checking if F77 compiler and Solaris threads work... " >&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:68211: $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:68218: \$? = $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:68228: $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:68235: \$? = $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:68258: 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:68272: 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:68286: 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
        { $as_echo "$as_me:$LINENO: result: yes - $style" >&5
$as_echo "yes - $style" >&6; }
     else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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

{ $as_echo "$as_me:$LINENO: checking for working Solaris threads package" >&5
$as_echo_n "checking for working Solaris threads package... " >&6; }
if test "$HAVE_SOLARIS_THREADS" = "1" ; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
export HAVE_SOLARIS_THREADS

#
# Ask what threading we want (allow solaris / posix right now)
#
{ $as_echo "$as_me:$LINENO: checking for type of thread support" >&5
$as_echo_n "checking for type of thread support... " >&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
	{ $as_echo "$as_me:$LINENO: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&5
$as_echo "$as_me: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&2;}
	{ $as_echo "$as_me:$LINENO: WARNING: \"*** available on your system \"" >&5
$as_echo "$as_me: WARNING: \"*** available on your system \"" >&2;}
	{ { $as_echo "$as_me:$LINENO: error: \"*** Can not continue\"" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&5
$as_echo "$as_me: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&2;}
	{ $as_echo "$as_me:$LINENO: WARNING: \"*** available on your system \"" >&5
$as_echo "$as_me: WARNING: \"*** available on your system \"" >&2;}
	{ { $as_echo "$as_me:$LINENO: error: \"*** Can not continue\"" >&5
$as_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

    { $as_echo "$as_me:$LINENO: WARNING: \"*** You have specified a thread type that I do not\"" >&5
$as_echo "$as_me: WARNING: \"*** You have specified a thread type that I do not\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: \"*** understand.  Valid options are posix and solaris\"" >&5
$as_echo "$as_me: WARNING: \"*** understand.  Valid options are posix and solaris\"" >&2;}
    { { $as_echo "$as_me:$LINENO: error: \"*** Can not continue.\"" >&5
$as_echo "$as_me: error: \"*** Can not continue.\"" >&2;}
   { (exit 1); exit 1; }; }
fi
{ $as_echo "$as_me:$LINENO: result: $THREAD_TYPE" >&5
$as_echo "$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.
#

{ $as_echo "$as_me:$LINENO: checking if threads have different pids (pthreads on linux)" >&5
$as_echo_n "checking if threads have different pids (pthreads on linux)... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  MSG=no OMPI_THREADS_HAVE_DIFFERENT_PIDS=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_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 -rf conftest.dSYM
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"

{ $as_echo "$as_me:$LINENO: result: $MSG" >&5
$as_echo "$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.  The
OMPI development team is considering requiring threading support for
proper OMPI execution.  This is in part because we are not aware of
any OpenFabrics users that do not have thread support -- so we need
you to e-mail the Open MPI Users mailing list to tell us if this is a
problem for you.

************************************************************************

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
#
{ $as_echo "$as_me:$LINENO: checking if want MPI thread support" >&5
$as_echo_n "checking if want MPI thread support... " >&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
        { { $as_echo "$as_me:$LINENO: error: User requested MPI threads, but no threading model supported" >&5
$as_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

{ $as_echo "$as_me:$LINENO: result: $enable_mpi_threads" >&5
$as_echo "$enable_mpi_threads" >&6; }


{ $as_echo "$as_me:$LINENO: checking if want asynchronous progress thread support" >&5
$as_echo_n "checking if want asynchronous progress thread support... " >&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
        { { $as_echo "$as_me:$LINENO: error: User requested progress threads, but no threading model supported" >&5
$as_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

{ $as_echo "$as_me:$LINENO: result: $enable_progress_threads" >&5
$as_echo "$enable_progress_threads" >&6; }

#
# Fault Tolerance Thread
#
# --enable-ft-thread
#  #if OPAL_ENABLE_FT_THREAD == 0 /* Disabled */
#  #if OPAL_ENABLE_FT_THREAD == 1 /* Enabled  */
#
{ $as_echo "$as_me:$LINENO: checking if want fault tolerance thread" >&5
$as_echo_n "checking if want fault tolerance thread... " >&6; }
# Check whether --enable-ft_thread was given.
if test "${enable_ft_thread+set}" = set; then
  enableval=$enable_ft_thread; enable_ft_thread="$enableval"
else
  enable_ft_thread="undef"
fi


# if they do not want FT support, then they do not want this thread either
if test "$ompi_want_ft" = "0"; then
    ompi_want_ft_thread=0
    { $as_echo "$as_me:$LINENO: result: Disabled (fault tolerance disabled --without-ft)" >&5
$as_echo "Disabled (fault tolerance disabled --without-ft)" >&6; }
# if --disable-ft-thread
elif test "$enable_ft_thread" = "no"; then
    ompi_want_ft_thread=0
    { $as_echo "$as_me:$LINENO: result: Disabled" >&5
$as_echo "Disabled" >&6; }
# if default, and no progress or MPI threads
elif test "$enable_ft_thread" = "undef" -a "$enable_progress_threads" = "no"  -a "$enable_mpi_threads" = "no" ; then
    ompi_want_ft_thread=0
    { $as_echo "$as_me:$LINENO: result: Disabled (Progress and MPI Threads Disabled)" >&5
$as_echo "Disabled (Progress and MPI Threads Disabled)" >&6; }
# if default, and either progress or MPI threads enabled
else
    # Default: Enable
    # Make sure we have at least Progress Threads or MPI Threads enabled
    if test "$enable_progress_threads" = "no" -a "$enable_mpi_threads" = "no"; then
        { $as_echo "$as_me:$LINENO: result: Must enable progress or MPI threads to use this option" >&5
$as_echo "Must enable progress or MPI threads to use this option" >&6; }
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    else
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ompi_want_ft_thread=1
        { $as_echo "$as_me:$LINENO: WARNING: **************************************************" >&5
$as_echo "$as_me: WARNING: **************************************************" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** Fault Tolerance with a thread in Open MPI    *" >&5
$as_echo "$as_me: WARNING: *** Fault Tolerance with a thread in Open MPI    *" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** is an experimental, research quality option. *" >&5
$as_echo "$as_me: WARNING: *** is an experimental, research quality option. *" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** It requires progress or MPI threads, and     *" >&5
$as_echo "$as_me: WARNING: *** It requires progress or MPI threads, and     *" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** care should be used when enabling these      *" >&5
$as_echo "$as_me: WARNING: *** care should be used when enabling these      *" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** options.                                     *" >&5
$as_echo "$as_me: WARNING: *** options.                                     *" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: **************************************************" >&5
$as_echo "$as_me: WARNING: **************************************************" >&2;}
    fi
fi

cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_FT_THREAD $ompi_want_ft_thread
_ACEOF

 if test "$ompi_want_ft_thread" = "1"; then
  WANT_FT_THREAD_TRUE=
  WANT_FT_THREAD_FALSE='#'
else
  WANT_FT_THREAD_TRUE='#'
  WANT_FT_THREAD_FALSE=
fi



CFLAGS="$CFLAGS $THREAD_CFLAGS"
CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
CXXFLAGS="$CXXFLAGS $THREAD_CXXFLAGS"
CXXCPPFLAGS="$CXXCPPFLAGS $THREAD_CXXCPPFLAGS"

LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
LIBS="$LIBS $THREAD_LIBS"

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

{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  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
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_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
  if test -z "$ac_cv_path_GREP"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
  fi
else
  ac_cv_path_GREP=$GREP
fi

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


{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  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
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_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
  if test -z "$ac_cv_path_EGREP"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable egrep 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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



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

{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_LEX+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $LEX" >&5
$as_echo "$LEX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$LEX conftest.l") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ $as_echo "$as_me:$LINENO: checking lex output file root" >&5
$as_echo_n "checking lex output file root... " >&6; }
if test "${ac_cv_prog_lex_root+set}" = set; then
  $as_echo_n "(cached) " >&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
  { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
$as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
   { (exit 1); exit 1; }; }
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
$as_echo "$ac_cv_prog_lex_root" >&6; }
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

if test -z "${LEXLIB+set}"; then
  { $as_echo "$as_me:$LINENO: checking lex library" >&5
$as_echo_n "checking lex library... " >&6; }
if test "${ac_cv_lib_lex+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_lex=$ac_lib
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
$as_echo "$ac_cv_lib_lex" >&6; }
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
fi


{ $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
$as_echo_n "checking whether yytext is a pointer... " >&6; }
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_prog_lex_yytext_pointer=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_save_LIBS

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
$as_echo "$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
        { $as_echo "$as_me:$LINENO: WARNING: *** Could not find GNU Flex on your system." >&5
$as_echo "$as_me: WARNING: *** Could not find GNU Flex on your system." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** GNU Flex required for developer builds of Open MPI." >&5
$as_echo "$as_me: WARNING: *** GNU Flex required for developer builds of Open MPI." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** Other versions of Lex are not supported." >&5
$as_echo "$as_me: WARNING: *** Other versions of Lex are not supported." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&5
$as_echo "$as_me: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&5
$as_echo "$as_me: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** consider using a distribution tarball, or generate the" >&5
$as_echo "$as_me: WARNING: *** consider using a distribution tarball, or generate the" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** following files on another system (using Flex) and" >&5
$as_echo "$as_me: WARNING: *** following files on another system (using Flex) and" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** copy them here:" >&5
$as_echo "$as_me: WARNING: *** copy them here:" >&2;}
        for lfile in `find . -name \*.l -print`; do
            cfile="`echo $lfile | cut -d. -f-2`"
            { $as_echo "$as_me:$LINENO: WARNING: ***     $cfile.c" >&5
$as_echo "$as_me: WARNING: ***     $cfile.c" >&2;}
        done
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi

#
# Look for ps command and arguments for orte-clean
#

{ $as_echo "$as_me:$LINENO: checking for flavor of ps to use" >&5
$as_echo_n "checking for flavor of ps to use... " >&6; }
PS_FLAVOR="unknown"
ps -A -o fname > /dev/null 2>&1

if test "$?" = "0"; then
     PS_FLAVOR="ps -A -o fname,pid,user"
else
     ps -A -o command > /dev/null 2>&1
     if test "$?" = "0"; then
         PS_FLAVOR="ps -A -o command,pid,user"
     fi
fi
{ $as_echo "$as_me:$LINENO: result: $PS_FLAVOR" >&5
$as_echo "$PS_FLAVOR" >&6; }

cat >>confdefs.h <<_ACEOF
#define ORTE_CLEAN_PS_CMD "$PS_FLAVOR"
_ACEOF



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

{ $as_echo "$as_me:$LINENO: checking if build filesystem is case sensitive" >&5
$as_echo_n "checking if build filesystem is case sensitive... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    have_cs_fs=0
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

rm -f conf_fs_test.$$ CONF_FS_TEST.$$

#
# Now see what the user wants to do...
#
{ $as_echo "$as_me:$LINENO: checking if configuring for case sensitive filesystem" >&5
$as_echo_n "checking if configuring for case sensitive filesystem... " >&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
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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

#
# Do we have RLIMIT_NPROC in <sys/resources.h>? (e.g., Solaris does not)
#

{ $as_echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5
$as_echo_n "checking whether RLIMIT_NPROC is declared... " >&6; }
if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then
  $as_echo_n "(cached) " >&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
#if HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif

int
main ()
{
#ifndef RLIMIT_NPROC
  (void) RLIMIT_NPROC;
#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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_RLIMIT_NPROC=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_RLIMIT_NPROC=no
fi

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

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


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


fi



#
# Do we have RLIMIT_MEMLOCK in <sys/resources.h>? (e.g., Solaris does not)
#

{ $as_echo "$as_me:$LINENO: checking whether RLIMIT_MEMLOCK is declared" >&5
$as_echo_n "checking whether RLIMIT_MEMLOCK is declared... " >&6; }
if test "${ac_cv_have_decl_RLIMIT_MEMLOCK+set}" = set; then
  $as_echo_n "(cached) " >&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
#if HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif

int
main ()
{
#ifndef RLIMIT_MEMLOCK
  (void) RLIMIT_MEMLOCK;
#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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_RLIMIT_MEMLOCK=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_RLIMIT_MEMLOCK=no
fi

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

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


else
  cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_RLIMIT_MEMLOCK 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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $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" &&
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache


##################################
# MCA
##################################

ompi_show_title "Modular Component Architecture (MCA) setup"

{ $as_echo "$as_me:$LINENO: checking for subdir args" >&5
$as_echo_n "checking for subdir args... " >&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
{ $as_echo "$as_me:$LINENO: result: $ompi_subdir_args" >&5
$as_echo "$ompi_subdir_args" >&6; }



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

    if test "$enable_emulate" = "yes"; then
        plpa_emulate=yes
    else
        plpa_emulate=no
    fi

    # Build and install the executables or no?
    # Check whether --enable-executables was given.
if test "${enable_executables+set}" = set; then
  enableval=$enable_executables;
fi

    if test "$enable_executables" = "yes" -o "$enable_executables" = ""; then
        plpa_executables=yes
    else
        plpa_executables=no
    fi

    # Included mode, or standalone?
    # Check whether --enable-included-mode was given.
if test "${enable_included_mode+set}" = set; then
  enableval=$enable_included_mode;
fi

    if test "$enable_included_mode" = "yes"; then
        plpa_mode=included
        if test "$enable_executables" = ""; then
            plpa_executables=no
        fi
    else
        plpa_mode=standalone
    fi


    # Change the symbol prefix?

# Check whether --with-plpa-symbol-prefix was given.
if test "${with_plpa_symbol_prefix+set}" = set; then
  withval=$with_plpa_symbol_prefix;
fi

    if test "$with_plpa_symbol_prefix" = ""; then
        plpa_symbol_prefix_value=plpa_
    else
        plpa_symbol_prefix_value=$with_plpa_symbol_prefix
    fi

    # Debug mode?
    # Check whether --enable-debug was given.
if test "${enable_debug+set}" = set; then
  enableval=$enable_debug;
fi

    if test "$enable_debug" = "yes"; then
        plpa_debug=1
        plpa_debug_msg="enabled"
    elif test "$enable_debug" = "" -a -d .svn; then
        plpa_debug=1
        plpa_debug_msg="enabled (SVN checkout default)"
    else
        plpa_debug=0
        plpa_debug_msg="disabled"
    fi

for ac_prog in 'bison -y' byacc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_YACC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
  { $as_echo "$as_me:$LINENO: result: $YACC" >&5
$as_echo "$YACC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"

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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
$as_echo "$OBJC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
$as_echo "$ac_ct_OBJC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJC=$ac_ct_OBJC
  fi
fi

# Provide some information about the compiler.
$as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
if test "${ac_cv_objc_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GOBJC=yes
else
  GOBJC=
fi
ac_test_OBJCFLAGS=${OBJCFLAGS+set}
ac_save_OBJCFLAGS=$OBJCFLAGS
{ $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
if test "${ac_cv_prog_objc_g+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
$as_echo "$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'

{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking which components should be disabled" >&5
$as_echo_n "checking which components should be disabled... " >&6; }
    if test "$enable_mca_no_build" = "yes"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        { { $as_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-ob1" >&5
$as_echo "$as_me: error: *** The enable-mca-no-build flag requires an explicit list
*** of type-component pairs.  For example, --enable-mca-direct=pml-ob1" >&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 -s -f1 -d-`"
            comp="`echo $item | cut -s -f2- -d-`"
            if test -z $type ; then
                type=$item
            fi
            if test -z $comp ; then
                str="`echo DISABLE_${type}=1 | sed s/-/_/g`"
                eval $str
                msg="$item $msg"
            else
                str="`echo DISABLE_${type}_${comp}=1 | sed s/-/_/g`"
                eval $str
                msg="$item $msg"
            fi
        done
        IFS="$ifs_save"
    fi
    { $as_echo "$as_me:$LINENO: result: $msg" >&5
$as_echo "$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]
    #
    { $as_echo "$as_me:$LINENO: checking which components should be direct-linked into the library" >&5
$as_echo_n "checking which components should be direct-linked into the library... " >&6; }
    if test "$enable_mca_direct" = "yes" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        { { $as_echo "$as_me:$LINENO: error: *** The enable-mca-direct flag requires an explicit list of
*** type-component pairs.  For example, --enable-mca-direct=pml-ob1,coll-basic" >&5
$as_echo "$as_me: error: *** The enable-mca-direct flag requires an explicit list of
*** type-component pairs.  For example, --enable-mca-direct=pml-ob1,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
            { $as_echo "$as_me:$LINENO: WARNING: *** Re-enabling static component support for direct call" >&5
$as_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
                { { $as_echo "$as_me:$LINENO: error: *** The enable-mca-direct flag requires a
*** list of type-component pairs.  Invalid input detected." >&5
$as_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
    { $as_echo "$as_me:$LINENO: result: $msg" >&5
$as_echo "$msg" >&6; }
    unset msg

    #
    # Second, set the DSO_all and STATIC_all variables.  conflict
    # resolution (prefer static) is done in the big loop below
    #
    { $as_echo "$as_me:$LINENO: checking which components should be run-time loadable" >&5
$as_echo_n "checking which components should be run-time loadable... " >&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
    { $as_echo "$as_me:$LINENO: result: $msg" >&5
$as_echo "$msg" >&6; }
    unset msg
    if test "$enable_static" != "no"; then
        { $as_echo "$as_me:$LINENO: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&5
$as_echo "$as_me: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: *** Building MCA components as DSOs automatically disabled" >&5
$as_echo "$as_me: WARNING: *** Building MCA components as DSOs automatically disabled" >&2;}
    fi

    { $as_echo "$as_me:$LINENO: checking which components should be static" >&5
$as_echo_n "checking which components should be static... " >&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
    { $as_echo "$as_me:$LINENO: result: $msg" >&5
$as_echo "$msg" >&6; }
    unset msg

    { $as_echo "$as_me:$LINENO: checking for projects containing MCA frameworks" >&5
$as_echo_n "checking for projects containing MCA frameworks... " >&6; }
    { $as_echo "$as_me:$LINENO: result: opal, orte, ompi" >&5
$as_echo "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"

    { $as_echo "$as_me:$LINENO: checking for frameworks for opal" >&5
$as_echo_n "checking for frameworks for opal... " >&6; }
    { $as_echo "$as_me:$LINENO: result: backtrace, carto, crs, installdirs, maffinity, memchecker, memcpy, memory, paffinity, timer" >&5
$as_echo "backtrace, carto, crs, installdirs, maffinity, memchecker, 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework backtrace" >&5
$as_echo_n "checking for no configure components in framework backtrace... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework backtrace" >&5
$as_echo_n "checking for m4 configure components in framework backtrace... " >&6; }
    { $as_echo "$as_me:$LINENO: result: execinfo, printstack, darwin, none" >&5
$as_echo "execinfo, printstack, darwin, none" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component backtrace:execinfo compile mode" >&5
$as_echo_n "checking for MCA component backtrace:execinfo compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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

fi

done

    # FreeBSD has backtrace in -lexecinfo, usually in libc

        { $as_echo "$as_me:$LINENO: checking if we need -lexecinfo for backtrace" >&5
$as_echo_n "checking if we need -lexecinfo for backtrace... " >&6; }
if test "${ompi_cv_func_lib_backtrace_execinfo+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_backtrace_execinfo="no"
else
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_backtrace_execinfo="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_lib_backtrace_execinfo="not found"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_lib_backtrace_execinfo" >&5
$as_echo "$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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component backtrace:execinfo can compile" >&5
$as_echo_n "checking if MCA component backtrace:execinfo can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_backtrace" = "execinfo" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"execinfo\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"execinfo\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"execinfo\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"execinfo\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component backtrace:printstack compile mode" >&5
$as_echo_n "checking for MCA component backtrace:printstack compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component backtrace:printstack can compile" >&5
$as_echo_n "checking if MCA component backtrace:printstack can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_backtrace" = "printstack" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"printstack\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"printstack\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"printstack\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"printstack\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component backtrace:darwin compile mode" >&5
$as_echo_n "checking for MCA component backtrace:darwin compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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
  { $as_echo "$as_me:$LINENO: checking for ppc_thread_state_t.srr0" >&5
$as_echo_n "checking for ppc_thread_state_t.srr0... " >&6; }
if test "${ac_cv_member_ppc_thread_state_t_srr0+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_srr0" >&5
$as_echo "$ac_cv_member_ppc_thread_state_t_srr0" >&6; }
if test "x$ac_cv_member_ppc_thread_state_t_srr0" = x""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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component backtrace:darwin can compile" >&5
$as_echo_n "checking if MCA component backtrace:darwin can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_backtrace" = "darwin" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component backtrace:none compile mode" >&5
$as_echo_n "checking for MCA component backtrace:none compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component backtrace:none can compile" >&5
$as_echo_n "checking if MCA component backtrace:none can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_backtrace" = "none" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



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


    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



    # 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 "carto" = "common" ; then
                              MCA_opal_FRAMEWORKS="carto $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/carto $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_carto_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_carto_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_carto_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS carto"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/carto"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_carto_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_carto_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_carto_STATIC_SUBDIRS)"
                          fi
                          if test "carto" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/carto/libmca_carto.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_carto_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework carto"

    # 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 "carto" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/carto/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework carto" >&5
$as_echo_n "checking for no configure components in framework carto... " >&6; }
    { $as_echo "$as_me:$LINENO: result: auto_detect, file" >&5
$as_echo "auto_detect, file" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework carto" >&5
$as_echo_n "checking for m4 configure components in framework carto... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component carto:auto_detect (no configuration)"




    project=opal
    framework=carto
    component=auto_detect
    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
            # overridden 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_carto" ; then
            if test "$DIRECT_carto" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=carto
    component=auto_detect

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_carto" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=opal
    framework=carto
    component=auto_detect

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_carto" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_carto" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component carto:auto_detect can compile" >&5
$as_echo_n "checking if MCA component carto:auto_detect can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_carto" = "auto_detect" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"auto_detect\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"auto_detect\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_carto" ; then
        if test "$DIRECT_carto" = "auto_detect" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"auto_detect\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"auto_detect\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 auto_detect"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_carto_auto_detect_DSO=1
    else
        BUILD_carto_auto_detect_DSO=0
    fi
     if test "$BUILD_carto_auto_detect_DSO" = "1"; then
  OMPI_BUILD_carto_auto_detect_DSO_TRUE=
  OMPI_BUILD_carto_auto_detect_DSO_FALSE='#'
else
  OMPI_BUILD_carto_auto_detect_DSO_TRUE='#'
  OMPI_BUILD_carto_auto_detect_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component carto:file (no configuration)"




    project=opal
    framework=carto
    component=file
    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
            # overridden 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_carto" ; then
            if test "$DIRECT_carto" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=carto
    component=file

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_carto" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=opal
    framework=carto
    component=file

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_carto" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_carto" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component carto:file can compile" >&5
$as_echo_n "checking if MCA component carto:file can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_carto" = "file" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"file\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_carto" ; then
        if test "$DIRECT_carto" = "file" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"file\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 file"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_carto_file_DSO=1
    else
        BUILD_carto_file_DSO=0
    fi
     if test "$BUILD_carto_file_DSO" = "1"; then
  OMPI_BUILD_carto_file_DSO_TRUE=
  OMPI_BUILD_carto_file_DSO_FALSE='#'
else
  OMPI_BUILD_carto_file_DSO_TRUE='#'
  OMPI_BUILD_carto_file_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; then

    for component_path in $srcdir/opal/mca/carto/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component carto:$component (need to configure)"




    project=opal
    framework=carto
    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
            # overridden 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_carto" ; then
            if test "$DIRECT_carto" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=carto
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_carto" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/carto/$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/carto/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=carto
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_carto" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_carto" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component carto:$component can compile" >&5
$as_echo_n "checking if MCA component carto:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_carto" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_carto" ; then
        if test "$DIRECT_carto" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_carto_ALL_COMPONENTS="$all_components"
    MCA_carto_STATIC_COMPONENTS="$static_components"
    MCA_carto_DSO_COMPONENTS="$dso_components"
    MCA_carto_STATIC_LTLIBS="$static_ltlibs"







    MCA_carto_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_carto_ALL_SUBDIRS="$MCA_carto_ALL_SUBDIRS mca/carto/$item"
    done



    MCA_carto_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_carto_STATIC_SUBDIRS="$MCA_carto_STATIC_SUBDIRS mca/carto/$item"
    done



    MCA_carto_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_carto_DSO_SUBDIRS="$MCA_carto_DSO_SUBDIRS mca/carto/$item"
    done



    # 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 "carto" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_carto_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 "crs" = "common" ; then
                              MCA_opal_FRAMEWORKS="crs $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/crs $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_crs_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_crs_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_crs_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS crs"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/crs"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_crs_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_crs_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_crs_STATIC_SUBDIRS)"
                          fi
                          if test "crs" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/crs/libmca_crs.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_crs_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework crs"

    # 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 "crs" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/crs/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework crs" >&5
$as_echo_n "checking for no configure components in framework crs... " >&6; }
    { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework crs" >&5
$as_echo_n "checking for m4 configure components in framework crs... " >&6; }
    { $as_echo "$as_me:$LINENO: result: blcr, self" >&5
$as_echo "blcr, self" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component crs:none (no configuration)"




    project=opal
    framework=crs
    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
            # overridden 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_crs" ; then
            if test "$DIRECT_crs" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=crs
    component=none

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crs" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=opal
    framework=crs
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_crs" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_crs" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component crs:none can compile" >&5
$as_echo_n "checking if MCA component crs:none can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crs" = "none" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_crs" ; then
        if test "$DIRECT_crs" = "none" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"none\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_crs_none_DSO=1
    else
        BUILD_crs_none_DSO=0
    fi
     if test "$BUILD_crs_none_DSO" = "1"; then
  OMPI_BUILD_crs_none_DSO_TRUE=
  OMPI_BUILD_crs_none_DSO_FALSE='#'
else
  OMPI_BUILD_crs_none_DSO_TRUE='#'
  OMPI_BUILD_crs_none_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component crs:blcr (m4 configuration macro)"




    project=opal
    framework=crs
    component=blcr
    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
            # overridden 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_crs" ; then
            if test "$DIRECT_crs" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=crs
    component=blcr

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crs" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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-blcr was given.
if test "${with_blcr+set}" = set; then
  withval=$with_blcr;
fi


    { $as_echo "$as_me:$LINENO: checking --with-blcr value" >&5
$as_echo_n "checking --with-blcr value... " >&6; }
    if test "$with_blcr" = "yes" -o "$with_blcr" = "no" -o "x$with_blcr" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_blcr"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_blcr not found" >&5
$as_echo "$as_me: WARNING: Directory $with_blcr not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_blcr/include/libcr.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_blcr/include/libcr.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_blcr/include/libcr.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_blcr)" >&5
$as_echo "sanity check ok ($with_blcr)" >&6; }

fi



fi



fi



# Check whether --with-blcr-libdir was given.
if test "${with_blcr_libdir+set}" = set; then
  withval=$with_blcr_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-blcr-libdir value" >&5
$as_echo_n "checking --with-blcr-libdir value... " >&6; }
    if test "$with_blcr_libdir" = "yes" -o "$with_blcr_libdir" = "no" -o "x$with_blcr_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_blcr_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_blcr_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_blcr_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_blcr_libdir/libcr.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_blcr_libdir/libcr.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_blcr_libdir/libcr.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_blcr_libdir)" >&5
$as_echo "sanity check ok ($with_blcr_libdir)" >&6; }

fi



fi



fi



    check_crs_blcr_good="no"

    # If we do not want FT, don't compile this component
    if test "$ompi_want_ft" = "0"; then
  should_build=0
           check_crs_blcr_good="no"
else
  check_crs_blcr_good="yes"
fi


    # If we do not want BLCR, then do not compile it
    if test "$with_blcr" = "no" -o "$check_crs_blcr_good" = "no"; then
  should_build=0
           check_crs_blcr_good="no"
else
  check_crs_blcr_good="yes"
fi


    # Defaults
    check_crs_blcr_dir_msg="compiler default"
    check_crs_blcr_libdir_msg="linker default"
    check_crs_blcr_dir=""
    check_crs_blcr_libdir=""

    # Determine the search paths for the headers and libraries
    if test "$check_crs_blcr_good" != "yes"; then
  should_build=0
else
  if test ! -z "$with_blcr" -a "$with_blcr" != "yes"; then
  check_crs_blcr_dir="$with_blcr"
                  check_crs_blcr_dir_msg="$with_blcr (from --with-blcr)"
fi

           if test ! -z "$with_blcr_libdir" -a "$with_blcr_libdir" != "yes"; then
  check_crs_blcr_libdir="$with_blcr_libdir"
                  check_crs_blcr_libdir_msg="$with_blcr_libdir (from --with-blcr-libdir)"
fi


fi


    if test "$check_crs_blcr_good" != "yes"; then
  should_build=0
else
  { $as_echo "$as_me:$LINENO: checking for BLCR dir" >&5
$as_echo_n "checking for BLCR dir... " >&6; }
           { $as_echo "$as_me:$LINENO: result: $check_crs_blcr_dir_msg" >&5
$as_echo "$check_crs_blcr_dir_msg" >&6; }
           { $as_echo "$as_me:$LINENO: checking for BLCR library dir" >&5
$as_echo_n "checking for BLCR library dir... " >&6; }
           { $as_echo "$as_me:$LINENO: result: $check_crs_blcr_libdir_msg" >&5
$as_echo "$check_crs_blcr_libdir_msg" >&6; }

    ompi_check_package_crs_blcr_check_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_crs_blcr_check_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_crs_blcr_check_save_LIBS="$LIBS"

    ompi_check_package_crs_blcr_check_orig_CPPFLAGS="$crs_blcr_check_CPPFLAGS"
    ompi_check_package_crs_blcr_check_orig_LDFLAGS="$crs_blcr_check_LDFLAGS"
    ompi_check_package_crs_blcr_check_orig_LIBS="$crs_blcr_check_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_libcr_h

    ompi_check_package_header_happy="no"
    if test "$check_crs_blcr_dir" = "/usr" -o "$check_crs_blcr_dir" = "/usr/local"; then
   # try as is...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_libcr_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for libcr.h" >&5
$as_echo_n "checking for libcr.h... " >&6; }
if test "${ac_cv_header_libcr_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5
$as_echo "$ac_cv_header_libcr_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking libcr.h usability" >&5
$as_echo_n "checking libcr.h usability... " >&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 <libcr.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking libcr.h presence" >&5
$as_echo_n "checking libcr.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <libcr.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: libcr.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: libcr.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: libcr.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: libcr.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: libcr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: libcr.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: libcr.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
{ $as_echo "$as_me:$LINENO: checking for libcr.h" >&5
$as_echo_n "checking for libcr.h... " >&6; }
if test "${ac_cv_header_libcr_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_libcr_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5
$as_echo "$ac_cv_header_libcr_h" >&6; }

fi
if test "x$ac_cv_header_libcr_h" = x""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_libcr_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$check_crs_blcr_dir" != ""; then
  crs_blcr_check_CPPFLAGS="$crs_blcr_check_CPPFLAGS -I$check_crs_blcr_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$check_crs_blcr_dir/include"
fi

           if test "${ac_cv_header_libcr_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for libcr.h" >&5
$as_echo_n "checking for libcr.h... " >&6; }
if test "${ac_cv_header_libcr_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5
$as_echo "$ac_cv_header_libcr_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking libcr.h usability" >&5
$as_echo_n "checking libcr.h usability... " >&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 <libcr.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking libcr.h presence" >&5
$as_echo_n "checking libcr.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <libcr.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: libcr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: libcr.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: libcr.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: libcr.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: libcr.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: libcr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: libcr.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libcr.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: libcr.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
{ $as_echo "$as_me:$LINENO: checking for libcr.h" >&5
$as_echo_n "checking for libcr.h... " >&6; }
if test "${ac_cv_header_libcr_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_libcr_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libcr_h" >&5
$as_echo "$ac_cv_header_libcr_h" >&6; }

fi
if test "x$ac_cv_header_libcr_h" = x""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_cr_cr_init
    ompi_check_package_lib_happy="no"
    if test "$check_crs_blcr_libdir" != ""; then
   # libdir was specified - search only there
           crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$check_crs_blcr_libdir"
           LDFLAGS="$LDFLAGS -L$check_crs_blcr_libdir"
           { $as_echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
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 cr_init ();
int
main ()
{
return cr_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_cr_cr_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_cr_cr_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""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_crs_blcr_check_save_LDFLAGS"
                  crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                  unset ac_cv_lib_cr_cr_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$check_crs_blcr_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
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 cr_init ();
int
main ()
{
return cr_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_cr_cr_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_cr_cr_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""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_crs_blcr_check_save_LDFLAGS"
                     crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                     unset ac_cv_lib_cr_cr_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
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 cr_init ();
int
main ()
{
return cr_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_cr_cr_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_cr_cr_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""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_crs_blcr_check_save_LDFLAGS"
                          crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                          unset ac_cv_lib_cr_cr_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
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 cr_init ();
int
main ()
{
return cr_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_cr_cr_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_cr_cr_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""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_crs_blcr_check_save_LDFLAGS"
                          crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                          unset ac_cv_lib_cr_cr_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  crs_blcr_check_LIBS="-lcr "
           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_cr_cr_init
    ompi_check_package_lib_happy="no"
    if test "$check_crs_blcr_libdir" != ""; then
   # libdir was specified - search only there
           crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$check_crs_blcr_libdir"
           LDFLAGS="$LDFLAGS -L$check_crs_blcr_libdir"
           { $as_echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
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 cr_init ();
int
main ()
{
return cr_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_cr_cr_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_cr_cr_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""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_crs_blcr_check_save_LDFLAGS"
                  crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                  unset ac_cv_lib_cr_cr_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$check_crs_blcr_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
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 cr_init ();
int
main ()
{
return cr_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_cr_cr_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_cr_cr_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""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_crs_blcr_check_save_LDFLAGS"
                     crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                     unset ac_cv_lib_cr_cr_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
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 cr_init ();
int
main ()
{
return cr_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_cr_cr_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_cr_cr_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""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_crs_blcr_check_save_LDFLAGS"
                          crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                          unset ac_cv_lib_cr_cr_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  crs_blcr_check_LDFLAGS="$crs_blcr_check_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for cr_init in -lcr" >&5
$as_echo_n "checking for cr_init in -lcr... " >&6; }
if test "${ac_cv_lib_cr_cr_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcr  $LIBS"
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 cr_init ();
int
main ()
{
return cr_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_cr_cr_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_cr_cr_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cr_cr_init" >&5
$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
if test "x$ac_cv_lib_cr_cr_init" = x""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_crs_blcr_check_save_LDFLAGS"
                          crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
                          unset ac_cv_lib_cr_cr_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  crs_blcr_check_LIBS="-lcr "
           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
  check_crs_blcr_good="yes"
else
  crs_blcr_check_CPPFLAGS="$ompi_check_package_crs_blcr_check_orig_CPPFLAGS"
           crs_blcr_check_LDFLAGS="$ompi_check_package_crs_blcr_check_orig_LDFLAGS"
           crs_blcr_check_LIBS="$ompi_check_package_crs_blcr_check_orig_LIBS"
           check_crs_blcr_good="no"
fi


    CPPFLAGS="$ompi_check_package_crs_blcr_check_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_crs_blcr_check_save_LDFLAGS"
    LIBS="$ompi_check_package_crs_blcr_check_save_LIBS"


fi


    crs_blcr_save_CFLAGS="$CFLAGS"
    crs_blcr_save_CPPFLAGS="$CPPFLAGS"
    crs_blcr_save_LDFLAGS="$LDFLAGS"
    crs_blcr_save_LIBS="$LIBS"

    crs_blcr_CFLAGS="$CFLAGS $crs_blcr_check_CFLAGS"
    crs_blcr_CPPFLAGS="$CPPFLAGS $crs_blcr_check_CPPFLAGS"
    crs_blcr_LDFLAGS="$LDFLAGS $crs_blcr_check_LDFLAGS"
    crs_blcr_LIBS="$LIBS $crs_blcr_check_LIBS"

    # Check to see if we found the BLCR libcr.h library
    # If we did then add the arguments to the wrapper compiler
    if test "$check_crs_blcr_good" != "yes"; then
  should_build=0
else

           #
           # Since BLCR libraries are not fully ISO99 C compliant
           # -pedantic and -Wundef raise a bunch of warnings, so
           # we just strip them off for this component
           { $as_echo "$as_me:$LINENO: WARNING: Removed -pedantic and -Wundef from CFLAGS for blcr component because libcr.h is not really ANSI C" >&5
$as_echo "$as_me: WARNING: Removed -pedantic and -Wundef from CFLAGS for blcr component because libcr.h is not really ANSI C" >&2;}
           # Strip off problematic arguments
           crs_blcr_CFLAGS="`echo $crs_blcr_CFLAGS | sed 's/-pedantic//g'`"
           crs_blcr_CFLAGS="`echo $crs_blcr_CFLAGS | sed 's/-Wundef//g'`"
           crs_blcr_CPPFLAGS="`echo $crs_blcr_CPPFLAGS | sed 's/-pedantic//g'`"
           crs_blcr_CPPFLAGS="`echo $crs_blcr_CPPFLAGS | sed 's/-Wundef//g'`"
           crs_blcr_LDFLAGS="$crs_blcr_LDFLAGS"
           crs_blcr_LIBS="$crs_blcr_LIBS"
           #
           # Setup wrapper options for static builds
           #
           crs_blcr_WRAPPER_EXTRA_CPPFLAGS="$crs_blcr_CPPFLAGS"
           crs_blcr_WRAPPER_EXTRA_LDFLAGS="$crs_blcr_LDFLAGS"
           crs_blcr_WRAPPER_EXTRA_LIBS="$crs_blcr_LIBS"
           should_build=1
fi


    #
    # Check for version difference which may have:
    # - working cr_request_file
    # - working cr_request_checkpoint (which should be used instead of cr_request_file)
    # - 'requester' parameter to checkpoint_info
    #
    if test "$check_crs_blcr_good" != "yes"; then
  should_build=0
else

            CFLAGS="$crs_blcr_CFLAGS"
            CPPFLAGS="$crs_blcr_CPPFLAGS"
            LDFLAGS="$crs_blcr_LDFLAGS"
            LIBS="$crs_blcr_LIBS"
           #
           # First look for the cr_request_file function
           #
           crs_blcr_have_working_cr_request=0
           { $as_echo "$as_me:$LINENO: checking for BLCR working cr_request" >&5
$as_echo_n "checking for BLCR working cr_request... " >&6; }

        { $as_echo "$as_me:$LINENO: checking if we need -lcr for cr_request_file" >&5
$as_echo_n "checking if we need -lcr for cr_request_file... " >&6; }
if test "${ompi_cv_func_lib_cr_request_file_cr+set}" = set; then
  $as_echo_n "(cached) " >&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 cr_request_file to an innocuous variant, in case <limits.h> declares cr_request_file.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define cr_request_file innocuous_cr_request_file

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cr_request_file (); 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 cr_request_file

/* 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 cr_request_file ();
/* 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_cr_request_file || defined __stub___cr_request_file
choke me
#endif

int
main ()
{
return cr_request_file ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_cr_request_file_cr="no"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cr_request_file (); 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 cr_request_file

/* 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 cr_request_file ();
/* 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_cr_request_file || defined __stub___cr_request_file
choke me
#endif

int
main ()
{
return cr_request_file ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_cr_request_file_cr="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_lib_cr_request_file_cr="not found"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_lib_cr_request_file_cr" >&5
$as_echo "$ompi_cv_func_lib_cr_request_file_cr" >&6; }
    if test "$ompi_cv_func_lib_cr_request_file_cr" = "yes"; then
  LIBS="$LIBS -lcr"
fi


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

for ac_func in cr_request_file
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <libcr.h>
int
main ()
{
#if CR_RELEASE_MAJOR <= 0 && CR_RELEASE_MINOR < 6
                        #error Version earlier than 0.6.0
                        #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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  crs_blcr_have_working_cr_request=1

else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	crs_blcr_have_working_cr_request=0
                           { $as_echo "$as_me:$LINENO: WARNING: This BLCR version does not contain a known working version of cr_request_file" >&5
$as_echo "$as_me: WARNING: This BLCR version does not contain a known working version of cr_request_file" >&2;}

fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  crs_blcr_have_working_cr_request=0
                   { $as_echo "$as_me:$LINENO: WARNING: This BLCR version does not contain the cr_request_file function" >&5
$as_echo "$as_me: WARNING: This BLCR version does not contain the cr_request_file function" >&2;}

fi
done



cat >>confdefs.h <<_ACEOF
#define CRS_BLCR_HAVE_CR_REQUEST $crs_blcr_have_working_cr_request
_ACEOF


           #
           # Look for the cr_request_checkpoint function
           #
           crs_blcr_have_cr_request_checkpoint=0
           { $as_echo "$as_me:$LINENO: checking for BLCR cr_request_checkpoint" >&5
$as_echo_n "checking for BLCR cr_request_checkpoint... " >&6; }

        { $as_echo "$as_me:$LINENO: checking if we need -lcr for cr_request_checkpoint" >&5
$as_echo_n "checking if we need -lcr for cr_request_checkpoint... " >&6; }
if test "${ompi_cv_func_lib_cr_request_checkpoint_cr+set}" = set; then
  $as_echo_n "(cached) " >&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 cr_request_checkpoint to an innocuous variant, in case <limits.h> declares cr_request_checkpoint.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define cr_request_checkpoint innocuous_cr_request_checkpoint

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cr_request_checkpoint (); 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 cr_request_checkpoint

/* 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 cr_request_checkpoint ();
/* 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_cr_request_checkpoint || defined __stub___cr_request_checkpoint
choke me
#endif

int
main ()
{
return cr_request_checkpoint ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_cr_request_checkpoint_cr="no"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cr_request_checkpoint (); 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 cr_request_checkpoint

/* 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 cr_request_checkpoint ();
/* 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_cr_request_checkpoint || defined __stub___cr_request_checkpoint
choke me
#endif

int
main ()
{
return cr_request_checkpoint ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_lib_cr_request_checkpoint_cr="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_lib_cr_request_checkpoint_cr="not found"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
             LIBS="$LIBS_save"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_lib_cr_request_checkpoint_cr" >&5
$as_echo "$ompi_cv_func_lib_cr_request_checkpoint_cr" >&6; }
    if test "$ompi_cv_func_lib_cr_request_checkpoint_cr" = "yes"; then
  LIBS="$LIBS -lcr"
fi


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

for ac_func in cr_request_checkpoint
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 crs_blcr_have_cr_request_checkpoint=1

else
  crs_blcr_have_cr_request_checkpoint=0
                   { $as_echo "$as_me:$LINENO: WARNING: This BLCR version does not contain the cr_request_checkpoint function" >&5
$as_echo "$as_me: WARNING: This BLCR version does not contain the cr_request_checkpoint function" >&2;}

fi
done



cat >>confdefs.h <<_ACEOF
#define CRS_BLCR_HAVE_CR_REQUEST_CHECKPOINT $crs_blcr_have_cr_request_checkpoint
_ACEOF


           #
           # Look for the cr_checkpoint_info.requester member
           #
           crs_blcr_have_info_requester=0
           { $as_echo "$as_me:$LINENO: checking for struct cr_checkpoint_info.requester" >&5
$as_echo_n "checking for struct cr_checkpoint_info.requester... " >&6; }
if test "${ac_cv_member_struct_cr_checkpoint_info_requester+set}" = set; then
  $as_echo_n "(cached) " >&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 <libcr.h>

int
main ()
{
static struct cr_checkpoint_info ac_aggr;
if (ac_aggr.requester)
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_cr_checkpoint_info_requester=yes
else
  $as_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 <libcr.h>

int
main ()
{
static struct cr_checkpoint_info ac_aggr;
if (sizeof ac_aggr.requester)
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_cr_checkpoint_info_requester=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_member_struct_cr_checkpoint_info_requester=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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_cr_checkpoint_info_requester" >&5
$as_echo "$ac_cv_member_struct_cr_checkpoint_info_requester" >&6; }
if test "x$ac_cv_member_struct_cr_checkpoint_info_requester" = x""yes; then
  crs_blcr_have_info_requester=1
else
  { $as_echo "$as_me:$LINENO: WARNING: This BLCR version does not contain a 'requester' member of the 'cr_checkpoint_info' struct" >&5
$as_echo "$as_me: WARNING: This BLCR version does not contain a 'requester' member of the 'cr_checkpoint_info' struct" >&2;}
fi


cat >>confdefs.h <<_ACEOF
#define CRS_BLCR_HAVE_INFO_REQUESTER $crs_blcr_have_info_requester
_ACEOF

           should_build=1
fi


    #
    # Reset the flags
    #
    CFLAGS="$crs_blcr_save_CFLAGS"
    CPPFLAGS="$crs_blcr_save_CPPFLAGS"
    LDFLAGS="$crs_blcr_save_LDFLAGS"
    LIBS="$crs_blcr_save_LIBS"

    #
    if test "$check_crs_blcr_good" = "yes"; then







            should_build=1
else
  if test ! -z "$with_blcr" -a "$with_blcr" != "no"; then
  { $as_echo "$as_me:$LINENO: WARNING: BLCR support requested but not found.  Perhaps you need to specify the location of the BLCR libraries." >&5
$as_echo "$as_me: WARNING: BLCR support requested but not found.  Perhaps you need to specify the location of the BLCR libraries." >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Aborting." >&5
$as_echo "$as_me: error: Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi


fi



fi


    if test "$should_build" = "1"; then



    project=opal
    framework=crs
    component=blcr

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_crs" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_crs" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component crs:blcr can compile" >&5
$as_echo_n "checking if MCA component crs:blcr can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crs" = "blcr" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"blcr\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"blcr\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_crs" ; then
        if test "$DIRECT_crs" = "blcr" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"blcr\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"blcr\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 blcr"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_crs_blcr_DSO=1
else
  BUILD_crs_blcr_DSO=0
fi

     if test "$BUILD_crs_blcr_DSO" = "1"; then
  OMPI_BUILD_crs_blcr_DSO_TRUE=
  OMPI_BUILD_crs_blcr_DSO_FALSE='#'
else
  OMPI_BUILD_crs_blcr_DSO_TRUE='#'
  OMPI_BUILD_crs_blcr_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component crs:self (m4 configuration macro)"




    project=opal
    framework=crs
    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
            # overridden 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_crs" ; then
            if test "$DIRECT_crs" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=crs
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crs" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    # If we don't want FT, don't compile this component
    if test "$ompi_want_ft" = "1"; then
  crs_self_good="yes"
else
  crs_self_good="no"
fi


    # We need the dlfcn.h so we can access dlsym and friends
    if test "$crs_self_good" = "yes"; then
  if test "${ac_cv_header_dlfcn_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
$as_echo_n "checking for dlfcn.h... " >&6; }
if test "${ac_cv_header_dlfcn_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
$as_echo "$ac_cv_header_dlfcn_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
$as_echo_n "checking dlfcn.h usability... " >&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 <dlfcn.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
$as_echo_n "checking dlfcn.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <dlfcn.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: dlfcn.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
{ $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
$as_echo_n "checking for dlfcn.h... " >&6; }
if test "${ac_cv_header_dlfcn_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_dlfcn_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
$as_echo "$ac_cv_header_dlfcn_h" >&6; }

fi
if test "x$ac_cv_header_dlfcn_h" = x""yes; then
  crs_self_good="yes"
else
  crs_self_good="no"
fi


fi


    # If they did not ask for dlopen support,
    # they probably do not want this component either
    if test "$crs_self_good" = "yes"; then
  if test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1"; then
  crs_self_good="yes"
else
  crs_self_good="no"
fi

fi


    if test "$crs_self_good" = "yes"; then
  should_build=1
else
  should_build=0
fi



fi


    if test "$should_build" = "1"; then



    project=opal
    framework=crs
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_crs" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_crs" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component crs:self can compile" >&5
$as_echo_n "checking if MCA component crs:self can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crs" = "self" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_crs" ; then
        if test "$DIRECT_crs" = "self" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_crs_self_DSO=1
else
  BUILD_crs_self_DSO=0
fi

     if test "$BUILD_crs_self_DSO" = "1"; then
  OMPI_BUILD_crs_self_DSO_TRUE=
  OMPI_BUILD_crs_self_DSO_FALSE='#'
else
  OMPI_BUILD_crs_self_DSO_TRUE='#'
  OMPI_BUILD_crs_self_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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 "1" != "0"; then

    for component_path in $srcdir/opal/mca/crs/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component crs:$component (need to configure)"




    project=opal
    framework=crs
    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
            # overridden 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_crs" ; then
            if test "$DIRECT_crs" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=crs
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crs" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# opal/mca/crs/$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/crs/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=crs
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_crs" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_crs" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component crs:$component can compile" >&5
$as_echo_n "checking if MCA component crs:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crs" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_crs" ; then
        if test "$DIRECT_crs" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_crs_ALL_COMPONENTS="$all_components"
    MCA_crs_STATIC_COMPONENTS="$static_components"
    MCA_crs_DSO_COMPONENTS="$dso_components"
    MCA_crs_STATIC_LTLIBS="$static_ltlibs"







    MCA_crs_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_crs_ALL_SUBDIRS="$MCA_crs_ALL_SUBDIRS mca/crs/$item"
    done



    MCA_crs_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_crs_STATIC_SUBDIRS="$MCA_crs_STATIC_SUBDIRS mca/crs/$item"
    done



    MCA_crs_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_crs_DSO_SUBDIRS="$MCA_crs_DSO_SUBDIRS mca/crs/$item"
    done



    # 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 "crs" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_crs_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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework installdirs" >&5
$as_echo_n "checking for no configure components in framework installdirs... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework installdirs" >&5
$as_echo_n "checking for m4 configure components in framework installdirs... " >&6; }
    { $as_echo "$as_me:$LINENO: result: env, config, windows" >&5
$as_echo "env, config, windows" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component installdirs:env compile mode" >&5
$as_echo_n "checking for MCA component installdirs:env compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component installdirs:env can compile" >&5
$as_echo_n "checking if MCA component installdirs:env can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_installdirs" = "env" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component installdirs:config compile mode" >&5
$as_echo_n "checking for MCA component installdirs:config compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component installdirs:config can compile" >&5
$as_echo_n "checking if MCA component installdirs:config can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_installdirs" = "config" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"config\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"config\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component installdirs:windows (m4 configuration macro)"




    project=opal
    framework=installdirs
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component installdirs:windows compile mode" >&5
$as_echo_n "checking for MCA component installdirs:windows compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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 for RegOpenKeyEx allowing access to the Windows
    # registry. We should first check that the function is defined,
    # and then check for it's presence in the kernel32 library.
    { $as_echo "$as_me:$LINENO: checking for working RegOpenKeyEx" >&5
$as_echo_n "checking for working RegOpenKeyEx... " >&6; }
    if test "$cross_compiling" = yes; then
  cat >conftest.$ac_ext <<_ACEOF
#include <windows.h>
int main( int argc, char** argv ) {
    RegOpenKeyEx( HKEY_CURRENT_USER, "Software\\Open MPI", 0, KEY_READ, NULL);
    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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
         should_build=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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 ) {
    RegOpenKeyEx( HKEY_CURRENT_USER, "Software\\Open MPI", 0, KEY_READ, NULL);
    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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
         should_build=1
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
         should_build=0
fi
rm -rf conftest.dSYM
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=installdirs
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component installdirs:windows can compile" >&5
$as_echo_n "checking if MCA component installdirs:windows can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_installdirs" = "windows" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_installdirs" ; then
        if test "$DIRECT_installdirs" = "windows" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_installdirs_windows_DSO=1
else
  BUILD_installdirs_windows_DSO=0
fi

     if test "$BUILD_installdirs_windows_DSO" = "1"; then
  OMPI_BUILD_installdirs_windows_DSO_TRUE=
  OMPI_BUILD_installdirs_windows_DSO_FALSE='#'
else
  OMPI_BUILD_installdirs_windows_DSO_TRUE='#'
  OMPI_BUILD_installdirs_windows_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_installdirs" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component installdirs:$component can compile" >&5
$as_echo_n "checking if MCA component installdirs:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_installdirs" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework maffinity" >&5
$as_echo_n "checking for no configure components in framework maffinity... " >&6; }
    { $as_echo "$as_me:$LINENO: result: first_use" >&5
$as_echo "first_use" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework maffinity" >&5
$as_echo_n "checking for m4 configure components in framework maffinity... " >&6; }
    { $as_echo "$as_me:$LINENO: result: libnuma" >&5
$as_echo "libnuma" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_maffinity" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component maffinity:first_use can compile" >&5
$as_echo_n "checking if MCA component maffinity:first_use can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_maffinity" = "first_use" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"first_use\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"first_use\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_maffinity" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-libnuma value" >&5
$as_echo_n "checking --with-libnuma value... " >&6; }
    if test "$with_libnuma" = "yes" -o "$with_libnuma" = "no" -o "x$with_libnuma" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_libnuma"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_libnuma not found" >&5
$as_echo "$as_me: WARNING: Directory $with_libnuma not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_libnuma/include/numa.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_libnuma/include/numa.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_libnuma/include/numa.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_libnuma)" >&5
$as_echo "sanity check ok ($with_libnuma)" >&6; }

fi



fi



fi



# Check whether --with-libnuma-libdir was given.
if test "${with_libnuma_libdir+set}" = set; then
  withval=$with_libnuma_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-libnuma value" >&5
$as_echo_n "checking --with-libnuma value... " >&6; }
    if test "$with_libnuma" = "yes" -o "$with_libnuma" = "no" -o "x$with_libnuma" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_libnuma"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_libnuma not found" >&5
$as_echo "$as_me: WARNING: Directory $with_libnuma not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_libnuma/include/numa.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_libnuma/include/numa.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_libnuma/include/numa.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_libnuma)" >&5
$as_echo "sanity check ok ($with_libnuma)" >&6; }

fi



fi



fi



    if test ! -z "$with_libnuma" -a "$with_libnuma" != "yes"; then
  ompi_check_libnuma_dir="$with_libnuma"
fi

    if test ! -z "$with_libnuma_libdir" -a "$with_libnuma_libdir" != "yes"; then
  ompi_check_libnuma_libdir="$with_libnuma_libdir"
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 "$ompi_check_libnuma_dir" = "/usr" -o "$ompi_check_libnuma_dir" = "/usr/local"; then
   # try as is...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_numa_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for numa.h" >&5
$as_echo_n "checking for numa.h... " >&6; }
if test "${ac_cv_header_numa_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
$as_echo "$ac_cv_header_numa_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking numa.h usability" >&5
$as_echo_n "checking numa.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking numa.h presence" >&5
$as_echo_n "checking numa.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: numa.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: numa.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: numa.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: numa.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: numa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: numa.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for numa.h" >&5
$as_echo_n "checking for numa.h... " >&6; }
if test "${ac_cv_header_numa_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_numa_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
$as_echo "$ac_cv_header_numa_h" >&6; }

fi
if test "x$ac_cv_header_numa_h" = x""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 "$ompi_check_libnuma_dir" != ""; then
  maffinity_libnuma_CPPFLAGS="$maffinity_libnuma_CPPFLAGS -I$ompi_check_libnuma_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_libnuma_dir/include"
fi

           if test "${ac_cv_header_numa_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for numa.h" >&5
$as_echo_n "checking for numa.h... " >&6; }
if test "${ac_cv_header_numa_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
$as_echo "$ac_cv_header_numa_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking numa.h usability" >&5
$as_echo_n "checking numa.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking numa.h presence" >&5
$as_echo_n "checking numa.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: numa.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: numa.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: numa.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: numa.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: numa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: numa.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: numa.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for numa.h" >&5
$as_echo_n "checking for numa.h... " >&6; }
if test "${ac_cv_header_numa_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_numa_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
$as_echo "$ac_cv_header_numa_h" >&6; }

fi
if test "x$ac_cv_header_numa_h" = x""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 "$ompi_check_libnuma_libdir" != ""; then
   # libdir was specified - search only there
           maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_libnuma_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_libnuma_libdir"
           { $as_echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_numa_numa_available=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_numa_numa_available=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""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="$ompi_check_libnuma_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_numa_numa_available=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_numa_numa_available=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_numa_numa_available=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_numa_numa_available=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_numa_numa_available=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_numa_numa_available=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""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
  maffinity_libnuma_LIBS="-lnuma "
           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 "$ompi_check_libnuma_libdir" != ""; then
   # libdir was specified - search only there
           maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_libnuma_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_libnuma_libdir"
           { $as_echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_numa_numa_available=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_numa_numa_available=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""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="$ompi_check_libnuma_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_numa_numa_available=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_numa_numa_available=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_numa_numa_available=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_numa_numa_available=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
$as_echo_n "checking for numa_available in -lnuma... " >&6; }
if test "${ac_cv_lib_numa_numa_available+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_numa_numa_available=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_numa_numa_available=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
$as_echo "$ac_cv_lib_numa_numa_available" >&6; }
if test "x$ac_cv_lib_numa_numa_available" = x""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
  maffinity_libnuma_LIBS="-lnuma "
           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"
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
  { { $as_echo "$as_me:$LINENO: error: maffinity:libnuma requested but not found.  Aborting" >&5
$as_echo "$as_me: error: maffinity:libnuma requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

fi


   # Check for MPOL_MF_MOVE
   if test "$maffinity_libnuma_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking whether MPOL_MF_MOVE is declared" >&5
$as_echo_n "checking whether MPOL_MF_MOVE is declared... " >&6; }
if test "${ac_cv_have_decl_MPOL_MF_MOVE+set}" = set; then
  $as_echo_n "(cached) " >&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 MPOL_MF_MOVE
  (void) MPOL_MF_MOVE;
#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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_MPOL_MF_MOVE=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_MPOL_MF_MOVE=no
fi

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

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


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


fi


fi


    # substitute in the things needed to build libnuma




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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component maffinity:libnuma can compile" >&5
$as_echo_n "checking if MCA component maffinity:libnuma can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_maffinity" = "libnuma" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"libnuma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"libnuma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_maffinity" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component maffinity:$component can compile" >&5
$as_echo_n "checking if MCA component maffinity:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_maffinity" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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 "memchecker" = "common" ; then
                              MCA_opal_FRAMEWORKS="memchecker $MCA_opal_FRAMEWORKS"
                              MCA_opal_FRAMEWORKS_SUBDIRS="mca/memchecker $MCA_opal_FRAMEWORKS_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memchecker_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memchecker_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memchecker_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memchecker"
                              MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memchecker"
                              MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memchecker_ALL_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memchecker_DSO_SUBDIRS)"
                              MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memchecker_STATIC_SUBDIRS)"
                          fi
                          if test "memchecker" != "common" ; then
                              MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memchecker/libmca_memchecker.la"
                          fi
                          MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memchecker_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Pre-configuring the framework memchecker"

    { $as_echo "$as_me:$LINENO: checking if --enable-memchecker was specified" >&5
$as_echo_n "checking if --enable-memchecker was specified... " >&6; }
    # Check whether --enable-memchecker was given.
if test "${enable_memchecker+set}" = set; then
  enableval=$enable_memchecker;
fi

    if test "$enable_memchecker" = "yes"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        WANT_MEMCHECKER=1
    else
        { $as_echo "$as_me:$LINENO: result: no (adding \"memchecker\" to --enable-mca-no-build list)" >&5
$as_echo "no (adding \"memchecker\" to --enable-mca-no-build list)" >&6; }
        WANT_MEMCHECKER=0

        # Setting this environment variable causes
        # MCA_COMONENT_BUILD_CHECK (in ompi_mca.m4, invoked by
        # MCA_CONFIGURE_FRAMEWORK, below) to rule that the component
        # should not be built.  It is effectively the same as adding
        # "memchecker" to the --enable-mca-no-build list.
        DISABLE_memchecker=1
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_MEMCHECKER $WANT_MEMCHECKER
_ACEOF

     if test "$WANT_MEMCHECKER" = "1"; then
  OMPI_WANT_MEMCHECKER_TRUE=
  OMPI_WANT_MEMCHECKER_FALSE='#'
else
  OMPI_WANT_MEMCHECKER_TRUE='#'
  OMPI_WANT_MEMCHECKER_FALSE=
fi


    # first, compile all the components

    ompi_show_subsubtitle "Configuring MCA framework memchecker"

    # 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 "memchecker" = "common" ; then
        outdir=opal/mca/common
    else
        outdir=opal/mca/memchecker/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework memchecker" >&5
$as_echo_n "checking for no configure components in framework memchecker... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework memchecker" >&5
$as_echo_n "checking for m4 configure components in framework memchecker... " >&6; }
    { $as_echo "$as_me:$LINENO: result: valgrind" >&5
$as_echo "valgrind" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component memchecker:valgrind (m4 configuration macro)"




    project=opal
    framework=memchecker
    component=valgrind
    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
            # overridden 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_memchecker" ; then
            if test "$DIRECT_memchecker" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component memchecker:valgrind compile mode" >&5
$as_echo_n "checking for MCA component memchecker:valgrind compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in opal_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"opal_memchecker_valgrind_save_CPPFLAGS opal_memchecker_valgrind_happy opal_memchecker_valgrind_CPPFLAGS\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`



# Check whether --with-valgrind was given.
if test "${with_valgrind+set}" = set; then
  withval=$with_valgrind;
fi


    { $as_echo "$as_me:$LINENO: checking --with-valgrind value" >&5
$as_echo_n "checking --with-valgrind value... " >&6; }
    if test "$with_valgrind" = "yes" -o "$with_valgrind" = "no" -o "x$with_valgrind" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_valgrind"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_valgrind not found" >&5
$as_echo "$as_me: WARNING: Directory $with_valgrind not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_valgrind/include/valgrind/valgrind.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_valgrind/include/valgrind/valgrind.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_valgrind/include/valgrind/valgrind.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_valgrind)" >&5
$as_echo "sanity check ok ($with_valgrind)" >&6; }

fi



fi



fi



    memchecker_valgrind_CPPFLAGS=
    opal_memchecker_valgrind_CPPFLAGS=
    opal_memchecker_valgrind_save_CPPFLAGS="$CPPFLAGS"
    opal_memchecker_valgrind_happy=no
    if test "$with_valgrind" != "no"; then
  if test ! -z "$with_valgrind" -a "$with_valgrind" != "yes"; then
  CPPFLAGS="$CPPFLAGS -I$with_valgrind/include"
                  opal_memchecker_valgrind_CPPFLAGS="-I$with_valgrind/include"
fi


for ac_header in valgrind/valgrind.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:$LINENO: checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE" >&5
$as_echo_n "checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE... " >&6; }
                  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include "valgrind/memcheck.h"

int
main ()
{
char buffer = 0xff;
                       VALGRIND_CHECK_MEM_IS_ADDRESSABLE(&buffer, sizeof(buffer));
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
                      opal_memchecker_valgrind_happy=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                      { { $as_echo "$as_me:$LINENO: error: Need Valgrind version 3.2.0 or later. Can not build component." >&5
$as_echo "$as_me: error: Need Valgrind version 3.2.0 or later. Can not build component." >&2;}
   { (exit 1); exit 1; }; }
                     { $as_echo "$as_me:$LINENO: result: cross-compiling; assume yes...?" >&5
$as_echo "cross-compiling; assume yes...?" >&6; }
                      { $as_echo "$as_me:$LINENO: WARNING: OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later" >&5
$as_echo "$as_me: WARNING: OMPI will fail to compile if you do not have Valgrind version 3.2.0 or later" >&2;}
                      opal_memchecker_valgrind_happy=yes
fi

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

else
  { $as_echo "$as_me:$LINENO: WARNING: valgrind.h not found" >&5
$as_echo "$as_me: WARNING: valgrind.h not found" >&2;}
                  { $as_echo "$as_me:$LINENO: WARNING: Cannot compile this component" >&5
$as_echo "$as_me: WARNING: Cannot compile this component" >&2;}
fi

done

fi

    CPPFLAGS="$opal_memchecker_valgrind_save_CPPFLAGS"

    if test "$opal_memchecker_valgrind_happy" = "yes"; then
  memchecker_valgrind_CPPFLAGS=$opal_memchecker_valgrind_CPPFLAGS
           should_build=1
else
  should_build=0
fi





    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


fi


    if test "$should_build" = "1"; then



    project=opal
    framework=memchecker
    component=valgrind

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_memchecker" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_memchecker" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component memchecker:valgrind can compile" >&5
$as_echo_n "checking if MCA component memchecker:valgrind can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memchecker" = "valgrind" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"valgrind\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"valgrind\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_memchecker" ; then
        if test "$DIRECT_memchecker" = "valgrind" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"valgrind\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"valgrind\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 valgrind"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_memchecker_valgrind_DSO=1
else
  BUILD_memchecker_valgrind_DSO=0
fi

     if test "$BUILD_memchecker_valgrind_DSO" = "1"; then
  OMPI_BUILD_memchecker_valgrind_DSO_TRUE=
  OMPI_BUILD_memchecker_valgrind_DSO_FALSE='#'
else
  OMPI_BUILD_memchecker_valgrind_DSO_TRUE='#'
  OMPI_BUILD_memchecker_valgrind_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



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


    MCA_memchecker_ALL_COMPONENTS="$all_components"
    MCA_memchecker_STATIC_COMPONENTS="$static_components"
    MCA_memchecker_DSO_COMPONENTS="$dso_components"
    MCA_memchecker_STATIC_LTLIBS="$static_ltlibs"







    MCA_memchecker_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_memchecker_ALL_SUBDIRS="$MCA_memchecker_ALL_SUBDIRS mca/memchecker/$item"
    done



    MCA_memchecker_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_memchecker_STATIC_SUBDIRS="$MCA_memchecker_STATIC_SUBDIRS mca/memchecker/$item"
    done



    MCA_memchecker_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_memchecker_DSO_SUBDIRS="$MCA_memchecker_DSO_SUBDIRS mca/memchecker/$item"
    done



    # 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 "memchecker" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_memchecker_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_MEMCHECKER_HAVE_COMPONENT $memchecker_base_found
_ACEOF

# 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework memcpy" >&5
$as_echo_n "checking for no configure components in framework memcpy... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework memcpy" >&5
$as_echo_n "checking for m4 configure components in framework memcpy... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


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


    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



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


# Check whether --with-memory-manager was given.
if test "${with_memory_manager+set}" = set; then
  withval=$with_memory_manager;
fi


        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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework memory" >&5
$as_echo_n "checking for no configure components in framework memory... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework memory" >&5
$as_echo_n "checking for m4 configure components in framework memory... " >&6; }
    { $as_echo "$as_me:$LINENO: result: ptmalloc2, malloc_solaris" >&5
$as_echo "ptmalloc2, malloc_solaris" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component memory:ptmalloc2 compile mode" >&5
$as_echo_n "checking for MCA component memory:ptmalloc2 compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    if test "$with_memory_manager" = "ptmalloc2"; then
  if test "`echo $host | grep apple-darwin`" != "" ; then
            { $as_echo "$as_me:$LINENO: WARNING: *** Using ptmalloc with OS X will result in failure." >&5
$as_echo "$as_me: WARNING: *** Using ptmalloc with OS X will result in failure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: *** Aborting to save you the effort" >&5
$as_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"
                          { $as_echo "$as_me:$LINENO: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&5
$as_echo "$as_me: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&2;}
                          { $as_echo "$as_me:$LINENO: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&5
$as_echo "$as_me: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&2;}
                          { $as_echo "$as_me:$LINENO: WARNING: *** Automatically disabling ptmalloc2" >&5
$as_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
  { $as_echo "$as_me:$LINENO: checking for malloc.h" >&5
$as_echo_n "checking for malloc.h... " >&6; }
if test "${ac_cv_header_malloc_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
$as_echo "$ac_cv_header_malloc_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking malloc.h usability" >&5
$as_echo_n "checking malloc.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking malloc.h presence" >&5
$as_echo_n "checking malloc.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: malloc.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: malloc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for malloc.h" >&5
$as_echo_n "checking for malloc.h... " >&6; }
if test "${ac_cv_header_malloc_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_malloc_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
$as_echo "$ac_cv_header_malloc_h" >&6; }

fi
if test "x$ac_cv_header_malloc_h" = x""yes; then
  memory_ptmalloc2_happy="yes"
else
  memory_ptmalloc2_happy="no"
fi


fi


    if test "$memory_ptmalloc2_happy" = "yes"; then
  # check for link.h (for _DYNAMIC symbol)
           if test "${ac_cv_header_link_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for link.h" >&5
$as_echo_n "checking for link.h... " >&6; }
if test "${ac_cv_header_link_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_link_h" >&5
$as_echo "$ac_cv_header_link_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking link.h usability" >&5
$as_echo_n "checking link.h usability... " >&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 <link.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking link.h presence" >&5
$as_echo_n "checking link.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <link.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: link.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: link.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: link.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: link.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: link.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: link.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: link.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: link.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: link.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: link.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: link.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: link.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: link.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: link.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: link.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: link.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
{ $as_echo "$as_me:$LINENO: checking for link.h" >&5
$as_echo_n "checking for link.h... " >&6; }
if test "${ac_cv_header_link_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_link_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_link_h" >&5
$as_echo "$ac_cv_header_link_h" >&6; }

fi
if test "x$ac_cv_header_link_h" = x""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
           { $as_echo "$as_me:$LINENO: checking whether __malloc_initialize_hook is declared" >&5
$as_echo_n "checking whether __malloc_initialize_hook is declared... " >&6; }
if test "${ac_cv_have_decl___malloc_initialize_hook+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___malloc_initialize_hook" >&5
$as_echo "$ac_cv_have_decl___malloc_initialize_hook" >&6; }
if test "x$ac_cv_have_decl___malloc_initialize_hook" = x""yes; then
  memory_ptmalloc2_happy="yes"
else
  memory_ptmalloc2_happy="no"
fi

fi


    #
    # See if we have sbrk prototyped
    #
    if test "$memory_ptmalloc2_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
$as_echo_n "checking whether sbrk is declared... " >&6; }
if test "${ac_cv_have_decl_sbrk+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
$as_echo "$ac_cv_have_decl_sbrk" >&6; }
if test "x$ac_cv_have_decl_sbrk" = x""yes; then

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


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


fi


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
  { $as_echo "$as_me:$LINENO: checking for syscall.h" >&5
$as_echo_n "checking for syscall.h... " >&6; }
if test "${ac_cv_header_syscall_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5
$as_echo "$ac_cv_header_syscall_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking syscall.h usability" >&5
$as_echo_n "checking syscall.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking syscall.h presence" >&5
$as_echo_n "checking syscall.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: syscall.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: syscall.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: syscall.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: syscall.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: syscall.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: syscall.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: syscall.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: syscall.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: syscall.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: syscall.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: syscall.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for syscall.h" >&5
$as_echo_n "checking for syscall.h... " >&6; }
if test "${ac_cv_header_syscall_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_syscall_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5
$as_echo "$ac_cv_header_syscall_h" >&6; }

fi
if test "x$ac_cv_header_syscall_h" = x""yes; then

for ac_func in syscall
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 memory_ptmalloc2_mmap=1
fi
done


for ac_func in __mmap
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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"
                  { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
$as_echo_n "checking for dlsym in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlsym+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dl_dlsym=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dl_dlsym=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
  LIBS="$LIBS -ldl"
                                memory_ptmalloc2_LIBS="-ldl"
                                memory_ptmalloc2_mmap=1
fi


for ac_func in dlsym
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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
  { { $as_echo "$as_me:$LINENO: error: ptmalloc2 memory management requested but not available.  Aborting." >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component memory:ptmalloc2 can compile" >&5
$as_echo_n "checking if MCA component memory:ptmalloc2 can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memory" = "ptmalloc2" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



    ompi_show_subsubsubtitle "MCA component memory:malloc_solaris (m4 configuration macro)"




    project=opal
    framework=memory
    component=malloc_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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component memory:malloc_solaris compile mode" >&5
$as_echo_n "checking for MCA component memory:malloc_solaris compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in memory_malloc_solaris_happy; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"memory_malloc_solaris_happy\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    { $as_echo "$as_me:$LINENO: checking for Solaris" >&5
$as_echo_n "checking for Solaris... " >&6; }

    case "$host" in
    *solaris*)

        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

        if test "$with_memory_manager" = "malloc_solaris"; then
  memory_malloc_solaris_happy="yes"
                memory_malloc_solaris_should_use=1
else
  memory_malloc_solaris_should_use=0
                if test "$with_memory_manager" = ""; then
  memory_malloc_solaris_happy="yes"
else
  memory_malloc_solaris_happy="no"
fi

fi


        if test "$memory_malloc_solaris_happy" = "yes"; then
  if test "${ac_cv_header_malloc_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for malloc.h" >&5
$as_echo_n "checking for malloc.h... " >&6; }
if test "${ac_cv_header_malloc_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
$as_echo "$ac_cv_header_malloc_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking malloc.h usability" >&5
$as_echo_n "checking malloc.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking malloc.h presence" >&5
$as_echo_n "checking malloc.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: malloc.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: malloc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for malloc.h" >&5
$as_echo_n "checking for malloc.h... " >&6; }
if test "${ac_cv_header_malloc_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_malloc_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
$as_echo "$ac_cv_header_malloc_h" >&6; }

fi
if test "x$ac_cv_header_malloc_h" = x""yes; then
  :
else
  memory_malloc_solaris_happy="no"
fi


fi


        if test "$memory_malloc_solaris_happy" = "yes"; then
  memory_malloc_solaris_munmap=0

              if test "${ac_cv_header_sys_syscall_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for sys/syscall.h" >&5
$as_echo_n "checking for sys/syscall.h... " >&6; }
if test "${ac_cv_header_sys_syscall_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5
$as_echo "$ac_cv_header_sys_syscall_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking sys/syscall.h usability" >&5
$as_echo_n "checking sys/syscall.h usability... " >&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 <sys/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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking sys/syscall.h presence" >&5
$as_echo_n "checking sys/syscall.h presence... " >&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/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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: sys/syscall.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: sys/syscall.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: sys/syscall.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: sys/syscall.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: sys/syscall.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: sys/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
{ $as_echo "$as_me:$LINENO: checking for sys/syscall.h" >&5
$as_echo_n "checking for sys/syscall.h... " >&6; }
if test "${ac_cv_header_sys_syscall_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_sys_syscall_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5
$as_echo "$ac_cv_header_sys_syscall_h" >&6; }

fi
if test "x$ac_cv_header_sys_syscall_h" = x""yes; then

for ac_func in syscall
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 memory_malloc_solaris_munmap=1
fi
done

fi




for ac_func in __munmap
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 memory_malloc_solaris_munmap=1
fi
done


              # only allow dlsym (and therefore add -ldl) if we
              # really need to
              if test "$memory_malloc_solaris_munmap" = "0"; then
  memory_malloc_solaris_LIBS_SAVE="$LIBS"
                      { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
$as_echo_n "checking for dlsym in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlsym+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dl_dlsym=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dl_dlsym=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
  memory_malloc_solaris_LIBS="-ldl"
                                     memory_malloc_solaris_munmap=1
fi


for ac_func in dlsym
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

                      LIBS="$memory_malloc_solaris_LIBS_SAVE"
fi


              if test "$memory_malloc_solaris_munmap" = "0"; then
  memory_malloc_solaris_happy="no"
fi

fi


        if test "$memory_malloc_solaris_happy" = "yes"; then
  memory_malloc_solaris_WRAPPER_EXTRA_LIBS="$memory_malloc_solaris_LIBS"
fi


        if test "$memory_malloc_solaris_happy" = "no" -a \
                "$memory_malloc_solaris_should_use" = "1"; then
  { { $as_echo "$as_me:$LINENO: error: malloc_solaris memory management requested but not available.  Aborting." >&5
$as_echo "$as_me: error: malloc_solaris memory management requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi




    ;;
    *)
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        if test "$with_memory_manager" = "malloc_solaris"; then
  memory_malloc_solaris_happy="no"
                memory_malloc_solaris_should_use=0
fi

    ;;
    esac

    if test "$memory_malloc_solaris_happy" = "yes"; then
  memory_base_found=1
           should_build=1
else
  should_build=0
fi



    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


fi


    if test "$should_build" = "1"; then



    project=opal
    framework=memory
    component=malloc_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component memory:malloc_solaris can compile" >&5
$as_echo_n "checking if MCA component memory:malloc_solaris can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_memory" = "malloc_solaris" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_solaris" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"malloc_solaris\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_solaris"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_memory_malloc_solaris_DSO=1
else
  BUILD_memory_malloc_solaris_DSO=0
fi

     if test "$BUILD_memory_malloc_solaris_DSO" = "1"; then
  OMPI_BUILD_memory_malloc_solaris_DSO_TRUE=
  OMPI_BUILD_memory_malloc_solaris_DSO_FALSE='#'
else
  OMPI_BUILD_memory_malloc_solaris_DSO_TRUE='#'
  OMPI_BUILD_memory_malloc_solaris_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



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


    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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework paffinity" >&5
$as_echo_n "checking for no configure components in framework paffinity... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework paffinity" >&5
$as_echo_n "checking for m4 configure components in framework paffinity... " >&6; }
    { $as_echo "$as_me:$LINENO: result: linux, solaris, windows, darwin, test, posix" >&5
$as_echo "linux, solaris, windows, darwin, test, posix" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0
     # get the component's priority...
                          infile="$srcdir/opal/mca/paffinity/linux/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_paffinity" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in PLPA_VERSION; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"PLPA_VERSION\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    # Setup PLPA


    plpa_symbol_prefix_value=opal_paffinity_linux_plpa_





    plpa_mode=included


    plpa_executables=no



    # If we used the 2 param variant of PLPA_INIT, then assume the
    # config prefix is ".".  Otherwise, it's opal/mca/paffinity/linux/plpa.








    # Check for syscall()
    { $as_echo "$as_me:$LINENO: checking for syscall" >&5
$as_echo_n "checking for syscall... " >&6; }
if test "${ac_cv_func_syscall+set}" = set; then
  $as_echo_n "(cached) " >&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 syscall to an innocuous variant, in case <limits.h> declares syscall.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define syscall innocuous_syscall

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char syscall (); 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 syscall

/* 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 syscall ();
/* 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_syscall || defined __stub___syscall
choke me
#endif

int
main ()
{
return syscall ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_syscall=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_syscall=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_syscall" >&5
$as_echo "$ac_cv_func_syscall" >&6; }
if test "x$ac_cv_func_syscall" = x""yes; then
  plpa_config_happy=1
else
  plpa_config_happy=0
fi


    # Look for syscall.h
    if test "$plpa_config_happy" = 1; then
        if test "${ac_cv_header_sys_syscall_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for sys/syscall.h" >&5
$as_echo_n "checking for sys/syscall.h... " >&6; }
if test "${ac_cv_header_sys_syscall_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5
$as_echo "$ac_cv_header_sys_syscall_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking sys/syscall.h usability" >&5
$as_echo_n "checking sys/syscall.h usability... " >&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 <sys/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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking sys/syscall.h presence" >&5
$as_echo_n "checking sys/syscall.h presence... " >&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/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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: sys/syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: sys/syscall.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: sys/syscall.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: sys/syscall.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: sys/syscall.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: sys/syscall.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: sys/syscall.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/syscall.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: sys/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
{ $as_echo "$as_me:$LINENO: checking for sys/syscall.h" >&5
$as_echo_n "checking for sys/syscall.h... " >&6; }
if test "${ac_cv_header_sys_syscall_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_sys_syscall_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_syscall_h" >&5
$as_echo "$ac_cv_header_sys_syscall_h" >&6; }

fi
if test "x$ac_cv_header_sys_syscall_h" = x""yes; then
  plpa_config_happy=1
else
  plpa_config_happy=0
fi


    fi

    # Look for unistd.h
    if test "$plpa_config_happy" = 1; then
        if test "${ac_cv_header_unistd_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for unistd.h" >&5
$as_echo_n "checking for unistd.h... " >&6; }
if test "${ac_cv_header_unistd_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
$as_echo "$ac_cv_header_unistd_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking unistd.h usability" >&5
$as_echo_n "checking unistd.h usability... " >&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 <unistd.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking unistd.h presence" >&5
$as_echo_n "checking unistd.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: unistd.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
{ $as_echo "$as_me:$LINENO: checking for unistd.h" >&5
$as_echo_n "checking for unistd.h... " >&6; }
if test "${ac_cv_header_unistd_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_unistd_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
$as_echo "$ac_cv_header_unistd_h" >&6; }

fi
if test "x$ac_cv_header_unistd_h" = x""yes; then
  plpa_config_happy=1
else
  plpa_config_happy=0
fi


    fi

    # Check for __NR_sched_setaffinity
    if test "$plpa_config_happy" = 1; then
        { $as_echo "$as_me:$LINENO: checking for __NR_sched_setaffinity" >&5
$as_echo_n "checking for __NR_sched_setaffinity... " >&6; }
        if test "$plpa_emulate" = "yes"; then
            { $as_echo "$as_me:$LINENO: result: emulated" >&5
$as_echo "emulated" >&6; }

cat >>confdefs.h <<\_ACEOF
#define __NR_sched_setaffinity 0
_ACEOF

        else
            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>
#include <unistd.h>
int
main ()
{
#ifndef __NR_sched_setaffinity
#error __NR_sched_setaffinity_not found!
#endif
int i = 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
                            plpa_config_happy=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                            plpa_config_happy=0
fi

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

    # Check for __NR_sched_getaffinity (probably overkill, but what
    # the heck?)
    if test "$plpa_config_happy" = 1; then
        { $as_echo "$as_me:$LINENO: checking for __NR_sched_getaffinity" >&5
$as_echo_n "checking for __NR_sched_getaffinity... " >&6; }
        if test "$plpa_emulate" = "yes"; then
            { $as_echo "$as_me:$LINENO: result: emulated" >&5
$as_echo "emulated" >&6; }

cat >>confdefs.h <<\_ACEOF
#define __NR_sched_getaffinity 0
_ACEOF

        else
            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>
#include <unistd.h>
int
main ()
{
#ifndef __NR_sched_getaffinity
#error __NR_sched_getaffinity_not found!
#endif
int i = 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
                            plpa_config_happy=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                            plpa_config_happy=0
fi

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

    # If all was good, do the real init
    if test "$plpa_config_happy" = "1"; then



    # Are we building as standalone or included?
    { $as_echo "$as_me:$LINENO: checking for PLPA building mode" >&5
$as_echo_n "checking for PLPA building mode... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $plpa_mode" >&5
$as_echo "$plpa_mode" >&6; }

    # Debug mode?
    { $as_echo "$as_me:$LINENO: checking if want PLPA maintainer support" >&5
$as_echo_n "checking if want PLPA maintainer support... " >&6; }

cat >>confdefs.h <<_ACEOF
#define PLPA_DEBUG $plpa_debug
_ACEOF

    { $as_echo "$as_me:$LINENO: result: $plpa_debug_msg" >&5
$as_echo "$plpa_debug_msg" >&6; }

    # We need to set a path for header, etc files depending on whether
    # we're standalone or included. this is taken care of by PLPA_INCLUDED.

    { $as_echo "$as_me:$LINENO: checking for PLPA config prefix" >&5
$as_echo_n "checking for PLPA config prefix... " >&6; }
    { $as_echo "$as_me:$LINENO: result: opal/mca/paffinity/linux/plpa" >&5
$as_echo "opal/mca/paffinity/linux/plpa" >&6; }

    # Note that plpa_config.h *MUST* be listed first so that it
    # becomes the "main" config header file.  Any AM_CONFIG_HEADERs
    # after that (plpa.h) will only have selective #defines replaced,
    # not the entire file.
    ac_config_headers="$ac_config_headers opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h"

    ac_config_headers="$ac_config_headers opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h"


    # What prefix are we using?
    { $as_echo "$as_me:$LINENO: checking for PLPA symbol prefix" >&5
$as_echo_n "checking for PLPA symbol prefix... " >&6; }

cat >>confdefs.h <<_ACEOF
#define PLPA_SYM_PREFIX $plpa_symbol_prefix_value
_ACEOF

    # Ensure to [] escape the whole next line so that we can get the
    # proper tr tokens
    plpa_symbol_prefix_value_caps="`echo $plpa_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`"

cat >>confdefs.h <<_ACEOF
#define PLPA_SYM_PREFIX_CAPS $plpa_symbol_prefix_value_caps
_ACEOF

    { $as_echo "$as_me:$LINENO: result: $plpa_symbol_prefix_value" >&5
$as_echo "$plpa_symbol_prefix_value" >&6; }

    # Build with valgrind support if we can find it, unless it was
    # explicitly disabled

# Check whether --with-valgrind was given.
if test "${with_valgrind+set}" = set; then
  withval=$with_valgrind;
fi

    CPPFLAGS_save="$CPPFLAGS"
    valgrind_happy=no
    if test "$with_valgrind" != "no"; then
  if test ! -z "$with_valgrind" -a "$with_valgrind" != "yes"; then
  CPPFLAGS="$CPPFLAGS -I$with_valgrind/include"
fi


for ac_header in valgrind/valgrind.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:$LINENO: checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE" >&5
$as_echo_n "checking for VALGRIND_CHECK_MEM_IS_ADDRESSABLE... " >&6; }
                  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include "valgrind/memcheck.h"

int
main ()
{
char buffer = 0xff;
                       VALGRIND_CHECK_MEM_IS_ADDRESSABLE(&buffer, sizeof(buffer));
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
                      valgrind_happy=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                      { $as_echo "$as_me:$LINENO: WARNING: Need Valgrind version 3.2.0 or later." >&5
$as_echo "$as_me: WARNING: Need Valgrind version 3.2.0 or later." >&2;}
fi

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

else
  { $as_echo "$as_me:$LINENO: WARNING: valgrind.h not found" >&5
$as_echo "$as_me: WARNING: valgrind.h not found" >&2;}
fi

done

           if test "$valgrind_happy" = "no" -a "x$with_valgrind" != "x"; then
  { $as_echo "$as_me:$LINENO: WARNING: Valgrind support requested but not possible" >&5
$as_echo "$as_me: WARNING: Valgrind support requested but not possible" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
fi

fi

    if test "$valgrind_happy" = "no"; then
  CPPFLAGS="$CPPFLAGS_save"
           valgrind_define=0
else
  valgrind_define=1
fi


cat >>confdefs.h <<_ACEOF
#define PLPA_WANT_VALGRIND_SUPPORT $valgrind_define
_ACEOF



    # Check whether to build the exectuables or not
    { $as_echo "$as_me:$LINENO: checking whether to build PLPA executables" >&5
$as_echo_n "checking whether to build PLPA executables... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $plpa_executables" >&5
$as_echo "$plpa_executables" >&6; }

    # If we're building executables, we need some things for plpa-taskset
    if test "$plpa_executables" = "yes"; then
        { $as_echo "$as_me:$LINENO: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if test "${ac_cv_c_inline+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
$as_echo "$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

    fi

    # Success
    { $as_echo "$as_me:$LINENO: checking for PLPA version" >&5
$as_echo_n "checking for PLPA version... " >&6; }
               PLPA_VERSION=`$srcdir/opal/mca/paffinity/linux/plpa/config/plpa_get_version.sh $srcdir/opal/mca/paffinity/linux/plpa/VERSION`

cat >>confdefs.h <<_ACEOF
#define PAFFINITY_LINUX_PLPA_VERSION "$PLPA_VERSION"
_ACEOF

               { $as_echo "$as_me:$LINENO: result: $PLPA_VERSION" >&5
$as_echo "$PLPA_VERSION" >&6; }
               should_build=1

else
  should_build=0
fi


    if test "$plpa_did_am_conditionals" != "yes"; then
         if test "$plpa_mode" = "standalone"; then
  PLPA_BUILD_STANDALONE_TRUE=
  PLPA_BUILD_STANDALONE_FALSE='#'
else
  PLPA_BUILD_STANDALONE_TRUE='#'
  PLPA_BUILD_STANDALONE_FALSE=
fi

         if test "$plpa_executables" = "yes"; then
  PLPA_BUILD_EXECUTABLES_TRUE=
  PLPA_BUILD_EXECUTABLES_FALSE='#'
else
  PLPA_BUILD_EXECUTABLES_TRUE='#'
  PLPA_BUILD_EXECUTABLES_FALSE=
fi

    fi
    plpa_did_am_conditionals=yes


    ac_config_files="$ac_config_files opal/mca/paffinity/linux/plpa/Makefile opal/mca/paffinity/linux/plpa/config/Makefile opal/mca/paffinity/linux/plpa/src/Makefile opal/mca/paffinity/linux/plpa/src/libplpa/Makefile opal/mca/paffinity/linux/plpa/src/plpa-info/Makefile opal/mca/paffinity/linux/plpa/src/plpa-taskset/Makefile"


    # Cleanup
    unset plpa_config_happy




    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component paffinity:linux can compile" >&5
$as_echo_n "checking if MCA component paffinity:linux can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "linux" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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




    if test "$plpa_did_am_conditionals" != "yes"; then
         if test "$plpa_mode" = "standalone"; then
  PLPA_BUILD_STANDALONE_TRUE=
  PLPA_BUILD_STANDALONE_FALSE='#'
else
  PLPA_BUILD_STANDALONE_TRUE='#'
  PLPA_BUILD_STANDALONE_FALSE=
fi

         if test "$plpa_executables" = "yes"; then
  PLPA_BUILD_EXECUTABLES_TRUE=
  PLPA_BUILD_EXECUTABLES_FALSE='#'
else
  PLPA_BUILD_EXECUTABLES_TRUE='#'
  PLPA_BUILD_EXECUTABLES_FALSE=
fi

    fi
    plpa_did_am_conditionals=yes



    # 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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/opal/mca/paffinity/solaris/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_paffinity" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in paff_solaris_happy; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"paff_solaris_happy\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    #check to see if we have <sys/procset.h>
    if test "${ac_cv_header_sys_procset_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for sys/procset.h" >&5
$as_echo_n "checking for sys/procset.h... " >&6; }
if test "${ac_cv_header_sys_procset_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_procset_h" >&5
$as_echo "$ac_cv_header_sys_procset_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking sys/procset.h usability" >&5
$as_echo_n "checking sys/procset.h usability... " >&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 <sys/procset.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking sys/procset.h presence" >&5
$as_echo_n "checking sys/procset.h presence... " >&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/procset.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: sys/procset.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: sys/procset.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/procset.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: sys/procset.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: sys/procset.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: sys/procset.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/procset.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: sys/procset.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/procset.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: sys/procset.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/procset.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: sys/procset.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/procset.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: sys/procset.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sys/procset.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: sys/procset.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
{ $as_echo "$as_me:$LINENO: checking for sys/procset.h" >&5
$as_echo_n "checking for sys/procset.h... " >&6; }
if test "${ac_cv_header_sys_procset_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_sys_procset_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_procset_h" >&5
$as_echo "$ac_cv_header_sys_procset_h" >&6; }

fi
if test "x$ac_cv_header_sys_procset_h" = x""yes; then
  paff_solaris_happy=yes
else
  paff_solaris_happy=no
fi



    if test "$paff_solaris_happy" = "yes"; then
        # check for processor_bind()
        { $as_echo "$as_me:$LINENO: checking for processor_bind" >&5
$as_echo_n "checking for processor_bind... " >&6; }
if test "${ac_cv_func_processor_bind+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_processor_bind=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_processor_bind=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_processor_bind" >&5
$as_echo "$ac_cv_func_processor_bind" >&6; }
if test "x$ac_cv_func_processor_bind" = x""yes; then
  paff_solaris_happy=yes
else
  paff_solaris_happy=no
fi

    fi

    if test "$paff_solaris_happy" = "yes"; then
       # check for whether header has P_PID defined
       { $as_echo "$as_me:$LINENO: checking if P_PID is defined" >&5
$as_echo_n "checking if P_PID is defined... " >&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/procset.h>
int
main ()
{
int i = P_PID;
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  paff_solaris_happy=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	paff_solaris_happy=no
fi

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

    if test "$paff_solaris_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component paffinity:solaris can compile" >&5
$as_echo_n "checking if MCA component paffinity:solaris can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "solaris" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/opal/mca/paffinity/windows/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_paffinity" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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.
    { $as_echo "$as_me:$LINENO: checking for working GetProcessAffinityMask" >&5
$as_echo_n "checking for working GetProcessAffinityMask... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
         should_build=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
         should_build=1
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
         should_build=0
fi
rm -rf conftest.dSYM
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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component paffinity:windows can compile" >&5
$as_echo_n "checking if MCA component paffinity:windows can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "windows" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/opal/mca/paffinity/darwin/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component paffinity:darwin (m4 configuration macro)"




    project=opal
    framework=paffinity
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=darwin

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_paffinity" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in paff_darwin_happy; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"paff_darwin_happy\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # check to see if we have <mach/mach_host.h>
    # as this is a Darwin-specific thing
    if test "${ac_cv_header_mach_mach_host_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for mach/mach_host.h" >&5
$as_echo_n "checking for mach/mach_host.h... " >&6; }
if test "${ac_cv_header_mach_mach_host_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_host_h" >&5
$as_echo "$ac_cv_header_mach_mach_host_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking mach/mach_host.h usability" >&5
$as_echo_n "checking mach/mach_host.h usability... " >&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 <mach/mach_host.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking mach/mach_host.h presence" >&5
$as_echo_n "checking mach/mach_host.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <mach/mach_host.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: mach/mach_host.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
{ $as_echo "$as_me:$LINENO: checking for mach/mach_host.h" >&5
$as_echo_n "checking for mach/mach_host.h... " >&6; }
if test "${ac_cv_header_mach_mach_host_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_mach_mach_host_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_host_h" >&5
$as_echo "$ac_cv_header_mach_mach_host_h" >&6; }

fi
if test "x$ac_cv_header_mach_mach_host_h" = x""yes; then
  paff_darwin_happy=yes
else
  paff_darwin_happy=no
fi



    if test "$paff_darwin_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


fi


    if test "$should_build" = "1"; then



    project=opal
    framework=paffinity
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component paffinity:darwin can compile" >&5
$as_echo_n "checking if MCA component paffinity:darwin can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "darwin" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_paffinity" ; then
        if test "$DIRECT_paffinity" = "darwin" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_paffinity_darwin_DSO=1
else
  BUILD_paffinity_darwin_DSO=0
fi

     if test "$BUILD_paffinity_darwin_DSO" = "1"; then
  OMPI_BUILD_paffinity_darwin_DSO_TRUE=
  OMPI_BUILD_paffinity_darwin_DSO_FALSE='#'
else
  OMPI_BUILD_paffinity_darwin_DSO_TRUE='#'
  OMPI_BUILD_paffinity_darwin_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/opal/mca/paffinity/test/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component paffinity:test (m4 configuration macro)"




    project=opal
    framework=paffinity
    component=test
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=test

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_paffinity" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in paff_test_happy; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"paff_test_happy\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # check to see if we have <mach/mach_host.h>
    # as this is a Darwin-specific thing and
    # we are a test module for that environment
    if test "${ac_cv_header_mach_mach_host_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for mach/mach_host.h" >&5
$as_echo_n "checking for mach/mach_host.h... " >&6; }
if test "${ac_cv_header_mach_mach_host_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_host_h" >&5
$as_echo "$ac_cv_header_mach_mach_host_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking mach/mach_host.h usability" >&5
$as_echo_n "checking mach/mach_host.h usability... " >&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 <mach/mach_host.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking mach/mach_host.h presence" >&5
$as_echo_n "checking mach/mach_host.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <mach/mach_host.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: mach/mach_host.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mach/mach_host.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: mach/mach_host.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
{ $as_echo "$as_me:$LINENO: checking for mach/mach_host.h" >&5
$as_echo_n "checking for mach/mach_host.h... " >&6; }
if test "${ac_cv_header_mach_mach_host_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_mach_mach_host_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_host_h" >&5
$as_echo "$ac_cv_header_mach_mach_host_h" >&6; }

fi
if test "x$ac_cv_header_mach_mach_host_h" = x""yes; then
  paff_test_happy=yes
else
  paff_test_happy=no
fi



    if test "$paff_test_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


fi


    if test "$should_build" = "1"; then



    project=opal
    framework=paffinity
    component=test

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component paffinity:test can compile" >&5
$as_echo_n "checking if MCA component paffinity:test can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "test" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"test\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"test\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_paffinity" ; then
        if test "$DIRECT_paffinity" = "test" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"test\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"test\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 test"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_paffinity_test_DSO=1
else
  BUILD_paffinity_test_DSO=0
fi

     if test "$BUILD_paffinity_test_DSO" = "1"; then
  OMPI_BUILD_paffinity_test_DSO_TRUE=
  OMPI_BUILD_paffinity_test_DSO_FALSE='#'
else
  OMPI_BUILD_paffinity_test_DSO_TRUE='#'
  OMPI_BUILD_paffinity_test_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/opal/mca/paffinity/posix/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component paffinity:posix (m4 configuration macro)"




    project=opal
    framework=paffinity
    component=posix
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=posix

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_paffinity" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in paff_posix_happy; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"paff_posix_happy\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # Check to see if we have <unistd.h>
    if test "${ac_cv_header_unistd_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for unistd.h" >&5
$as_echo_n "checking for unistd.h... " >&6; }
if test "${ac_cv_header_unistd_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
$as_echo "$ac_cv_header_unistd_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking unistd.h usability" >&5
$as_echo_n "checking unistd.h usability... " >&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 <unistd.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking unistd.h presence" >&5
$as_echo_n "checking unistd.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: unistd.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
{ $as_echo "$as_me:$LINENO: checking for unistd.h" >&5
$as_echo_n "checking for unistd.h... " >&6; }
if test "${ac_cv_header_unistd_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_unistd_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
$as_echo "$ac_cv_header_unistd_h" >&6; }

fi
if test "x$ac_cv_header_unistd_h" = x""yes; then
  paff_posix_happy=yes
else
  paff_posix_happy=no
fi



    # Check to see if we have _SC_NPROCESSORS_ONLN (this was already
    # checked up in the main configure.ac; just do a cache check
    # here).
    if test "$paff_posix_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for _SC_NPROCESSORS_ONLN" >&5
$as_echo_n "checking for _SC_NPROCESSORS_ONLN... " >&6; }
           if test "$ompi_cv_have__SC_NPROCESSORS_ONLN" = "yes"; then
  paff_posix_happy=yes
else
  paff_posix_happy=no
fi

           { $as_echo "$as_me:$LINENO: result: (cached) $paff_posix_happy" >&5
$as_echo "(cached) $paff_posix_happy" >&6; }
fi


    if test "$paff_posix_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


fi


    if test "$should_build" = "1"; then



    project=opal
    framework=paffinity
    component=posix

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component paffinity:posix can compile" >&5
$as_echo_n "checking if MCA component paffinity:posix can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_paffinity" = "posix" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"posix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"posix\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_paffinity" ; then
        if test "$DIRECT_paffinity" = "posix" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"posix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"posix\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 posix"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_paffinity_posix_DSO=1
else
  BUILD_paffinity_posix_DSO=0
fi

     if test "$BUILD_paffinity_posix_DSO" = "1"; then
  OMPI_BUILD_paffinity_posix_DSO_TRUE=
  OMPI_BUILD_paffinity_posix_DSO_FALSE='#'
else
  OMPI_BUILD_paffinity_posix_DSO_TRUE='#'
  OMPI_BUILD_paffinity_posix_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi


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


    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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework timer" >&5
$as_echo_n "checking for no configure components in framework timer... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework timer" >&5
$as_echo_n "checking for m4 configure components in framework timer... " >&6; }
    { $as_echo "$as_me:$LINENO: result: catamount, aix, altix, darwin, solaris, windows, linux" >&5
$as_echo "catamount, aix, altix, darwin, solaris, windows, linux" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component timer:catamount (m4 configuration macro)"




    project=opal
    framework=timer
    component=catamount
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component timer:catamount compile mode" >&5
$as_echo_n "checking for MCA component timer:catamount compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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" = "catamount"; then
  timer_catamount_happy="yes"
           timer_catamount_should_use=1
else
  timer_catamount_should_use=0
           if test "$with_timer" = ""; then
  timer_catamount_happy="yes"
else
  timer_catamount_happy="no"
fi

fi


   if test "$timer_catamount_happy" = "yes"; then

for ac_header in catamount/dclock.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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

else
  timer_catamount_happy=no
fi

done

fi


   if test "$timer_catamount_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for __cpu_mhz" >&5
$as_echo_n "checking for __cpu_mhz... " >&6; }
if test "${ompi_cv_have___cpu_mhz+set}" = set; then
  $as_echo_n "(cached) " >&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 <catamount/dclock.h>

int
main ()
{

unsigned int a = __cpu_mhz;

  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_have___cpu_mhz=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_have___cpu_mhz=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_have___cpu_mhz" >&5
$as_echo "$ompi_cv_have___cpu_mhz" >&6; }
          if test "$ompi_cv_have___cpu_mhz" = "no"; then
  timer_catamount_happy="no"
fi

fi


   if test "$timer_catamount_happy" = "no" -a \
               "$timer_catamount_should_use" = "1"; then
  { { $as_echo "$as_me:$LINENO: error: Catamount timer requested but not available.  Aborting." >&5
$as_echo "$as_me: error: Catamount timer requested but not available.  Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "$timer_catamount_happy" = "yes"; then
  timer_base_include="catamount/timer_catamount.h"
           should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then



    project=opal
    framework=timer
    component=catamount

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component timer:catamount can compile" >&5
$as_echo_n "checking if MCA component timer:catamount can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "catamount" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"catamount\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"catamount\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_timer" ; then
        if test "$DIRECT_timer" = "catamount" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"catamount\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"catamount\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 catamount"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_timer_catamount_DSO=1
else
  BUILD_timer_catamount_DSO=0
fi

     if test "$BUILD_timer_catamount_DSO" = "1"; then
  OMPI_BUILD_timer_catamount_DSO_TRUE=
  OMPI_BUILD_timer_catamount_DSO_FALSE='#'
else
  OMPI_BUILD_timer_catamount_DSO_TRUE='#'
  OMPI_BUILD_timer_catamount_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component timer:aix compile mode" >&5
$as_echo_n "checking for MCA component timer:aix compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
  { $as_echo "$as_me:$LINENO: checking for time_base_to_time" >&5
$as_echo_n "checking for time_base_to_time... " >&6; }
if test "${ac_cv_func_time_base_to_time+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_time_base_to_time=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_time_base_to_time=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_time_base_to_time" >&5
$as_echo "$ac_cv_func_time_base_to_time" >&6; }
if test "x$ac_cv_func_time_base_to_time" = x""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
  { $as_echo "$as_me:$LINENO: checking for pm_cycles in -lpmapi" >&5
$as_echo_n "checking for pm_cycles in -lpmapi... " >&6; }
if test "${ac_cv_lib_pmapi_pm_cycles+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_pmapi_pm_cycles=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pmapi_pm_cycles=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pmapi_pm_cycles" >&5
$as_echo "$ac_cv_lib_pmapi_pm_cycles" >&6; }
if test "x$ac_cv_lib_pmapi_pm_cycles" = x""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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


for ac_header in pmapi.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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
  { { $as_echo "$as_me:$LINENO: error: AIX timer requested but not available.  Aborting." >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component timer:aix can compile" >&5
$as_echo_n "checking if MCA component timer:aix can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "aix" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"aix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"aix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component timer:altix compile mode" >&5
$as_echo_n "checking for MCA component timer:altix compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
  { $as_echo "$as_me:$LINENO: checking for sn/mmtimer.h" >&5
$as_echo_n "checking for sn/mmtimer.h... " >&6; }
if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sn_mmtimer_h" >&5
$as_echo "$ac_cv_header_sn_mmtimer_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking sn/mmtimer.h usability" >&5
$as_echo_n "checking sn/mmtimer.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking sn/mmtimer.h presence" >&5
$as_echo_n "checking sn/mmtimer.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: sn/mmtimer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: sn/mmtimer.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: sn/mmtimer.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sn/mmtimer.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: sn/mmtimer.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: sn/mmtimer.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sn/mmtimer.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: sn/mmtimer.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: sn/mmtimer.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for sn/mmtimer.h" >&5
$as_echo_n "checking for sn/mmtimer.h... " >&6; }
if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_sn_mmtimer_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sn_mmtimer_h" >&5
$as_echo "$ac_cv_header_sn_mmtimer_h" >&6; }

fi
if test "x$ac_cv_header_sn_mmtimer_h" = x""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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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

fi

done

fi


    if test "$timer_altix_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking if MM timer can be opened" >&5
$as_echo_n "checking if MM timer can be opened... " >&6; }
if test "${ompi_cv_mm_timer_mmap+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_mm_timer_mmap" >&5
$as_echo "$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
  { { $as_echo "$as_me:$LINENO: error: Altix timer requested but not available.  Aborting." >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component timer:altix can compile" >&5
$as_echo_n "checking if MCA component timer:altix can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "altix" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"altix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"altix\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component timer:darwin compile mode" >&5
$as_echo_n "checking for MCA component timer:darwin compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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

fi

done

           { $as_echo "$as_me:$LINENO: checking for mach_absolute_time" >&5
$as_echo_n "checking for mach_absolute_time... " >&6; }
if test "${ac_cv_func_mach_absolute_time+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_mach_absolute_time=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_mach_absolute_time=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mach_absolute_time" >&5
$as_echo "$ac_cv_func_mach_absolute_time" >&6; }
if test "x$ac_cv_func_mach_absolute_time" = x""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
  { { $as_echo "$as_me:$LINENO: error: Darwin timer requested but not available.  Aborting." >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component timer:darwin can compile" >&5
$as_echo_n "checking if MCA component timer:darwin can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "darwin" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component timer:solaris compile mode" >&5
$as_echo_n "checking for MCA component timer:solaris compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
  { $as_echo "$as_me:$LINENO: checking for gethrtime" >&5
$as_echo_n "checking for gethrtime... " >&6; }
if test "${ac_cv_func_gethrtime+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_gethrtime=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_gethrtime=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethrtime" >&5
$as_echo "$ac_cv_func_gethrtime" >&6; }
if test "x$ac_cv_func_gethrtime" = x""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
  { { $as_echo "$as_me:$LINENO: error: Solaris timer requested but not available.  Aborting." >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component timer:solaris can compile" >&5
$as_echo_n "checking if MCA component timer:solaris can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "solaris" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component timer:windows compile mode" >&5
$as_echo_n "checking for MCA component timer:windows compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
  { { $as_echo "$as_me:$LINENO: error: Windows timer requested but not available.  Aborting." >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component timer:windows can compile" >&5
$as_echo_n "checking if MCA component timer:windows can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "windows" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component timer:linux compile mode" >&5
$as_echo_n "checking for MCA component timer:linux compile mode... " >&6; }
    compile_mode="static"
    { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


   case "${host}" in
   i?86-*|x86_64*|ia64-*|powerpc-*|powerpc64-*|sparc*-*)
        if test "$timer_linux_happy" = "yes"; then
  if test -r "/proc/cpuinfo"; then
  timer_linux_happy="yes"
else
  timer_linux_happy="no"
fi

fi

        ;;
   *)
        timer_linux_happy="no"
        ;;
   esac

   if test "$timer_linux_happy" = "no" -a \
               "$timer_linux_should_use" = "1"; then
  { { $as_echo "$as_me:$LINENO: error: Linux timer requested but not available.  Aborting." >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component timer:linux can compile" >&5
$as_echo_n "checking if MCA component timer:linux can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_timer" = "linux" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode

                   if test $components_last_result -eq 1; then
  components_looking_for_succeed=0
fi



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


    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



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

    { $as_echo "$as_me:$LINENO: checking for frameworks for orte" >&5
$as_echo_n "checking for frameworks for orte... " >&6; }
    { $as_echo "$as_me:$LINENO: result: errmgr, ess, filem, grpcomm, iof, notifier, odls, oob, plm, ras, rmaps, rml, routed, snapc" >&5
$as_echo "errmgr, ess, filem, grpcomm, iof, notifier, odls, oob, plm, ras, rmaps, rml, routed, snapc" >&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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework errmgr" >&5
$as_echo_n "checking for no configure components in framework errmgr... " >&6; }
    { $as_echo "$as_me:$LINENO: result: default" >&5
$as_echo "default" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework errmgr" >&5
$as_echo_n "checking for m4 configure components in framework errmgr... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component errmgr:default (no configuration)"




    project=orte
    framework=errmgr
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_errmgr" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=errmgr
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component errmgr:default can compile" >&5
$as_echo_n "checking if MCA component errmgr:default can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_errmgr" = "default" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_errmgr" ; then
        if test "$DIRECT_errmgr" = "default" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_errmgr_default_DSO=1
    else
        BUILD_errmgr_default_DSO=0
    fi
     if test "$BUILD_errmgr_default_DSO" = "1"; then
  OMPI_BUILD_errmgr_default_DSO_TRUE=
  OMPI_BUILD_errmgr_default_DSO_FALSE='#'
else
  OMPI_BUILD_errmgr_default_DSO_TRUE='#'
  OMPI_BUILD_errmgr_default_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_errmgr" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component errmgr:$component can compile" >&5
$as_echo_n "checking if MCA component errmgr:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_errmgr" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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 "ess" = "common" ; then
                              MCA_orte_FRAMEWORKS="ess $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/ess $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ess_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ess_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ess_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ess"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ess"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ess_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ess_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ess_STATIC_SUBDIRS)"
                          fi
                          if test "ess" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ess/libmca_ess.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ess_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework ess"

    # 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 "ess" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/ess/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework ess" >&5
$as_echo_n "checking for no configure components in framework ess... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework ess" >&5
$as_echo_n "checking for m4 configure components in framework ess... " >&6; }
    { $as_echo "$as_me:$LINENO: result: portals_utcp, cnos, alps, env, hnp, lsf, singleton, slurm, tool" >&5
$as_echo "portals_utcp, cnos, alps, env, hnp, lsf, singleton, slurm, tool" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0
     # get the component's priority...
                          infile="$srcdir/orte/mca/ess/portals_utcp/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component ess:portals_utcp (m4 configuration macro)"




    project=orte
    framework=ess
    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
            # overridden 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_ess" ; then
            if test "$DIRECT_ess" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ess
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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.
    ess_portals_utcp_save_CPPFLAGS="$CPPFLAGS"
    ess_portals_utcp_save_LDFLAGS="$LDFLAGS"
    ess_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


    { $as_echo "$as_me:$LINENO: checking --with-portals value" >&5
$as_echo_n "checking --with-portals value... " >&6; }
    if test "$with_portals" = "yes" -o "$with_portals" = "no" -o "x$with_portals" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_portals"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_portals not found" >&5
$as_echo "$as_me: WARNING: Directory $with_portals not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_portals/include/portals3.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_portals/include/portals3.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_portals/include/portals3.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_portals)" >&5
$as_echo "sanity check ok ($with_portals)" >&6; }

fi



fi



fi



    if test -n "$with_portals"; then
  if test -d "$with_portals/include"; then
  ess_portals_utcp_CPPFLAGS="-I$with_portals/include"
                  CPPFLAGS="$CPPFLAGS $ess_portals_utcp_CPPFLAGS"
fi

           if test -d "$with_portals/lib"; then
  ess_portals_utcp_LDFLAGS="-L$with_portals/lib"
                  LDFLAGS="$LDFLAGS $ess_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
        ess_portals_utcp_LIBS=""
        for lib in $with_portals_libs ; do
            ess_portals_utcp_LIBS="$ess_portals_utcp_LIBS -l$lib"
        done
    fi

    ess_portals_utcp_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"

    # check for portals
    LIBS="$LIBS $ess_portals_utcp_LIBS"
    { $as_echo "$as_me:$LINENO: checking for PtlGetRank" >&5
$as_echo_n "checking for PtlGetRank... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
                    should_build=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                    should_build=0
fi

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

    # we don't actually need the Portals code for this component,
    # so don't link against them...
    ess_portals_utcp_CPPFLAGS=
    ess_portals_utcp_LDFLAGS=
    ess_portals_utcp_LIBS=

    # substitute in the things needed to build Portals




    # reset the flags for the next test
    CPPFLAGS="$ess_portals_utcp_save_CPPFLAGS"
    LDFLAGS="$ess_portals_utcp_save_LDFLAGS"
    LIBS="$ess_portals_utcp_save_LIBS"

fi


    if test "$should_build" = "1"; then



    project=orte
    framework=ess
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_ess" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_ess" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ess:portals_utcp can compile" >&5
$as_echo_n "checking if MCA component ess:portals_utcp can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "portals_utcp" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "portals_utcp" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_ess_portals_utcp_DSO=1
else
  BUILD_ess_portals_utcp_DSO=0
fi

     if test "$BUILD_ess_portals_utcp_DSO" = "1"; then
  OMPI_BUILD_ess_portals_utcp_DSO_TRUE=
  OMPI_BUILD_ess_portals_utcp_DSO_FALSE='#'
else
  OMPI_BUILD_ess_portals_utcp_DSO_TRUE='#'
  OMPI_BUILD_ess_portals_utcp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/orte/mca/ess/cnos/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component ess:cnos (m4 configuration macro)"




    project=orte
    framework=ess
    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
            # overridden 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_ess" ; then
            if test "$DIRECT_ess" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ess
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    # a bit of a hack,,, we don't want ess_cnos if alps
    # was requested, and we can't rely on build priority because
    # ess_alps uses priorty 10 so that ess_hnp is built as well.
    { $as_echo "$as_me:$LINENO: checking for cnos_get_rank" >&5
$as_echo_n "checking for cnos_get_rank... " >&6; }
if test "${ac_cv_func_cnos_get_rank+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_cnos_get_rank=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_cnos_get_rank=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_cnos_get_rank" >&5
$as_echo "$ac_cv_func_cnos_get_rank" >&6; }
if test "x$ac_cv_func_cnos_get_rank" = x""yes; then


# Check whether --with-alps was given.
if test "${with_alps+set}" = set; then
  withval=$with_alps;
fi

	if test "$with_alps" = "yes" ; then
	    ompi_check_alps_happy="yes"
	fi
	if test "$ompi_check_alps_happy" = "yes"; then
  should_build=0
else
  should_build=1
fi


else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then



    project=orte
    framework=ess
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_ess" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_ess" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ess:cnos can compile" >&5
$as_echo_n "checking if MCA component ess:cnos can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "cnos" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "cnos" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_ess_cnos_DSO=1
else
  BUILD_ess_cnos_DSO=0
fi

     if test "$BUILD_ess_cnos_DSO" = "1"; then
  OMPI_BUILD_ess_cnos_DSO_TRUE=
  OMPI_BUILD_ess_cnos_DSO_FALSE='#'
else
  OMPI_BUILD_ess_cnos_DSO_TRUE='#'
  OMPI_BUILD_ess_cnos_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/orte/mca/ess/alps/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component ess:alps (m4 configuration macro)"




    project=orte
    framework=ess
    component=alps
    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
            # overridden 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_ess" ; then
            if test "$DIRECT_ess" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ess
    component=alps

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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-alps was given.
if test "${with_alps+set}" = set; then
  withval=$with_alps;
fi

	if test "$with_alps" = "yes" ; then
	    ompi_check_alps_happy="yes"
	fi
	if test "$ompi_check_alps_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for cnos_get_rank" >&5
$as_echo_n "checking for cnos_get_rank... " >&6; }
if test "${ac_cv_func_cnos_get_rank+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_cnos_get_rank=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_cnos_get_rank=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_cnos_get_rank" >&5
$as_echo "$ac_cv_func_cnos_get_rank" >&6; }
if test "x$ac_cv_func_cnos_get_rank" = x""yes; then
  should_build=1
else
  should_build=0
fi

else
  should_build=0
fi



fi


    if test "$should_build" = "1"; then



    project=orte
    framework=ess
    component=alps

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_ess" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_ess" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ess:alps can compile" >&5
$as_echo_n "checking if MCA component ess:alps can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "alps" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "alps" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 alps"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ess_alps_DSO=1
else
  BUILD_ess_alps_DSO=0
fi

     if test "$BUILD_ess_alps_DSO" = "1"; then
  OMPI_BUILD_ess_alps_DSO_TRUE=
  OMPI_BUILD_ess_alps_DSO_FALSE='#'
else
  OMPI_BUILD_ess_alps_DSO_TRUE='#'
  OMPI_BUILD_ess_alps_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/orte/mca/ess/env/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component ess:env (m4 configuration macro)"




    project=orte
    framework=ess
    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
            # overridden 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_ess" ; then
            if test "$DIRECT_ess" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ess
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
  should_build=1
fi


    if test "$should_build" = "1"; then



    project=orte
    framework=ess
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_ess" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_ess" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ess:env can compile" >&5
$as_echo_n "checking if MCA component ess:env can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "env" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "env" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_ess_env_DSO=1
else
  BUILD_ess_env_DSO=0
fi

     if test "$BUILD_ess_env_DSO" = "1"; then
  OMPI_BUILD_ess_env_DSO_TRUE=
  OMPI_BUILD_ess_env_DSO_FALSE='#'
else
  OMPI_BUILD_ess_env_DSO_TRUE='#'
  OMPI_BUILD_ess_env_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/orte/mca/ess/hnp/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component ess:hnp (m4 configuration macro)"




    project=orte
    framework=ess
    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
            # overridden 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_ess" ; then
            if test "$DIRECT_ess" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ess
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
  should_build=1
fi


    if test "$should_build" = "1"; then



    project=orte
    framework=ess
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_ess" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_ess" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ess:hnp can compile" >&5
$as_echo_n "checking if MCA component ess:hnp can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "hnp" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "hnp" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_ess_hnp_DSO=1
else
  BUILD_ess_hnp_DSO=0
fi

     if test "$BUILD_ess_hnp_DSO" = "1"; then
  OMPI_BUILD_ess_hnp_DSO_TRUE=
  OMPI_BUILD_ess_hnp_DSO_FALSE='#'
else
  OMPI_BUILD_ess_hnp_DSO_TRUE='#'
  OMPI_BUILD_ess_hnp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/orte/mca/ess/lsf/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component ess:lsf (m4 configuration macro)"




    project=orte
    framework=ess
    component=lsf
    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
            # overridden 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_ess" ; then
            if test "$DIRECT_ess" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ess
    component=lsf

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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-lsf was given.
if test "${with_lsf+set}" = set; then
  withval=$with_lsf;
fi


    { $as_echo "$as_me:$LINENO: checking --with-lsf value" >&5
$as_echo_n "checking --with-lsf value... " >&6; }
    if test "$with_lsf" = "yes" -o "$with_lsf" = "no" -o "x$with_lsf" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_lsf not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_lsf/include/lsf/lsbatch.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_lsf)" >&5
$as_echo "sanity check ok ($with_lsf)" >&6; }

fi



fi



fi



# Check whether --with-lsf-libdir was given.
if test "${with_lsf_libdir+set}" = set; then
  withval=$with_lsf_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-lsf-libdir value" >&5
$as_echo_n "checking --with-lsf-libdir value... " >&6; }
    if test "$with_lsf_libdir" = "yes" -o "$with_lsf_libdir" = "no" -o "x$with_lsf_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_lsf_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_lsf_libdir/libbat.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_lsf_libdir)" >&5
$as_echo "sanity check ok ($with_lsf_libdir)" >&6; }

fi



fi



fi



    # Defaults
    ompi_check_lsf_dir_msg="compiler default"
    ompi_check_lsf_libdir_msg="linker default"

    # Save directory names if supplied
    if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then
  ompi_check_lsf_dir="$with_lsf"
           ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from --with-lsf)"
fi

    if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then
  ompi_check_lsf_libdir="$with_lsf_libdir"
           ompi_check_lsf_libdir_msg="$ompi_check_lsf_libdir (from --with-lsf-libdir)"
fi


    # If no directories were specified, look for LSF_LIBDIR,
    # LSF_INCLUDEDIR, and/or LSF_ENVDIR.
    if test -z "$ompi_check_lsf_dir" -a -z "$ompi_check_lsf_libdir"; then
  if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then
  LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi

           if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then
  LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi

           if test ! -z "$LSF_LIBDIR"; then
  ompi_check_lsf_libdir=$LSF_LIBDIR
                  ompi_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)"
fi

           if test ! -z "$LSF_INCLUDEDIR"; then
  ompi_check_lsf_dir=`dirname $LSF_INCLUDEDIR`
                  ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from \$LSF_INCLUDEDIR)"
fi

fi


    if test "$with_lsf" = "no"; then
  ompi_check_lsf_happy="no"
else
  ompi_check_lsf_happy="yes"
fi


    ompi_check_lsf_ess_lsf_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_lsf_ess_lsf_save_LDFLAGS="$LDFLAGS"
    ompi_check_lsf_ess_lsf_save_LIBS="$LIBS"

    if test "$ompi_check_lsf_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for LSF dir" >&5
$as_echo_n "checking for LSF dir... " >&6; }
           { $as_echo "$as_me:$LINENO: result: $ompi_check_lsf_dir_msg" >&5
$as_echo "$ompi_check_lsf_dir_msg" >&6; }
           { $as_echo "$as_me:$LINENO: checking for LSF library dir" >&5
$as_echo_n "checking for LSF library dir... " >&6; }
           { $as_echo "$as_me:$LINENO: result: $ompi_check_lsf_libdir_msg" >&5
$as_echo "$ompi_check_lsf_libdir_msg" >&6; }

    ompi_check_package_ess_lsf_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_ess_lsf_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_ess_lsf_save_LIBS="$LIBS"

    ompi_check_package_ess_lsf_orig_CPPFLAGS="$ess_lsf_CPPFLAGS"
    ompi_check_package_ess_lsf_orig_LDFLAGS="$ess_lsf_LDFLAGS"
    ompi_check_package_ess_lsf_orig_LIBS="$ess_lsf_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_lsf_lsbatch_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_lsf_dir" = "/usr" -o "$ompi_check_lsf_dir" = "/usr/local"; then
   # try as is...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5
$as_echo_n "checking lsf/lsbatch.h usability... " >&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 <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5
$as_echo_n "checking lsf/lsbatch.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.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
{ $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_lsf_lsbatch_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }

fi
if test "x$ac_cv_header_lsf_lsbatch_h" = x""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_lsf_lsbatch_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_lsf_dir" != ""; then
  ess_lsf_CPPFLAGS="$ess_lsf_CPPFLAGS -I$ompi_check_lsf_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_lsf_dir/include"
fi

           if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5
$as_echo_n "checking lsf/lsbatch.h usability... " >&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 <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5
$as_echo_n "checking lsf/lsbatch.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.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
{ $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_lsf_lsbatch_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }

fi
if test "x$ac_cv_header_lsf_lsbatch_h" = x""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_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_lsf_libdir" != ""; then
   # libdir was specified - search only there
           ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir"
           { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_ess_lsf_save_LDFLAGS"
                  ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_ess_lsf_save_LDFLAGS"
                     ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_ess_lsf_save_LDFLAGS"
                          ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_ess_lsf_save_LDFLAGS"
                          ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ess_lsf_LIBS="-lbat -llsf"
           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_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_lsf_libdir" != ""; then
   # libdir was specified - search only there
           ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir"
           { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_ess_lsf_save_LDFLAGS"
                  ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_ess_lsf_save_LDFLAGS"
                     ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_ess_lsf_save_LDFLAGS"
                          ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ess_lsf_LDFLAGS="$ess_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_ess_lsf_save_LDFLAGS"
                          ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ess_lsf_LIBS="-lbat -llsf"
           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_lsf_happy="yes"
else
  ess_lsf_CPPFLAGS="$ompi_check_package_ess_lsf_orig_CPPFLAGS"
           ess_lsf_LDFLAGS="$ompi_check_package_ess_lsf_orig_LDFLAGS"
           ess_lsf_LIBS="$ompi_check_package_ess_lsf_orig_LIBS"
           ompi_check_lsf_happy="no"
fi


    CPPFLAGS="$ompi_check_package_ess_lsf_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_ess_lsf_save_LDFLAGS"
    LIBS="$ompi_check_package_ess_lsf_save_LIBS"

fi


    CPPFLAGS="$ompi_check_lsf_ess_lsf_save_CPPFLAGS"
    LDFLAGS="$ompi_check_lsf_ess_lsf_save_LDFLAGS"
    LIBS="$ompi_check_lsf_ess_lsf_save_LIBS"

    # Reset for the next time we're called
    ompi_check_lsf_dir=
    ompi_check_lsf_libdir=

    if test "$ompi_check_lsf_happy" = "yes"; then
  ess_lsf_good=1
else
  if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then
  { $as_echo "$as_me:$LINENO: WARNING: LSF support requested (via --with-lsf) but not found." >&5
$as_echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Aborting." >&5
$as_echo "$as_me: error: Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi

           ess_lsf_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ess_lsf_good" = "1"; then
  ess_lsf_WRAPPER_EXTRA_LDFLAGS="$ess_lsf_LDFLAGS"
           ess_lsf_WRAPPER_EXTRA_LIBS="$ess_lsf_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=ess
    component=lsf

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_ess" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_ess" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ess:lsf can compile" >&5
$as_echo_n "checking if MCA component ess:lsf can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "lsf" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "lsf" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ess_lsf_DSO=1
else
  BUILD_ess_lsf_DSO=0
fi

     if test "$BUILD_ess_lsf_DSO" = "1"; then
  OMPI_BUILD_ess_lsf_DSO_TRUE=
  OMPI_BUILD_ess_lsf_DSO_FALSE='#'
else
  OMPI_BUILD_ess_lsf_DSO_TRUE='#'
  OMPI_BUILD_ess_lsf_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/orte/mca/ess/singleton/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component ess:singleton (m4 configuration macro)"




    project=orte
    framework=ess
    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
            # overridden 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_ess" ; then
            if test "$DIRECT_ess" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ess
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
  should_build=1
fi


    if test "$should_build" = "1"; then



    project=orte
    framework=ess
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_ess" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_ess" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ess:singleton can compile" >&5
$as_echo_n "checking if MCA component ess:singleton can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "singleton" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"singleton\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "singleton" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"singleton\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_ess_singleton_DSO=1
else
  BUILD_ess_singleton_DSO=0
fi

     if test "$BUILD_ess_singleton_DSO" = "1"; then
  OMPI_BUILD_ess_singleton_DSO_TRUE=
  OMPI_BUILD_ess_singleton_DSO_FALSE='#'
else
  OMPI_BUILD_ess_singleton_DSO_TRUE='#'
  OMPI_BUILD_ess_singleton_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/orte/mca/ess/slurm/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component ess:slurm (m4 configuration macro)"




    project=orte
    framework=ess
    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
            # overridden 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_ess" ; then
            if test "$DIRECT_ess" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ess
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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, AIX,
        # and OS X systems (these are the platforms that SLURM
        # supports)
        case $host in
            *-linux*|*-aix*|*-apple-darwin*)
                ompi_check_slurm_happy="yes"
                ;;
            *)
                { $as_echo "$as_me:$LINENO: checking for SLURM srun in PATH" >&5
$as_echo_n "checking for SLURM srun in PATH... " >&6; }

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=srun

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OMPI_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


                if test "$OMPI_CHECK_SLURM_SRUN" = ""; then
                    ompi_check_slurm_happy="no"
                else
                    ompi_check_slurm_happy="yes"
                fi
                { $as_echo "$as_me:$LINENO: result: $ompi_check_slurm_happy" >&5
$as_echo "$ompi_check_slurm_happy" >&6; }
                ;;
        esac
    else
        ompi_check_slurm_happy="yes"
    fi

    if test "$ompi_check_slurm_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for fork" >&5
$as_echo_n "checking for fork... " >&6; }
if test "${ac_cv_func_fork+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_fork=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_fork=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
$as_echo "$ac_cv_func_fork" >&6; }
if test "x$ac_cv_func_fork" = x""yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for execve" >&5
$as_echo_n "checking for execve... " >&6; }
if test "${ac_cv_func_execve+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_execve=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_execve=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5
$as_echo "$ac_cv_func_execve" >&6; }
if test "x$ac_cv_func_execve" = x""yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
$as_echo_n "checking for setpgid... " >&6; }
if test "${ac_cv_func_setpgid+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_setpgid=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_setpgid=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
$as_echo "$ac_cv_func_setpgid" >&6; }
if test "x$ac_cv_func_setpgid" = x""yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  ess_slurm_good=1
else
  ess_slurm_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ess_slurm_good" = "1"; then
  ess_slurm_WRAPPER_EXTRA_LDFLAGS="$ess_slurm_LDFLAGS"
           ess_slurm_WRAPPER_EXTRA_LIBS="$ess_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=ess
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_ess" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_ess" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ess:slurm can compile" >&5
$as_echo_n "checking if MCA component ess:slurm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "slurm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "slurm" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_ess_slurm_DSO=1
else
  BUILD_ess_slurm_DSO=0
fi

     if test "$BUILD_ess_slurm_DSO" = "1"; then
  OMPI_BUILD_ess_slurm_DSO_TRUE=
  OMPI_BUILD_ess_slurm_DSO_FALSE='#'
else
  OMPI_BUILD_ess_slurm_DSO_TRUE='#'
  OMPI_BUILD_ess_slurm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/orte/mca/ess/tool/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component ess:tool (m4 configuration macro)"




    project=orte
    framework=ess
    component=tool
    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
            # overridden 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_ess" ; then
            if test "$DIRECT_ess" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ess
    component=tool

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ess" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
  should_build=1
fi


    if test "$should_build" = "1"; then



    project=orte
    framework=ess
    component=tool

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_ess" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_ess" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ess:tool can compile" >&5
$as_echo_n "checking if MCA component ess:tool can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ess" = "tool" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ess" ; then
        if test "$DIRECT_ess" = "tool" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 tool"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ess_tool_DSO=1
else
  BUILD_ess_tool_DSO=0
fi

     if test "$BUILD_ess_tool_DSO" = "1"; then
  OMPI_BUILD_ess_tool_DSO_TRUE=
  OMPI_BUILD_ess_tool_DSO_FALSE='#'
else
  OMPI_BUILD_ess_tool_DSO_TRUE='#'
  OMPI_BUILD_ess_tool_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi


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


    MCA_ess_ALL_COMPONENTS="$all_components"
    MCA_ess_STATIC_COMPONENTS="$static_components"
    MCA_ess_DSO_COMPONENTS="$dso_components"
    MCA_ess_STATIC_LTLIBS="$static_ltlibs"







    MCA_ess_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_ess_ALL_SUBDIRS="$MCA_ess_ALL_SUBDIRS mca/ess/$item"
    done



    MCA_ess_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_ess_STATIC_SUBDIRS="$MCA_ess_STATIC_SUBDIRS mca/ess/$item"
    done



    MCA_ess_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_ess_DSO_SUBDIRS="$MCA_ess_DSO_SUBDIRS mca/ess/$item"
    done



    # 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 "ess" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_ess_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 "filem" = "common" ; then
                              MCA_orte_FRAMEWORKS="filem $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/filem $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_filem_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_filem_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_filem_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS filem"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/filem"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_filem_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_filem_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_filem_STATIC_SUBDIRS)"
                          fi
                          if test "filem" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/filem/libmca_filem.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_filem_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework filem"

    # 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 "filem" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/filem/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework filem" >&5
$as_echo_n "checking for no configure components in framework filem... " >&6; }
    { $as_echo "$as_me:$LINENO: result: rsh" >&5
$as_echo "rsh" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework filem" >&5
$as_echo_n "checking for m4 configure components in framework filem... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component filem:rsh (no configuration)"




    project=orte
    framework=filem
    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
            # overridden 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_filem" ; then
            if test "$DIRECT_filem" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=filem
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_filem" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=filem
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_filem" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_filem" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component filem:rsh can compile" >&5
$as_echo_n "checking if MCA component filem:rsh can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_filem" = "rsh" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_filem" ; then
        if test "$DIRECT_filem" = "rsh" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_filem_rsh_DSO=1
    else
        BUILD_filem_rsh_DSO=0
    fi
     if test "$BUILD_filem_rsh_DSO" = "1"; then
  OMPI_BUILD_filem_rsh_DSO_TRUE=
  OMPI_BUILD_filem_rsh_DSO_FALSE='#'
else
  OMPI_BUILD_filem_rsh_DSO_TRUE='#'
  OMPI_BUILD_filem_rsh_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; then

    for component_path in $srcdir/orte/mca/filem/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component filem:$component (need to configure)"




    project=orte
    framework=filem
    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
            # overridden 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_filem" ; then
            if test "$DIRECT_filem" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=filem
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_filem" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/filem/$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/filem/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=filem
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_filem" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_filem" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component filem:$component can compile" >&5
$as_echo_n "checking if MCA component filem:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_filem" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_filem" ; then
        if test "$DIRECT_filem" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_filem_ALL_COMPONENTS="$all_components"
    MCA_filem_STATIC_COMPONENTS="$static_components"
    MCA_filem_DSO_COMPONENTS="$dso_components"
    MCA_filem_STATIC_LTLIBS="$static_ltlibs"







    MCA_filem_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_filem_ALL_SUBDIRS="$MCA_filem_ALL_SUBDIRS mca/filem/$item"
    done



    MCA_filem_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_filem_STATIC_SUBDIRS="$MCA_filem_STATIC_SUBDIRS mca/filem/$item"
    done



    MCA_filem_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_filem_DSO_SUBDIRS="$MCA_filem_DSO_SUBDIRS mca/filem/$item"
    done



    # 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 "filem" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_filem_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 "grpcomm" = "common" ; then
                              MCA_orte_FRAMEWORKS="grpcomm $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/grpcomm $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_grpcomm_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_grpcomm_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_grpcomm_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS grpcomm"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/grpcomm"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_grpcomm_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_grpcomm_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_grpcomm_STATIC_SUBDIRS)"
                          fi
                          if test "grpcomm" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/grpcomm/libmca_grpcomm.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_grpcomm_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework grpcomm"

    # 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 "grpcomm" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/grpcomm/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework grpcomm" >&5
$as_echo_n "checking for no configure components in framework grpcomm... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework grpcomm" >&5
$as_echo_n "checking for m4 configure components in framework grpcomm... " >&6; }
    { $as_echo "$as_me:$LINENO: result: cnos, bad, basic" >&5
$as_echo "cnos, bad, basic" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0
     # get the component's priority...
                          infile="$srcdir/orte/mca/grpcomm/cnos/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component grpcomm:cnos (m4 configuration macro)"




    project=orte
    framework=grpcomm
    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
            # overridden 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_grpcomm" ; then
            if test "$DIRECT_grpcomm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=grpcomm
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_grpcomm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    grpcomm_cnos_happy="no"
    # see if we should enable super secret utcp support
    if test "$with_grpcomm_cnos" = "utcp" ; then
        grpcomm_cnos_happy="yes"
        grpcomm_cnos_barrier=0
    else
        # check for cnos functions
        { $as_echo "$as_me:$LINENO: checking for cnos_barrier" >&5
$as_echo_n "checking for cnos_barrier... " >&6; }
if test "${ac_cv_func_cnos_barrier+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_cnos_barrier=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_cnos_barrier=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_cnos_barrier" >&5
$as_echo "$ac_cv_func_cnos_barrier" >&6; }
if test "x$ac_cv_func_cnos_barrier" = x""yes; then
  grpcomm_cnos_happy="yes"
                       grpcomm_cnos_barrier=1
else
  grpcomm_cnos_happy="no"
                       grpcomm_cnos_barrier=0
fi

    fi


cat >>confdefs.h <<_ACEOF
#define OMPI_GRPCOMM_CNOS_HAVE_BARRIER $grpcomm_cnos_barrier
_ACEOF

    if test "$grpcomm_cnos_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then



    project=orte
    framework=grpcomm
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_grpcomm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_grpcomm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component grpcomm:cnos can compile" >&5
$as_echo_n "checking if MCA component grpcomm:cnos can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_grpcomm" = "cnos" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_grpcomm" ; then
        if test "$DIRECT_grpcomm" = "cnos" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_grpcomm_cnos_DSO=1
else
  BUILD_grpcomm_cnos_DSO=0
fi

     if test "$BUILD_grpcomm_cnos_DSO" = "1"; then
  OMPI_BUILD_grpcomm_cnos_DSO_TRUE=
  OMPI_BUILD_grpcomm_cnos_DSO_FALSE='#'
else
  OMPI_BUILD_grpcomm_cnos_DSO_TRUE='#'
  OMPI_BUILD_grpcomm_cnos_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/orte/mca/grpcomm/bad/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component grpcomm:bad (m4 configuration macro)"




    project=orte
    framework=grpcomm
    component=bad
    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
            # overridden 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_grpcomm" ; then
            if test "$DIRECT_grpcomm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=grpcomm
    component=bad

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_grpcomm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
  should_build=1
fi


    if test "$should_build" = "1"; then



    project=orte
    framework=grpcomm
    component=bad

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_grpcomm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_grpcomm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component grpcomm:bad can compile" >&5
$as_echo_n "checking if MCA component grpcomm:bad can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_grpcomm" = "bad" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"bad\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bad\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_grpcomm" ; then
        if test "$DIRECT_grpcomm" = "bad" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"bad\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bad\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 bad"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_grpcomm_bad_DSO=1
else
  BUILD_grpcomm_bad_DSO=0
fi

     if test "$BUILD_grpcomm_bad_DSO" = "1"; then
  OMPI_BUILD_grpcomm_bad_DSO_TRUE=
  OMPI_BUILD_grpcomm_bad_DSO_FALSE='#'
else
  OMPI_BUILD_grpcomm_bad_DSO_TRUE='#'
  OMPI_BUILD_grpcomm_bad_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi
 # get the component's priority...
                          infile="$srcdir/orte/mca/grpcomm/basic/configure.params"
                          mca_component_priority="`$GREP PARAM_CONFIG_PRIORITY= $infile | cut -d= -f2-`"
                          if test -z "$mca_component_priority"; then
  mca_component_priority=0
fi

                          if test $best_mca_component_priority -gt $mca_component_priority; then
  components_looking_for_succeed=0
fi


    ompi_show_subsubsubtitle "MCA component grpcomm:basic (m4 configuration macro)"




    project=orte
    framework=grpcomm
    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
            # overridden 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_grpcomm" ; then
            if test "$DIRECT_grpcomm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=grpcomm
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_grpcomm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
  should_build=1
fi


    if test "$should_build" = "1"; then



    project=orte
    framework=grpcomm
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_grpcomm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_grpcomm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component grpcomm:basic can compile" >&5
$as_echo_n "checking if MCA component grpcomm:basic can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_grpcomm" = "basic" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_grpcomm" ; then
        if test "$DIRECT_grpcomm" = "basic" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_grpcomm_basic_DSO=1
else
  BUILD_grpcomm_basic_DSO=0
fi

     if test "$BUILD_grpcomm_basic_DSO" = "1"; then
  OMPI_BUILD_grpcomm_basic_DSO_TRUE=
  OMPI_BUILD_grpcomm_basic_DSO_FALSE='#'
else
  OMPI_BUILD_grpcomm_basic_DSO_TRUE='#'
  OMPI_BUILD_grpcomm_basic_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode


                   if test $components_last_result -eq 1; then
  best_mca_component_priority=$mca_component_priority
fi


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


    MCA_grpcomm_ALL_COMPONENTS="$all_components"
    MCA_grpcomm_STATIC_COMPONENTS="$static_components"
    MCA_grpcomm_DSO_COMPONENTS="$dso_components"
    MCA_grpcomm_STATIC_LTLIBS="$static_ltlibs"







    MCA_grpcomm_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_grpcomm_ALL_SUBDIRS="$MCA_grpcomm_ALL_SUBDIRS mca/grpcomm/$item"
    done



    MCA_grpcomm_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_grpcomm_STATIC_SUBDIRS="$MCA_grpcomm_STATIC_SUBDIRS mca/grpcomm/$item"
    done



    MCA_grpcomm_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_grpcomm_DSO_SUBDIRS="$MCA_grpcomm_DSO_SUBDIRS mca/grpcomm/$item"
    done



    # 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 "grpcomm" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_grpcomm_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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework iof" >&5
$as_echo_n "checking for no configure components in framework iof... " >&6; }
    { $as_echo "$as_me:$LINENO: result: hnp, orted, tool" >&5
$as_echo "hnp, orted, tool" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework iof" >&5
$as_echo_n "checking for m4 configure components in framework iof... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component iof:hnp (no configuration)"




    project=orte
    framework=iof
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_iof" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=iof
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component iof:hnp can compile" >&5
$as_echo_n "checking if MCA component iof:hnp can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "hnp" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_iof" ; then
        if test "$DIRECT_iof" = "hnp" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"hnp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hnp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_iof_hnp_DSO=1
    else
        BUILD_iof_hnp_DSO=0
    fi
     if test "$BUILD_iof_hnp_DSO" = "1"; then
  OMPI_BUILD_iof_hnp_DSO_TRUE=
  OMPI_BUILD_iof_hnp_DSO_FALSE='#'
else
  OMPI_BUILD_iof_hnp_DSO_TRUE='#'
  OMPI_BUILD_iof_hnp_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component iof:orted (no configuration)"




    project=orte
    framework=iof
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_iof" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=iof
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component iof:orted can compile" >&5
$as_echo_n "checking if MCA component iof:orted can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "orted" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"orted\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_iof" ; then
        if test "$DIRECT_iof" = "orted" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"orted\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orted\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_iof_orted_DSO=1
    else
        BUILD_iof_orted_DSO=0
    fi
     if test "$BUILD_iof_orted_DSO" = "1"; then
  OMPI_BUILD_iof_orted_DSO_TRUE=
  OMPI_BUILD_iof_orted_DSO_FALSE='#'
else
  OMPI_BUILD_iof_orted_DSO_TRUE='#'
  OMPI_BUILD_iof_orted_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component iof:tool (no configuration)"




    project=orte
    framework=iof
    component=tool
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=tool

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_iof" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=iof
    component=tool

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component iof:tool can compile" >&5
$as_echo_n "checking if MCA component iof:tool can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "tool" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_iof" ; then
        if test "$DIRECT_iof" = "tool" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tool\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tool\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 tool"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_iof_tool_DSO=1
    else
        BUILD_iof_tool_DSO=0
    fi
     if test "$BUILD_iof_tool_DSO" = "1"; then
  OMPI_BUILD_iof_tool_DSO_TRUE=
  OMPI_BUILD_iof_tool_DSO_FALSE='#'
else
  OMPI_BUILD_iof_tool_DSO_TRUE='#'
  OMPI_BUILD_iof_tool_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_iof" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component iof:$component can compile" >&5
$as_echo_n "checking if MCA component iof:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_iof" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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 "notifier" = "common" ; then
                              MCA_orte_FRAMEWORKS="notifier $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/notifier $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_notifier_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_notifier_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_notifier_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS notifier"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/notifier"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_notifier_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_notifier_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_notifier_STATIC_SUBDIRS)"
                          fi
                          if test "notifier" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/notifier/libmca_notifier.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_notifier_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework notifier"

    # 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 "notifier" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/notifier/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework notifier" >&5
$as_echo_n "checking for no configure components in framework notifier... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework notifier" >&5
$as_echo_n "checking for m4 configure components in framework notifier... " >&6; }
    { $as_echo "$as_me:$LINENO: result: syslog" >&5
$as_echo "syslog" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component notifier:syslog (m4 configuration macro)"




    project=orte
    framework=notifier
    component=syslog
    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
            # overridden 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_notifier" ; then
            if test "$DIRECT_notifier" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=notifier
    component=syslog

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_notifier" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
  should_build=1
fi


    if test "$should_build" = "1"; then



    project=orte
    framework=notifier
    component=syslog

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_notifier" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_notifier" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component notifier:syslog can compile" >&5
$as_echo_n "checking if MCA component notifier:syslog can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_notifier" = "syslog" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"syslog\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"syslog\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_notifier" ; then
        if test "$DIRECT_notifier" = "syslog" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"syslog\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"syslog\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 syslog"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_notifier_syslog_DSO=1
else
  BUILD_notifier_syslog_DSO=0
fi

     if test "$BUILD_notifier_syslog_DSO" = "1"; then
  OMPI_BUILD_notifier_syslog_DSO_TRUE=
  OMPI_BUILD_notifier_syslog_DSO_FALSE='#'
else
  OMPI_BUILD_notifier_syslog_DSO_TRUE='#'
  OMPI_BUILD_notifier_syslog_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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 "1" != "0"; then

    for component_path in $srcdir/orte/mca/notifier/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component notifier:$component (need to configure)"




    project=orte
    framework=notifier
    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
            # overridden 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_notifier" ; then
            if test "$DIRECT_notifier" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=notifier
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_notifier" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/notifier/$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/notifier/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=notifier
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_notifier" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_notifier" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component notifier:$component can compile" >&5
$as_echo_n "checking if MCA component notifier:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_notifier" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_notifier" ; then
        if test "$DIRECT_notifier" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_notifier_ALL_COMPONENTS="$all_components"
    MCA_notifier_STATIC_COMPONENTS="$static_components"
    MCA_notifier_DSO_COMPONENTS="$dso_components"
    MCA_notifier_STATIC_LTLIBS="$static_ltlibs"







    MCA_notifier_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_notifier_ALL_SUBDIRS="$MCA_notifier_ALL_SUBDIRS mca/notifier/$item"
    done



    MCA_notifier_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_notifier_STATIC_SUBDIRS="$MCA_notifier_STATIC_SUBDIRS mca/notifier/$item"
    done



    MCA_notifier_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_notifier_DSO_SUBDIRS="$MCA_notifier_DSO_SUBDIRS mca/notifier/$item"
    done



    # 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 "notifier" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_notifier_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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework odls" >&5
$as_echo_n "checking for no configure components in framework odls... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework odls" >&5
$as_echo_n "checking for m4 configure components in framework odls... " >&6; }
    { $as_echo "$as_me:$LINENO: result: default, process" >&5
$as_echo "default, process" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_odls" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking for fork" >&5
$as_echo_n "checking for fork... " >&6; }
if test "${ac_cv_func_fork+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_fork=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_fork=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
$as_echo "$ac_cv_func_fork" >&6; }
if test "x$ac_cv_func_fork" = x""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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component odls:default can compile" >&5
$as_echo_n "checking if MCA component odls:default can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_odls" = "default" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"default\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"default\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component odls:process (m4 configuration macro)"




    project=orte
    framework=odls
    component=process
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=process

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_odls" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking for CreateProcess" >&5
$as_echo_n "checking for CreateProcess... " >&6; }
if test "${ac_cv_func_CreateProcess+set}" = set; then
  $as_echo_n "(cached) " >&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 CreateProcess to an innocuous variant, in case <limits.h> declares CreateProcess.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define CreateProcess innocuous_CreateProcess

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char CreateProcess (); 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 CreateProcess

/* 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 CreateProcess ();
/* 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_CreateProcess || defined __stub___CreateProcess
choke me
#endif

int
main ()
{
return CreateProcess ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_CreateProcess=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_CreateProcess=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_CreateProcess" >&5
$as_echo "$ac_cv_func_CreateProcess" >&6; }
if test "x$ac_cv_func_CreateProcess" = x""yes; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then



    project=orte
    framework=odls
    component=process

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component odls:process can compile" >&5
$as_echo_n "checking if MCA component odls:process can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_odls" = "process" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"process\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"process\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_odls" ; then
        if test "$DIRECT_odls" = "process" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"process\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"process\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 process"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_odls_process_DSO=1
else
  BUILD_odls_process_DSO=0
fi

     if test "$BUILD_odls_process_DSO" = "1"; then
  OMPI_BUILD_odls_process_DSO_TRUE=
  OMPI_BUILD_odls_process_DSO_FALSE='#'
else
  OMPI_BUILD_odls_process_DSO_TRUE='#'
  OMPI_BUILD_odls_process_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_odls" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component odls:$component can compile" >&5
$as_echo_n "checking if MCA component odls:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_odls" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework oob" >&5
$as_echo_n "checking for no configure components in framework oob... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework oob" >&5
$as_echo_n "checking for m4 configure components in framework oob... " >&6; }
    { $as_echo "$as_me:$LINENO: result: tcp" >&5
$as_echo "tcp" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_oob" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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)
    { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5
$as_echo_n "checking for struct sockaddr_in... " >&6; }
if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_struct_sockaddr_in=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof (struct sockaddr_in))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof ((struct sockaddr_in)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_sockaddr_in=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5
$as_echo "$ac_cv_type_struct_sockaddr_in" >&6; }
if test "x$ac_cv_type_struct_sockaddr_in" = x""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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component oob:tcp can compile" >&5
$as_echo_n "checking if MCA component oob:tcp can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_oob" = "tcp" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_oob" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component oob:$component can compile" >&5
$as_echo_n "checking if MCA component oob:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_oob" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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 "plm" = "common" ; then
                              MCA_orte_FRAMEWORKS="plm $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/plm $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_plm_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_plm_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_plm_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS plm"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/plm"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_plm_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_plm_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_plm_STATIC_SUBDIRS)"
                          fi
                          if test "plm" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/plm/libmca_plm.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_plm_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework plm"

    # 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 "plm" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/plm/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework plm" >&5
$as_echo_n "checking for no configure components in framework plm... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework plm" >&5
$as_echo_n "checking for m4 configure components in framework plm... " >&6; }
    { $as_echo "$as_me:$LINENO: result: alps, ccp, lsf, process, rsh, slurm, tm, xgrid" >&5
$as_echo "alps, ccp, lsf, process, rsh, slurm, tm, xgrid" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component plm:alps (m4 configuration macro)"




    project=orte
    framework=plm
    component=alps
    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
            # overridden 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_plm" ; then
            if test "$DIRECT_plm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=plm
    component=alps

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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-alps was given.
if test "${with_alps+set}" = set; then
  withval=$with_alps;
fi

	if test "$with_alps" = "yes" ; then
	    ompi_check_alps_happy="yes"
	fi
	if test "$ompi_check_alps_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi



fi


    if test "$should_build" = "1"; then



    project=orte
    framework=plm
    component=alps

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_plm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_plm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component plm:alps can compile" >&5
$as_echo_n "checking if MCA component plm:alps can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "alps" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "alps" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 alps"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_plm_alps_DSO=1
else
  BUILD_plm_alps_DSO=0
fi

     if test "$BUILD_plm_alps_DSO" = "1"; then
  OMPI_BUILD_plm_alps_DSO_TRUE=
  OMPI_BUILD_plm_alps_DSO_FALSE='#'
else
  OMPI_BUILD_plm_alps_DSO_TRUE='#'
  OMPI_BUILD_plm_alps_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:ccp (m4 configuration macro)"




    project=orte
    framework=plm
    component=ccp
    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
            # overridden 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_plm" ; then
            if test "$DIRECT_plm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=plm
    component=ccp

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    plm_ccp_good=0
    # CCP does never exist under Unix
    should_build=0

fi


    if test "$should_build" = "1"; then



    project=orte
    framework=plm
    component=ccp

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_plm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_plm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component plm:ccp can compile" >&5
$as_echo_n "checking if MCA component plm:ccp can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "ccp" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ccp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ccp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "ccp" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ccp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ccp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 ccp"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_plm_ccp_DSO=1
else
  BUILD_plm_ccp_DSO=0
fi

     if test "$BUILD_plm_ccp_DSO" = "1"; then
  OMPI_BUILD_plm_ccp_DSO_TRUE=
  OMPI_BUILD_plm_ccp_DSO_FALSE='#'
else
  OMPI_BUILD_plm_ccp_DSO_TRUE='#'
  OMPI_BUILD_plm_ccp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:lsf (m4 configuration macro)"




    project=orte
    framework=plm
    component=lsf
    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
            # overridden 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_plm" ; then
            if test "$DIRECT_plm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=plm
    component=lsf

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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-lsf was given.
if test "${with_lsf+set}" = set; then
  withval=$with_lsf;
fi


    { $as_echo "$as_me:$LINENO: checking --with-lsf value" >&5
$as_echo_n "checking --with-lsf value... " >&6; }
    if test "$with_lsf" = "yes" -o "$with_lsf" = "no" -o "x$with_lsf" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_lsf not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_lsf/include/lsf/lsbatch.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_lsf)" >&5
$as_echo "sanity check ok ($with_lsf)" >&6; }

fi



fi



fi



# Check whether --with-lsf-libdir was given.
if test "${with_lsf_libdir+set}" = set; then
  withval=$with_lsf_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-lsf-libdir value" >&5
$as_echo_n "checking --with-lsf-libdir value... " >&6; }
    if test "$with_lsf_libdir" = "yes" -o "$with_lsf_libdir" = "no" -o "x$with_lsf_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_lsf_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_lsf_libdir/libbat.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_lsf_libdir)" >&5
$as_echo "sanity check ok ($with_lsf_libdir)" >&6; }

fi



fi



fi



    # Defaults
    ompi_check_lsf_dir_msg="compiler default"
    ompi_check_lsf_libdir_msg="linker default"

    # Save directory names if supplied
    if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then
  ompi_check_lsf_dir="$with_lsf"
           ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from --with-lsf)"
fi

    if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then
  ompi_check_lsf_libdir="$with_lsf_libdir"
           ompi_check_lsf_libdir_msg="$ompi_check_lsf_libdir (from --with-lsf-libdir)"
fi


    # If no directories were specified, look for LSF_LIBDIR,
    # LSF_INCLUDEDIR, and/or LSF_ENVDIR.
    if test -z "$ompi_check_lsf_dir" -a -z "$ompi_check_lsf_libdir"; then
  if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then
  LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi

           if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then
  LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi

           if test ! -z "$LSF_LIBDIR"; then
  ompi_check_lsf_libdir=$LSF_LIBDIR
                  ompi_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)"
fi

           if test ! -z "$LSF_INCLUDEDIR"; then
  ompi_check_lsf_dir=`dirname $LSF_INCLUDEDIR`
                  ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from \$LSF_INCLUDEDIR)"
fi

fi


    if test "$with_lsf" = "no"; then
  ompi_check_lsf_happy="no"
else
  ompi_check_lsf_happy="yes"
fi


    ompi_check_lsf_plm_lsf_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_lsf_plm_lsf_save_LDFLAGS="$LDFLAGS"
    ompi_check_lsf_plm_lsf_save_LIBS="$LIBS"

    if test "$ompi_check_lsf_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for LSF dir" >&5
$as_echo_n "checking for LSF dir... " >&6; }
           { $as_echo "$as_me:$LINENO: result: $ompi_check_lsf_dir_msg" >&5
$as_echo "$ompi_check_lsf_dir_msg" >&6; }
           { $as_echo "$as_me:$LINENO: checking for LSF library dir" >&5
$as_echo_n "checking for LSF library dir... " >&6; }
           { $as_echo "$as_me:$LINENO: result: $ompi_check_lsf_libdir_msg" >&5
$as_echo "$ompi_check_lsf_libdir_msg" >&6; }

    ompi_check_package_plm_lsf_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_plm_lsf_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_plm_lsf_save_LIBS="$LIBS"

    ompi_check_package_plm_lsf_orig_CPPFLAGS="$plm_lsf_CPPFLAGS"
    ompi_check_package_plm_lsf_orig_LDFLAGS="$plm_lsf_LDFLAGS"
    ompi_check_package_plm_lsf_orig_LIBS="$plm_lsf_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_lsf_lsbatch_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_lsf_dir" = "/usr" -o "$ompi_check_lsf_dir" = "/usr/local"; then
   # try as is...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5
$as_echo_n "checking lsf/lsbatch.h usability... " >&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 <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5
$as_echo_n "checking lsf/lsbatch.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.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
{ $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_lsf_lsbatch_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }

fi
if test "x$ac_cv_header_lsf_lsbatch_h" = x""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_lsf_lsbatch_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_lsf_dir" != ""; then
  plm_lsf_CPPFLAGS="$plm_lsf_CPPFLAGS -I$ompi_check_lsf_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_lsf_dir/include"
fi

           if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5
$as_echo_n "checking lsf/lsbatch.h usability... " >&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 <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5
$as_echo_n "checking lsf/lsbatch.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.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
{ $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_lsf_lsbatch_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }

fi
if test "x$ac_cv_header_lsf_lsbatch_h" = x""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_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_lsf_libdir" != ""; then
   # libdir was specified - search only there
           plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir"
           { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_plm_lsf_save_LDFLAGS"
                  plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_plm_lsf_save_LDFLAGS"
                     plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_plm_lsf_save_LDFLAGS"
                          plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_plm_lsf_save_LDFLAGS"
                          plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  plm_lsf_LIBS="-lbat -llsf"
           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_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_lsf_libdir" != ""; then
   # libdir was specified - search only there
           plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir"
           { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_plm_lsf_save_LDFLAGS"
                  plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_plm_lsf_save_LDFLAGS"
                     plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_plm_lsf_save_LDFLAGS"
                          plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  plm_lsf_LDFLAGS="$plm_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_plm_lsf_save_LDFLAGS"
                          plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  plm_lsf_LIBS="-lbat -llsf"
           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_lsf_happy="yes"
else
  plm_lsf_CPPFLAGS="$ompi_check_package_plm_lsf_orig_CPPFLAGS"
           plm_lsf_LDFLAGS="$ompi_check_package_plm_lsf_orig_LDFLAGS"
           plm_lsf_LIBS="$ompi_check_package_plm_lsf_orig_LIBS"
           ompi_check_lsf_happy="no"
fi


    CPPFLAGS="$ompi_check_package_plm_lsf_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_plm_lsf_save_LDFLAGS"
    LIBS="$ompi_check_package_plm_lsf_save_LIBS"

fi


    CPPFLAGS="$ompi_check_lsf_plm_lsf_save_CPPFLAGS"
    LDFLAGS="$ompi_check_lsf_plm_lsf_save_LDFLAGS"
    LIBS="$ompi_check_lsf_plm_lsf_save_LIBS"

    # Reset for the next time we're called
    ompi_check_lsf_dir=
    ompi_check_lsf_libdir=

    if test "$ompi_check_lsf_happy" = "yes"; then
  plm_lsf_good=1
else
  if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then
  { $as_echo "$as_me:$LINENO: WARNING: LSF support requested (via --with-lsf) but not found." >&5
$as_echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Aborting." >&5
$as_echo "$as_me: error: Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi

           plm_lsf_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$plm_lsf_good" = "1"; then
  plm_lsf_WRAPPER_EXTRA_LDFLAGS="$plm_lsf_LDFLAGS"
           plm_lsf_WRAPPER_EXTRA_LIBS="$plm_lsf_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=plm
    component=lsf

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_plm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_plm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component plm:lsf can compile" >&5
$as_echo_n "checking if MCA component plm:lsf can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "lsf" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "lsf" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_plm_lsf_DSO=1
else
  BUILD_plm_lsf_DSO=0
fi

     if test "$BUILD_plm_lsf_DSO" = "1"; then
  OMPI_BUILD_plm_lsf_DSO_TRUE=
  OMPI_BUILD_plm_lsf_DSO_FALSE='#'
else
  OMPI_BUILD_plm_lsf_DSO_TRUE='#'
  OMPI_BUILD_plm_lsf_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:process (m4 configuration macro)"




    project=orte
    framework=plm
    component=process
    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
            # overridden 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_plm" ; then
            if test "$DIRECT_plm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=plm
    component=process

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    plm_process_good=0
    # PROCESS does never exist under Unix
    should_build=0

fi


    if test "$should_build" = "1"; then



    project=orte
    framework=plm
    component=process

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_plm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_plm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component plm:process can compile" >&5
$as_echo_n "checking if MCA component plm:process can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "process" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"process\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"process\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "process" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"process\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"process\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 process"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_plm_process_DSO=1
else
  BUILD_plm_process_DSO=0
fi

     if test "$BUILD_plm_process_DSO" = "1"; then
  OMPI_BUILD_plm_process_DSO_TRUE=
  OMPI_BUILD_plm_process_DSO_FALSE='#'
else
  OMPI_BUILD_plm_process_DSO_TRUE='#'
  OMPI_BUILD_plm_process_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:rsh (m4 configuration macro)"




    project=orte
    framework=plm
    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
            # overridden 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_plm" ; then
            if test "$DIRECT_plm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=plm
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking for fork" >&5
$as_echo_n "checking for fork... " >&6; }
if test "${ac_cv_func_fork+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_fork=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_fork=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
$as_echo "$ac_cv_func_fork" >&6; }
if test "x$ac_cv_func_fork" = x""yes; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then



    project=orte
    framework=plm
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_plm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_plm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component plm:rsh can compile" >&5
$as_echo_n "checking if MCA component plm:rsh can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "rsh" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "rsh" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_plm_rsh_DSO=1
else
  BUILD_plm_rsh_DSO=0
fi

     if test "$BUILD_plm_rsh_DSO" = "1"; then
  OMPI_BUILD_plm_rsh_DSO_TRUE=
  OMPI_BUILD_plm_rsh_DSO_FALSE='#'
else
  OMPI_BUILD_plm_rsh_DSO_TRUE='#'
  OMPI_BUILD_plm_rsh_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:slurm (m4 configuration macro)"




    project=orte
    framework=plm
    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
            # overridden 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_plm" ; then
            if test "$DIRECT_plm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=plm
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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, AIX,
        # and OS X systems (these are the platforms that SLURM
        # supports)
        case $host in
            *-linux*|*-aix*|*-apple-darwin*)
                ompi_check_slurm_happy="yes"
                ;;
            *)
                { $as_echo "$as_me:$LINENO: checking for SLURM srun in PATH" >&5
$as_echo_n "checking for SLURM srun in PATH... " >&6; }

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=srun

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OMPI_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


                if test "$OMPI_CHECK_SLURM_SRUN" = ""; then
                    ompi_check_slurm_happy="no"
                else
                    ompi_check_slurm_happy="yes"
                fi
                { $as_echo "$as_me:$LINENO: result: $ompi_check_slurm_happy" >&5
$as_echo "$ompi_check_slurm_happy" >&6; }
                ;;
        esac
    else
        ompi_check_slurm_happy="yes"
    fi

    if test "$ompi_check_slurm_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for fork" >&5
$as_echo_n "checking for fork... " >&6; }
if test "${ac_cv_func_fork+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_fork=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_fork=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
$as_echo "$ac_cv_func_fork" >&6; }
if test "x$ac_cv_func_fork" = x""yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for execve" >&5
$as_echo_n "checking for execve... " >&6; }
if test "${ac_cv_func_execve+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_execve=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_execve=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5
$as_echo "$ac_cv_func_execve" >&6; }
if test "x$ac_cv_func_execve" = x""yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
$as_echo_n "checking for setpgid... " >&6; }
if test "${ac_cv_func_setpgid+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_setpgid=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_setpgid=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
$as_echo "$ac_cv_func_setpgid" >&6; }
if test "x$ac_cv_func_setpgid" = x""yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  plm_slurm_good=1
else
  plm_slurm_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$plm_slurm_good" = "1"; then
  plm_slurm_WRAPPER_EXTRA_LDFLAGS="$plm_slurm_LDFLAGS"
           plm_slurm_WRAPPER_EXTRA_LIBS="$plm_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=plm
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_plm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_plm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component plm:slurm can compile" >&5
$as_echo_n "checking if MCA component plm:slurm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "slurm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "slurm" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_plm_slurm_DSO=1
else
  BUILD_plm_slurm_DSO=0
fi

     if test "$BUILD_plm_slurm_DSO" = "1"; then
  OMPI_BUILD_plm_slurm_DSO_TRUE=
  OMPI_BUILD_plm_slurm_DSO_FALSE='#'
else
  OMPI_BUILD_plm_slurm_DSO_TRUE='#'
  OMPI_BUILD_plm_slurm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:tm (m4 configuration macro)"




    project=orte
    framework=plm
    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
            # overridden 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_plm" ; then
            if test "$DIRECT_plm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=plm
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-tm value" >&5
$as_echo_n "checking --with-tm value... " >&6; }
    if test "$with_tm" = "yes" -o "$with_tm" = "no" -o "x$with_tm" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_tm"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_tm not found" >&5
$as_echo "$as_me: WARNING: Directory $with_tm not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_tm/include/tm.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_tm/include/tm.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_tm/include/tm.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_tm)" >&5
$as_echo "sanity check ok ($with_tm)" >&6; }

fi



fi



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
  { $as_echo "$as_me:$LINENO: checking for pbs-config" >&5
$as_echo_n "checking for pbs-config... " >&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

           { $as_echo "$as_me:$LINENO: result: $ompi_check_tm_pbs_config" >&5
$as_echo "$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
  plm_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:110229: plm_tm_CPPFLAGS from pbs-config: $plm_tm_CPPFLAGS" >&5
else
    echo plm_tm_CPPFLAGS from pbs-config: $plm_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
                plm_tm_LDFLAGS="$plm_tm_LDFLAGS $ompi_check_tm_val"
            fi
        else
            if test "LDFLAGS" = "LDFLAGS"; then
                plm_tm_LDFLAGS="$plm_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:110252: plm_tm_LDFLAGS from pbs-config: $plm_tm_LDFLAGS" >&5
else
    echo plm_tm_LDFLAGS from pbs-config: $plm_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
                plm_tm_LIBS="$plm_tm_LIBS $ompi_check_tm_val"
            fi
        else
            if test "LIBS" = "LDFLAGS"; then
                plm_tm_LIBS="$plm_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:110275: plm_tm_LIBS from pbs-config: $plm_tm_LIBS" >&5
else
    echo plm_tm_LIBS from pbs-config: $plm_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 $plm_tm_CPPFLAGS"
           LIBS="$LIBS $plm_tm_LIBS"
           LDFLAGS="$LDFLAGS $plm_tm_LDFLAGS"

           if test "${ac_cv_header_tm_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking tm.h usability" >&5
$as_echo_n "checking tm.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking tm.h presence" >&5
$as_echo_n "checking tm.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }

fi
if test "x$ac_cv_header_tm_h" = x""yes; then
  { $as_echo "$as_me:$LINENO: checking for tm_finalize" >&5
$as_echo_n "checking for tm_finalize... " >&6; }
if test "${ac_cv_func_tm_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_tm_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_tm_finalize=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tm_finalize" >&5
$as_echo "$ac_cv_func_tm_finalize" >&6; }
if test "x$ac_cv_func_tm_finalize" = x""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.

    ompi_check_package_plm_tm_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_plm_tm_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_plm_tm_save_LIBS="$LIBS"

    ompi_check_package_plm_tm_orig_CPPFLAGS="$plm_tm_CPPFLAGS"
    ompi_check_package_plm_tm_orig_LDFLAGS="$plm_tm_LDFLAGS"
    ompi_check_package_plm_tm_orig_LIBS="$plm_tm_LIBS"

    if test "$ompi_check_tm_found" = "no"; then
  if test "$ompi_check_tm_happy" = "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


    # 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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_tm_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking tm.h usability" >&5
$as_echo_n "checking tm.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking tm.h presence" >&5
$as_echo_n "checking tm.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }

fi
if test "x$ac_cv_header_tm_h" = x""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
  plm_tm_CPPFLAGS="$plm_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
  { $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking tm.h usability" >&5
$as_echo_n "checking tm.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking tm.h presence" >&5
$as_echo_n "checking tm.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }

fi
if test "x$ac_cv_header_tm_h" = x""yes; then
  ompi_check_tm_found="yes"
else
  ompi_check_tm_found="no"
fi


else
  ompi_check_tm_found="yes"
fi

    unset ompi_check_package_header_happy
fi


           if test "$ompi_check_tm_found" = "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 "$ompi_check_tm_libdir" != ""; then
   # libdir was specified - search only there
           plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_tm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir"
           { $as_echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_pbs_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pbs_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""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_plm_tm_save_LDFLAGS"
                  plm_tm_LDFLAGS="$ompi_check_package_plm_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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_pbs_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pbs_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""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_plm_tm_save_LDFLAGS"
                     plm_tm_LDFLAGS="$ompi_check_package_plm_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
  plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_pbs_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pbs_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""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_plm_tm_save_LDFLAGS"
                          plm_tm_LDFLAGS="$ompi_check_package_plm_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
  plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_pbs_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pbs_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""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_plm_tm_save_LDFLAGS"
                          plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                          unset ac_cv_lib_pbs_tm_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  plm_tm_LIBS="-lpbs "
           ompi_check_tm_found="yes"
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_init
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_tm_libdir" != ""; then
   # libdir was specified - search only there
           plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_tm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir"
           { $as_echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_torque_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_torque_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""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_plm_tm_save_LDFLAGS"
                  plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                  unset ac_cv_lib_torque_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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_torque_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_torque_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""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_plm_tm_save_LDFLAGS"
                     plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                     unset ac_cv_lib_torque_tm_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_torque_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_torque_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""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_plm_tm_save_LDFLAGS"
                          plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  plm_tm_LDFLAGS="$plm_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_torque_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_torque_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""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_plm_tm_save_LDFLAGS"
                          plm_tm_LDFLAGS="$ompi_check_package_plm_tm_orig_LDFLAGS"
                          unset ac_cv_lib_torque_tm_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  plm_tm_LIBS="-ltorque "
           ompi_check_tm_found="yes"
else
  ompi_check_tm_found="no"
fi



fi



fi

fi


    CPPFLAGS="$ompi_check_package_plm_tm_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_plm_tm_save_LDFLAGS"
    LIBS="$ompi_check_package_plm_tm_save_LIBS"

    # Did we find the right stuff?
    if test "$ompi_check_tm_happy" = "yes" -a "$ompi_check_tm_found" = "yes"; then
  plm_tm_good=1
else
  if test ! -z "$with_tm" -a "$with_tm" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: TM support requested but not found.  Aborting" >&5
$as_echo "$as_me: error: TM support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

           plm_tm_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$plm_tm_good" = "1"; then
  plm_tm_WRAPPER_EXTRA_LDFLAGS="$plm_tm_LDFLAGS"
           plm_tm_WRAPPER_EXTRA_LIBS="$plm_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=plm
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_plm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_plm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component plm:tm can compile" >&5
$as_echo_n "checking if MCA component plm:tm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "tm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "tm" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_plm_tm_DSO=1
else
  BUILD_plm_tm_DSO=0
fi

     if test "$BUILD_plm_tm_DSO" = "1"; then
  OMPI_BUILD_plm_tm_DSO_TRUE=
  OMPI_BUILD_plm_tm_DSO_FALSE='#'
else
  OMPI_BUILD_plm_tm_DSO_TRUE='#'
  OMPI_BUILD_plm_tm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component plm:xgrid (m4 configuration macro)"




    project=orte
    framework=plm
    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
            # overridden 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_plm" ; then
            if test "$DIRECT_plm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=plm
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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



  { $as_echo "$as_me:$LINENO: checking if C and Objective C are link compatible" >&5
$as_echo_n "checking if C and Objective C are link compatible... " >&6; }
if test "${ompi_cv_c_link_Objective_C+set}" = set; then
  $as_echo_n "(cached) " >&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:111966: $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:111973: \$? = $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_c_link_Objective_C="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_c_link_Objective_C="no"
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_c_link_Objective_C" >&5
$as_echo "$ompi_cv_c_link_Objective_C" >&6; }

  if test "$ompi_cv_c_link_Objective_C" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for XgridFoundation Framework" >&5
$as_echo_n "checking for XgridFoundation Framework... " >&6; }
if test "${ompi_cv_check_xgrid_foundation+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_check_xgrid_foundation="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_check_xgrid_foundation="no"
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_check_xgrid_foundation" >&5
$as_echo "$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
  plm_xgrid_LDFLAGS="$plm_xgrid_LDFLAGS -framework XgridFoundation -framework Foundation"
           plm_xgrid_good=1
else
  plm_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 "$plm_xgrid_good" = "0"; then
  should_build=0
else
  if test "$compile_mode" = "dso"; then
   # plm_xgrid_LDFLAGS will be set by OMPI_CHECK_XGRID
                   plm_xgrid_WRAPPER_EXTRA_LDFLAGS="$plm_xgrid_LDFLAGS"
                   should_build=1
else
  { $as_echo "$as_me:$LINENO: WARNING: XGrid components must be built as DSOs.  Disabling" >&5
$as_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=plm
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_plm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_plm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component plm:xgrid can compile" >&5
$as_echo_n "checking if MCA component plm:xgrid can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "xgrid" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "xgrid" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_plm_xgrid_DSO=1
else
  BUILD_plm_xgrid_DSO=0
fi

     if test "$BUILD_plm_xgrid_DSO" = "1"; then
  OMPI_BUILD_plm_xgrid_DSO_TRUE=
  OMPI_BUILD_plm_xgrid_DSO_FALSE='#'
else
  OMPI_BUILD_plm_xgrid_DSO_TRUE='#'
  OMPI_BUILD_plm_xgrid_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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 "1" != "0"; then

    for component_path in $srcdir/orte/mca/plm/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component plm:$component (need to configure)"




    project=orte
    framework=plm
    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
            # overridden 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_plm" ; then
            if test "$DIRECT_plm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=plm
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_plm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/plm/$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/plm/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=plm
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_plm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_plm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component plm:$component can compile" >&5
$as_echo_n "checking if MCA component plm:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_plm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_plm" ; then
        if test "$DIRECT_plm" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_plm_ALL_COMPONENTS="$all_components"
    MCA_plm_STATIC_COMPONENTS="$static_components"
    MCA_plm_DSO_COMPONENTS="$dso_components"
    MCA_plm_STATIC_LTLIBS="$static_ltlibs"







    MCA_plm_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_plm_ALL_SUBDIRS="$MCA_plm_ALL_SUBDIRS mca/plm/$item"
    done



    MCA_plm_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_plm_STATIC_SUBDIRS="$MCA_plm_STATIC_SUBDIRS mca/plm/$item"
    done



    MCA_plm_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_plm_DSO_SUBDIRS="$MCA_plm_DSO_SUBDIRS mca/plm/$item"
    done



    # 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 "plm" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_plm_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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework ras" >&5
$as_echo_n "checking for no configure components in framework ras... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework ras" >&5
$as_echo_n "checking for m4 configure components in framework ras... " >&6; }
    { $as_echo "$as_me:$LINENO: result: alps, ccp, gridengine, loadleveler, lsf, slurm, tm" >&5
$as_echo "alps, ccp, gridengine, loadleveler, lsf, slurm, tm" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component ras:alps (m4 configuration macro)"




    project=orte
    framework=ras
    component=alps
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=alps

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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-alps was given.
if test "${with_alps+set}" = set; then
  withval=$with_alps;
fi

	if test "$with_alps" = "yes" ; then
	    ompi_check_alps_happy="yes"
	fi
	if test "$ompi_check_alps_happy" = "yes"; then
  should_build=1
else
  should_build=0
fi



fi


    if test "$should_build" = "1"; then



    project=orte
    framework=ras
    component=alps

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ras:alps can compile" >&5
$as_echo_n "checking if MCA component ras:alps can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "alps" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "alps" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"alps\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"alps\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 alps"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_alps_DSO=1
else
  BUILD_ras_alps_DSO=0
fi

     if test "$BUILD_ras_alps_DSO" = "1"; then
  OMPI_BUILD_ras_alps_DSO_TRUE=
  OMPI_BUILD_ras_alps_DSO_FALSE='#'
else
  OMPI_BUILD_ras_alps_DSO_TRUE='#'
  OMPI_BUILD_ras_alps_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component ras:ccp (m4 configuration macro)"




    project=orte
    framework=ras
    component=ccp
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ccp

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    ras_ccp_good=0
    # CCP does never exist under Unix
    should_build=0

fi


    if test "$should_build" = "1"; then



    project=orte
    framework=ras
    component=ccp

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ras:ccp can compile" >&5
$as_echo_n "checking if MCA component ras:ccp can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "ccp" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ccp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ccp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_ras" ; then
        if test "$DIRECT_ras" = "ccp" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ccp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ccp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 ccp"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_ccp_DSO=1
else
  BUILD_ras_ccp_DSO=0
fi

     if test "$BUILD_ras_ccp_DSO" = "1"; then
  OMPI_BUILD_ras_ccp_DSO_TRUE=
  OMPI_BUILD_ras_ccp_DSO_FALSE='#'
else
  OMPI_BUILD_ras_ccp_DSO_TRUE='#'
  OMPI_BUILD_ras_ccp_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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-sge was given.
if test "${with_sge+set}" = set; then
  withval=$with_sge;
fi


    { $as_echo "$as_me:$LINENO: checking if user requested SGE build" >&5
$as_echo_n "checking if user requested SGE build... " >&6; }
    ompi_gridengine_build=
    if test "$with_sge" = "yes"; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
           ompi_gridengine_build=yes
else
  if test "$with_sge" = "no"; then
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: not specified; checking environment" >&5
$as_echo "not specified; checking environment" >&6; }
                  # Extract the first word of "qrsh", so it can be a program name with args.
set dummy qrsh; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_QRSH+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$QRSH"; then
  ac_cv_prog_QRSH="$QRSH" # 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_QRSH="qrsh"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
QRSH=$ac_cv_prog_QRSH
if test -n "$QRSH"; then
  { $as_echo "$as_me:$LINENO: result: $QRSH" >&5
$as_echo "$QRSH" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


                  if test "$QRSH" != ""; then
  ompi_gridengine_build=yes
else
  { $as_echo "$as_me:$LINENO: checking for SGE_ROOT environment variable" >&5
$as_echo_n "checking for SGE_ROOT environment variable... " >&6; }
                         if test "$SGE_ROOT" != ""; then
  { $as_echo "$as_me:$LINENO: result: found" >&5
$as_echo "found" >&6; }
                                ompi_gridengine_build=yes
else
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
fi

fi

fi

fi


    if test "$ompi_gridengine_build" = "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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ras:gridengine can compile" >&5
$as_echo_n "checking if MCA component ras:gridengine can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "gridengine" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"gridengine\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"gridengine\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"gridengine\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"gridengine\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-loadleveler value" >&5
$as_echo_n "checking --with-loadleveler value... " >&6; }
    if test "$with_loadleveler" = "yes" -o "$with_loadleveler" = "no" -o "x$with_loadleveler" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_loadleveler"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_loadleveler not found" >&5
$as_echo "$as_me: WARNING: Directory $with_loadleveler not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_loadleveler/include/llapi.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_loadleveler/include/llapi.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_loadleveler/include/llapi.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_loadleveler)" >&5
$as_echo "sanity check ok ($with_loadleveler)" >&6; }

fi



fi



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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_llapi_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for llapi.h" >&5
$as_echo_n "checking for llapi.h... " >&6; }
if test "${ac_cv_header_llapi_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
$as_echo "$ac_cv_header_llapi_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking llapi.h usability" >&5
$as_echo_n "checking llapi.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking llapi.h presence" >&5
$as_echo_n "checking llapi.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: llapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: llapi.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: llapi.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: llapi.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: llapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: llapi.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for llapi.h" >&5
$as_echo_n "checking for llapi.h... " >&6; }
if test "${ac_cv_header_llapi_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_llapi_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
$as_echo "$ac_cv_header_llapi_h" >&6; }

fi
if test "x$ac_cv_header_llapi_h" = x""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
  { $as_echo "$as_me:$LINENO: checking for llapi.h" >&5
$as_echo_n "checking for llapi.h... " >&6; }
if test "${ac_cv_header_llapi_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
$as_echo "$ac_cv_header_llapi_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking llapi.h usability" >&5
$as_echo_n "checking llapi.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking llapi.h presence" >&5
$as_echo_n "checking llapi.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: llapi.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: llapi.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: llapi.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: llapi.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: llapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: llapi.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: llapi.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for llapi.h" >&5
$as_echo_n "checking for llapi.h... " >&6; }
if test "${ac_cv_header_llapi_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_llapi_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
$as_echo "$ac_cv_header_llapi_h" >&6; }

fi
if test "x$ac_cv_header_llapi_h" = x""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"
           { $as_echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
$as_echo_n "checking for ll_query in -lllapi... " >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_llapi_ll_query=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
$as_echo "$ac_cv_lib_llapi_ll_query" >&6; }
if test "x$ac_cv_lib_llapi_ll_query" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
$as_echo_n "checking for ll_query in -lllapi... " >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_llapi_ll_query=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
$as_echo "$ac_cv_lib_llapi_ll_query" >&6; }
if test "x$ac_cv_lib_llapi_ll_query" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
$as_echo_n "checking for ll_query in -lllapi... " >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_llapi_ll_query=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
$as_echo "$ac_cv_lib_llapi_ll_query" >&6; }
if test "x$ac_cv_lib_llapi_ll_query" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
$as_echo_n "checking for ll_query in -lllapi... " >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_llapi_ll_query=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
$as_echo "$ac_cv_lib_llapi_ll_query" >&6; }
if test "x$ac_cv_lib_llapi_ll_query" = x""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
  ras_loadleveler_LIBS="-lllapi "
           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"
           { $as_echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
$as_echo_n "checking for ll_query in -lllapi... " >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_llapi_ll_query=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
$as_echo "$ac_cv_lib_llapi_ll_query" >&6; }
if test "x$ac_cv_lib_llapi_ll_query" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
$as_echo_n "checking for ll_query in -lllapi... " >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_llapi_ll_query=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
$as_echo "$ac_cv_lib_llapi_ll_query" >&6; }
if test "x$ac_cv_lib_llapi_ll_query" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
$as_echo_n "checking for ll_query in -lllapi... " >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_llapi_ll_query=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
$as_echo "$ac_cv_lib_llapi_ll_query" >&6; }
if test "x$ac_cv_lib_llapi_ll_query" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
$as_echo_n "checking for ll_query in -lllapi... " >&6; }
if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_llapi_ll_query=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_llapi_ll_query=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
$as_echo "$ac_cv_lib_llapi_ll_query" >&6; }
if test "x$ac_cv_lib_llapi_ll_query" = x""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
  ras_loadleveler_LIBS="-lllapi "
           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"
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
  { { $as_echo "$as_me:$LINENO: error: LOADLEVELER support requested but not found.  Aborting" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ras:loadleveler can compile" >&5
$as_echo_n "checking if MCA component ras:loadleveler can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "loadleveler" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"loadleveler\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"loadleveler\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component ras:lsf (m4 configuration macro)"




    project=orte
    framework=ras
    component=lsf
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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-lsf was given.
if test "${with_lsf+set}" = set; then
  withval=$with_lsf;
fi


    { $as_echo "$as_me:$LINENO: checking --with-lsf value" >&5
$as_echo_n "checking --with-lsf value... " >&6; }
    if test "$with_lsf" = "yes" -o "$with_lsf" = "no" -o "x$with_lsf" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_lsf not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_lsf/include/lsf/lsbatch.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf/include/lsf/lsbatch.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_lsf)" >&5
$as_echo "sanity check ok ($with_lsf)" >&6; }

fi



fi



fi



# Check whether --with-lsf-libdir was given.
if test "${with_lsf_libdir+set}" = set; then
  withval=$with_lsf_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-lsf-libdir value" >&5
$as_echo_n "checking --with-lsf-libdir value... " >&6; }
    if test "$with_lsf_libdir" = "yes" -o "$with_lsf_libdir" = "no" -o "x$with_lsf_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_lsf_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_lsf_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_lsf_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_lsf_libdir/libbat.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_lsf_libdir/libbat.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_lsf_libdir)" >&5
$as_echo "sanity check ok ($with_lsf_libdir)" >&6; }

fi



fi



fi



    # Defaults
    ompi_check_lsf_dir_msg="compiler default"
    ompi_check_lsf_libdir_msg="linker default"

    # Save directory names if supplied
    if test ! -z "$with_lsf" -a "$with_lsf" != "yes"; then
  ompi_check_lsf_dir="$with_lsf"
           ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from --with-lsf)"
fi

    if test ! -z "$with_lsf_libdir" -a "$with_lsf_libdir" != "yes"; then
  ompi_check_lsf_libdir="$with_lsf_libdir"
           ompi_check_lsf_libdir_msg="$ompi_check_lsf_libdir (from --with-lsf-libdir)"
fi


    # If no directories were specified, look for LSF_LIBDIR,
    # LSF_INCLUDEDIR, and/or LSF_ENVDIR.
    if test -z "$ompi_check_lsf_dir" -a -z "$ompi_check_lsf_libdir"; then
  if test ! -z "$LSF_ENVDIR" -a -z "$LSF_LIBDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then
  LSF_LIBDIR=`egrep ^LSF_LIBDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi

           if test ! -z "$LSF_ENVDIR" -a -z "$LSF_INCLUDEDIR" -a -f "$LSF_ENVDIR/lsf.conf"; then
  LSF_INCLUDEDIR=`egrep ^LSF_INCLUDEDIR= $LSF_ENVDIR/lsf.conf | cut -d= -f2-`
fi

           if test ! -z "$LSF_LIBDIR"; then
  ompi_check_lsf_libdir=$LSF_LIBDIR
                  ompi_check_lsf_libdir_msg="$LSF_LIBDIR (from \$LSF_LIBDIR)"
fi

           if test ! -z "$LSF_INCLUDEDIR"; then
  ompi_check_lsf_dir=`dirname $LSF_INCLUDEDIR`
                  ompi_check_lsf_dir_msg="$ompi_check_lsf_dir (from \$LSF_INCLUDEDIR)"
fi

fi


    if test "$with_lsf" = "no"; then
  ompi_check_lsf_happy="no"
else
  ompi_check_lsf_happy="yes"
fi


    ompi_check_lsf_ras_lsf_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_lsf_ras_lsf_save_LDFLAGS="$LDFLAGS"
    ompi_check_lsf_ras_lsf_save_LIBS="$LIBS"

    if test "$ompi_check_lsf_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for LSF dir" >&5
$as_echo_n "checking for LSF dir... " >&6; }
           { $as_echo "$as_me:$LINENO: result: $ompi_check_lsf_dir_msg" >&5
$as_echo "$ompi_check_lsf_dir_msg" >&6; }
           { $as_echo "$as_me:$LINENO: checking for LSF library dir" >&5
$as_echo_n "checking for LSF library dir... " >&6; }
           { $as_echo "$as_me:$LINENO: result: $ompi_check_lsf_libdir_msg" >&5
$as_echo "$ompi_check_lsf_libdir_msg" >&6; }

    ompi_check_package_ras_lsf_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_ras_lsf_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_ras_lsf_save_LIBS="$LIBS"

    ompi_check_package_ras_lsf_orig_CPPFLAGS="$ras_lsf_CPPFLAGS"
    ompi_check_package_ras_lsf_orig_LDFLAGS="$ras_lsf_LDFLAGS"
    ompi_check_package_ras_lsf_orig_LIBS="$ras_lsf_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_lsf_lsbatch_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_lsf_dir" = "/usr" -o "$ompi_check_lsf_dir" = "/usr/local"; then
   # try as is...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5
$as_echo_n "checking lsf/lsbatch.h usability... " >&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 <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5
$as_echo_n "checking lsf/lsbatch.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.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
{ $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_lsf_lsbatch_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }

fi
if test "x$ac_cv_header_lsf_lsbatch_h" = x""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_lsf_lsbatch_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_lsf_dir" != ""; then
  ras_lsf_CPPFLAGS="$ras_lsf_CPPFLAGS -I$ompi_check_lsf_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_lsf_dir/include"
fi

           if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h usability" >&5
$as_echo_n "checking lsf/lsbatch.h usability... " >&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 <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking lsf/lsbatch.h presence" >&5
$as_echo_n "checking lsf/lsbatch.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <lsf/lsbatch.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lsf/lsbatch.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: lsf/lsbatch.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
{ $as_echo "$as_me:$LINENO: checking for lsf/lsbatch.h" >&5
$as_echo_n "checking for lsf/lsbatch.h... " >&6; }
if test "${ac_cv_header_lsf_lsbatch_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_lsf_lsbatch_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lsf_lsbatch_h" >&5
$as_echo "$ac_cv_header_lsf_lsbatch_h" >&6; }

fi
if test "x$ac_cv_header_lsf_lsbatch_h" = x""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_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_lsf_libdir" != ""; then
   # libdir was specified - search only there
           ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir"
           { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_lsf_save_LDFLAGS"
                  ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_lsf_save_LDFLAGS"
                     ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_lsf_save_LDFLAGS"
                          ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_lsf_save_LDFLAGS"
                          ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ras_lsf_LIBS="-lbat -llsf"
           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_bat_lsb_launch
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_lsf_libdir" != ""; then
   # libdir was specified - search only there
           ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_lsf_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_lsf_libdir"
           { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_lsf_save_LDFLAGS"
                  ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                  unset ac_cv_lib_bat_lsb_launch
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_lsf_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_lsf_save_LDFLAGS"
                     ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                     unset ac_cv_lib_bat_lsb_launch
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_lsf_save_LDFLAGS"
                          ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  ras_lsf_LDFLAGS="$ras_lsf_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for lsb_launch in -lbat" >&5
$as_echo_n "checking for lsb_launch in -lbat... " >&6; }
if test "${ac_cv_lib_bat_lsb_launch+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbat -llsf $LIBS"
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 lsb_launch ();
int
main ()
{
return lsb_launch ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bat_lsb_launch=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bat_lsb_launch=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bat_lsb_launch" >&5
$as_echo "$ac_cv_lib_bat_lsb_launch" >&6; }
if test "x$ac_cv_lib_bat_lsb_launch" = x""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_lsf_save_LDFLAGS"
                          ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
                          unset ac_cv_lib_bat_lsb_launch
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ras_lsf_LIBS="-lbat -llsf"
           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_lsf_happy="yes"
else
  ras_lsf_CPPFLAGS="$ompi_check_package_ras_lsf_orig_CPPFLAGS"
           ras_lsf_LDFLAGS="$ompi_check_package_ras_lsf_orig_LDFLAGS"
           ras_lsf_LIBS="$ompi_check_package_ras_lsf_orig_LIBS"
           ompi_check_lsf_happy="no"
fi


    CPPFLAGS="$ompi_check_package_ras_lsf_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_ras_lsf_save_LDFLAGS"
    LIBS="$ompi_check_package_ras_lsf_save_LIBS"

fi


    CPPFLAGS="$ompi_check_lsf_ras_lsf_save_CPPFLAGS"
    LDFLAGS="$ompi_check_lsf_ras_lsf_save_LDFLAGS"
    LIBS="$ompi_check_lsf_ras_lsf_save_LIBS"

    # Reset for the next time we're called
    ompi_check_lsf_dir=
    ompi_check_lsf_libdir=

    if test "$ompi_check_lsf_happy" = "yes"; then
  ras_lsf_good=1
else
  if test ! -z "$with_lsf" -a "$with_lsf" != "no"; then
  { $as_echo "$as_me:$LINENO: WARNING: LSF support requested (via --with-lsf) but not found." >&5
$as_echo "$as_me: WARNING: LSF support requested (via --with-lsf) but not found." >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Aborting." >&5
$as_echo "$as_me: error: Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi

           ras_lsf_good=0
fi



    # if check worked, set wrapper flags if so.
    # Evaluate succeed / fail
    if test "$ras_lsf_good" = "1"; then
  ras_lsf_WRAPPER_EXTRA_LDFLAGS="$ras_lsf_LDFLAGS"
           ras_lsf_WRAPPER_EXTRA_LIBS="$ras_lsf_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

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ras:lsf can compile" >&5
$as_echo_n "checking if MCA component ras:lsf can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "lsf" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"lsf\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"lsf\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_ras_lsf_DSO=1
else
  BUILD_ras_lsf_DSO=0
fi

     if test "$BUILD_ras_lsf_DSO" = "1"; then
  OMPI_BUILD_ras_lsf_DSO_TRUE=
  OMPI_BUILD_ras_lsf_DSO_FALSE='#'
else
  OMPI_BUILD_ras_lsf_DSO_TRUE='#'
  OMPI_BUILD_ras_lsf_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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, AIX,
        # and OS X systems (these are the platforms that SLURM
        # supports)
        case $host in
            *-linux*|*-aix*|*-apple-darwin*)
                ompi_check_slurm_happy="yes"
                ;;
            *)
                { $as_echo "$as_me:$LINENO: checking for SLURM srun in PATH" >&5
$as_echo_n "checking for SLURM srun in PATH... " >&6; }

# 1 is the variable name to do "which" on
# 2 is the variable name to assign the return value to



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in ompi_prog ompi_file ompi_dir ompi_sentinel; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"ompi_prog ompi_file ompi_dir ompi_sentinel\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


ompi_prog=srun

IFS_SAVE=$IFS
IFS="$PATH_SEPARATOR"
for ompi_dir in $PATH; do
    if test -x "$ompi_dir/$ompi_prog"; then
        OMPI_CHECK_SLURM_SRUN="$ompi_dir/$ompi_prog"
        break
    fi
done
IFS=$IFS_SAVE


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


                if test "$OMPI_CHECK_SLURM_SRUN" = ""; then
                    ompi_check_slurm_happy="no"
                else
                    ompi_check_slurm_happy="yes"
                fi
                { $as_echo "$as_me:$LINENO: result: $ompi_check_slurm_happy" >&5
$as_echo "$ompi_check_slurm_happy" >&6; }
                ;;
        esac
    else
        ompi_check_slurm_happy="yes"
    fi

    if test "$ompi_check_slurm_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for fork" >&5
$as_echo_n "checking for fork... " >&6; }
if test "${ac_cv_func_fork+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_fork=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_fork=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
$as_echo "$ac_cv_func_fork" >&6; }
if test "x$ac_cv_func_fork" = x""yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for execve" >&5
$as_echo_n "checking for execve... " >&6; }
if test "${ac_cv_func_execve+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_execve=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_execve=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5
$as_echo "$ac_cv_func_execve" >&6; }
if test "x$ac_cv_func_execve" = x""yes; then
  ompi_check_slurm_happy="yes"
else
  ompi_check_slurm_happy="no"
fi

fi


    if test "$ompi_check_slurm_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
$as_echo_n "checking for setpgid... " >&6; }
if test "${ac_cv_func_setpgid+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_setpgid=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_setpgid=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
$as_echo "$ac_cv_func_setpgid" >&6; }
if test "x$ac_cv_func_setpgid" = x""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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ras:slurm can compile" >&5
$as_echo_n "checking if MCA component ras:slurm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "slurm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-tm value" >&5
$as_echo_n "checking --with-tm value... " >&6; }
    if test "$with_tm" = "yes" -o "$with_tm" = "no" -o "x$with_tm" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_tm"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_tm not found" >&5
$as_echo "$as_me: WARNING: Directory $with_tm not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_tm/include/tm.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_tm/include/tm.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_tm/include/tm.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_tm)" >&5
$as_echo "sanity check ok ($with_tm)" >&6; }

fi



fi



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
  { $as_echo "$as_me:$LINENO: checking for pbs-config" >&5
$as_echo_n "checking for pbs-config... " >&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

           { $as_echo "$as_me:$LINENO: result: $ompi_check_tm_pbs_config" >&5
$as_echo "$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:117917: 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:117940: 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:117963: 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
  { $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking tm.h usability" >&5
$as_echo_n "checking tm.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking tm.h presence" >&5
$as_echo_n "checking tm.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }

fi
if test "x$ac_cv_header_tm_h" = x""yes; then
  { $as_echo "$as_me:$LINENO: checking for tm_finalize" >&5
$as_echo_n "checking for tm_finalize... " >&6; }
if test "${ac_cv_func_tm_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_tm_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_tm_finalize=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tm_finalize" >&5
$as_echo "$ac_cv_func_tm_finalize" >&6; }
if test "x$ac_cv_func_tm_finalize" = x""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.

    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"

    if test "$ompi_check_tm_found" = "no"; then
  if test "$ompi_check_tm_happy" = "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


    # 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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_tm_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking tm.h usability" >&5
$as_echo_n "checking tm.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking tm.h presence" >&5
$as_echo_n "checking tm.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }

fi
if test "x$ac_cv_header_tm_h" = x""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
  { $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking tm.h usability" >&5
$as_echo_n "checking tm.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking tm.h presence" >&5
$as_echo_n "checking tm.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: tm.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: tm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for tm.h" >&5
$as_echo_n "checking for tm.h... " >&6; }
if test "${ac_cv_header_tm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_tm_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
$as_echo "$ac_cv_header_tm_h" >&6; }

fi
if test "x$ac_cv_header_tm_h" = x""yes; then
  ompi_check_tm_found="yes"
else
  ompi_check_tm_found="no"
fi


else
  ompi_check_tm_found="yes"
fi

    unset ompi_check_package_header_happy
fi


           if test "$ompi_check_tm_found" = "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 "$ompi_check_tm_libdir" != ""; then
   # libdir was specified - search only there
           ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_tm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir"
           { $as_echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_pbs_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pbs_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_pbs_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pbs_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_pbs_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pbs_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
$as_echo_n "checking for tm_init in -lpbs... " >&6; }
if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_pbs_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pbs_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
$as_echo "$ac_cv_lib_pbs_tm_init" >&6; }
if test "x$ac_cv_lib_pbs_tm_init" = x""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
  ras_tm_LIBS="-lpbs "
           ompi_check_tm_found="yes"
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_init
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_tm_libdir" != ""; then
   # libdir was specified - search only there
           ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_tm_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_tm_libdir"
           { $as_echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_torque_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_torque_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""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_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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_torque_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_torque_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""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_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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_torque_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_torque_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""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_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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for tm_init in -ltorque" >&5
$as_echo_n "checking for tm_init in -ltorque... " >&6; }
if test "${ac_cv_lib_torque_tm_init+set}" = set; then
  $as_echo_n "(cached) " >&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_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_torque_tm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_torque_tm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_init" >&5
$as_echo "$ac_cv_lib_torque_tm_init" >&6; }
if test "x$ac_cv_lib_torque_tm_init" = x""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_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  ras_tm_LIBS="-ltorque "
           ompi_check_tm_found="yes"
else
  ompi_check_tm_found="no"
fi



fi



fi

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"

    # 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
  { { $as_echo "$as_me:$LINENO: error: TM support requested but not found.  Aborting" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ras:tm can compile" >&5
$as_echo_n "checking if MCA component ras:tm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "tm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_ras" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component ras:$component can compile" >&5
$as_echo_n "checking if MCA component ras:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_ras" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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 "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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework rmaps" >&5
$as_echo_n "checking for no configure components in framework rmaps... " >&6; }
    { $as_echo "$as_me:$LINENO: result: load_balance, rank_file, round_robin, seq" >&5
$as_echo "load_balance, rank_file, round_robin, seq" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework rmaps" >&5
$as_echo_n "checking for m4 configure components in framework rmaps... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component rmaps:load_balance (no configuration)"




    project=orte
    framework=rmaps
    component=load_balance
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=load_balance

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmaps
    component=load_balance

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component rmaps:load_balance can compile" >&5
$as_echo_n "checking if MCA component rmaps:load_balance can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "load_balance" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"load_balance\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"load_balance\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "load_balance" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"load_balance\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"load_balance\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 load_balance"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmaps_load_balance_DSO=1
    else
        BUILD_rmaps_load_balance_DSO=0
    fi
     if test "$BUILD_rmaps_load_balance_DSO" = "1"; then
  OMPI_BUILD_rmaps_load_balance_DSO_TRUE=
  OMPI_BUILD_rmaps_load_balance_DSO_FALSE='#'
else
  OMPI_BUILD_rmaps_load_balance_DSO_TRUE='#'
  OMPI_BUILD_rmaps_load_balance_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component rmaps:rank_file (no configuration)"




    project=orte
    framework=rmaps
    component=rank_file
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=rank_file

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmaps
    component=rank_file

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component rmaps:rank_file can compile" >&5
$as_echo_n "checking if MCA component rmaps:rank_file can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "rank_file" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"rank_file\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rank_file\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "rank_file" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"rank_file\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rank_file\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 rank_file"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmaps_rank_file_DSO=1
    else
        BUILD_rmaps_rank_file_DSO=0
    fi
     if test "$BUILD_rmaps_rank_file_DSO" = "1"; then
  OMPI_BUILD_rmaps_rank_file_DSO_TRUE=
  OMPI_BUILD_rmaps_rank_file_DSO_FALSE='#'
else
  OMPI_BUILD_rmaps_rank_file_DSO_TRUE='#'
  OMPI_BUILD_rmaps_rank_file_DSO_FALSE=
fi


    unset compile_mode

    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component rmaps:round_robin can compile" >&5
$as_echo_n "checking if MCA component rmaps:round_robin can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "round_robin" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"round_robin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"round_robin\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    ompi_show_subsubsubtitle "MCA component rmaps:seq (no configuration)"




    project=orte
    framework=rmaps
    component=seq
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=seq

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=rmaps
    component=seq

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component rmaps:seq can compile" >&5
$as_echo_n "checking if MCA component rmaps:seq can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "seq" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"seq\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"seq\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rmaps" ; then
        if test "$DIRECT_rmaps" = "seq" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"seq\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"seq\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 seq"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_rmaps_seq_DSO=1
    else
        BUILD_rmaps_seq_DSO=0
    fi
     if test "$BUILD_rmaps_seq_DSO" = "1"; then
  OMPI_BUILD_rmaps_seq_DSO_TRUE=
  OMPI_BUILD_rmaps_seq_DSO_FALSE='#'
else
  OMPI_BUILD_rmaps_seq_DSO_TRUE='#'
  OMPI_BUILD_rmaps_seq_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rmaps" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component rmaps:$component can compile" >&5
$as_echo_n "checking if MCA component rmaps:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rmaps" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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 "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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework rml" >&5
$as_echo_n "checking for no configure components in framework rml... " >&6; }
    { $as_echo "$as_me:$LINENO: result: oob" >&5
$as_echo "oob" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework rml" >&5
$as_echo_n "checking for m4 configure components in framework rml... " >&6; }
    { $as_echo "$as_me:$LINENO: result: ftrm" >&5
$as_echo "ftrm" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component rml:oob can compile" >&5
$as_echo_n "checking if MCA component rml:oob can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rml" = "oob" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"oob\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"oob\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component rml:ftrm (m4 configuration macro)"




    project=orte
    framework=rml
    component=ftrm
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ftrm

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    # If we don't want FT, don't compile this component
    if test "$ompi_want_ft" = "1"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then



    project=orte
    framework=rml
    component=ftrm

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component rml:ftrm can compile" >&5
$as_echo_n "checking if MCA component rml:ftrm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rml" = "ftrm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ftrm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ftrm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_rml" ; then
        if test "$DIRECT_rml" = "ftrm" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ftrm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ftrm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 ftrm"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_rml_ftrm_DSO=1
else
  BUILD_rml_ftrm_DSO=0
fi

     if test "$BUILD_rml_ftrm_DSO" = "1"; then
  OMPI_BUILD_rml_ftrm_DSO_TRUE=
  OMPI_BUILD_rml_ftrm_DSO_FALSE='#'
else
  OMPI_BUILD_rml_ftrm_DSO_TRUE='#'
  OMPI_BUILD_rml_ftrm_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component rml:$component can compile" >&5
$as_echo_n "checking if MCA component rml:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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 "routed" = "common" ; then
                              MCA_orte_FRAMEWORKS="routed $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/routed $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_routed_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_routed_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_routed_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS routed"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/routed"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_routed_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_routed_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_routed_STATIC_SUBDIRS)"
                          fi
                          if test "routed" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/routed/libmca_routed.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_routed_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework routed"

    # 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 "routed" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/routed/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework routed" >&5
$as_echo_n "checking for no configure components in framework routed... " >&6; }
    { $as_echo "$as_me:$LINENO: result: binomial, direct, linear" >&5
$as_echo "binomial, direct, linear" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework routed" >&5
$as_echo_n "checking for m4 configure components in framework routed... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component routed:binomial (no configuration)"




    project=orte
    framework=routed
    component=binomial
    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
            # overridden 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_routed" ; then
            if test "$DIRECT_routed" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=routed
    component=binomial

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=routed
    component=binomial

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_routed" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_routed" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component routed:binomial can compile" >&5
$as_echo_n "checking if MCA component routed:binomial can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "binomial" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"binomial\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"binomial\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "binomial" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"binomial\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"binomial\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 binomial"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_routed_binomial_DSO=1
    else
        BUILD_routed_binomial_DSO=0
    fi
     if test "$BUILD_routed_binomial_DSO" = "1"; then
  OMPI_BUILD_routed_binomial_DSO_TRUE=
  OMPI_BUILD_routed_binomial_DSO_FALSE='#'
else
  OMPI_BUILD_routed_binomial_DSO_TRUE='#'
  OMPI_BUILD_routed_binomial_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component routed:direct (no configuration)"




    project=orte
    framework=routed
    component=direct
    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
            # overridden 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_routed" ; then
            if test "$DIRECT_routed" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=routed
    component=direct

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=routed
    component=direct

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_routed" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_routed" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component routed:direct can compile" >&5
$as_echo_n "checking if MCA component routed:direct can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "direct" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"direct\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "direct" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"direct\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"direct\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 direct"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_routed_direct_DSO=1
    else
        BUILD_routed_direct_DSO=0
    fi
     if test "$BUILD_routed_direct_DSO" = "1"; then
  OMPI_BUILD_routed_direct_DSO_TRUE=
  OMPI_BUILD_routed_direct_DSO_FALSE='#'
else
  OMPI_BUILD_routed_direct_DSO_TRUE='#'
  OMPI_BUILD_routed_direct_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component routed:linear (no configuration)"




    project=orte
    framework=routed
    component=linear
    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
            # overridden 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_routed" ; then
            if test "$DIRECT_routed" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=routed
    component=linear

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=orte
    framework=routed
    component=linear

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_routed" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_routed" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component routed:linear can compile" >&5
$as_echo_n "checking if MCA component routed:linear can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "linear" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"linear\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linear\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "linear" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"linear\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"linear\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 linear"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_routed_linear_DSO=1
    else
        BUILD_routed_linear_DSO=0
    fi
     if test "$BUILD_routed_linear_DSO" = "1"; then
  OMPI_BUILD_routed_linear_DSO_TRUE=
  OMPI_BUILD_routed_linear_DSO_FALSE='#'
else
  OMPI_BUILD_routed_linear_DSO_TRUE='#'
  OMPI_BUILD_routed_linear_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; then

    for component_path in $srcdir/orte/mca/routed/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component routed:$component (need to configure)"




    project=orte
    framework=routed
    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
            # overridden 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_routed" ; then
            if test "$DIRECT_routed" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=routed
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_routed" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/routed/$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/routed/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=routed
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_routed" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_routed" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component routed:$component can compile" >&5
$as_echo_n "checking if MCA component routed:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_routed" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_routed" ; then
        if test "$DIRECT_routed" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_routed_ALL_COMPONENTS="$all_components"
    MCA_routed_STATIC_COMPONENTS="$static_components"
    MCA_routed_DSO_COMPONENTS="$dso_components"
    MCA_routed_STATIC_LTLIBS="$static_ltlibs"







    MCA_routed_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_routed_ALL_SUBDIRS="$MCA_routed_ALL_SUBDIRS mca/routed/$item"
    done



    MCA_routed_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_routed_STATIC_SUBDIRS="$MCA_routed_STATIC_SUBDIRS mca/routed/$item"
    done



    MCA_routed_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_routed_DSO_SUBDIRS="$MCA_routed_DSO_SUBDIRS mca/routed/$item"
    done



    # 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 "routed" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_routed_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 "snapc" = "common" ; then
                              MCA_orte_FRAMEWORKS="snapc $MCA_orte_FRAMEWORKS"
                              MCA_orte_FRAMEWORKS_SUBDIRS="mca/snapc $MCA_orte_FRAMEWORKS_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_snapc_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_snapc_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_snapc_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS snapc"
                              MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/snapc"
                              MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_snapc_ALL_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_snapc_DSO_SUBDIRS)"
                              MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_snapc_STATIC_SUBDIRS)"
                          fi
                          if test "snapc" != "common" ; then
                              MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/snapc/libmca_snapc.la"
                          fi
                          MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_snapc_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework snapc"

    # 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 "snapc" = "common" ; then
        outdir=orte/mca/common
    else
        outdir=orte/mca/snapc/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework snapc" >&5
$as_echo_n "checking for no configure components in framework snapc... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework snapc" >&5
$as_echo_n "checking for m4 configure components in framework snapc... " >&6; }
    { $as_echo "$as_me:$LINENO: result: full" >&5
$as_echo "full" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component snapc:full (m4 configuration macro)"




    project=orte
    framework=snapc
    component=full
    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
            # overridden 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_snapc" ; then
            if test "$DIRECT_snapc" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=snapc
    component=full

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_snapc" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    # If we don't want FT, don't compile this component
    if test "$ompi_want_ft" = "1"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then



    project=orte
    framework=snapc
    component=full

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_snapc" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_snapc" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component snapc:full can compile" >&5
$as_echo_n "checking if MCA component snapc:full can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_snapc" = "full" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"full\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"full\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_snapc" ; then
        if test "$DIRECT_snapc" = "full" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"full\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"full\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 full"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_snapc_full_DSO=1
else
  BUILD_snapc_full_DSO=0
fi

     if test "$BUILD_snapc_full_DSO" = "1"; then
  OMPI_BUILD_snapc_full_DSO_TRUE=
  OMPI_BUILD_snapc_full_DSO_FALSE='#'
else
  OMPI_BUILD_snapc_full_DSO_TRUE='#'
  OMPI_BUILD_snapc_full_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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 "1" != "0"; then

    for component_path in $srcdir/orte/mca/snapc/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component snapc:$component (need to configure)"




    project=orte
    framework=snapc
    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
            # overridden 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_snapc" ; then
            if test "$DIRECT_snapc" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=snapc
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_snapc" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# orte/mca/snapc/$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/snapc/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=snapc
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_snapc" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_snapc" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component snapc:$component can compile" >&5
$as_echo_n "checking if MCA component snapc:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_snapc" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_snapc" ; then
        if test "$DIRECT_snapc" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_snapc_ALL_COMPONENTS="$all_components"
    MCA_snapc_STATIC_COMPONENTS="$static_components"
    MCA_snapc_DSO_COMPONENTS="$dso_components"
    MCA_snapc_STATIC_LTLIBS="$static_ltlibs"







    MCA_snapc_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_snapc_ALL_SUBDIRS="$MCA_snapc_ALL_SUBDIRS mca/snapc/$item"
    done



    MCA_snapc_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_snapc_STATIC_SUBDIRS="$MCA_snapc_STATIC_SUBDIRS mca/snapc/$item"
    done



    MCA_snapc_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_snapc_DSO_SUBDIRS="$MCA_snapc_DSO_SUBDIRS mca/snapc/$item"
    done



    # 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 "snapc" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_snapc_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"

    { $as_echo "$as_me:$LINENO: checking for frameworks for ompi" >&5
$as_echo_n "checking for frameworks for ompi... " >&6; }
    { $as_echo "$as_me:$LINENO: result: allocator, bml, btl, coll, common, crcp, dpm, io, mpool, mtl, osc, pml, pubsub, rcache, topo" >&5
$as_echo "allocator, bml, btl, coll, common, crcp, dpm, io, mpool, mtl, osc, pml, pubsub, 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework allocator" >&5
$as_echo_n "checking for no configure components in framework allocator... " >&6; }
    { $as_echo "$as_me:$LINENO: result: basic, bucket" >&5
$as_echo "basic, bucket" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework allocator" >&5
$as_echo_n "checking for m4 configure components in framework allocator... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_allocator" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component allocator:basic can compile" >&5
$as_echo_n "checking if MCA component allocator:basic can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_allocator" = "basic" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_allocator" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component allocator:bucket can compile" >&5
$as_echo_n "checking if MCA component allocator:bucket can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_allocator" = "bucket" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"bucket\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"bucket\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_allocator" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component allocator:$component can compile" >&5
$as_echo_n "checking if MCA component allocator:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_allocator" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework bml" >&5
$as_echo_n "checking for no configure components in framework bml... " >&6; }
    { $as_echo "$as_me:$LINENO: result: r2" >&5
$as_echo "r2" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework bml" >&5
$as_echo_n "checking for m4 configure components in framework bml... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_bml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component bml:r2 can compile" >&5
$as_echo_n "checking if MCA component bml:r2 can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_bml" = "r2" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"r2\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"r2\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_bml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component bml:$component can compile" >&5
$as_echo_n "checking if MCA component bml:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_bml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework btl" >&5
$as_echo_n "checking for no configure components in framework btl... " >&6; }
    { $as_echo "$as_me:$LINENO: result: self, sm" >&5
$as_echo "self, sm" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework btl" >&5
$as_echo_n "checking for m4 configure components in framework btl... " >&6; }
    { $as_echo "$as_me:$LINENO: result: elan, gm, mx, ofud, openib, portals, tcp, udapl" >&5
$as_echo "elan, gm, mx, ofud, openib, portals, tcp, udapl" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:self can compile" >&5
$as_echo_n "checking if MCA component btl:self can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "self" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:sm can compile" >&5
$as_echo_n "checking if MCA component btl:sm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "sm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component btl:elan (m4 configuration macro)"




    project=ompi
    framework=btl
    component=elan
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=elan

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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-elan was given.
if test "${with_elan+set}" = set; then
  withval=$with_elan;
fi


    { $as_echo "$as_me:$LINENO: checking --with-elan value" >&5
$as_echo_n "checking --with-elan value... " >&6; }
    if test "$with_elan" = "yes" -o "$with_elan" = "no" -o "x$with_elan" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_elan"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_elan not found" >&5
$as_echo "$as_me: WARNING: Directory $with_elan not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_elan/include/elan/elan.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_elan/include/elan/elan.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_elan/include/elan/elan.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_elan)" >&5
$as_echo "sanity check ok ($with_elan)" >&6; }

fi



fi



fi



# Check whether --with-elan-libdir was given.
if test "${with_elan_libdir+set}" = set; then
  withval=$with_elan_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-elan-libdir value" >&5
$as_echo_n "checking --with-elan-libdir value... " >&6; }
    if test "$with_elan_libdir" = "yes" -o "$with_elan_libdir" = "no" -o "x$with_elan_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_elan_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_elan_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_elan_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_elan_libdir/libelan.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_elan_libdir/libelan.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_elan_libdir/libelan.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_elan_libdir)" >&5
$as_echo "sanity check ok ($with_elan_libdir)" >&6; }

fi



fi



fi



    if test "$with_elan" != "no"; then
  if test ! -z "$with_elan" -a "$with_elan" != "yes"; then
  ompi_check_elan_dir="$with_elan"
fi

	    if test ! -z "$with_elan_libdir" -a "$with_elan_libdir" != "yes"; then
  ompi_check_elan_libdir="$with_elan_libdir"
fi



    ompi_check_package_btl_elan_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_elan_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_elan_save_LIBS="$LIBS"

    ompi_check_package_btl_elan_orig_CPPFLAGS="$btl_elan_CPPFLAGS"
    ompi_check_package_btl_elan_orig_LDFLAGS="$btl_elan_LDFLAGS"
    ompi_check_package_btl_elan_orig_LIBS="$btl_elan_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_elan_elan_h

    ompi_check_package_header_happy="no"
    if test "$ompi_check_elan_dir" = "/usr" -o "$ompi_check_elan_dir" = "/usr/local"; then
   # try as is...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_elan_elan_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for elan/elan.h" >&5
$as_echo_n "checking for elan/elan.h... " >&6; }
if test "${ac_cv_header_elan_elan_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5
$as_echo "$ac_cv_header_elan_elan_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking elan/elan.h usability" >&5
$as_echo_n "checking elan/elan.h usability... " >&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 <elan/elan.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking elan/elan.h presence" >&5
$as_echo_n "checking elan/elan.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <elan/elan.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: elan/elan.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: elan/elan.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: elan/elan.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: elan/elan.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: elan/elan.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: elan/elan.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
{ $as_echo "$as_me:$LINENO: checking for elan/elan.h" >&5
$as_echo_n "checking for elan/elan.h... " >&6; }
if test "${ac_cv_header_elan_elan_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_elan_elan_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5
$as_echo "$ac_cv_header_elan_elan_h" >&6; }

fi
if test "x$ac_cv_header_elan_elan_h" = x""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_elan_elan_h
fi

fi


    if test "$ompi_check_package_header_happy" = "no"; then
  if test "$ompi_check_elan_dir" != ""; then
  btl_elan_CPPFLAGS="$btl_elan_CPPFLAGS -I$ompi_check_elan_dir/include"
                  CPPFLAGS="$CPPFLAGS -I$ompi_check_elan_dir/include"
fi

           if test "${ac_cv_header_elan_elan_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for elan/elan.h" >&5
$as_echo_n "checking for elan/elan.h... " >&6; }
if test "${ac_cv_header_elan_elan_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5
$as_echo "$ac_cv_header_elan_elan_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking elan/elan.h usability" >&5
$as_echo_n "checking elan/elan.h usability... " >&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 <elan/elan.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking elan/elan.h presence" >&5
$as_echo_n "checking elan/elan.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <elan/elan.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: elan/elan.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: elan/elan.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: elan/elan.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: elan/elan.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: elan/elan.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: elan/elan.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: elan/elan.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: elan/elan.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: elan/elan.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
{ $as_echo "$as_me:$LINENO: checking for elan/elan.h" >&5
$as_echo_n "checking for elan/elan.h... " >&6; }
if test "${ac_cv_header_elan_elan_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_elan_elan_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elan_elan_h" >&5
$as_echo "$ac_cv_header_elan_elan_h" >&6; }

fi
if test "x$ac_cv_header_elan_elan_h" = x""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_elan_elan_init
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_elan_libdir" != ""; then
   # libdir was specified - search only there
           btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_elan_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_elan_libdir"
           { $as_echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
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 elan_init ();
int
main ()
{
return elan_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_elan_elan_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_elan_elan_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""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_elan_save_LDFLAGS"
                  btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                  unset ac_cv_lib_elan_elan_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_elan_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
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 elan_init ();
int
main ()
{
return elan_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_elan_elan_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_elan_elan_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""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_elan_save_LDFLAGS"
                     btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                     unset ac_cv_lib_elan_elan_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
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 elan_init ();
int
main ()
{
return elan_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_elan_elan_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_elan_elan_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""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_elan_save_LDFLAGS"
                          btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                          unset ac_cv_lib_elan_elan_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
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 elan_init ();
int
main ()
{
return elan_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_elan_elan_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_elan_elan_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""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_elan_save_LDFLAGS"
                          btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                          unset ac_cv_lib_elan_elan_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  btl_elan_LIBS="-lelan "
           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_elan_elan_init
    ompi_check_package_lib_happy="no"
    if test "$ompi_check_elan_libdir" != ""; then
   # libdir was specified - search only there
           btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_elan_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_elan_libdir"
           { $as_echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
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 elan_init ();
int
main ()
{
return elan_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_elan_elan_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_elan_elan_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""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_elan_save_LDFLAGS"
                  btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                  unset ac_cv_lib_elan_elan_init
fi

else
   # libdir was not specified - go through search path
           ompi_check_package_libdir="$ompi_check_elan_dir"
           if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
   # try as is...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
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 elan_init ();
int
main ()
{
return elan_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_elan_elan_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_elan_elan_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""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_elan_save_LDFLAGS"
                     btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                     unset ac_cv_lib_elan_elan_init
fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
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 elan_init ();
int
main ()
{
return elan_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_elan_elan_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_elan_elan_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""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_elan_save_LDFLAGS"
                          btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                          unset ac_cv_lib_elan_elan_init
fi

fi

fi


           if test "$ompi_check_package_lib_happy" = "no"; then
  if test "$ompi_check_package_libdir" != ""; then
  btl_elan_LDFLAGS="$btl_elan_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for elan_init in -lelan" >&5
$as_echo_n "checking for elan_init in -lelan... " >&6; }
if test "${ac_cv_lib_elan_elan_init+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
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 elan_init ();
int
main ()
{
return elan_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_elan_elan_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_elan_elan_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_init" >&5
$as_echo "$ac_cv_lib_elan_elan_init" >&6; }
if test "x$ac_cv_lib_elan_elan_init" = x""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_elan_save_LDFLAGS"
                          btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
                          unset ac_cv_lib_elan_elan_init
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  btl_elan_LIBS="-lelan "
           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_elan_happy="yes"
else
  btl_elan_CPPFLAGS="$ompi_check_package_btl_elan_orig_CPPFLAGS"
           btl_elan_LDFLAGS="$ompi_check_package_btl_elan_orig_LDFLAGS"
           btl_elan_LIBS="$ompi_check_package_btl_elan_orig_LIBS"
           ompi_check_elan_happy="no"
fi


    CPPFLAGS="$ompi_check_package_btl_elan_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_elan_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_elan_save_LIBS"


else
  ompi_check_elan_happy="no"
fi


    if test "$ompi_check_elan_happy" = "yes"; then
  btl_elan_happy="yes"
else
  if test ! -z "$with_elan" -a "$with_elan" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: Elan (QsNet2) support requested but not found.  Aborting" >&5
$as_echo "$as_me: error: Elan (QsNet2) support requested but not found.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

	    btl_elan_happy="no"
fi



    if test "$btl_elan_happy" = "yes"; then
  btl_elan_WRAPPER_EXTRA_LDFLAGS="$btl_elan_LDFLAGS"
           btl_elan_WRAPPER_EXTRA_LIBS="$btl_elan_LIBS"
           should_build=1
else
  should_build=0
fi


    # substitute in the things needed to build elan





fi


    if test "$should_build" = "1"; then



    project=ompi
    framework=btl
    component=elan

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:elan can compile" >&5
$as_echo_n "checking if MCA component btl:elan can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "elan" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"elan\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"elan\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "elan" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"elan\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"elan\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 elan"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_btl_elan_DSO=1
else
  BUILD_btl_elan_DSO=0
fi

     if test "$BUILD_btl_elan_DSO" = "1"; then
  OMPI_BUILD_btl_elan_DSO_TRUE=
  OMPI_BUILD_btl_elan_DSO_FALSE='#'
else
  OMPI_BUILD_btl_elan_DSO_TRUE='#'
  OMPI_BUILD_btl_elan_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-gm value" >&5
$as_echo_n "checking --with-gm value... " >&6; }
    if test "$with_gm" = "yes" -o "$with_gm" = "no" -o "x$with_gm" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_gm"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_gm not found" >&5
$as_echo "$as_me: WARNING: Directory $with_gm not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_gm/include/gm.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_gm/include/gm.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_gm/include/gm.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_gm)" >&5
$as_echo "sanity check ok ($with_gm)" >&6; }

fi



fi



fi



# Check whether --with-gm-libdir was given.
if test "${with_gm_libdir+set}" = set; then
  withval=$with_gm_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-gm-libdir value" >&5
$as_echo_n "checking --with-gm-libdir value... " >&6; }
    if test "$with_gm_libdir" = "yes" -o "$with_gm_libdir" = "no" -o "x$with_gm_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_gm_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_gm_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_gm_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_gm_libdir/libgm.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_gm_libdir/libgm.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_gm_libdir/libgm.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_gm_libdir)" >&5
$as_echo "sanity check ok ($with_gm_libdir)" >&6; }

fi



fi



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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_gm_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for gm.h" >&5
$as_echo_n "checking for gm.h... " >&6; }
if test "${ac_cv_header_gm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
$as_echo "$ac_cv_header_gm_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking gm.h usability" >&5
$as_echo_n "checking gm.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking gm.h presence" >&5
$as_echo_n "checking gm.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: gm.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for gm.h" >&5
$as_echo_n "checking for gm.h... " >&6; }
if test "${ac_cv_header_gm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_gm_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
$as_echo "$ac_cv_header_gm_h" >&6; }

fi
if test "x$ac_cv_header_gm_h" = x""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
  { $as_echo "$as_me:$LINENO: checking for gm.h" >&5
$as_echo_n "checking for gm.h... " >&6; }
if test "${ac_cv_header_gm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
$as_echo "$ac_cv_header_gm_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking gm.h usability" >&5
$as_echo_n "checking gm.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking gm.h presence" >&5
$as_echo_n "checking gm.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: gm.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: gm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for gm.h" >&5
$as_echo_n "checking for gm.h... " >&6; }
if test "${ac_cv_header_gm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_gm_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
$as_echo "$ac_cv_header_gm_h" >&6; }

fi
if test "x$ac_cv_header_gm_h" = x""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"
           { $as_echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
$as_echo_n "checking for gm_init in -lgm... " >&6; }
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_gm_gm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_gm_gm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
$as_echo "$ac_cv_lib_gm_gm_init" >&6; }
if test "x$ac_cv_lib_gm_gm_init" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
$as_echo_n "checking for gm_init in -lgm... " >&6; }
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_gm_gm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_gm_gm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
$as_echo "$ac_cv_lib_gm_gm_init" >&6; }
if test "x$ac_cv_lib_gm_gm_init" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
$as_echo_n "checking for gm_init in -lgm... " >&6; }
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_gm_gm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_gm_gm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
$as_echo "$ac_cv_lib_gm_gm_init" >&6; }
if test "x$ac_cv_lib_gm_gm_init" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
$as_echo_n "checking for gm_init in -lgm... " >&6; }
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_gm_gm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_gm_gm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
$as_echo "$ac_cv_lib_gm_gm_init" >&6; }
if test "x$ac_cv_lib_gm_gm_init" = x""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
  btl_gm_LIBS="-lgm "
           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"
           { $as_echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
$as_echo_n "checking for gm_init in -lgm... " >&6; }
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_gm_gm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_gm_gm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
$as_echo "$ac_cv_lib_gm_gm_init" >&6; }
if test "x$ac_cv_lib_gm_gm_init" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
$as_echo_n "checking for gm_init in -lgm... " >&6; }
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_gm_gm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_gm_gm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
$as_echo "$ac_cv_lib_gm_gm_init" >&6; }
if test "x$ac_cv_lib_gm_gm_init" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
$as_echo_n "checking for gm_init in -lgm... " >&6; }
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_gm_gm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_gm_gm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
$as_echo "$ac_cv_lib_gm_gm_init" >&6; }
if test "x$ac_cv_lib_gm_gm_init" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
$as_echo_n "checking for gm_init in -lgm... " >&6; }
if test "${ac_cv_lib_gm_gm_init+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_gm_gm_init=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_gm_gm_init=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
$as_echo "$ac_cv_lib_gm_gm_init" >&6; }
if test "x$ac_cv_lib_gm_gm_init" = x""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
  btl_gm_LIBS="-lgm "
           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"
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. :-\
    #
    { $as_echo "$as_me:$LINENO: checking for GM_API_VERSION" >&5
$as_echo_n "checking for GM_API_VERSION... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
    { $as_echo "$as_me:$LINENO: result: $have_gm_api_ver_msg" >&5
$as_echo "$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"
                { $as_echo "$as_me:$LINENO: checking for $var" >&5
$as_echo_n "checking for $var... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
                { $as_echo "$as_me:$LINENO: result: $msg" >&5
$as_echo "$msg" >&6; }
            fi
        done
    fi
    if test "$gm_api_ver" = ""; then
        { $as_echo "$as_me:$LINENO: WARNING: *** Could not find a supported GM_API_VERSION" >&5
$as_echo "$as_me: WARNING: *** Could not find a supported GM_API_VERSION" >&2;}
        { { $as_echo "$as_me:$LINENO: error: *** Cannot continue" >&5
$as_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().
    #
    { $as_echo "$as_me:$LINENO: checking for gm_put()" >&5
$as_echo_n "checking for gm_put()... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  HAVE_RDMA_PUT=1 MSG=yes
else
  $as_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 -rf conftest.dSYM
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

    { $as_echo "$as_me:$LINENO: result: $MSG" >&5
$as_echo "$MSG" >&6; }

    #
    # Do we have gm_get()?
    # gm_get() was introduced in gm 2.0.
    #
    { $as_echo "$as_me:$LINENO: checking for gm_get()" >&5
$as_echo_n "checking for gm_get()... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  HAVE_RDMA_GET=1 MSG=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	HAVE_RDMA_GET=0 MSG=no
fi

rm -rf conftest.dSYM
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

    { $as_echo "$as_me:$LINENO: result: $MSG" >&5
$as_echo "$MSG" >&6; }

    # Now test to see if the targetted GM is a broken one broken gm builds
    { $as_echo "$as_me:$LINENO: checking for broken GM 2.x RDMA gets build" >&5
$as_echo_n "checking for broken GM 2.x RDMA gets build... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
    { $as_echo "$as_me:$LINENO: result: $gm_build_broken " >&5
$as_echo "$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
  { { $as_echo "$as_me:$LINENO: error: GM support requested but not found.  Aborting" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:gm can compile" >&5
$as_echo_n "checking if MCA component btl:gm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "gm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-mx value" >&5
$as_echo_n "checking --with-mx value... " >&6; }
    if test "$with_mx" = "yes" -o "$with_mx" = "no" -o "x$with_mx" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_mx not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_mx/include/myriexpress.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_mx)" >&5
$as_echo "sanity check ok ($with_mx)" >&6; }

fi



fi



fi



# Check whether --with-mx-libdir was given.
if test "${with_mx_libdir+set}" = set; then
  withval=$with_mx_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-mx-libdir value" >&5
$as_echo_n "checking --with-mx-libdir value... " >&6; }
    if test "$with_mx_libdir" = "yes" -o "$with_mx_libdir" = "no" -o "x$with_mx_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_mx_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_mx_libdir/libmyriexpress.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_mx_libdir)" >&5
$as_echo "sanity check ok ($with_mx_libdir)" >&6; }

fi



fi



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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_myriexpress_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h usability" >&5
$as_echo_n "checking myriexpress.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h presence" >&5
$as_echo_n "checking myriexpress.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_myriexpress_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }

fi
if test "x$ac_cv_header_myriexpress_h" = x""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
  { $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h usability" >&5
$as_echo_n "checking myriexpress.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h presence" >&5
$as_echo_n "checking myriexpress.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_myriexpress_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }

fi
if test "x$ac_cv_header_myriexpress_h" = x""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"
           { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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
  btl_mx_LIBS="-lmyriexpress "
           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"
           { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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
  btl_mx_LIBS="-lmyriexpress "
           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"
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


    CPPFLAGS="$CPPFLAGS $btl_mx_CPPFLAGS"
    LDFLAGS="$LDFLAGS $btl_mx_LDFLAGS"
    LIBS="$LIBS $btl_mx_LIBS"

    # need at least version 1.0
    if test "ompi_check_mx_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5
$as_echo_n "checking for MX version 1.0 or later... " >&6; }
if test "${ompi_cv_mx_version_ok+set}" = set; then
  $as_echo_n "(cached) " >&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 <myriexpress.h>

int
main ()
{

#if MX_API < 0x300
#error "Version less than 0x300"
#endif

  ;
  return 0;
}
_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  ompi_cv_mx_version_ok="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ompi_cv_mx_version_ok="no"
fi

rm -f conftest.err conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_mx_version_ok" >&5
$as_echo "$ompi_cv_mx_version_ok" >&6; }
fi

    if test "$ompi_cv_mx_version_ok" = "no"; then
  ompi_check_mx_happy="no"
fi


    if test "$ompi_check_mx_happy" = "yes"; then

for ac_header in mx_extensions.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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


for ac_func in mx_forget mx_register_unexp_handler
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    { $as_echo "$as_me:$LINENO: checking for mx_open_board" >&5
$as_echo_n "checking for mx_open_board... " >&6; }
if test "${ompi_cv_func_mx_open_board+set}" = set; then
  $as_echo_n "(cached) " >&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 <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__fops.h>

int
main ()
{

mx_open_board(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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_mx_open_board="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_mx_open_board="no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_mx_open_board" >&5
$as_echo "$ompi_cv_func_mx_open_board" >&6; }

    { $as_echo "$as_me:$LINENO: checking for mx__get_mapper_state" >&5
$as_echo_n "checking for mx__get_mapper_state... " >&6; }
if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then
  $as_echo_n "(cached) " >&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 <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__driver_interface.h>

int
main ()
{

mx__get_mapper_state(NULL, 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_mx__get_mapper_state="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_mx__get_mapper_state="no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_mx__get_mapper_state" >&5
$as_echo "$ompi_cv_func_mx__get_mapper_state" >&6; }

    if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then
  mx_provide_mapper_state=1

else
  mx_provide_mapper_state=0

fi


cat >>confdefs.h <<_ACEOF
#define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state
_ACEOF


else
  { $as_echo "$as_me:$LINENO: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&5
$as_echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&2;}
fi

done

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
  { $as_echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: MX support requested but not found.  Aborting" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:mx can compile" >&5
$as_echo_n "checking if MCA component btl:mx can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "mx" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component btl:ofud (m4 configuration macro)"




    project=ompi
    framework=btl
    component=ofud
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=ofud

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in btl_ofud_msg; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"btl_ofud_msg\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    #
    # Openfabrics support
    #

# Check whether --with-openib was given.
if test "${with_openib+set}" = set; then
  withval=$with_openib;
fi


    { $as_echo "$as_me:$LINENO: checking --with-openib value" >&5
$as_echo_n "checking --with-openib value... " >&6; }
    if test "$with_openib" = "yes" -o "$with_openib" = "no" -o "x$with_openib" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_openib"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_openib not found" >&5
$as_echo "$as_me: WARNING: Directory $with_openib not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_openib/include/infiniband/verbs.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_openib/include/infiniband/verbs.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_openib/include/infiniband/verbs.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_openib)" >&5
$as_echo "sanity check ok ($with_openib)" >&6; }

fi



fi



fi



# Check whether --with-openib-libdir was given.
if test "${with_openib_libdir+set}" = set; then
  withval=$with_openib_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-openib-libdir value" >&5
$as_echo_n "checking --with-openib-libdir value... " >&6; }
    if test "$with_openib_libdir" = "yes" -o "$with_openib_libdir" = "no" -o "x$with_openib_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_openib_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_openib_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_openib_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_openib_libdir/libibverbs.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_openib_libdir/libibverbs.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_openib_libdir/libibverbs.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_openib_libdir)" >&5
$as_echo "sanity check ok ($with_openib_libdir)" >&6; }

fi



fi



fi



    #
    # ConnectX XRC support
    #
    # Check whether --enable-openib-connectx-xrc was given.
if test "${enable_openib_connectx_xrc+set}" = set; then
  enableval=$enable_openib_connectx_xrc; enable_connectx_xrc="$enableval"
else
  enable_connectx_xrc="yes"
fi

    #
    # Openfabrics IBCM
    #
    # Check whether --enable-openib-ibcm was given.
if test "${enable_openib_ibcm+set}" = set; then
  enableval=$enable_openib_ibcm; enable_openib_ibcm="$enableval"
else
  enable_openib_ibcm="no"
fi

    #
    # Openfabrics RDMACM
    #
    # Check whether --enable-openib-rdmacm was given.
if test "${enable_openib_rdmacm+set}" = set; then
  enableval=$enable_openib_rdmacm; enable_openib_rdmacm="$enableval"
else
  enable_openib_rdmacm="yes"
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
  ompi_check_openib_happy="no"
else
  ompi_check_openib_happy="yes"
fi


    ompi_check_openib_btl_ofud_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_openib_btl_ofud_save_LDFLAGS="$LDFLAGS"
    ompi_check_openib_btl_ofud_save_LIBS="$LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then
  if test "$THREAD_TYPE" != "posix" -a "$memory_ptmalloc2_happy" = "yes"; then
  if test "$enable_ptmalloc2_internal" = "yes"; then
  { $as_echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but" >&5
$as_echo "$as_me: WARNING: POSIX threads are disabled, but" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: --enable-ptmalloc2-internal was specified.  This will" >&5
$as_echo "$as_me: WARNING: --enable-ptmalloc2-internal was specified.  This will" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: cause memory corruption with OpenFabrics." >&5
$as_echo "$as_me: WARNING: cause memory corruption with OpenFabrics." >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: Not building component." >&5
$as_echo "$as_me: WARNING: Not building component." >&2;}
                         ompi_check_openib_happy="no"
else
  { $as_echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&5
$as_echo "$as_me: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: manager is being built.  Compiling MPI applications with" >&5
$as_echo "$as_me: WARNING: manager is being built.  Compiling MPI applications with" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&5
$as_echo "$as_me: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: MPI will disable the openib BTL at run-time if such a" >&5
$as_echo "$as_me: WARNING: MPI will disable the openib BTL at run-time if such a" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: combination is detected." >&5
$as_echo "$as_me: WARNING: combination is detected." >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: You have been warned." >&5
$as_echo "$as_me: WARNING: You have been warned." >&2;}
fi

fi

fi


    if test "$ompi_check_openib_happy" = "yes"; then


for ac_header in fcntl.h sys/poll.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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

else
  { $as_echo "$as_me:$LINENO: WARNING: fcntl.h sys/poll.h not found.  Can not build component." >&5
$as_echo "$as_me: WARNING: fcntl.h sys/poll.h not found.  Can not build component." >&2;}
                    ompi_check_openib_happy="no"
fi

done

fi


    if test "$ompi_check_openib_happy" = "yes"; then

    ompi_check_package_btl_ofud_save_CPPFLAGS="$CPPFLAGS"
    ompi_check_package_btl_ofud_save_LDFLAGS="$LDFLAGS"
    ompi_check_package_btl_ofud_save_LIBS="$LIBS"

    ompi_check_package_btl_ofud_orig_CPPFLAGS="$btl_ofud_CPPFLAGS"
    ompi_check_package_btl_ofud_orig_LDFLAGS="$btl_ofud_LDFLAGS"
    ompi_check_package_btl_ofud_orig_LIBS="$btl_ofud_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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
$as_echo_n "checking for infiniband/verbs.h... " >&6; }
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
$as_echo "$ac_cv_header_infiniband_verbs_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
$as_echo_n "checking infiniband/verbs.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
$as_echo_n "checking infiniband/verbs.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
$as_echo_n "checking for infiniband/verbs.h... " >&6; }
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_infiniband_verbs_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
$as_echo "$ac_cv_header_infiniband_verbs_h" >&6; }

fi
if test "x$ac_cv_header_infiniband_verbs_h" = x""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_ofud_CPPFLAGS="$btl_ofud_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
  { $as_echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
$as_echo_n "checking for infiniband/verbs.h... " >&6; }
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
$as_echo "$ac_cv_header_infiniband_verbs_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
$as_echo_n "checking infiniband/verbs.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
$as_echo_n "checking infiniband/verbs.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
$as_echo_n "checking for infiniband/verbs.h... " >&6; }
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_infiniband_verbs_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
$as_echo "$ac_cv_header_infiniband_verbs_h" >&6; }

fi
if test "x$ac_cv_header_infiniband_verbs_h" = x""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_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_openib_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
           { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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_ofud_save_LDFLAGS"
                  btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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_ofud_save_LDFLAGS"
                     btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_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_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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_ofud_save_LDFLAGS"
                          btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_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_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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_ofud_save_LDFLAGS"
                          btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  btl_ofud_LIBS="-libverbs "
           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_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_openib_libdir"
           LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
           { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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_ofud_save_LDFLAGS"
                  btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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_ofud_save_LDFLAGS"
                     btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_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_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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_ofud_save_LDFLAGS"
                          btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_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_ofud_LDFLAGS="$btl_ofud_LDFLAGS -L$ompi_check_package_libdir/lib64"
                     LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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_ofud_save_LDFLAGS"
                          btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
                          unset ac_cv_lib_ibverbs_ibv_open_device
fi

fi

fi

fi


    if test "$ompi_check_package_lib_happy" = "yes"; then
  btl_ofud_LIBS="-libverbs "
           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"
else
  btl_ofud_CPPFLAGS="$ompi_check_package_btl_ofud_orig_CPPFLAGS"
           btl_ofud_LDFLAGS="$ompi_check_package_btl_ofud_orig_LDFLAGS"
           btl_ofud_LIBS="$ompi_check_package_btl_ofud_orig_LIBS"
           ompi_check_openib_happy="no"
fi


    CPPFLAGS="$ompi_check_package_btl_ofud_save_CPPFLAGS"
    LDFLAGS="$ompi_check_package_btl_ofud_save_LDFLAGS"
    LIBS="$ompi_check_package_btl_ofud_save_LIBS"

fi


    CPPFLAGS="$CPPFLAGS $btl_ofud_CPPFLAGS"
    LDFLAGS="$LDFLAGS $btl_ofud_LDFLAGS"
    LIBS="$LIBS $btl_ofud_LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking number of arguments to ibv_create_cq" >&5
$as_echo_n "checking number of arguments to ibv_create_cq... " >&6; }
if test "${ompi_cv_func_ibv_create_cq_args+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_ibv_create_cq_args=5
else
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_ibv_create_cq_args=3
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_ibv_create_cq_args="unknown"
fi

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

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_ibv_create_cq_args" >&5
$as_echo "$ompi_cv_func_ibv_create_cq_args" >&6; }
           if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then
  { $as_echo "$as_me:$LINENO: WARNING: Can not determine number of args to ibv_create_cq." >&5
$as_echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;}
                  { $as_echo "$as_me:$LINENO: WARNING: Not building component." >&5
$as_echo "$as_me: WARNING: Not building component." >&2;}
                  ompi_check_openib_happy="no"
else

cat >>confdefs.h <<_ACEOF
#define OMPI_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args
_ACEOF

fi

fi


    # Set these up so that we can do an AC_DEFINE below
    # (unconditionally)
    btl_ofud_have_xrc=0
    btl_ofud_have_rdmacm=0
    btl_ofud_have_ibcm=0

    # If we have the openib stuff available, find out what we've got
    if test "$ompi_check_openib_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking whether IBV_EVENT_CLIENT_REREGISTER is declared" >&5
$as_echo_n "checking whether IBV_EVENT_CLIENT_REREGISTER is declared... " >&6; }
if test "${ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER+set}" = set; then
  $as_echo_n "(cached) " >&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 ()
{
#ifndef IBV_EVENT_CLIENT_REREGISTER
  (void) IBV_EVENT_CLIENT_REREGISTER;
#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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_IBV_EVENT_CLIENT_REREGISTER=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER=no
fi

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

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


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


fi




for ac_func in ibv_get_device_list ibv_resize_cq
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


           # struct ibv_device.transport_type was added in OFED v1.2
           { $as_echo "$as_me:$LINENO: checking for struct ibv_device.transport_type" >&5
$as_echo_n "checking for struct ibv_device.transport_type... " >&6; }
if test "${ac_cv_member_struct_ibv_device_transport_type+set}" = set; then
  $as_echo_n "(cached) " >&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 ()
{
static struct ibv_device ac_aggr;
if (ac_aggr.transport_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_ibv_device_transport_type=yes
else
  $as_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 ()
{
static struct ibv_device ac_aggr;
if (sizeof ac_aggr.transport_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_ibv_device_transport_type=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_member_struct_ibv_device_transport_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ibv_device_transport_type" >&5
$as_echo "$ac_cv_member_struct_ibv_device_transport_type" >&6; }
if test "x$ac_cv_member_struct_ibv_device_transport_type" = x""yes; then

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


fi


           # ibv_create_xrc_rcv_qp was added in OFED 1.3
           if test "$enable_connectx_xrc" = "yes"; then

for ac_func in ibv_create_xrc_rcv_qp
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 btl_ofud_have_xrc=1
fi
done

           fi

           # Do we have a recent enough RDMA CM?  Need to have the
           # rdma_get_peer_addr (inline) function (originally appeared
           # in OFED v1.3).
           if test "$enable_openib_rdmacm" = "yes"; then

for ac_header in rdma/rdma_cma.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:$LINENO: checking for rdma_create_id in -lrdmacm" >&5
$as_echo_n "checking for rdma_create_id in -lrdmacm... " >&6; }
if test "${ac_cv_lib_rdmacm_rdma_create_id+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrdmacm  $LIBS"
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 rdma_create_id ();
int
main ()
{
return rdma_create_id ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_rdmacm_rdma_create_id=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_rdmacm_rdma_create_id=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rdmacm_rdma_create_id" >&5
$as_echo "$ac_cv_lib_rdmacm_rdma_create_id" >&6; }
if test "x$ac_cv_lib_rdmacm_rdma_create_id" = x""yes; then
  { $as_echo "$as_me:$LINENO: checking for rdma_get_peer_addr" >&5
$as_echo_n "checking for rdma_get_peer_addr... " >&6; }
                         btl_ofud_msg=no
                         cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include "rdma/rdma_cma.h"

int
main ()
{
void *ret = (void*) rdma_get_peer_addr((struct rdma_cm_id*)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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  btl_ofud_have_rdmacm=1
                             btl_ofud_msg=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
                         { $as_echo "$as_me:$LINENO: result: $btl_ofud_msg" >&5
$as_echo "$btl_ofud_msg" >&6; }
fi

fi

done


                 if test "1" = "$btl_ofud_have_rdmacm"; then
                 btl_ofud_LIBS="-lrdmacm $btl_ofud_LIBS"
                 fi
           fi

           # Do we have IB CM? (note that OFED IB CM depends on RDMA
           # CM, so no need to add it into the other-libraries
           # argument to AC_CHECK_ LIB).  Note that we only want IBCM
           # starting with OFED 1.2 or so, so check for
           # ib_cm_open_device (introduced in libibcm 1.0/OFED 1.2).
           if test "$enable_openib_ibcm" = "yes"; then

for ac_header in infiniband/cm.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:$LINENO: checking for ib_cm_open_device in -libcm" >&5
$as_echo_n "checking for ib_cm_open_device in -libcm... " >&6; }
if test "${ac_cv_lib_ibcm_ib_cm_open_device+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libcm  $LIBS"
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 ib_cm_open_device ();
int
main ()
{
return ib_cm_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibcm_ib_cm_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibcm_ib_cm_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibcm_ib_cm_open_device" >&5
$as_echo "$ac_cv_lib_ibcm_ib_cm_open_device" >&6; }
if test "x$ac_cv_lib_ibcm_ib_cm_open_device" = x""yes; then
  btl_ofud_have_ibcm=1
                       btl_ofud_LIBS="-libcm $btl_ofud_LIBS"
fi

fi

done

           fi

fi


    # Check to see if <infiniband/driver.h> works.  It is known to
    # create problems on some platforms with some compilers (e.g.,
    # RHEL4U3 with the PGI 32 bit compiler).  Use undocumented (in AC
    # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in
    # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test
    # will fail if the header is present but not compilable, *but it
    # will not print the big scary warning*.  See
    # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html.
    if test "$ompi_check_openib_happy" = "yes"; then

for ac_header in infiniband/driver.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi


    { $as_echo "$as_me:$LINENO: checking if ConnectX XRC support is enabled" >&5
$as_echo_n "checking if ConnectX XRC support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_CONNECTX_XRC $btl_ofud_have_xrc
_ACEOF

    if test "1" = "$btl_ofud_have_xrc"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:$LINENO: checking if OpenFabrics RDMACM support is enabled" >&5
$as_echo_n "checking if OpenFabrics RDMACM support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_RDMACM $btl_ofud_have_rdmacm
_ACEOF

    if test "1" = "$btl_ofud_have_rdmacm"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:$LINENO: checking if OpenFabrics IBCM support is enabled" >&5
$as_echo_n "checking if OpenFabrics IBCM support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_IBCM $btl_ofud_have_ibcm
_ACEOF

    if test "1" = "$btl_ofud_have_ibcm"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi

    CPPFLAGS="$ompi_check_openib_btl_ofud_save_CPPFLAGS"
    LDFLAGS="$ompi_check_openib_btl_ofud_save_LDFLAGS"
    LIBS="$ompi_check_openib_btl_ofud_save_LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then
  btl_ofud_happy="yes"
else
  if test ! -z "$with_openib" -a "$with_openib" != "no"; then
  { $as_echo "$as_me:$LINENO: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&5
$as_echo "$as_me: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&2;}
                  { $as_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
$as_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;}
                  { { $as_echo "$as_me:$LINENO: error: Aborting." >&5
$as_echo "$as_me: error: Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi

           btl_ofud_happy="no"
fi



    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



    if test "$btl_ofud_happy" = "yes"; then
  btl_ofud_WRAPPER_EXTRA_LDFLAGS="$btl_ofud_LDFLAGS"
           btl_ofud_WRAPPER_EXTRA_LIBS="$btl_ofud_LIBS"
           should_build=1
else
  should_build=0
fi



    # substitute in the things needed to build OFUD





fi


    if test "$should_build" = "1"; then



    project=ompi
    framework=btl
    component=ofud

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:ofud can compile" >&5
$as_echo_n "checking if MCA component btl:ofud can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "ofud" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ofud\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ofud\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_btl" ; then
        if test "$DIRECT_btl" = "ofud" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ofud\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ofud\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 ofud"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_btl_ofud_DSO=1
else
  BUILD_btl_ofud_DSO=0
fi

     if test "$BUILD_btl_ofud_DSO" = "1"; then
  OMPI_BUILD_btl_ofud_DSO_TRUE=
  OMPI_BUILD_btl_ofud_DSO_FALSE='#'
else
  OMPI_BUILD_btl_ofud_DSO_TRUE='#'
  OMPI_BUILD_btl_ofud_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in cpcs have_threads; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"cpcs have_threads\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    cpcs="oob"




    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in btl_openib_msg; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"btl_openib_msg\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`


    #
    # Openfabrics support
    #

# Check whether --with-openib was given.
if test "${with_openib+set}" = set; then
  withval=$with_openib;
fi


    { $as_echo "$as_me:$LINENO: checking --with-openib value" >&5
$as_echo_n "checking --with-openib value... " >&6; }
    if test "$with_openib" = "yes" -o "$with_openib" = "no" -o "x$with_openib" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_openib"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_openib not found" >&5
$as_echo "$as_me: WARNING: Directory $with_openib not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_openib/include/infiniband/verbs.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_openib/include/infiniband/verbs.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_openib/include/infiniband/verbs.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_openib)" >&5
$as_echo "sanity check ok ($with_openib)" >&6; }

fi



fi



fi



# Check whether --with-openib-libdir was given.
if test "${with_openib_libdir+set}" = set; then
  withval=$with_openib_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-openib-libdir value" >&5
$as_echo_n "checking --with-openib-libdir value... " >&6; }
    if test "$with_openib_libdir" = "yes" -o "$with_openib_libdir" = "no" -o "x$with_openib_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_openib_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_openib_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_openib_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_openib_libdir/libibverbs.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_openib_libdir/libibverbs.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_openib_libdir/libibverbs.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_openib_libdir)" >&5
$as_echo "sanity check ok ($with_openib_libdir)" >&6; }

fi



fi



fi



    #
    # ConnectX XRC support
    #
    # Check whether --enable-openib-connectx-xrc was given.
if test "${enable_openib_connectx_xrc+set}" = set; then
  enableval=$enable_openib_connectx_xrc; enable_connectx_xrc="$enableval"
else
  enable_connectx_xrc="yes"
fi

    #
    # Openfabrics IBCM
    #
    # Check whether --enable-openib-ibcm was given.
if test "${enable_openib_ibcm+set}" = set; then
  enableval=$enable_openib_ibcm; enable_openib_ibcm="$enableval"
else
  enable_openib_ibcm="no"
fi

    #
    # Openfabrics RDMACM
    #
    # Check whether --enable-openib-rdmacm was given.
if test "${enable_openib_rdmacm+set}" = set; then
  enableval=$enable_openib_rdmacm; enable_openib_rdmacm="$enableval"
else
  enable_openib_rdmacm="yes"
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
  ompi_check_openib_happy="no"
else
  ompi_check_openib_happy="yes"
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"

    if test "$ompi_check_openib_happy" = "yes"; then
  if test "$THREAD_TYPE" != "posix" -a "$memory_ptmalloc2_happy" = "yes"; then
  if test "$enable_ptmalloc2_internal" = "yes"; then
  { $as_echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but" >&5
$as_echo "$as_me: WARNING: POSIX threads are disabled, but" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: --enable-ptmalloc2-internal was specified.  This will" >&5
$as_echo "$as_me: WARNING: --enable-ptmalloc2-internal was specified.  This will" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: cause memory corruption with OpenFabrics." >&5
$as_echo "$as_me: WARNING: cause memory corruption with OpenFabrics." >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: Not building component." >&5
$as_echo "$as_me: WARNING: Not building component." >&2;}
                         ompi_check_openib_happy="no"
else
  { $as_echo "$as_me:$LINENO: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&5
$as_echo "$as_me: WARNING: POSIX threads are disabled, but the ptmalloc2 memory" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: manager is being built.  Compiling MPI applications with" >&5
$as_echo "$as_me: WARNING: manager is being built.  Compiling MPI applications with" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&5
$as_echo "$as_me: WARNING: -lopenmpi-malloc will result in memory corruption; Open" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: MPI will disable the openib BTL at run-time if such a" >&5
$as_echo "$as_me: WARNING: MPI will disable the openib BTL at run-time if such a" >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: combination is detected." >&5
$as_echo "$as_me: WARNING: combination is detected." >&2;}
                         { $as_echo "$as_me:$LINENO: WARNING: You have been warned." >&5
$as_echo "$as_me: WARNING: You have been warned." >&2;}
fi

fi

fi


    if test "$ompi_check_openib_happy" = "yes"; then


for ac_header in fcntl.h sys/poll.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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

else
  { $as_echo "$as_me:$LINENO: WARNING: fcntl.h sys/poll.h not found.  Can not build component." >&5
$as_echo "$as_me: WARNING: fcntl.h sys/poll.h not found.  Can not build component." >&2;}
                    ompi_check_openib_happy="no"
fi

done

fi


    if test "$ompi_check_openib_happy" = "yes"; then

    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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
$as_echo_n "checking for infiniband/verbs.h... " >&6; }
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
$as_echo "$ac_cv_header_infiniband_verbs_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
$as_echo_n "checking infiniband/verbs.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
$as_echo_n "checking infiniband/verbs.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
$as_echo_n "checking for infiniband/verbs.h... " >&6; }
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_infiniband_verbs_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
$as_echo "$ac_cv_header_infiniband_verbs_h" >&6; }

fi
if test "x$ac_cv_header_infiniband_verbs_h" = x""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
  { $as_echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
$as_echo_n "checking for infiniband/verbs.h... " >&6; }
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
$as_echo "$ac_cv_header_infiniband_verbs_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
$as_echo_n "checking infiniband/verbs.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
$as_echo_n "checking infiniband/verbs.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
$as_echo_n "checking for infiniband/verbs.h... " >&6; }
if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_infiniband_verbs_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
$as_echo "$ac_cv_header_infiniband_verbs_h" >&6; }

fi
if test "x$ac_cv_header_infiniband_verbs_h" = x""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"
           { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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
  btl_openib_LIBS="-libverbs "
           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"
           { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
$as_echo_n "checking for ibv_open_device in -libverbs... " >&6; }
if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibverbs_ibv_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibverbs_ibv_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
$as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
if test "x$ac_cv_lib_ibverbs_ibv_open_device" = x""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
  btl_openib_LIBS="-libverbs "
           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"
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"

fi


    CPPFLAGS="$CPPFLAGS $btl_openib_CPPFLAGS"
    LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS"
    LIBS="$LIBS $btl_openib_LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking number of arguments to ibv_create_cq" >&5
$as_echo_n "checking number of arguments to ibv_create_cq... " >&6; }
if test "${ompi_cv_func_ibv_create_cq_args+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_ibv_create_cq_args=5
else
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_ibv_create_cq_args=3
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_ibv_create_cq_args="unknown"
fi

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

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_ibv_create_cq_args" >&5
$as_echo "$ompi_cv_func_ibv_create_cq_args" >&6; }
           if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then
  { $as_echo "$as_me:$LINENO: WARNING: Can not determine number of args to ibv_create_cq." >&5
$as_echo "$as_me: WARNING: Can not determine number of args to ibv_create_cq." >&2;}
                  { $as_echo "$as_me:$LINENO: WARNING: Not building component." >&5
$as_echo "$as_me: WARNING: Not building component." >&2;}
                  ompi_check_openib_happy="no"
else

cat >>confdefs.h <<_ACEOF
#define OMPI_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args
_ACEOF

fi

fi


    # Set these up so that we can do an AC_DEFINE below
    # (unconditionally)
    btl_openib_have_xrc=0
    btl_openib_have_rdmacm=0
    btl_openib_have_ibcm=0

    # If we have the openib stuff available, find out what we've got
    if test "$ompi_check_openib_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking whether IBV_EVENT_CLIENT_REREGISTER is declared" >&5
$as_echo_n "checking whether IBV_EVENT_CLIENT_REREGISTER is declared... " >&6; }
if test "${ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER+set}" = set; then
  $as_echo_n "(cached) " >&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 ()
{
#ifndef IBV_EVENT_CLIENT_REREGISTER
  (void) IBV_EVENT_CLIENT_REREGISTER;
#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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_IBV_EVENT_CLIENT_REREGISTER=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_have_decl_IBV_EVENT_CLIENT_REREGISTER=no
fi

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

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


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


fi




for ac_func in ibv_get_device_list ibv_resize_cq
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


           # struct ibv_device.transport_type was added in OFED v1.2
           { $as_echo "$as_me:$LINENO: checking for struct ibv_device.transport_type" >&5
$as_echo_n "checking for struct ibv_device.transport_type... " >&6; }
if test "${ac_cv_member_struct_ibv_device_transport_type+set}" = set; then
  $as_echo_n "(cached) " >&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 ()
{
static struct ibv_device ac_aggr;
if (ac_aggr.transport_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_ibv_device_transport_type=yes
else
  $as_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 ()
{
static struct ibv_device ac_aggr;
if (sizeof ac_aggr.transport_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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_ibv_device_transport_type=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_member_struct_ibv_device_transport_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ibv_device_transport_type" >&5
$as_echo "$ac_cv_member_struct_ibv_device_transport_type" >&6; }
if test "x$ac_cv_member_struct_ibv_device_transport_type" = x""yes; then

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


fi


           # ibv_create_xrc_rcv_qp was added in OFED 1.3
           if test "$enable_connectx_xrc" = "yes"; then

for ac_func in ibv_create_xrc_rcv_qp
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 btl_openib_have_xrc=1
fi
done

           fi

           # Do we have a recent enough RDMA CM?  Need to have the
           # rdma_get_peer_addr (inline) function (originally appeared
           # in OFED v1.3).
           if test "$enable_openib_rdmacm" = "yes"; then

for ac_header in rdma/rdma_cma.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:$LINENO: checking for rdma_create_id in -lrdmacm" >&5
$as_echo_n "checking for rdma_create_id in -lrdmacm... " >&6; }
if test "${ac_cv_lib_rdmacm_rdma_create_id+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrdmacm  $LIBS"
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 rdma_create_id ();
int
main ()
{
return rdma_create_id ();
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_rdmacm_rdma_create_id=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_rdmacm_rdma_create_id=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rdmacm_rdma_create_id" >&5
$as_echo "$ac_cv_lib_rdmacm_rdma_create_id" >&6; }
if test "x$ac_cv_lib_rdmacm_rdma_create_id" = x""yes; then
  { $as_echo "$as_me:$LINENO: checking for rdma_get_peer_addr" >&5
$as_echo_n "checking for rdma_get_peer_addr... " >&6; }
                         btl_openib_msg=no
                         cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include "rdma/rdma_cma.h"

int
main ()
{
void *ret = (void*) rdma_get_peer_addr((struct rdma_cm_id*)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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  btl_openib_have_rdmacm=1
                             btl_openib_msg=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
                         { $as_echo "$as_me:$LINENO: result: $btl_openib_msg" >&5
$as_echo "$btl_openib_msg" >&6; }
fi

fi

done


                 if test "1" = "$btl_openib_have_rdmacm"; then
                 btl_openib_LIBS="-lrdmacm $btl_openib_LIBS"
                 fi
           fi

           # Do we have IB CM? (note that OFED IB CM depends on RDMA
           # CM, so no need to add it into the other-libraries
           # argument to AC_CHECK_ LIB).  Note that we only want IBCM
           # starting with OFED 1.2 or so, so check for
           # ib_cm_open_device (introduced in libibcm 1.0/OFED 1.2).
           if test "$enable_openib_ibcm" = "yes"; then

for ac_header in infiniband/cm.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:$LINENO: checking for ib_cm_open_device in -libcm" >&5
$as_echo_n "checking for ib_cm_open_device in -libcm... " >&6; }
if test "${ac_cv_lib_ibcm_ib_cm_open_device+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-libcm  $LIBS"
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 ib_cm_open_device ();
int
main ()
{
return ib_cm_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ibcm_ib_cm_open_device=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ibcm_ib_cm_open_device=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ibcm_ib_cm_open_device" >&5
$as_echo "$ac_cv_lib_ibcm_ib_cm_open_device" >&6; }
if test "x$ac_cv_lib_ibcm_ib_cm_open_device" = x""yes; then
  btl_openib_have_ibcm=1
                       btl_openib_LIBS="-libcm $btl_openib_LIBS"
fi

fi

done

           fi

fi


    # Check to see if <infiniband/driver.h> works.  It is known to
    # create problems on some platforms with some compilers (e.g.,
    # RHEL4U3 with the PGI 32 bit compiler).  Use undocumented (in AC
    # 2.63) feature of AC_CHECK_HEADERS: if you explicitly pass in
    # AC_INCLUDES_DEFAULT as the 4th arg to AC_CHECK_HEADERS, the test
    # will fail if the header is present but not compilable, *but it
    # will not print the big scary warning*.  See
    # http://lists.gnu.org/archive/html/autoconf/2008-10/msg00143.html.
    if test "$ompi_check_openib_happy" = "yes"; then

for ac_header in infiniband/driver.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

fi


    { $as_echo "$as_me:$LINENO: checking if ConnectX XRC support is enabled" >&5
$as_echo_n "checking if ConnectX XRC support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_CONNECTX_XRC $btl_openib_have_xrc
_ACEOF

    if test "1" = "$btl_openib_have_xrc"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:$LINENO: checking if OpenFabrics RDMACM support is enabled" >&5
$as_echo_n "checking if OpenFabrics RDMACM support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_RDMACM $btl_openib_have_rdmacm
_ACEOF

    if test "1" = "$btl_openib_have_rdmacm"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:$LINENO: checking if OpenFabrics IBCM support is enabled" >&5
$as_echo_n "checking if OpenFabrics IBCM support is enabled... " >&6; }

cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_IBCM $btl_openib_have_ibcm
_ACEOF

    if test "1" = "$btl_openib_have_ibcm"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi

    CPPFLAGS="$ompi_check_openib_btl_openib_save_CPPFLAGS"
    LDFLAGS="$ompi_check_openib_btl_openib_save_LDFLAGS"
    LIBS="$ompi_check_openib_btl_openib_save_LIBS"

    if test "$ompi_check_openib_happy" = "yes"; then
  btl_openib_happy="yes"
else
  if test ! -z "$with_openib" -a "$with_openib" != "no"; then
  { $as_echo "$as_me:$LINENO: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&5
$as_echo "$as_me: WARNING: OpenFabrics support requested (via --with-openib) but not found." >&2;}
                  { $as_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
$as_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;}
                  { { $as_echo "$as_me:$LINENO: error: Aborting." >&5
$as_echo "$as_me: error: Aborting." >&2;}
   { (exit 1); exit 1; }; }
fi

           btl_openib_happy="no"
fi



    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done



    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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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


    { $as_echo "$as_me:$LINENO: checking for thread support (needed for ibcm/rdmacm)" >&5
$as_echo_n "checking for thread support (needed for ibcm/rdmacm)... " >&6; }
    have_threads=`echo $THREAD_TYPE | awk '{ print $1 }'`
    if test "x$have_threads" = "x"; then
        have_threads=none
    fi
    { $as_echo "$as_me:$LINENO: result: $have_threads" >&5
$as_echo "$have_threads" >&6; }

    if test "$btl_openib_happy" = "yes"; then
  if test "x$btl_openib_have_xrc" = "x1"; then
              cpcs="$cpcs xoob"
          fi
          if test "x$btl_openib_have_rdmacm" = "x1" -a \
                  "$have_threads" != "none"; then
              cpcs="$cpcs rdmacm"
          fi
          if test "x$btl_openib_have_ibcm" = "x1" -a \
                  "$have_threads" != "none"; then
              cpcs="$cpcs ibcm"
          fi
          { $as_echo "$as_me:$LINENO: checking which openib btl cpcs will be built" >&5
$as_echo_n "checking which openib btl cpcs will be built... " >&6; }
          { $as_echo "$as_me:$LINENO: result: $cpcs" >&5
$as_echo "$cpcs" >&6; }
fi


    # substitute in the things needed to build openib






    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:openib can compile" >&5
$as_echo_n "checking if MCA component btl:openib can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "openib" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



     if test $should_build -eq 1 -a "x$btl_openib_have_xrc" = "x1"; then
  MCA_btl_openib_have_xrc_TRUE=
  MCA_btl_openib_have_xrc_FALSE='#'
else
  MCA_btl_openib_have_xrc_TRUE='#'
  MCA_btl_openib_have_xrc_FALSE=
fi

     if test $should_build -eq 1 -a "x$btl_openib_have_rdmacm" = "x1"; then
  MCA_btl_openib_have_rdmacm_TRUE=
  MCA_btl_openib_have_rdmacm_FALSE='#'
else
  MCA_btl_openib_have_rdmacm_TRUE='#'
  MCA_btl_openib_have_rdmacm_FALSE=
fi

     if test $should_build -eq 1 -a "x$btl_openib_have_ibcm" = "x1"; then
  MCA_btl_openib_have_ibcm_TRUE=
  MCA_btl_openib_have_ibcm_FALSE='#'
else
  MCA_btl_openib_have_ibcm_TRUE='#'
  MCA_btl_openib_have_ibcm_FALSE=
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_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-portals value" >&5
$as_echo_n "checking --with-portals value... " >&6; }
    if test "$with_portals" = "yes" -o "$with_portals" = "no" -o "x$with_portals" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_portals"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_portals not found" >&5
$as_echo "$as_me: WARNING: Directory $with_portals not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_portals/include/portals3.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_portals/include/portals3.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_portals/include/portals3.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_portals)" >&5
$as_echo "sanity check ok ($with_portals)" >&6; }

fi



fi



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


    { $as_echo "$as_me:$LINENO: checking for Portals configuration" >&5
$as_echo_n "checking for Portals configuration... " >&6; }
    if test "$with_portals_config" = "" ; then
        with_portals_config="utcp"
    elif test "$with_portals_config" = "redstorm" ; then
        with_portals_config="xt3"
    elif test "$with_portals_config" = "cnl_modex" ; then
	with_portals_config="xt3-modex"
    fi
    OMPI_PORTALS_UTCP=0
    OMPI_PORTALS_CRAYXT3=0
    OMPI_PORTALS_CRAYXT3_MODEX=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=
            { $as_echo "$as_me:$LINENO: result: utcp" >&5
$as_echo "utcp" >&6; }
            ;;
        "xt3")
            OMPI_PORTALS_CRAYXT3=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:$LINENO: result: Cray XT3" >&5
$as_echo "Cray XT3" >&6; }
            ;;
        "xt3-modex")
            OMPI_PORTALS_CRAYXT3_MODEX=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:$LINENO: result: Cray XT3 - Modex" >&5
$as_echo "Cray XT3 - Modex" >&6; }
            ;;
        *)
            # ok to call ERROR here - the user specified something invalid.
            # that should be brought to his attention
            { { $as_echo "$as_me:$LINENO: error: unknown Portals configuration.  Can not continue" >&5
$as_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



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX
_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 $check_portals_LIBS"

for ac_header in ${check_portals_header_prefix}portals3.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:$LINENO: checking if possible to link Portals application" >&5
$as_echo_n "checking if possible to link Portals application... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
               ompi_check_portals_happy="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
               ompi_check_portals_happy="no"
fi

rm -rf conftest.dSYM
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


    # Deal with static-only Portals UTCP libs.  See note in
    # ompi/mca/common/portals/configure.m4.  Then possibly cry.
    if test "$with_portals_config" = "utcp" ; then
        if test "btl_portals" != "common_portals" ; then
            check_portals_LIBS=
        fi
    fi

    # 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
  { { $as_echo "$as_me:$LINENO: error: Portals support requested but not found.  Aborting" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:portals can compile" >&5
$as_echo_n "checking if MCA component btl:portals can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "portals" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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)
    { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5
$as_echo_n "checking for struct sockaddr_in... " >&6; }
if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_struct_sockaddr_in=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof (struct sockaddr_in))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

int
main ()
{
if (sizeof ((struct sockaddr_in)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_struct_sockaddr_in=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5
$as_echo "$ac_cv_type_struct_sockaddr_in" >&6; }
if test "x$ac_cv_type_struct_sockaddr_in" = x""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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:tcp can compile" >&5
$as_echo_n "checking if MCA component btl:tcp can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "tcp" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-udapl value" >&5
$as_echo_n "checking --with-udapl value... " >&6; }
    if test "$with_udapl" = "yes" -o "$with_udapl" = "no" -o "x$with_udapl" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_udapl"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_udapl not found" >&5
$as_echo "$as_me: WARNING: Directory $with_udapl not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_udapl/include/dat/udat.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_udapl/include/dat/udat.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_udapl/include/dat/udat.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_udapl)" >&5
$as_echo "sanity check ok ($with_udapl)" >&6; }

fi



fi



fi



# Check whether --with-udapl-libdir was given.
if test "${with_udapl_libdir+set}" = set; then
  withval=$with_udapl_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-udapl-libdir value" >&5
$as_echo_n "checking --with-udapl-libdir value... " >&6; }
    if test "$with_udapl_libdir" = "yes" -o "$with_udapl_libdir" = "no" -o "x$with_udapl_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_udapl_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_udapl_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_udapl_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_udapl_libdir/libdat.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_udapl_libdir/libdat.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_udapl_libdir/libdat.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_udapl_libdir)" >&5
$as_echo "sanity check ok ($with_udapl_libdir)" >&6; }

fi



fi



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*)
                  { $as_echo "$as_me:$LINENO: WARNING: On Linux and --with-udapl was not specified" >&5
$as_echo "$as_me: WARNING: On Linux and --with-udapl was not specified" >&2;}
                  { $as_echo "$as_me:$LINENO: WARNING: Not building the udapl BTL" >&5
$as_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
  ompi_check_udapl_happy="no"
else
  ompi_check_udapl_happy="yes"
fi



    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"

    if test "$ompi_check_udapl_happy" = "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


    # 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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_dat_udat_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for dat/udat.h" >&5
$as_echo_n "checking for dat/udat.h... " >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
$as_echo "$ac_cv_header_dat_udat_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking dat/udat.h usability" >&5
$as_echo_n "checking dat/udat.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking dat/udat.h presence" >&5
$as_echo_n "checking dat/udat.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: dat/udat.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: dat/udat.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: dat/udat.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for dat/udat.h" >&5
$as_echo_n "checking for dat/udat.h... " >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_dat_udat_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
$as_echo "$ac_cv_header_dat_udat_h" >&6; }

fi
if test "x$ac_cv_header_dat_udat_h" = x""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
  { $as_echo "$as_me:$LINENO: checking for dat/udat.h" >&5
$as_echo_n "checking for dat/udat.h... " >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
$as_echo "$ac_cv_header_dat_udat_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking dat/udat.h usability" >&5
$as_echo_n "checking dat/udat.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking dat/udat.h presence" >&5
$as_echo_n "checking dat/udat.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: dat/udat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: dat/udat.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: dat/udat.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: dat/udat.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: dat/udat.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: dat/udat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: dat/udat.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: dat/udat.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for dat/udat.h" >&5
$as_echo_n "checking for dat/udat.h... " >&6; }
if test "${ac_cv_header_dat_udat_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_dat_udat_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dat_udat_h" >&5
$as_echo "$ac_cv_header_dat_udat_h" >&6; }

fi
if test "x$ac_cv_header_dat_udat_h" = x""yes; then
  ompi_check_udapl_happy="yes"
else
  ompi_check_udapl_happy="no"
fi


else
  ompi_check_udapl_happy="yes"
fi

    unset ompi_check_package_header_happy
fi


    if test "$ompi_check_udapl_happy" = "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"
           { $as_echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""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
  btl_udapl_LIBS="-ldat "
           ompi_check_udapl_happy="yes"
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"
           { $as_echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for dat_registry_list_providers in -ldat" >&5
$as_echo_n "checking for dat_registry_list_providers in -ldat... " >&6; }
if test "${ac_cv_lib_dat_dat_registry_list_providers+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dat_dat_registry_list_providers=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dat_dat_registry_list_providers=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dat_dat_registry_list_providers" >&5
$as_echo "$ac_cv_lib_dat_dat_registry_list_providers" >&6; }
if test "x$ac_cv_lib_dat_dat_registry_list_providers" = x""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
  btl_udapl_LIBS="-ldat -ldapl"
           ompi_check_udapl_happy="yes"
else
  ompi_check_udapl_happy="no"
fi



fi



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 test "$ompi_check_udapl_happy" = "yes"; then
  btl_udapl_happy="yes"
else
  if test ! -z "$with_udapl" -a "$with_udapl" != "no"; then
  { { $as_echo "$as_me:$LINENO: error: uDAPL support requested but not found.  Aborting" >&5
$as_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
  { $as_echo "$as_me:$LINENO: WARNING: Removed -pedantic from CFLAGS for
uDAPL component because the uDAPL headers are not fully ISO C" >&5
$as_echo "$as_me: WARNING: Removed -pedantic from CFLAGS for
uDAPL component because the uDAPL headers are not fully ISO C" >&2;}
fi


    # Test for uDAPL relaxed ordered specific symbols
    if test "$btl_udapl_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for uDAPL DAT_MEM_TYPE_SO_VIRTUAL" >&5
$as_echo_n "checking for uDAPL DAT_MEM_TYPE_SO_VIRTUAL... " >&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>
int
main ()
{
DAT_MEM_TYPE dmt = DAT_MEM_TYPE_SO_VIRTUAL;
  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
                    btl_udapl_ro_aware=1
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                    btl_udapl_ro_aware=0
fi

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

cat >>confdefs.h <<_ACEOF
#define HAVE_DAT_MEM_TYPE_SO_VIRTUAL $btl_udapl_ro_aware
_ACEOF

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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:udapl can compile" >&5
$as_echo_n "checking if MCA component btl:udapl can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "udapl" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"udapl\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"udapl\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"udapl\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"udapl\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component btl:$component can compile" >&5
$as_echo_n "checking if MCA component btl:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_btl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework coll" >&5
$as_echo_n "checking for no configure components in framework coll... " >&6; }
    { $as_echo "$as_me:$LINENO: result: basic, hierarch, inter, self, sm, sync, tuned" >&5
$as_echo "basic, hierarch, inter, self, sm, sync, tuned" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework coll" >&5
$as_echo_n "checking for m4 configure components in framework coll... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component coll:basic can compile" >&5
$as_echo_n "checking if MCA component coll:basic can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "basic" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components basic"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_basic_DSO=1
    else
        BUILD_coll_basic_DSO=0
    fi
     if test "$BUILD_coll_basic_DSO" = "1"; then
  OMPI_BUILD_coll_basic_DSO_TRUE=
  OMPI_BUILD_coll_basic_DSO_FALSE='#'
else
  OMPI_BUILD_coll_basic_DSO_TRUE='#'
  OMPI_BUILD_coll_basic_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:hierarch (no configuration)"




    project=ompi
    framework=coll
    component=hierarch
    component_path="$srcdir/$project/mca/$framework/$component"
    want_component=0

    # build if:
    # - the component type is direct and we are that component
    # - there is no ompi_ignore file
    # - there is an ompi_ignore, but there is an empty ompi_unignore
    # - there is an ompi_ignore, but username is in ompi_unignore
    if test -d $component_path ; then
        # decide if we want the component to be built or not.  This
        # is spread out because some of the logic is a little complex
        # and test's syntax isn't exactly the greatest.  We want to
        # build the component by default.
        want_component=1
        if test -f $component_path/.ompi_ignore ; then
            # If there is an ompi_ignore file, don't build
            # the component.  Note that this decision can be
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=hierarch

    # Is this component going to built staic or shared?  $component
    # might not be known until configure time, so have to use eval
    # tricks - can't set variable names at autogen time.
    str="SHARED_FRAMEWORK=\$DSO_$framework"
    eval $str
    str="SHARED_COMPONENT=\$DSO_${framework}_$component"
    eval $str

    str="STATIC_FRAMEWORK=\$STATIC_$framework"
    eval $str
    str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
    eval $str

    shared_mode_override=static

    # Setup for either shared or static
    if test "$STATIC_FRAMEWORK" = "1" -o \
        "$STATIC_COMPONENT" = "1" -o \
        "$STATIC_all" = "1" ; then
        compile_mode="static"
    elif test "$shared_mode_override" = "dso" -o \
        "$SHARED_FRAMEWORK" = "1" -o \
        "$SHARED_COMPONENT" = "1" -o \
        "$DSO_all" = "1"; then
        compile_mode="dso"
    else
        compile_mode="static"
    fi

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=hierarch

    # See if it dropped an output file for us to pick up some
    # shell variables in.
    infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"

    # Add this subdir to the mast list of all MCA component subdirs
    all_components="$all_components $component"

    if test "$compile_mode" = "dso" ; then
        dso_components="$dso_components $component"
    else
        static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
        echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
        echo "  &mca_${framework}_${component}_component, " >> $outfile.struct
        static_components="$static_components $component"
    fi

    # Output pretty results
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component coll:hierarch can compile" >&5
$as_echo_n "checking if MCA component coll:hierarch can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "hierarch" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"hierarch\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "hierarch" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"hierarch\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

        # add component to all component list
        all_components="$all_components hierarch"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_hierarch_DSO=1
    else
        BUILD_coll_hierarch_DSO=0
    fi
     if test "$BUILD_coll_hierarch_DSO" = "1"; then
  OMPI_BUILD_coll_hierarch_DSO_TRUE=
  OMPI_BUILD_coll_hierarch_DSO_FALSE='#'
else
  OMPI_BUILD_coll_hierarch_DSO_TRUE='#'
  OMPI_BUILD_coll_hierarch_DSO_FALSE=
fi


    unset compile_mode

    ompi_show_subsubsubtitle "MCA component coll:inter (no configuration)"




    project=ompi
    framework=coll
    component=inter
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=inter

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=inter

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component coll:inter can compile" >&5
$as_echo_n "checking if MCA component coll:inter can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "inter" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"inter\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"inter\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "inter" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"inter\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"inter\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 inter"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_inter_DSO=1
    else
        BUILD_coll_inter_DSO=0
    fi
     if test "$BUILD_coll_inter_DSO" = "1"; then
  OMPI_BUILD_coll_inter_DSO_TRUE=
  OMPI_BUILD_coll_inter_DSO_FALSE='#'
else
  OMPI_BUILD_coll_inter_DSO_TRUE='#'
  OMPI_BUILD_coll_inter_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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component coll:self can compile" >&5
$as_echo_n "checking if MCA component coll:self can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "self" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component coll:sm can compile" >&5
$as_echo_n "checking if MCA component coll:sm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "sm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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:sync (no configuration)"




    project=ompi
    framework=coll
    component=sync
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=sync

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=coll
    component=sync

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component coll:sync can compile" >&5
$as_echo_n "checking if MCA component coll:sync can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "sync" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"sync\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sync\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_coll" ; then
        if test "$DIRECT_coll" = "sync" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"sync\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sync\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 sync"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_coll_sync_DSO=1
    else
        BUILD_coll_sync_DSO=0
    fi
     if test "$BUILD_coll_sync_DSO" = "1"; then
  OMPI_BUILD_coll_sync_DSO_TRUE=
  OMPI_BUILD_coll_sync_DSO_FALSE='#'
else
  OMPI_BUILD_coll_sync_DSO_TRUE='#'
  OMPI_BUILD_coll_sync_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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component coll:tuned can compile" >&5
$as_echo_n "checking if MCA component coll:tuned can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "tuned" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tuned\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"tuned\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_coll" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component coll:$component can compile" >&5
$as_echo_n "checking if MCA component coll:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_coll" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework common" >&5
$as_echo_n "checking for no configure components in framework common... " >&6; }
    { $as_echo "$as_me:$LINENO: result: sm" >&5
$as_echo "sm" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework common" >&5
$as_echo_n "checking for m4 configure components in framework common... " >&6; }
    { $as_echo "$as_me:$LINENO: result: mx, portals" >&5
$as_echo "mx, portals" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_common" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component common:sm can compile" >&5
$as_echo_n "checking if MCA component common:sm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_common" = "sm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_common" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-mx value" >&5
$as_echo_n "checking --with-mx value... " >&6; }
    if test "$with_mx" = "yes" -o "$with_mx" = "no" -o "x$with_mx" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_mx not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_mx/include/myriexpress.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_mx)" >&5
$as_echo "sanity check ok ($with_mx)" >&6; }

fi



fi



fi



# Check whether --with-mx-libdir was given.
if test "${with_mx_libdir+set}" = set; then
  withval=$with_mx_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-mx-libdir value" >&5
$as_echo_n "checking --with-mx-libdir value... " >&6; }
    if test "$with_mx_libdir" = "yes" -o "$with_mx_libdir" = "no" -o "x$with_mx_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_mx_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_mx_libdir/libmyriexpress.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_mx_libdir)" >&5
$as_echo "sanity check ok ($with_mx_libdir)" >&6; }

fi



fi



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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_myriexpress_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h usability" >&5
$as_echo_n "checking myriexpress.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h presence" >&5
$as_echo_n "checking myriexpress.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_myriexpress_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }

fi
if test "x$ac_cv_header_myriexpress_h" = x""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
  { $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h usability" >&5
$as_echo_n "checking myriexpress.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h presence" >&5
$as_echo_n "checking myriexpress.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_myriexpress_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }

fi
if test "x$ac_cv_header_myriexpress_h" = x""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"
           { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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
  common_mx_LIBS="-lmyriexpress "
           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"
           { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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
  common_mx_LIBS="-lmyriexpress "
           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"
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


    CPPFLAGS="$CPPFLAGS $common_mx_CPPFLAGS"
    LDFLAGS="$LDFLAGS $common_mx_LDFLAGS"
    LIBS="$LIBS $common_mx_LIBS"

    # need at least version 1.0
    if test "ompi_check_mx_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5
$as_echo_n "checking for MX version 1.0 or later... " >&6; }
if test "${ompi_cv_mx_version_ok+set}" = set; then
  $as_echo_n "(cached) " >&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 <myriexpress.h>

int
main ()
{

#if MX_API < 0x300
#error "Version less than 0x300"
#endif

  ;
  return 0;
}
_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  ompi_cv_mx_version_ok="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ompi_cv_mx_version_ok="no"
fi

rm -f conftest.err conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_mx_version_ok" >&5
$as_echo "$ompi_cv_mx_version_ok" >&6; }
fi

    if test "$ompi_cv_mx_version_ok" = "no"; then
  ompi_check_mx_happy="no"
fi


    if test "$ompi_check_mx_happy" = "yes"; then

for ac_header in mx_extensions.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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


for ac_func in mx_forget mx_register_unexp_handler
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    { $as_echo "$as_me:$LINENO: checking for mx_open_board" >&5
$as_echo_n "checking for mx_open_board... " >&6; }
if test "${ompi_cv_func_mx_open_board+set}" = set; then
  $as_echo_n "(cached) " >&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 <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__fops.h>

int
main ()
{

mx_open_board(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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_mx_open_board="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_mx_open_board="no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_mx_open_board" >&5
$as_echo "$ompi_cv_func_mx_open_board" >&6; }

    { $as_echo "$as_me:$LINENO: checking for mx__get_mapper_state" >&5
$as_echo_n "checking for mx__get_mapper_state... " >&6; }
if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then
  $as_echo_n "(cached) " >&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 <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__driver_interface.h>

int
main ()
{

mx__get_mapper_state(NULL, 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_mx__get_mapper_state="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_mx__get_mapper_state="no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_mx__get_mapper_state" >&5
$as_echo "$ompi_cv_func_mx__get_mapper_state" >&6; }

    if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then
  mx_provide_mapper_state=1

else
  mx_provide_mapper_state=0

fi


cat >>confdefs.h <<_ACEOF
#define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state
_ACEOF


else
  { $as_echo "$as_me:$LINENO: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&5
$as_echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&2;}
fi

done

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
  { $as_echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: MX support requested but not found.  Aborting" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component common:mx can compile" >&5
$as_echo_n "checking if MCA component common:mx can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_common" = "mx" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_common" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-portals value" >&5
$as_echo_n "checking --with-portals value... " >&6; }
    if test "$with_portals" = "yes" -o "$with_portals" = "no" -o "x$with_portals" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_portals"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_portals not found" >&5
$as_echo "$as_me: WARNING: Directory $with_portals not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_portals/include/portals3.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_portals/include/portals3.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_portals/include/portals3.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_portals)" >&5
$as_echo "sanity check ok ($with_portals)" >&6; }

fi



fi



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


    { $as_echo "$as_me:$LINENO: checking for Portals configuration" >&5
$as_echo_n "checking for Portals configuration... " >&6; }
    if test "$with_portals_config" = "" ; then
        with_portals_config="utcp"
    elif test "$with_portals_config" = "redstorm" ; then
        with_portals_config="xt3"
    elif test "$with_portals_config" = "cnl_modex" ; then
	with_portals_config="xt3-modex"
    fi
    OMPI_PORTALS_UTCP=0
    OMPI_PORTALS_CRAYXT3=0
    OMPI_PORTALS_CRAYXT3_MODEX=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=
            { $as_echo "$as_me:$LINENO: result: utcp" >&5
$as_echo "utcp" >&6; }
            ;;
        "xt3")
            OMPI_PORTALS_CRAYXT3=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:$LINENO: result: Cray XT3" >&5
$as_echo "Cray XT3" >&6; }
            ;;
        "xt3-modex")
            OMPI_PORTALS_CRAYXT3_MODEX=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:$LINENO: result: Cray XT3 - Modex" >&5
$as_echo "Cray XT3 - Modex" >&6; }
            ;;
        *)
            # ok to call ERROR here - the user specified something invalid.
            # that should be brought to his attention
            { { $as_echo "$as_me:$LINENO: error: unknown Portals configuration.  Can not continue" >&5
$as_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



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX
_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 $check_portals_LIBS"

for ac_header in ${check_portals_header_prefix}portals3.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:$LINENO: checking if possible to link Portals application" >&5
$as_echo_n "checking if possible to link Portals application... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
               ompi_check_portals_happy="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
               ompi_check_portals_happy="no"
fi

rm -rf conftest.dSYM
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


    # Deal with static-only Portals UTCP libs.  See note in
    # ompi/mca/common/portals/configure.m4.  Then possibly cry.
    if test "$with_portals_config" = "utcp" ; then
        if test "common_portals" != "common_portals" ; then
            check_portals_LIBS=
        fi
    fi

    # 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
  { { $as_echo "$as_me:$LINENO: error: Portals support requested but not found.  Aborting" >&5
$as_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" -a "$with_portals_config" = "utcp" ; then
        # Portals interface
        symbols="PtlInit PtlFini PtlNIInit"
        symbols="$symbols PtlNIFini PtlNIStatus PtlNIDist PtlNIHandle"
        symbols="$symbols PtlGetUid PtlGetId PtlGetJid "
        symbols="$symbols PtlMEAttach PtlMEAttachAny PtlMEInsert PtlMEUnlink"
        symbols="$symbols PtlMDAttach PtlMDBind PtlMDUnlink PtlMDUpdate"
        symbols="$symbols PtlEQAlloc PtlEQFree PtlEQGet PtlEQWait"
        symbols="$symbols PtlEQPoll PtlACEntry"
        symbols="$symbols PtlPut PtlPutRegion PtlGet PtlGetRegon PtlGetPut"

        # Portals reference implementation debugging stuff
        symbols="$symbols PtlMEDump PtlNIEqDump PtlTblDump PtlNIDebug"
        symbols="$symbols PtlErrorStr PtlEventKindStr PtlNIFailStr"

        # Portals reference implementation RTE interface
        symbols="$symbols PtlGetNIDMap PtlGetPIDMap PtlGetRank PtlGetRankId"
        symbols="$symbols PtlSetJID PtlSetNIDMap PtlSetPIDMap PtlSetRank"

        flags=
        for symbol in $symbols ; do
            case $host in
                *-darwin*)
                    flags="$flags -Wl,-u,=_$symbol"
                    ;;
                *-linux*)
                    flags="$flags -Wl,-undefined=$symbol"
                    ;;
            esac
        done

        OMPI_LIBMPI_EXTRA_LDFLAGS="$common_portals_LDFLAGS $flags"
        OMPI_LIBMPI_EXTRA_LIBS="$common_portals_LIBS"

        commmon_portals_LIBS=
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component common:portals can compile" >&5
$as_echo_n "checking if MCA component common:portals can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_common" = "portals" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_common" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component common:$component can compile" >&5
$as_echo_n "checking if MCA component common:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_common" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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 "crcp" = "common" ; then
                              MCA_ompi_FRAMEWORKS="crcp $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/crcp $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_crcp_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_crcp_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_crcp_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS crcp"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/crcp"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_crcp_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_crcp_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_crcp_STATIC_SUBDIRS)"
                          fi
                          if test "crcp" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/crcp/libmca_crcp.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_crcp_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework crcp"

    # 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 "crcp" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/crcp/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework crcp" >&5
$as_echo_n "checking for no configure components in framework crcp... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework crcp" >&5
$as_echo_n "checking for m4 configure components in framework crcp... " >&6; }
    { $as_echo "$as_me:$LINENO: result: bkmrk" >&5
$as_echo "bkmrk" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component crcp:bkmrk (m4 configuration macro)"




    project=ompi
    framework=crcp
    component=bkmrk
    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
            # overridden 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_crcp" ; then
            if test "$DIRECT_crcp" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=crcp
    component=bkmrk

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crcp" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    # If we don't want FT, don't compile this component
    if test "$ompi_want_ft" = "1"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then



    project=ompi
    framework=crcp
    component=bkmrk

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_crcp" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_crcp" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component crcp:bkmrk can compile" >&5
$as_echo_n "checking if MCA component crcp:bkmrk can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crcp" = "bkmrk" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"bkmrk\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bkmrk\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_crcp" ; then
        if test "$DIRECT_crcp" = "bkmrk" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"bkmrk\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"bkmrk\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 bkmrk"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_crcp_bkmrk_DSO=1
else
  BUILD_crcp_bkmrk_DSO=0
fi

     if test "$BUILD_crcp_bkmrk_DSO" = "1"; then
  OMPI_BUILD_crcp_bkmrk_DSO_TRUE=
  OMPI_BUILD_crcp_bkmrk_DSO_FALSE='#'
else
  OMPI_BUILD_crcp_bkmrk_DSO_TRUE='#'
  OMPI_BUILD_crcp_bkmrk_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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 "1" != "0"; then

    for component_path in $srcdir/ompi/mca/crcp/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component crcp:$component (need to configure)"




    project=ompi
    framework=crcp
    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
            # overridden 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_crcp" ; then
            if test "$DIRECT_crcp" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=crcp
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_crcp" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/crcp/$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/crcp/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=crcp
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_crcp" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_crcp" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component crcp:$component can compile" >&5
$as_echo_n "checking if MCA component crcp:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_crcp" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_crcp" ; then
        if test "$DIRECT_crcp" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_crcp_ALL_COMPONENTS="$all_components"
    MCA_crcp_STATIC_COMPONENTS="$static_components"
    MCA_crcp_DSO_COMPONENTS="$dso_components"
    MCA_crcp_STATIC_LTLIBS="$static_ltlibs"







    MCA_crcp_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_crcp_ALL_SUBDIRS="$MCA_crcp_ALL_SUBDIRS mca/crcp/$item"
    done



    MCA_crcp_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_crcp_STATIC_SUBDIRS="$MCA_crcp_STATIC_SUBDIRS mca/crcp/$item"
    done



    MCA_crcp_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_crcp_DSO_SUBDIRS="$MCA_crcp_DSO_SUBDIRS mca/crcp/$item"
    done



    # 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 "crcp" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_crcp_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 "dpm" = "common" ; then
                              MCA_ompi_FRAMEWORKS="dpm $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/dpm $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_dpm_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_dpm_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_dpm_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS dpm"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/dpm"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_dpm_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_dpm_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_dpm_STATIC_SUBDIRS)"
                          fi
                          if test "dpm" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/dpm/libmca_dpm.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_dpm_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework dpm"

    # 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 "dpm" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/dpm/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework dpm" >&5
$as_echo_n "checking for no configure components in framework dpm... " >&6; }
    { $as_echo "$as_me:$LINENO: result: orte" >&5
$as_echo "orte" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework dpm" >&5
$as_echo_n "checking for m4 configure components in framework dpm... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component dpm:orte (no configuration)"




    project=ompi
    framework=dpm
    component=orte
    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
            # overridden 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_dpm" ; then
            if test "$DIRECT_dpm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=dpm
    component=orte

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_dpm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=dpm
    component=orte

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_dpm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_dpm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component dpm:orte can compile" >&5
$as_echo_n "checking if MCA component dpm:orte can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_dpm" = "orte" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_dpm" ; then
        if test "$DIRECT_dpm" = "orte" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 orte"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_dpm_orte_DSO=1
    else
        BUILD_dpm_orte_DSO=0
    fi
     if test "$BUILD_dpm_orte_DSO" = "1"; then
  OMPI_BUILD_dpm_orte_DSO_TRUE=
  OMPI_BUILD_dpm_orte_DSO_FALSE='#'
else
  OMPI_BUILD_dpm_orte_DSO_TRUE='#'
  OMPI_BUILD_dpm_orte_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; then

    for component_path in $srcdir/ompi/mca/dpm/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component dpm:$component (need to configure)"




    project=ompi
    framework=dpm
    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
            # overridden 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_dpm" ; then
            if test "$DIRECT_dpm" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=dpm
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_dpm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/dpm/$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/dpm/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=dpm
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_dpm" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_dpm" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component dpm:$component can compile" >&5
$as_echo_n "checking if MCA component dpm:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_dpm" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_dpm" ; then
        if test "$DIRECT_dpm" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_dpm_ALL_COMPONENTS="$all_components"
    MCA_dpm_STATIC_COMPONENTS="$static_components"
    MCA_dpm_DSO_COMPONENTS="$dso_components"
    MCA_dpm_STATIC_LTLIBS="$static_ltlibs"







    MCA_dpm_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_dpm_ALL_SUBDIRS="$MCA_dpm_ALL_SUBDIRS mca/dpm/$item"
    done



    MCA_dpm_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_dpm_STATIC_SUBDIRS="$MCA_dpm_STATIC_SUBDIRS mca/dpm/$item"
    done



    MCA_dpm_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_dpm_DSO_SUBDIRS="$MCA_dpm_DSO_SUBDIRS mca/dpm/$item"
    done



    # 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 "dpm" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_dpm_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)"

    # Check whether --enable-mpi-io was given.
if test "${enable_mpi_io+set}" = set; then
  enableval=$enable_mpi_io;
fi


    if test "$enable_mpi_io" != "no"; then
  define_mpi_io=1
           OMPI_MPIF_MPI_IO_INCLUDE="include \"mpif-mpi-io.h\""
else
  define_mpi_io=0
           OMPI_MPIF_MPI_IO_INCLUDE=""
fi



    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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework io" >&5
$as_echo_n "checking for no configure components in framework io... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework io" >&5
$as_echo_n "checking for m4 configure components in framework io... " >&6; }
    { $as_echo "$as_me:$LINENO: result: romio" >&5
$as_echo "romio" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=$define_mpi_io
    components_last_result=0


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_io" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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



    # Is the private index set?  If not, set it.
    if test "x$ompi_scope_index" = "x"; then
        ompi_scope_index=1
    fi

    # First, check to see if any of these variables are already set.
    # This is a simple sanity check to ensure we're not already
    # overwriting pre-existing variables (that have a non-empty
    # value).  It's not a perfect check, but at least it's something.
    for ompi_var in io_romio_flags io_romio_flags_define io_romio_happy io_romio_save_LIBS; do
        ompi_str="ompi_str=\"\$$ompi_var\""
        eval $ompi_str

        if test "x$ompi_str" != "x"; then
            { $as_echo "$as_me:$LINENO: WARNING: Found configure shell variable clash!" >&5
$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_PUSH called on \"$ompi_var\"," >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: but it is already defined with value \"$ompi_str\"" >&5
$as_echo "$as_me: WARNING: but it is already defined with value \"$ompi_str\"" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done

    # Ok, we passed the simple sanity check.  Save all these names so
    # that we can unset them at the end of the scope.
    ompi_str="ompi_scope_$ompi_scope_index=\"io_romio_flags io_romio_flags_define io_romio_happy io_romio_save_LIBS\""
    eval $ompi_str
    unset ompi_str

    env | grep ompi_scope
    ompi_scope_index=`expr $ompi_scope_index + 1`

    # 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


cat >>confdefs.h <<_ACEOF
#define MCA_io_romio_USER_CONFIGURE_FLAGS "$with_io_romio_flags"
_ACEOF

    { $as_echo "$as_me:$LINENO: checking if want ROMIO component" >&5
$as_echo_n "checking if want ROMIO component... " >&6; }
    if test "$enable_io_romio" = "no"; then
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
            should_build=0
else
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
            { $as_echo "$as_me:$LINENO: checking if MPI profiling is enabled" >&5
$as_echo_n "checking if MPI profiling is enabled... " >&6; }
            if test "$enable_mpi_profile" = "no"; then
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                   { $as_echo "$as_me:$LINENO: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&5
$as_echo "$as_me: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&2;}
                   if test "$enable_io_romio" = "yes"; then
  { { $as_echo "$as_me:$LINENO: error: *** ROMIO requested but not available.  Aborting" >&5
$as_echo "$as_me: error: *** ROMIO requested but not available.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
fi

                   should_build=0
else
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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_define="$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 --disable-aio"

cat >>confdefs.h <<_ACEOF
#define MCA_io_romio_COMPLETE_CONFIGURE_FLAGS "$io_romio_flags_define"
_ACEOF


                   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 --disable-aio"

                   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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: ROMIO distribution did not configure successfully" >&5
$as_echo "$as_me: error: ROMIO distribution did not configure successfully" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: WARNING: ROMIO distribution did not configure successfully" >&5
$as_echo "$as_me: WARNING: ROMIO distribution did not configure successfully" >&2;}
fi

                          should_build=0
fi

fi

fi


    # Unwind the index
    ompi_scope_index=`expr $ompi_scope_index - 1`
    ompi_scope_test=`expr $ompi_scope_index \> 0`
    if test "$ompi_scope_test" = "0"; then
        { $as_echo "$as_me:$LINENO: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&5
$as_echo "$as_me: WARNING: OMPI_VAR_SCOPE_POP popped too many OMPI configure scopes." >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This usually indicates an error in configure." >&5
$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
    fi

    # Get the variable names from that index
    ompi_str="ompi_str=\"\$ompi_scope_$ompi_scope_index\""
    eval $ompi_str

    # Iterate over all the variables and unset them all
    for ompi_var in $ompi_str; do
        unset $ompi_var
    done


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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component io:romio can compile" >&5
$as_echo_n "checking if MCA component io:romio can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_io" = "romio" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"romio\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"romio\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: ROMIO disabled but --enable-dist specifed.  This will result in a bad tarball.  Aborting configure." >&5
$as_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_last_result=1
else
  components_last_result=0
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 "$define_mpi_io" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_io" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component io:$component can compile" >&5
$as_echo_n "checking if MCA component io:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_io" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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



cat >>confdefs.h <<_ACEOF
#define OMPI_PROVIDE_MPI_FILE_INTERFACE $define_mpi_io
_ACEOF

     if test "$define_mpi_io" = "1"; then
  OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE=
  OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE='#'
else
  OMPI_PROVIDE_MPI_FILE_INTERFACE_TRUE='#'
  OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE=
fi


# 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework mpool" >&5
$as_echo_n "checking for no configure components in framework mpool... " >&6; }
    { $as_echo "$as_me:$LINENO: result: fake, rdma, sm" >&5
$as_echo "fake, rdma, sm" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework mpool" >&5
$as_echo_n "checking for m4 configure components in framework mpool... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component mpool:fake (no configuration)"




    project=ompi
    framework=mpool
    component=fake
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=fake

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mpool" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=mpool
    component=fake

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component mpool:fake can compile" >&5
$as_echo_n "checking if MCA component mpool:fake can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "fake" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"fake\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"fake\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_mpool" ; then
        if test "$DIRECT_mpool" = "fake" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"fake\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"fake\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 fake"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_mpool_fake_DSO=1
    else
        BUILD_mpool_fake_DSO=0
    fi
     if test "$BUILD_mpool_fake_DSO" = "1"; then
  OMPI_BUILD_mpool_fake_DSO_TRUE=
  OMPI_BUILD_mpool_fake_DSO_FALSE='#'
else
  OMPI_BUILD_mpool_fake_DSO_TRUE='#'
  OMPI_BUILD_mpool_fake_DSO_FALSE=
fi


    unset compile_mode

    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mpool" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component mpool:rdma can compile" >&5
$as_echo_n "checking if MCA component mpool:rdma can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "rdma" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mpool" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component mpool:sm can compile" >&5
$as_echo_n "checking if MCA component mpool:sm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "sm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mpool" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component mpool:$component can compile" >&5
$as_echo_n "checking if MCA component mpool:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mpool" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework mtl" >&5
$as_echo_n "checking for no configure components in framework mtl... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework mtl" >&5
$as_echo_n "checking for m4 configure components in framework mtl... " >&6; }
    { $as_echo "$as_me:$LINENO: result: mx, portals, psm" >&5
$as_echo "mx, portals, psm" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right




    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mtl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-mx value" >&5
$as_echo_n "checking --with-mx value... " >&6; }
    if test "$with_mx" = "yes" -o "$with_mx" = "no" -o "x$with_mx" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_mx not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_mx/include/myriexpress.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx/include/myriexpress.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_mx)" >&5
$as_echo "sanity check ok ($with_mx)" >&6; }

fi



fi



fi



# Check whether --with-mx-libdir was given.
if test "${with_mx_libdir+set}" = set; then
  withval=$with_mx_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-mx-libdir value" >&5
$as_echo_n "checking --with-mx-libdir value... " >&6; }
    if test "$with_mx_libdir" = "yes" -o "$with_mx_libdir" = "no" -o "x$with_mx_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_mx_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_mx_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_mx_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_mx_libdir/libmyriexpress.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_mx_libdir/libmyriexpress.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_mx_libdir)" >&5
$as_echo "sanity check ok ($with_mx_libdir)" >&6; }

fi



fi



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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_myriexpress_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h usability" >&5
$as_echo_n "checking myriexpress.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h presence" >&5
$as_echo_n "checking myriexpress.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_myriexpress_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }

fi
if test "x$ac_cv_header_myriexpress_h" = x""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
  { $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h usability" >&5
$as_echo_n "checking myriexpress.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking myriexpress.h presence" >&5
$as_echo_n "checking myriexpress.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: myriexpress.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for myriexpress.h" >&5
$as_echo_n "checking for myriexpress.h... " >&6; }
if test "${ac_cv_header_myriexpress_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_myriexpress_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
$as_echo "$ac_cv_header_myriexpress_h" >&6; }

fi
if test "x$ac_cv_header_myriexpress_h" = x""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"
           { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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
  mtl_mx_LIBS="-lmyriexpress "
           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"
           { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
$as_echo_n "checking for mx_finalize in -lmyriexpress... " >&6; }
if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_myriexpress_mx_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_myriexpress_mx_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
$as_echo "$ac_cv_lib_myriexpress_mx_finalize" >&6; }
if test "x$ac_cv_lib_myriexpress_mx_finalize" = x""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
  mtl_mx_LIBS="-lmyriexpress "
           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"
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


    CPPFLAGS="$CPPFLAGS $mtl_mx_CPPFLAGS"
    LDFLAGS="$LDFLAGS $mtl_mx_LDFLAGS"
    LIBS="$LIBS $mtl_mx_LIBS"

    # need at least version 1.0
    if test "ompi_check_mx_happy" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5
$as_echo_n "checking for MX version 1.0 or later... " >&6; }
if test "${ompi_cv_mx_version_ok+set}" = set; then
  $as_echo_n "(cached) " >&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 <myriexpress.h>

int
main ()
{

#if MX_API < 0x300
#error "Version less than 0x300"
#endif

  ;
  return 0;
}
_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  ompi_cv_mx_version_ok="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ompi_cv_mx_version_ok="no"
fi

rm -f conftest.err conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_mx_version_ok" >&5
$as_echo "$ompi_cv_mx_version_ok" >&6; }
fi

    if test "$ompi_cv_mx_version_ok" = "no"; then
  ompi_check_mx_happy="no"
fi


    if test "$ompi_check_mx_happy" = "yes"; then

for ac_header in mx_extensions.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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


for ac_func in mx_forget mx_register_unexp_handler
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


    { $as_echo "$as_me:$LINENO: checking for mx_open_board" >&5
$as_echo_n "checking for mx_open_board... " >&6; }
if test "${ompi_cv_func_mx_open_board+set}" = set; then
  $as_echo_n "(cached) " >&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 <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__fops.h>

int
main ()
{

mx_open_board(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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_mx_open_board="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_mx_open_board="no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_mx_open_board" >&5
$as_echo "$ompi_cv_func_mx_open_board" >&6; }

    { $as_echo "$as_me:$LINENO: checking for mx__get_mapper_state" >&5
$as_echo_n "checking for mx__get_mapper_state... " >&6; }
if test "${ompi_cv_func_mx__get_mapper_state+set}" = set; then
  $as_echo_n "(cached) " >&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 <mx_extensions.h>
#include <mx_io.h>
#include <mx_internals/mx__driver_interface.h>

int
main ()
{

mx__get_mapper_state(NULL, 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ompi_cv_func_mx__get_mapper_state="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_func_mx__get_mapper_state="no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_func_mx__get_mapper_state" >&5
$as_echo "$ompi_cv_func_mx__get_mapper_state" >&6; }

    if test "$ompi_cv_func_mx_open_board" = "yes" -a "$ompi_cv_func_mx__get_mapper_state" = "yes"; then
  mx_provide_mapper_state=1

else
  mx_provide_mapper_state=0

fi


cat >>confdefs.h <<_ACEOF
#define MX_HAVE_MAPPER_STATE $mx_provide_mapper_state
_ACEOF


else
  { $as_echo "$as_me:$LINENO: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&5
$as_echo "$as_me: WARNING: The MX support for Open MPI will be compiled without the
MX extensions, which may result in lower performance.  Please upgrade
to at least MX 1.2.0 to enable the MX extensions." >&2;}
fi

done

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
  { $as_echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads.  Disabling BTL." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: MX support requested but not found.  Aborting" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component mtl:mx can compile" >&5
$as_echo_n "checking if MCA component mtl:mx can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mtl" = "mx" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mtl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-portals value" >&5
$as_echo_n "checking --with-portals value... " >&6; }
    if test "$with_portals" = "yes" -o "$with_portals" = "no" -o "x$with_portals" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_portals"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_portals not found" >&5
$as_echo "$as_me: WARNING: Directory $with_portals not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_portals/include/portals3.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_portals/include/portals3.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_portals/include/portals3.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_portals)" >&5
$as_echo "sanity check ok ($with_portals)" >&6; }

fi



fi



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


    { $as_echo "$as_me:$LINENO: checking for Portals configuration" >&5
$as_echo_n "checking for Portals configuration... " >&6; }
    if test "$with_portals_config" = "" ; then
        with_portals_config="utcp"
    elif test "$with_portals_config" = "redstorm" ; then
        with_portals_config="xt3"
    elif test "$with_portals_config" = "cnl_modex" ; then
	with_portals_config="xt3-modex"
    fi
    OMPI_PORTALS_UTCP=0
    OMPI_PORTALS_CRAYXT3=0
    OMPI_PORTALS_CRAYXT3_MODEX=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=
            { $as_echo "$as_me:$LINENO: result: utcp" >&5
$as_echo "utcp" >&6; }
            ;;
        "xt3")
            OMPI_PORTALS_CRAYXT3=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:$LINENO: result: Cray XT3" >&5
$as_echo "Cray XT3" >&6; }
            ;;
        "xt3-modex")
            OMPI_PORTALS_CRAYXT3_MODEX=1
            OMPI_PORTALS_HAVE_EVENT_UNLINK=0
            check_portals_LIBS=
            check_portals_header_prefix="portals/"
            { $as_echo "$as_me:$LINENO: result: Cray XT3 - Modex" >&5
$as_echo "Cray XT3 - Modex" >&6; }
            ;;
        *)
            # ok to call ERROR here - the user specified something invalid.
            # that should be brought to his attention
            { { $as_echo "$as_me:$LINENO: error: unknown Portals configuration.  Can not continue" >&5
$as_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



cat >>confdefs.h <<_ACEOF
#define OMPI_PORTALS_CRAYXT3_MODEX $OMPI_PORTALS_CRAYXT3_MODEX
_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 $check_portals_LIBS"

for ac_header in ${check_portals_header_prefix}portals3.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 { $as_echo "$as_me:$LINENO: checking if possible to link Portals application" >&5
$as_echo_n "checking if possible to link Portals application... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
               ompi_check_portals_happy="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
               ompi_check_portals_happy="no"
fi

rm -rf conftest.dSYM
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


    # Deal with static-only Portals UTCP libs.  See note in
    # ompi/mca/common/portals/configure.m4.  Then possibly cry.
    if test "$with_portals_config" = "utcp" ; then
        if test "mtl_portals" != "common_portals" ; then
            check_portals_LIBS=
        fi
    fi

    # 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
  { { $as_echo "$as_me:$LINENO: error: Portals support requested but not found.  Aborting" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component mtl:portals can compile" >&5
$as_echo_n "checking if MCA component mtl:portals can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mtl" = "portals" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mtl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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


    { $as_echo "$as_me:$LINENO: checking --with-psm value" >&5
$as_echo_n "checking --with-psm value... " >&6; }
    if test "$with_psm" = "yes" -o "$with_psm" = "no" -o "x$with_psm" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_psm"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_psm not found" >&5
$as_echo "$as_me: WARNING: Directory $with_psm not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_psm/include/psm.h 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_psm/include/psm.h not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_psm/include/psm.h not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_psm)" >&5
$as_echo "sanity check ok ($with_psm)" >&6; }

fi



fi



fi



# Check whether --with-psm-libdir was given.
if test "${with_psm_libdir+set}" = set; then
  withval=$with_psm_libdir;
fi


    { $as_echo "$as_me:$LINENO: checking --with-psm-libdir value" >&5
$as_echo_n "checking --with-psm-libdir value... " >&6; }
    if test "$with_psm_libdir" = "yes" -o "$with_psm_libdir" = "no" -o "x$with_psm_libdir" = "x"; then
  { $as_echo "$as_me:$LINENO: result: simple ok (unspecified)" >&5
$as_echo "simple ok (unspecified)" >&6; }
else
  if test ! -d "$with_psm_libdir"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                  { $as_echo "$as_me:$LINENO: WARNING: Directory $with_psm_libdir not found" >&5
$as_echo "$as_me: WARNING: Directory $with_psm_libdir not found" >&2;}
                  { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  if test "x`ls $with_psm_libdir/libpsm_infinipath.* 2> /dev/null`" = "x"; then
  { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                         { $as_echo "$as_me:$LINENO: WARNING: Expected file $with_psm_libdir/libpsm_infinipath.* not found" >&5
$as_echo "$as_me: WARNING: Expected file $with_psm_libdir/libpsm_infinipath.* not found" >&2;}
                         { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
else
  { $as_echo "$as_me:$LINENO: result: sanity check ok ($with_psm_libdir)" >&5
$as_echo "sanity check ok ($with_psm_libdir)" >&6; }

fi



fi



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...
            { $as_echo "$as_me:$LINENO: result: looking for header without includes" >&5
$as_echo "looking for header without includes" >&6; }
            if test "${ac_cv_header_psm_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for psm.h" >&5
$as_echo_n "checking for psm.h... " >&6; }
if test "${ac_cv_header_psm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5
$as_echo "$ac_cv_header_psm_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking psm.h usability" >&5
$as_echo_n "checking psm.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking psm.h presence" >&5
$as_echo_n "checking psm.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: psm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: psm.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: psm.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: psm.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: psm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: psm.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for psm.h" >&5
$as_echo_n "checking for psm.h... " >&6; }
if test "${ac_cv_header_psm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_psm_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5
$as_echo "$ac_cv_header_psm_h" >&6; }

fi
if test "x$ac_cv_header_psm_h" = x""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
  { $as_echo "$as_me:$LINENO: checking for psm.h" >&5
$as_echo_n "checking for psm.h... " >&6; }
if test "${ac_cv_header_psm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5
$as_echo "$ac_cv_header_psm_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking psm.h usability" >&5
$as_echo_n "checking psm.h usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking psm.h presence" >&5
$as_echo_n "checking psm.h presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: psm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: psm.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: psm.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: psm.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: psm.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: psm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: psm.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: psm.h: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for psm.h" >&5
$as_echo_n "checking for psm.h... " >&6; }
if test "${ac_cv_header_psm_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_psm_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_psm_h" >&5
$as_echo "$ac_cv_header_psm_h" >&6; }

fi
if test "x$ac_cv_header_psm_h" = x""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"
           { $as_echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""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
  mtl_psm_LIBS="-lpsm_infinipath "
           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"
           { $as_echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""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...
                { $as_echo "$as_me:$LINENO: result: looking for library without search path" >&5
$as_echo "looking for library without search path" >&6; }
                { $as_echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib" >&5
$as_echo "looking for library in lib" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""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"
                     { $as_echo "$as_me:$LINENO: result: looking for library in lib64" >&5
$as_echo "looking for library in lib64" >&6; }
                     { $as_echo "$as_me:$LINENO: checking for psm_finalize in -lpsm_infinipath" >&5
$as_echo_n "checking for psm_finalize in -lpsm_infinipath... " >&6; }
if test "${ac_cv_lib_psm_infinipath_psm_finalize+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_psm_infinipath_psm_finalize=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_psm_infinipath_psm_finalize=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_psm_infinipath_psm_finalize" >&5
$as_echo "$ac_cv_lib_psm_infinipath_psm_finalize" >&6; }
if test "x$ac_cv_lib_psm_infinipath_psm_finalize" = x""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
  mtl_psm_LIBS="-lpsm_infinipath "
           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"
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
  { $as_echo "$as_me:$LINENO: WARNING: PSM driver does not currently support progress threads.  Disabling BTL." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: PSM support requested but not found.  Aborting" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component mtl:psm can compile" >&5
$as_echo_n "checking if MCA component mtl:psm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mtl" = "psm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"psm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"psm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"psm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"psm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_last_result=1
else
  components_last_result=0
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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_mtl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component mtl:$component can compile" >&5
$as_echo_n "checking if MCA component mtl:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_mtl" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework osc" >&5
$as_echo_n "checking for no configure components in framework osc... " >&6; }
    { $as_echo "$as_me:$LINENO: result: pt2pt, rdma" >&5
$as_echo "pt2pt, rdma" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework osc" >&5
$as_echo_n "checking for m4 configure components in framework osc... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_osc" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component osc:pt2pt can compile" >&5
$as_echo_n "checking if MCA component osc:pt2pt can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_osc" = "pt2pt" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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

    ompi_show_subsubsubtitle "MCA component osc:rdma (no configuration)"




    project=ompi
    framework=osc
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_osc" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=osc
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component osc:rdma can compile" >&5
$as_echo_n "checking if MCA component osc:rdma can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_osc" = "rdma" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_osc" ; then
        if test "$DIRECT_osc" = "rdma" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"rdma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"rdma\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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_osc_rdma_DSO=1
    else
        BUILD_osc_rdma_DSO=0
    fi
     if test "$BUILD_osc_rdma_DSO" = "1"; then
  OMPI_BUILD_osc_rdma_DSO_TRUE=
  OMPI_BUILD_osc_rdma_DSO_FALSE='#'
else
  OMPI_BUILD_osc_rdma_DSO_TRUE='#'
  OMPI_BUILD_osc_rdma_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_osc" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component osc:$component can compile" >&5
$as_echo_n "checking if MCA component osc:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_osc" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework pml" >&5
$as_echo_n "checking for no configure components in framework pml... " >&6; }
    { $as_echo "$as_me:$LINENO: result: cm, csum, ob1" >&5
$as_echo "cm, csum, ob1" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework pml" >&5
$as_echo_n "checking for m4 configure components in framework pml... " >&6; }
    { $as_echo "$as_me:$LINENO: result: crcpw, v" >&5
$as_echo "crcpw, v" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component pml:cm can compile" >&5
$as_echo_n "checking if MCA component pml:cm can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "cm" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"cm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"cm\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"cm\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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:csum (no configuration)"




    project=ompi
    framework=pml
    component=csum
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=csum

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=pml
    component=csum

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component pml:csum can compile" >&5
$as_echo_n "checking if MCA component pml:csum can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "csum" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"csum\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"csum\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "csum" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"csum\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"csum\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 csum"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_pml_csum_DSO=1
    else
        BUILD_pml_csum_DSO=0
    fi
     if test "$BUILD_pml_csum_DSO" = "1"; then
  OMPI_BUILD_pml_csum_DSO_TRUE=
  OMPI_BUILD_pml_csum_DSO_FALSE='#'
else
  OMPI_BUILD_pml_csum_DSO_TRUE='#'
  OMPI_BUILD_pml_csum_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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component pml:ob1 can compile" >&5
$as_echo_n "checking if MCA component pml:ob1 can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "ob1" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ob1\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"ob1\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    ompi_show_subsubsubtitle "MCA component pml:crcpw (m4 configuration macro)"




    project=ompi
    framework=pml
    component=crcpw
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=pml
    component=crcpw

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    # If we don't want FT, don't compile this component
    if test "$ompi_want_ft" = "1"; then
  should_build=1
else
  should_build=0
fi


fi


    if test "$should_build" = "1"; then



    project=ompi
    framework=pml
    component=crcpw

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component pml:crcpw can compile" >&5
$as_echo_n "checking if MCA component pml:crcpw can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "crcpw" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"crcpw\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"crcpw\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "crcpw" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"crcpw\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"crcpw\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 crcpw"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pml_crcpw_DSO=1
else
  BUILD_pml_crcpw_DSO=0
fi

     if test "$BUILD_pml_crcpw_DSO" = "1"; then
  OMPI_BUILD_pml_crcpw_DSO_TRUE=
  OMPI_BUILD_pml_crcpw_DSO_FALSE='#'
else
  OMPI_BUILD_pml_crcpw_DSO_TRUE='#'
  OMPI_BUILD_pml_crcpw_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
fi


    unset compile_mode




    ompi_show_subsubsubtitle "MCA component pml:v (m4 configuration macro)"




    project=ompi
    framework=pml
    component=v
    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=pml
    component=v

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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

    # This unmatched fi allows for recursing in the vprotocols, even if
    # pml v is disabled by configure
        eval
    fi

    # We are going to make recursive call in shell, nothing is impossible
    # Still, we need to be extra careful
    (
        vprotocol_parent_component=$component
        # Move the root of our project to the current component
        srcdir=`cd $srcdir && pwd`/$project/mca/$framework
        cd "$project/mca/$framework"


    ompi_show_subsubtitle "Configuring MCA framework vprotocol"

    # 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 "vprotocol" = "common" ; then
        outdir=$vprotocol_parent_component/mca/common
    else
        outdir=$vprotocol_parent_component/mca/vprotocol/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework vprotocol" >&5
$as_echo_n "checking for no configure components in framework vprotocol... " >&6; }
    { $as_echo "$as_me:$LINENO: result: pessimist" >&5
$as_echo "pessimist" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework vprotocol" >&5
$as_echo_n "checking for m4 configure components in framework vprotocol... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component vprotocol:pessimist (no configuration)"




    project=$vprotocol_parent_component
    framework=vprotocol
    component=pessimist
    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
            # overridden 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_vprotocol" ; then
            if test "$DIRECT_vprotocol" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=$should_build
else
  should_build=0
fi



    project=$vprotocol_parent_component
    framework=vprotocol
    component=pessimist

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_vprotocol" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=$vprotocol_parent_component
    framework=vprotocol
    component=pessimist

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
                    $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_vprotocol" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_vprotocol" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
                 $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

    else

    { $as_echo "$as_me:$LINENO: checking if MCA component vprotocol:pessimist can compile" >&5
$as_echo_n "checking if MCA component vprotocol:pessimist can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_vprotocol" = "pessimist" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"pessimist\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"pessimist\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_vprotocol" ; then
        if test "$DIRECT_vprotocol" = "pessimist" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"pessimist\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"pessimist\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 pessimist"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_vprotocol_pessimist_DSO=1
    else
        BUILD_vprotocol_pessimist_DSO=0
    fi
     if test "$BUILD_vprotocol_pessimist_DSO" = "1"; then
  OMPI_BUILD_vprotocol_pessimist_DSO_TRUE=
  OMPI_BUILD_vprotocol_pessimist_DSO_FALSE='#'
else
  OMPI_BUILD_vprotocol_pessimist_DSO_TRUE='#'
  OMPI_BUILD_vprotocol_pessimist_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=$should_build
    components_last_result=0


    # 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 "$should_build" != "0"; then

    for component_path in $srcdir/$vprotocol_parent_component/mca/vprotocol/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component vprotocol:$component (need to configure)"




    project=$vprotocol_parent_component
    framework=vprotocol
    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
            # overridden 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_vprotocol" ; then
            if test "$DIRECT_vprotocol" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=$vprotocol_parent_component
    framework=vprotocol
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_vprotocol" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# $vprotocol_parent_component/mca/vprotocol/$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="$vprotocol_parent_component/mca/vprotocol/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=$vprotocol_parent_component
    framework=vprotocol
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
                    $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line"
                fi
            line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
                eval "line=$line"
                if test -n "$line"; then
                    $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line"
                fi
                    fi

                        if test "$DIRECT_vprotocol" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_vprotocol" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
                 $vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS="$$vprotocol_parent_component_WRAPPER_EXTRA_LDFLAGS $line"
             fi
             str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
             eval "$str"
             if test -n "$line" ; then
                 $vprotocol_parent_component_WRAPPER_EXTRA_LIBS="$$vprotocol_parent_component_WRAPPER_EXTRA_LIBS $line"
             fi
                 fi

            else

    { $as_echo "$as_me:$LINENO: checking if MCA component vprotocol:$component can compile" >&5
$as_echo_n "checking if MCA component vprotocol:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_vprotocol" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_vprotocol" ; then
        if test "$DIRECT_vprotocol" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_vprotocol_ALL_COMPONENTS="$all_components"
    MCA_vprotocol_STATIC_COMPONENTS="$static_components"
    MCA_vprotocol_DSO_COMPONENTS="$dso_components"
    MCA_vprotocol_STATIC_LTLIBS="$static_ltlibs"







    MCA_vprotocol_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_vprotocol_ALL_SUBDIRS="$MCA_vprotocol_ALL_SUBDIRS mca/vprotocol/$item"
    done



    MCA_vprotocol_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_vprotocol_STATIC_SUBDIRS="$MCA_vprotocol_STATIC_SUBDIRS mca/vprotocol/$item"
    done



    MCA_vprotocol_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_vprotocol_DSO_SUBDIRS="$MCA_vprotocol_DSO_SUBDIRS mca/vprotocol/$item"
    done



    # 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 "vprotocol" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_vprotocol_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


        # Save results
        cat >$vprotocol_parent_component/mca_vprotocol_config_output <<EOF
            #
            # /!\ This is Automatically generated file. Do not edit.
            #

            # Apply the modifications to current shell context
            # and remove leading mca/vprotocol from subdirs

            MCA_vprotocol_ALL_COMPONENTS="$MCA_vprotocol_ALL_COMPONENTS"
            MCA_vprotocol_STATIC_COMPONENTS="$MCA_vprotocol_STATIC_COMPONENTS"
            MCA_vprotocol_DSO_COMPONENTS="$MCA_vprotocol_DSO_COMPONENTS"
            MCA_vprotocol_STATIC_LTLIBS="$MCA_vprotocol_STATIC_LTLIBS"

            MCA_vprotocol_ALL_SUBDIRS="$MCA_vprotocol_ALL_SUBDIRS"
            MCA_vprotocol_STATIC_SUBDIRS="$MCA_vprotocol_STATIC_SUBDIRS"
            MCA_vprotocol_DSO_SUBDIRS="$MCA_vprotocol_DSO_SUBDIRS"


                    BUILD_vprotocol_pessimist_DSO="$BUILD_vprotocol_pessimist_DSO"
                     if test "\$BUILD_vprotocol_pessimist_DSO" = "1"; then
  OMPI_BUILD_vprotocol_pessimist_DSO_TRUE=
  OMPI_BUILD_vprotocol_pessimist_DSO_FALSE='#'
else
  OMPI_BUILD_vprotocol_pessimist_DSO_TRUE='#'
  OMPI_BUILD_vprotocol_pessimist_DSO_FALSE=
fi




EOF
    )

    # Reload the output from vprotocol framework's config
    . $project/mca/$framework/$component/mca_vprotocol_config_output
    rm  $project/mca/$framework/$component/mca_vprotocol_config_output










    # This unmatched if is intended to match the fi of the if we disabled
    if test "$should_build" = "1"; then
        should_build=1

fi


    if test "$should_build" = "1"; then



    project=ompi
    framework=pml
    component=v

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component pml:v can compile" >&5
$as_echo_n "checking if MCA component pml:v can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "v" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"v\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"v\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pml" ; then
        if test "$DIRECT_pml" = "v" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"v\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"v\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 v"
fi




    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso"; then
  BUILD_pml_v_DSO=1
else
  BUILD_pml_v_DSO=0
fi

     if test "$BUILD_pml_v_DSO" = "1"; then
  OMPI_BUILD_pml_v_DSO_TRUE=
  OMPI_BUILD_pml_v_DSO_FALSE='#'
else
  OMPI_BUILD_pml_v_DSO_TRUE='#'
  OMPI_BUILD_pml_v_DSO_FALSE=
fi


    if test "$should_build" = "1"; then
  components_last_result=1
else
  components_last_result=0
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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component pml:$component can compile" >&5
$as_echo_n "checking if MCA component pml:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pml" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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 "pubsub" = "common" ; then
                              MCA_ompi_FRAMEWORKS="pubsub $MCA_ompi_FRAMEWORKS"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="mca/pubsub $MCA_ompi_FRAMEWORKS_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pubsub_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pubsub_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pubsub_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
                          else
                              MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS pubsub"
                              MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/pubsub"
                              MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pubsub_ALL_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pubsub_DSO_SUBDIRS)"
                              MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pubsub_STATIC_SUBDIRS)"
                          fi
                          if test "pubsub" != "common" ; then
                              MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/pubsub/libmca_pubsub.la"
                          fi
                          MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_pubsub_STATIC_LTLIBS)"

    ompi_show_subsubtitle "Configuring MCA framework pubsub"

    # 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 "pubsub" = "common" ; then
        outdir=ompi/mca/common
    else
        outdir=ompi/mca/pubsub/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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework pubsub" >&5
$as_echo_n "checking for no configure components in framework pubsub... " >&6; }
    { $as_echo "$as_me:$LINENO: result: orte" >&5
$as_echo "orte" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework pubsub" >&5
$as_echo_n "checking for m4 configure components in framework pubsub... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    ompi_show_subsubsubtitle "MCA component pubsub:orte (no configuration)"




    project=ompi
    framework=pubsub
    component=orte
    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
            # overridden 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_pubsub" ; then
            if test "$DIRECT_pubsub" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=pubsub
    component=orte

    # 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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pubsub" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


    if test "$should_build" = "1" ; then



    project=ompi
    framework=pubsub
    component=orte

    # 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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_pubsub" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_pubsub" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component pubsub:orte can compile" >&5
$as_echo_n "checking if MCA component pubsub:orte can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pubsub" = "orte" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pubsub" ; then
        if test "$DIRECT_pubsub" = "orte" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"orte\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"orte\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 orte"
    fi

    # set the AM_CONDITIONAL on how we should build
    if test "$compile_mode" = "dso" ; then
        BUILD_pubsub_orte_DSO=1
    else
        BUILD_pubsub_orte_DSO=0
    fi
     if test "$BUILD_pubsub_orte_DSO" = "1"; then
  OMPI_BUILD_pubsub_orte_DSO_TRUE=
  OMPI_BUILD_pubsub_orte_DSO_FALSE='#'
else
  OMPI_BUILD_pubsub_orte_DSO_TRUE='#'
  OMPI_BUILD_pubsub_orte_DSO_FALSE=
fi


    unset compile_mode


    # configure components that use built-in configuration scripts see
    # comment in CONFIGURE_PROJECT about the m4_ifval in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; then

    for component_path in $srcdir/ompi/mca/pubsub/* ; do
        component="`basename $component_path`"
        if test -d $component_path -a -x $component_path/configure ; then
            ompi_show_subsubsubtitle "MCA component pubsub:$component (need to configure)"




    project=ompi
    framework=pubsub
    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
            # overridden 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_pubsub" ; then
            if test "$DIRECT_pubsub" = "$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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=pubsub
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_pubsub" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$compile_mode" >&6; }
    fi


            if test "$should_build" = "1" ; then

#
# Invoke configure in a specific subdirectory.
#
# ompi/mca/pubsub/$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/pubsub/$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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=pubsub
    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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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_pubsub" = "$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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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_pubsub" = "$component" ; then
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component pubsub:$component can compile" >&5
$as_echo_n "checking if MCA component pubsub:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_pubsub" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
        exit 1
    fi

    if test ! -z "$DIRECT_pubsub" ; then
        if test "$DIRECT_pubsub" = "$component" ; then
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_echo "$as_me: error: Cannot continue" >&2;}
   { (exit 1); exit 1; }; }
            exit 1
        fi
    fi

            fi
        fi
    done

fi


    MCA_pubsub_ALL_COMPONENTS="$all_components"
    MCA_pubsub_STATIC_COMPONENTS="$static_components"
    MCA_pubsub_DSO_COMPONENTS="$dso_components"
    MCA_pubsub_STATIC_LTLIBS="$static_ltlibs"







    MCA_pubsub_ALL_SUBDIRS=
    for item in $all_components ; do
       MCA_pubsub_ALL_SUBDIRS="$MCA_pubsub_ALL_SUBDIRS mca/pubsub/$item"
    done



    MCA_pubsub_STATIC_SUBDIRS=
    for item in $static_components ; do
       MCA_pubsub_STATIC_SUBDIRS="$MCA_pubsub_STATIC_SUBDIRS mca/pubsub/$item"
    done



    MCA_pubsub_DSO_SUBDIRS=
    for item in $dso_components ; do
       MCA_pubsub_DSO_SUBDIRS="$MCA_pubsub_DSO_SUBDIRS mca/pubsub/$item"
    done



    # 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 "pubsub" != "common"; then
        cat > $outfile <<EOF
/*
 * \$HEADER\$
 */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif

`cat $outfile.extern`

const mca_base_component_t *mca_pubsub_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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework rcache" >&5
$as_echo_n "checking for no configure components in framework rcache... " >&6; }
    { $as_echo "$as_me:$LINENO: result: vma" >&5
$as_echo "vma" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework rcache" >&5
$as_echo_n "checking for m4 configure components in framework rcache... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rcache" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component rcache:vma can compile" >&5
$as_echo_n "checking if MCA component rcache:vma can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rcache" = "vma" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"vma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"vma\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"vma\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"vma\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_rcache" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component rcache:$component can compile" >&5
$as_echo_n "checking if MCA component rcache:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_rcache" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



    # 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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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...
    { $as_echo "$as_me:$LINENO: checking for no configure components in framework topo" >&5
$as_echo_n "checking for no configure components in framework topo... " >&6; }
    { $as_echo "$as_me:$LINENO: result: unity" >&5
$as_echo "unity" >&6; }
    { $as_echo "$as_me:$LINENO: checking for m4 configure components in framework topo" >&5
$as_echo_n "checking for m4 configure components in framework topo... " >&6; }
    { $as_echo "$as_me:$LINENO: result: " >&5
$as_echo "" >&6; }

    # configure components that don't have any component-specific
    # configuration.  See comment in CONFIGURE_PROJECT about the
    # m4_ifval in the m4_foreach.  If there isn't a component list,
    # abort with a reasonable message.  If there are components in the
    # list, but we're doing one of the "special" selection logics,
    # abort with a reasonable message.

    # make sure priority stuff set right



    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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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=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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_topo" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component topo:unity can compile" >&5
$as_echo_n "checking if MCA component topo:unity can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_topo" = "unity" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"unity\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"unity\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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 in the
    # m4_foreach.  if there isn't a component list, abort

    best_mca_component_priority=0
    components_looking_for_succeed=1
    components_last_result=0


    # 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 "1" != "0"; 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
            # overridden 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}"
    eval $str
    if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
        want_component=0
    fi
    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

    { $as_echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
$as_echo_n "checking for MCA component $framework:$component compile mode... " >&6; }
    if test "$DIRECT_topo" = "$component" ; then
        { $as_echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
$as_echo "$compile_mode - direct" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $compile_mode" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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
    { $as_echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
$as_echo_n "checking if MCA component $framework:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
            { { $as_echo "$as_me:$LINENO: error: cannot continue" >&5
$as_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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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
{ { $as_echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
*** does not appear to support direct calling.
*** Aborting" >&5
$as_echo "$as_me: error: *** ${framework} 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

    { $as_echo "$as_me:$LINENO: checking if MCA component topo:$component can compile" >&5
$as_echo_n "checking if MCA component topo:$component can compile... " >&6; }
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    # If this component was requested as the default for this
    # type, then abort.
    if test "$with_topo" = "$component" ; then
        { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
        { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
        { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
            { $as_echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
            { { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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



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



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/carto/Makefile"



ac_config_files="$ac_config_files opal/mca/carto/auto_detect/Makefile"



ac_config_files="$ac_config_files opal/mca/carto/file/Makefile"

ac_config_files="$ac_config_files opal/mca/crs/Makefile"



ac_config_files="$ac_config_files opal/mca/crs/blcr/Makefile"



ac_config_files="$ac_config_files opal/mca/crs/none/Makefile"



ac_config_files="$ac_config_files opal/mca/crs/self/Makefile"

ac_config_files="$ac_config_files opal/mca/installdirs/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/installdirs/windows/Makefile"

ac_config_files="$ac_config_files opal/mca/maffinity/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/memchecker/Makefile"



ac_config_files="$ac_config_files opal/mca/memchecker/valgrind/Makefile"

ac_config_files="$ac_config_files opal/mca/memcpy/Makefile"

ac_config_files="$ac_config_files opal/mca/memory/Makefile"



ac_config_files="$ac_config_files opal/mca/memory/malloc_solaris/Makefile"



ac_config_files="$ac_config_files opal/mca/memory/ptmalloc2/Makefile"

ac_config_files="$ac_config_files opal/mca/paffinity/Makefile"



ac_config_files="$ac_config_files opal/mca/paffinity/darwin/Makefile"



ac_config_files="$ac_config_files opal/mca/paffinity/linux/Makefile"



ac_config_files="$ac_config_files opal/mca/paffinity/posix/Makefile"



ac_config_files="$ac_config_files opal/mca/paffinity/solaris/Makefile"



ac_config_files="$ac_config_files opal/mca/paffinity/test/Makefile"



ac_config_files="$ac_config_files opal/mca/paffinity/windows/Makefile"

ac_config_files="$ac_config_files opal/mca/timer/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/catamount/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/Makefile"



ac_config_files="$ac_config_files orte/mca/errmgr/default/Makefile"

ac_config_files="$ac_config_files orte/mca/ess/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/alps/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/cnos/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/env/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/hnp/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/lsf/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/portals_utcp/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/singleton/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/slurm/Makefile"



ac_config_files="$ac_config_files orte/mca/ess/tool/Makefile"

ac_config_files="$ac_config_files orte/mca/filem/Makefile"



ac_config_files="$ac_config_files orte/mca/filem/rsh/Makefile"

ac_config_files="$ac_config_files orte/mca/grpcomm/Makefile"



ac_config_files="$ac_config_files orte/mca/grpcomm/bad/Makefile"



ac_config_files="$ac_config_files orte/mca/grpcomm/basic/Makefile"



ac_config_files="$ac_config_files orte/mca/grpcomm/cnos/Makefile"

ac_config_files="$ac_config_files orte/mca/iof/Makefile"



ac_config_files="$ac_config_files orte/mca/iof/hnp/Makefile"



ac_config_files="$ac_config_files orte/mca/iof/orted/Makefile"



ac_config_files="$ac_config_files orte/mca/iof/tool/Makefile"

ac_config_files="$ac_config_files orte/mca/notifier/Makefile"



ac_config_files="$ac_config_files orte/mca/notifier/syslog/Makefile"

ac_config_files="$ac_config_files orte/mca/odls/Makefile"



ac_config_files="$ac_config_files orte/mca/odls/default/Makefile"



ac_config_files="$ac_config_files orte/mca/odls/process/Makefile"

ac_config_files="$ac_config_files orte/mca/oob/Makefile"



ac_config_files="$ac_config_files orte/mca/oob/tcp/Makefile"

ac_config_files="$ac_config_files orte/mca/plm/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/alps/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/ccp/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/lsf/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/process/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/rsh/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/slurm/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/tm/Makefile"



ac_config_files="$ac_config_files orte/mca/plm/xgrid/Makefile"

ac_config_files="$ac_config_files orte/mca/ras/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/alps/Makefile"



ac_config_files="$ac_config_files orte/mca/ras/ccp/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/lsf/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/rmaps/Makefile"



ac_config_files="$ac_config_files orte/mca/rmaps/load_balance/Makefile"



ac_config_files="$ac_config_files orte/mca/rmaps/rank_file/Makefile"



ac_config_files="$ac_config_files orte/mca/rmaps/round_robin/Makefile"



ac_config_files="$ac_config_files orte/mca/rmaps/seq/Makefile"

ac_config_files="$ac_config_files orte/mca/rml/Makefile"



ac_config_files="$ac_config_files orte/mca/rml/ftrm/Makefile"



ac_config_files="$ac_config_files orte/mca/rml/oob/Makefile"

ac_config_files="$ac_config_files orte/mca/routed/Makefile"



ac_config_files="$ac_config_files orte/mca/routed/binomial/Makefile"



ac_config_files="$ac_config_files orte/mca/routed/direct/Makefile"



ac_config_files="$ac_config_files orte/mca/routed/linear/Makefile"

ac_config_files="$ac_config_files orte/mca/snapc/Makefile"



ac_config_files="$ac_config_files orte/mca/snapc/full/Makefile"

ac_config_files="$ac_config_files ompi/mca/allocator/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/Makefile"



ac_config_files="$ac_config_files ompi/mca/bml/r2/Makefile"

ac_config_files="$ac_config_files ompi/mca/btl/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/elan/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/gm/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/mx/Makefile"



ac_config_files="$ac_config_files ompi/mca/btl/ofud/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/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/basic/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/hierarch/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/inter/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/sync/Makefile"



ac_config_files="$ac_config_files ompi/mca/coll/tuned/Makefile"

ac_config_files="$ac_config_files ompi/mca/common/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/crcp/Makefile"



ac_config_files="$ac_config_files ompi/mca/crcp/bkmrk/Makefile"

ac_config_files="$ac_config_files ompi/mca/dpm/Makefile"



ac_config_files="$ac_config_files ompi/mca/dpm/orte/Makefile"

ac_config_files="$ac_config_files ompi/mca/io/Makefile"



ac_config_files="$ac_config_files ompi/mca/io/romio/Makefile"

ac_config_files="$ac_config_files ompi/mca/mpool/Makefile"



ac_config_files="$ac_config_files ompi/mca/mpool/fake/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/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/Makefile"



ac_config_files="$ac_config_files ompi/mca/osc/pt2pt/Makefile"



ac_config_files="$ac_config_files ompi/mca/osc/rdma/Makefile"

ac_config_files="$ac_config_files ompi/mca/pml/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/cm/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/crcpw/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/csum/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/ob1/Makefile"

ac_config_files="$ac_config_files ompi/mca/pml/v/mca/vprotocol/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile"



ac_config_files="$ac_config_files ompi/mca/pml/v/Makefile"

ac_config_files="$ac_config_files ompi/mca/pubsub/Makefile"



ac_config_files="$ac_config_files ompi/mca/pubsub/orte/Makefile"

ac_config_files="$ac_config_files ompi/mca/rcache/Makefile"



ac_config_files="$ac_config_files ompi/mca/rcache/vma/Makefile"

ac_config_files="$ac_config_files ompi/mca/topo/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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $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" &&
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

##################################
# visibility
##################################

# check the visbility stuff at the end to avoid problem with
# the previous tests that are not necessarily prepeare for
# the visibility feature.
ompi_show_title "Symbol Visibility Feature"




    # Check if the compiler has support for visibility, like some versions of gcc, icc.
    # Check whether --enable-visibility was given.
if test "${enable_visibility+set}" = set; then
  enableval=$enable_visibility;
fi

    if test "$enable_visibility" = "no"; then
        { $as_echo "$as_me:$LINENO: checking enable symbol visibility" >&5
$as_echo_n "checking enable symbol visibility... " >&6; }
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        have_visibility=0
    else
        CFLAGS_orig="$CFLAGS"
        CFLAGS="$CFLAGS_orig -fvisibility=hidden"
        add=
        { $as_echo "$as_me:$LINENO: checking if $CC supports -fvisibility" >&5
$as_echo_n "checking if $CC supports -fvisibility... " >&6; }
if test "${ompi_cv_cc_fvisibility+set}" = set; then
  $as_echo_n "(cached) " >&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>
                    __attribute__((visibility("default"))) int foo;
                    void bar(void) { fprintf(stderr, "bar\n"); };

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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  if test -s conftest.err ; then
                        $GREP -iq "visibility" conftest.err
                        if test "$?" = "0" ; then
                            ompi_cv_cc_fvisibility="no"
                        else
                            ompi_cv_cc_fvisibility="yes"
                        fi
                     else
                        ompi_cv_cc_fvisibility="yes"
                     fi
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ompi_cv_cc_fvisibility="no"
fi

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

fi
{ $as_echo "$as_me:$LINENO: result: $ompi_cv_cc_fvisibility" >&5
$as_echo "$ompi_cv_cc_fvisibility" >&6; }

        if test "$ompi_cv_cc_fvisibility" = "yes" ; then
            add=" -fvisibility=hidden"
            have_visibility=1
            { $as_echo "$as_me:$LINENO: checking enable symbol visibility" >&5
$as_echo_n "checking enable symbol visibility... " >&6; }
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
            { $as_echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5
$as_echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
        elif test "$enable_visibility" = "yes"; then
            { { $as_echo "$as_me:$LINENO: error: Symbol visibility support requested but compiler does not seem to support it.  Aborting" >&5
$as_echo "$as_me: error: Symbol visibility support requested but compiler does not seem to support it.  Aborting" >&2;}
   { (exit 1); exit 1; }; }
        else
            { $as_echo "$as_me:$LINENO: checking enable symbol visibility" >&5
$as_echo_n "checking enable symbol visibility... " >&6; }
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
            have_visibility=0
        fi
        CFLAGS="$CFLAGS_orig$add"
        OMPI_VISIBILITY_CFLAGS="$add"
        unset add
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_C_HAVE_VISIBILITY $have_visibility
_ACEOF




##################################
# Contributed software
##################################

ompi_show_title "Contributed software setup"




    # Option to not build some of the contributed software packages
    # Check whether --enable-contrib-no-build was given.
if test "${enable_contrib_no_build+set}" = set; then
  enableval=$enable_contrib_no_build;
fi


    # Parse the list to see what we should not build
    ompi_show_subtitle "Configuring contributed software packages"
    { $as_echo "$as_me:$LINENO: checking which contributed software packages should be disabled" >&5
$as_echo_n "checking which contributed software packages should be disabled... " >&6; }
    if test "$enable_contrib_no_build" = "yes"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        { { $as_echo "$as_me:$LINENO: error: *** The enable-contrib-no-build flag requires an explicit list
*** of packages to not build.  For example, --enable-contrib-no-build=vt" >&5
$as_echo "$as_me: error: *** The enable-contrib-no-build flag requires an explicit list
*** of packages to not build.  For example, --enable-contrib-no-build=vt" >&2;}
   { (exit 1); exit 1; }; }
    else
        ifs_save="$IFS"
        IFS="${IFS}$PATH_SEPARATOR,"
        msg=
        for item in $enable_contrib_no_build; do
            str="`echo DISABLE_contrib_${item}=1 | sed s/-/_/g`"
            eval $str
            msg="$item $msg"
        done
        IFS="$ifs_save"
    fi
    { $as_echo "$as_me:$LINENO: result: $msg" >&5
$as_echo "$msg" >&6; }
    unset msg

    # List of contrib subdirs to traverse into
    OMPI_CONTRIB_SUBDIRS=
    OMPI_CONTRIB_DIST_SUBDIRS=

    # Cycle through each of the hard-coded software packages and
    # configure them if not disabled.  May someday be expanded to have
    # autogen find the packages instead of this hard-coded list
    # (https://svn.open-mpi.org/trac/ompi/ticket/1162).
    # m4_define([contrib_software_list], [libnbc, vt])

    # -*- shell-script -*-
#
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
#                         University Research and Technology
#                         Corporation.  All rights reserved.
# Copyright (c) 2004-2005 The University of Tennessee and The University
#                         of Tennessee Research Foundation.  All rights
#                         reserved.
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
#                         University of Stuttgart.  All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
#                         All rights reserved.
# Copyright (c) 2007      Cisco, Inc.  All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

# OMPI_contrib_vt_CONFIG([action-if-can-compile],
#                        [action-if-cant-compile])
# ------------------------------------------------



    ompi_show_subsubsubtitle "vt (m4 configuration macro)"

    OMPI_CONTRIB_HAPPY=0
    if test "$DISABLE_contrib_vt" = "" -a "$DISABLE_contrib_all" = ""; then

    contrib_vt_args="--disable-option-checking --with-openmpi --disable-config-titles --disable-config-summary"

    contrib_vt_skip=no
    eval "set x $ac_configure_args"; shift
    for contrib_vt_arg
    do
        if test "$contrib_vt_skip" = "yes"; then
            contrib_vt_skip=no
        else
            case $contrib_vt_arg in
            -with-contrib-vt-flags | --with-contrib-vt-flags)
                contrib_vt_skip=yes
                ;;
            -with-contrib-vt-flags=* | --with-contrib-vt-flags=*)
                ;;
            -with-platform | --with-platform)
                contrib_vt_skip=yes
                ;;
            -with-platform=* | --with-platform=*)
                ;;
            *)
                case $contrib_vt_arg in
                *\'*) contrib_vt_arg=`echo "$contrib_vt_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                esac
                contrib_vt_args="$contrib_vt_args '$contrib_vt_arg'"
                ;;
            esac
        fi
    done


# Check whether --with-contrib-vt-flags was given.
if test "${with_contrib_vt_flags+set}" = set; then
  withval=$with_contrib_vt_flags;
fi

    if test "$with_contrib_vt_flags" != "yes" -a "$with_contrib_vt_flags" != "no"; then
  contrib_vt_args="$contrib_vt_args $with_contrib_vt_flags"
fi


    # Run VampirTrace's configure and see if it succeeded

#
# Invoke configure in a specific subdirectory.
#
# ompi/contrib/vt/vt is the directory to invoke in
# $contrib_vt_args is the list of arguments to pass
# contrib_vt_happy=1 is actions to execute upon success
# contrib_vt_happy=0 is actions to execute upon failure
#
subdir_dir="ompi/contrib/vt/vt"
subdir_args="$contrib_vt_args"
subdir_success="contrib_vt_happy=1"
subdir_failure="contrib_vt_happy=0"

#
# Sanity checks
#

if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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 VampirTrace configured itself successfully, setup OMPI-specific
    # VampirTrace glue code to build.
    if test "$contrib_vt_happy" = "1"; then
  OMPI_CONTRIB_HAPPY=1
           ac_config_files="$ac_config_files ompi/contrib/vt/Makefile ompi/contrib/vt/wrappers/Makefile ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt"

fi


        { $as_echo "$as_me:$LINENO: checking if contributed component vt can compile" >&5
$as_echo_n "checking if contributed component vt can compile... " >&6; }
        if test "$OMPI_CONTRIB_HAPPY" = "1"; then
            OMPI_CONTRIB_SUBDIRS="$OMPI_CONTRIB_SUBDIRS contrib/vt"
            OMPI_CONTRIB_DIST_SUBDIRS="$OMPI_CONTRIB_DIST_SUBDIRS contrib/vt"
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        else
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        fi
    else
        { $as_echo "$as_me:$LINENO: disabled via command line switch" >&5
$as_echo "$as_me: disabled via command line switch" >&6;}
    fi

cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_CONTRIB_vt $OMPI_CONTRIB_HAPPY
_ACEOF

    unset OMPI_CONTRIB_HAPPY


    # Setup the top-level glue




# 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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $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" &&
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_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



{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
$as_echo "$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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

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

fi

done

if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
	{ $as_echo "$as_me:$LINENO: checking for TAILQ_FOREACH in sys/queue.h" >&5
$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&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
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

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

else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f conftest*

fi

if test "x$ac_cv_header_sys_time_h" = "xyes"; then
	{ $as_echo "$as_me:$LINENO: checking for timeradd in sys/time.h" >&5
$as_echo_n "checking for timeradd in sys/time.h... " >&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

	  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f conftest*

fi

{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
if test "${ac_cv_header_time+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
$as_echo "$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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


{ $as_echo "$as_me:$LINENO: checking for F_SETFD in fcntl.h" >&5
$as_echo_n "checking for F_SETFD in fcntl.h... " >&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

          { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f conftest*


needsignal=no
haveselect=no

for ac_func in select
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 havertsig=yes
fi
done

	fi
fi
if test "x$havertsig" = "xyes" ; then
	{ $as_echo "$as_me:$LINENO: checking for F_SETSIG in fcntl.h" >&5
$as_echo_n "checking for F_SETSIG in fcntl.h... " >&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
   { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
   { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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"
	{ $as_echo "$as_me:$LINENO: checking for working rtsig on pipes" >&5
$as_echo_n "checking for working rtsig on pipes... " >&6; }
	if test "$cross_compiling" = yes; then
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
$as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

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

else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
rm -rf conftest.dSYM
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=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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

        # OMPI: Unfortunately, this test is not sufficient for another
        # reason.  The event_poll struct is defined in the sys/epoll.h
        # file.  The structure is the interface between the application
        # and the kernel and is therefore compiled into both.  The
        # event_poll struct is defined with a compiler directive
        # __attribute__ ((__packed__).  It turns out that there is
        # at least one compiler (Sun Studio) that does not currently
        # recognize this directive.  This means that the event_poll
        # struct may be packed in the kernel, but not in the OMPI
        # library.  Badness ensues.  Therefore, check to see that
        # this struct gets correctly passed between OMPI and the
        # kernel.

        haveepoll=no
        { $as_echo "$as_me:$LINENO: checking for working epoll library interface" >&5
$as_echo_n "checking for working epoll library interface... " >&6; }
        if test "$cross_compiling" = yes; then
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
$as_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 ()
{

    struct epoll_event epevin;
    struct epoll_event epevout;
    int res;
    int epfd;
    int fildes[2];

    if ((epfd = epoll_create(1)) == -1)
        exit(1);
    if (pipe(&fildes[0]) < 0)
        exit(1);
    memset(&epevin, 0, sizeof(epevin));
    memset(&epevout, 0, sizeof(epevout));
    memset(&epevin.data.ptr, 5, sizeof(epevin.data.ptr));
    epevin.events = EPOLLIN | EPOLLOUT;

    if (epoll_ctl(epfd, EPOLL_CTL_ADD, fildes[0], &epevin) == -1)
        exit(1);

    res = epoll_wait(epfd, &epevout, 1, 0);
    if (res != 1) {
        exit(1);
    } else {
        if (epevout.data.ptr != epevin.data.ptr) {
            exit(1);
        }
    }
    /* SUCCESS */

  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  haveepoll=yes

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

        # OMPI: Don't use AC_LIBOBJ
        sources="epoll.c $sources"
        needsignal=yes
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


        { $as_echo "$as_me:$LINENO: result: $haveepoll" >&5
$as_echo "$haveepoll" >&6; }
fi

haveepollsyscall=no
if test "x$ac_cv_header_sys_epoll_h" = "xyes" -a "x$haveepoll" = "xno" -a "$cross_compiling" != "yes"; then
        # OMPI: See comment above.  This test uses the epoll system call
        # interface instead of the library interface.
        { $as_echo "$as_me:$LINENO: checking for working epoll system call" >&5
$as_echo_n "checking for working epoll system call... " >&6; }
        if test "$cross_compiling" = yes; then
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
$as_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/syscall.h>
#include <sys/epoll.h>
int
main ()
{

    struct epoll_event epevin;
    struct epoll_event epevout;
    int res;
    int epfd;
    int fildes[2];

    if ((epfd = syscall(__NR_epoll_create, 1)) == -1)
        exit(1);
    if (pipe(&fildes[0]) < 0)
        exit(1);
    memset(&epevin, 0, sizeof(epevin));
    memset(&epevout, 0, sizeof(epevout));
    memset(&epevin.data.ptr, 5, sizeof(epevin.data.ptr));
    epevin.events = EPOLLIN | EPOLLOUT;

    if (syscall(__NR_epoll_ctl, epfd,
        EPOLL_CTL_ADD, fildes[0], &epevin) == -1)
        exit(1);

    res = syscall(__NR_epoll_wait, epfd, &epevout, 1, 0);
    if (res != 1) {
        exit(1);
    } else {
        if (epevout.data.ptr != epevin.data.ptr) {
            exit(1);
        }
    }
    /* SUCCESS */

  ;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  haveepollsyscall=yes

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

        # OMPI: don't use AC_LIBOBJ
        sources="epoll_sub.c epoll.c $sources"
        needsignal=yes
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


        { $as_echo "$as_me:$LINENO: result: $haveepollsyscall" >&5
$as_echo "$haveepollsyscall" >&6; }
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
    # All versions of MAC OS X before at least 10.5.2 are
    # completely broken when kqueue is used with pty. So, until
    # they get fixed, completely disable kqueue on MAC OS X.
    case "$host" in
        *apple-darwin*)
		    { $as_echo "$as_me:$LINENO: checking for working kqueue" >&5
$as_echo_n "checking for working kqueue... " >&6; }
            havekqueue="no"
            { $as_echo "$as_me:$LINENO: result: no (MAC OS X)" >&5
$as_echo "no (MAC OS X)" >&6; }
        ;;
        *)

for ac_func in kqueue
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 havekqueue=yes
fi
done

        ;;
    esac
	if test "x$havekqueue" = "xyes" ; then
		{ $as_echo "$as_me:$LINENO: checking for working kqueue" >&5
$as_echo_n "checking for working kqueue... " >&6; }
		if test "$cross_compiling" = yes; then
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

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

    sources="kqueue.c $sources"
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
rm -rf conftest.dSYM
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

haveeventports=no

for ac_func in port_create
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 haveeventports=yes
fi
done

# JMS Per #1273, Solaris event ports are temporarily disabled.
haveeventports=no
if test "x$haveeventports" = "xyes" ; then

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

    sources="evport.c $sources"
    needsignal=yes
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)

{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
$as_echo_n "checking for pid_t... " >&6; }
if test "${ac_cv_type_pid_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_pid_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (pid_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((pid_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_pid_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
$as_echo "$ac_cv_type_pid_t" >&6; }
if test "x$ac_cv_type_pid_t" = x""yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi

{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
$as_echo_n "checking for size_t... " >&6; }
if test "${ac_cv_type_size_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_size_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (size_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((size_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_size_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
$as_echo "$ac_cv_type_size_t" >&6; }
if test "x$ac_cv_type_size_t" = x""yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi

{ $as_echo "$as_me:$LINENO: checking for u_int64_t" >&5
$as_echo_n "checking for u_int64_t... " >&6; }
if test "${ac_cv_type_u_int64_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_u_int64_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (u_int64_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((u_int64_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int64_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
$as_echo "$ac_cv_type_u_int64_t" >&6; }
if test "x$ac_cv_type_u_int64_t" = x""yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define u_int64_t unsigned long long
_ACEOF

fi

{ $as_echo "$as_me:$LINENO: checking for u_int32_t" >&5
$as_echo_n "checking for u_int32_t... " >&6; }
if test "${ac_cv_type_u_int32_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_u_int32_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (u_int32_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((u_int32_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int32_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
$as_echo "$ac_cv_type_u_int32_t" >&6; }
if test "x$ac_cv_type_u_int32_t" = x""yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define u_int32_t unsigned int
_ACEOF

fi

{ $as_echo "$as_me:$LINENO: checking for u_int16_t" >&5
$as_echo_n "checking for u_int16_t... " >&6; }
if test "${ac_cv_type_u_int16_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_u_int16_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (u_int16_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((u_int16_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int16_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
$as_echo "$ac_cv_type_u_int16_t" >&6; }
if test "x$ac_cv_type_u_int16_t" = x""yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define u_int16_t unsigned short
_ACEOF

fi

{ $as_echo "$as_me:$LINENO: checking for u_int8_t" >&5
$as_echo_n "checking for u_int8_t... " >&6; }
if test "${ac_cv_type_u_int8_t+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_type_u_int8_t=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof (u_int8_t))
       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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if (sizeof ((u_int8_t)))
	  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_type_u_int8_t=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
$as_echo "$ac_cv_type_u_int8_t" >&6; }
if test "x$ac_cv_type_u_int8_t" = x""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 = no compiler/linker tests after this)
############################################################################

ompi_show_subtitle "Libtool configuration"

# Use the undocumented solaris_use_stlport4 libtool variable to turn off any
# Cstd/stlport4 linkage. This allows Open MPI to be C++ STL agnostic.
if test "x$ompi_cv_c_compiler_vendor" = "xsun"; then
    solaris_use_stlport4="yes"
fi












case $enable_ltdl_convenience in
  no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
$as_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_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
LTDLDEPS=$LIBLTDL
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"





# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"



case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
esac



macro_version='2.2.6b'
macro_revision='1.3017'













ltmain="$ac_aux_dir/ltmain.sh"

{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if test "${ac_cv_path_SED+set}" = set; then
  $as_echo_n "(cached) " >&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" 2>/dev/null | sed 99q >conftest.sed
     $as_unset ac_script || ac_script=
     if test -z "$SED"; then
  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
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_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
  if test -z "$ac_cv_path_SED"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
$as_echo "$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.
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&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
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then
  $as_echo_n "(cached) " >&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
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld









# find the maximum length of command line arguments
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  $as_echo_n "(cached) " >&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* | cegcc*)
    # 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
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
fi
max_cmd_len=$lt_cv_sys_max_cmd_len






: ${CP="cp -f"}
: ${MV="mv -f"}
: ${RM="rm -f"}

{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
$as_echo_n "checking whether the shell understands some XSI constructs... " >&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,, \
    && eval 'test $(( 1 + 1 )) -eq 2 \
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
$as_echo "$xsi_shell" >&6; }


{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
lt_shell_append=no
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
    >/dev/null 2>&1 \
  && lt_shell_append=yes
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
$as_echo "$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









{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
$as_echo_n "checking for $LD option to reload object files... " >&6; }
if test "${lt_cv_ld_reload_flag+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_reload_flag='-r'
fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
$as_echo "$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









if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  $as_echo_n "(cached) " >&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="${ac_tool_prefix}objdump"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_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_ac_ct_OBJDUMP="objdump"
    $as_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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

test -z "$OBJDUMP" && OBJDUMP=objdump






{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
if test "${lt_cv_deplibs_check_method+set}" = set; then
  $as_echo_n "(cached) " >&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
aix[4-9]*)
  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
  ;;

cegcc)
  # use the weaker test based on 'objdump'. See mingw*.
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  lt_cv_file_magic_cmd='$OBJDUMP -f'
  ;;

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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AR+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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.
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  $as_echo_n "(cached) " >&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* | cegcc*)
  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=$?
  $as_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=$?
  $as_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=$?
  $as_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 -rf 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
  { $as_echo "$as_me:$LINENO: result: failed" >&5
$as_echo "failed" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: ok" >&5
$as_echo "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=$?
  $as_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 169797 "configure"' > conftest.$ac_ext
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  $as_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=$?
  $as_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"
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
if test "${lt_cv_cc_needs_belf+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  lt_cv_cc_needs_belf=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	lt_cv_cc_needs_belf=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
$as_echo "$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=$?
  $as_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"


  case $host_os in
    rhapsody* | darwin*)
    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$DSYMUTIL"; then
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
DSYMUTIL=$ac_cv_prog_DSYMUTIL
if test -n "$DSYMUTIL"; then
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
$as_echo "$DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DSYMUTIL"; then
  ac_ct_DSYMUTIL=$DSYMUTIL
  # Extract the first word of "dsymutil", so it can be a program name with args.
set dummy dsymutil; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DSYMUTIL"; then
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil"
    $as_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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
if test -n "$ac_ct_DSYMUTIL"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
$as_echo "$ac_ct_DSYMUTIL" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DSYMUTIL" = x; then
    DSYMUTIL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DSYMUTIL=$ac_ct_DSYMUTIL
  fi
else
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_NMEDIT+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$NMEDIT"; then
  ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
NMEDIT=$ac_cv_prog_NMEDIT
if test -n "$NMEDIT"; then
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
$as_echo "$NMEDIT" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_NMEDIT"; then
  ac_ct_NMEDIT=$NMEDIT
  # Extract the first word of "nmedit", so it can be a program name with args.
set dummy nmedit; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NMEDIT"; then
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_NMEDIT="nmedit"
    $as_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_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
if test -n "$ac_ct_NMEDIT"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
$as_echo "$ac_ct_NMEDIT" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_NMEDIT" = x; then
    NMEDIT=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NMEDIT=$ac_ct_NMEDIT
  fi
else
  NMEDIT="$ac_cv_prog_NMEDIT"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
set dummy ${ac_tool_prefix}lipo; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_LIPO+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$LIPO"; then
  ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
LIPO=$ac_cv_prog_LIPO
if test -n "$LIPO"; then
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
$as_echo "$LIPO" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_LIPO"; then
  ac_ct_LIPO=$LIPO
  # Extract the first word of "lipo", so it can be a program name with args.
set dummy lipo; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_LIPO"; then
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_LIPO="lipo"
    $as_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_LIPO=$ac_cv_prog_ac_ct_LIPO
if test -n "$ac_ct_LIPO"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
$as_echo "$ac_ct_LIPO" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_LIPO" = x; then
    LIPO=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    LIPO=$ac_ct_LIPO
  fi
else
  LIPO="$ac_cv_prog_LIPO"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OTOOL+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL"; then
  ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
OTOOL=$ac_cv_prog_OTOOL
if test -n "$OTOOL"; then
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
$as_echo "$OTOOL" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL"; then
  ac_ct_OTOOL=$OTOOL
  # Extract the first word of "otool", so it can be a program name with args.
set dummy otool; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL"; then
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool"
    $as_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_OTOOL=$ac_cv_prog_ac_ct_OTOOL
if test -n "$ac_ct_OTOOL"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
$as_echo "$ac_ct_OTOOL" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL" = x; then
    OTOOL=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL=$ac_ct_OTOOL
  fi
else
  OTOOL="$ac_cv_prog_OTOOL"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
set dummy ${ac_tool_prefix}otool64; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OTOOL64+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$OTOOL64"; then
  ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
OTOOL64=$ac_cv_prog_OTOOL64
if test -n "$OTOOL64"; then
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
$as_echo "$OTOOL64" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OTOOL64"; then
  ac_ct_OTOOL64=$OTOOL64
  # Extract the first word of "otool64", so it can be a program name with args.
set dummy otool64; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OTOOL64"; then
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64"
    $as_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_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
if test -n "$ac_ct_OTOOL64"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
$as_echo "$ac_ct_OTOOL64" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OTOOL64" = x; then
    OTOOL64=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OTOOL64=$ac_ct_OTOOL64
  fi
else
  OTOOL64="$ac_cv_prog_OTOOL64"
fi



























    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
$as_echo_n "checking for -single_module linker flag... " >&6; }
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  $as_echo_n "(cached) " >&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.
	rm -rf libconftest.dylib*
	echo "int foo(void){return 1;}" > conftest.c
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&5
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
        _lt_result=$?
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
	  lt_cv_apple_cc_single_mod=yes
	else
	  cat conftest.err >&5
	fi
	rm -rf libconftest.dylib*
	rm -f conftest.*
      fi
fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_ld_exported_symbols_list=no
      save_LDFLAGS=$LDFLAGS
      echo "_main" > conftest.sym
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
      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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  lt_cv_ld_exported_symbols_list=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	lt_cv_ld_exported_symbols_list=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
	LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    case $host_os in
    rhapsody* | darwin1.[012])
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    darwin1.*)
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    darwin*) # darwin 5.x on
      # if running on 10.5 or later, the deployment target defaults
      # to the OS version, if on x86, and 10.4, the deployment
      # target defaults to 10.4. Don't you love it?
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
	10.[012]*)
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
	10.*)
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
      esac
    ;;
  esac
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
      _lt_dar_single_mod='$single_module'
    fi
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    else
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    fi
    if test "$DSYMUTIL" != ":"; then
      _lt_dsymutil='~$DSYMUTIL $lib || :'
    else
      _lt_dsymutil=
    fi
    ;;
  esac


for ac_header in dlfcn.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_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
  $as_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 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$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=

{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
$as_echo "$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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$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
  $as_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
  $as_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
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
_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 pgfortran 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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_F77+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
$as_echo "$F77" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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 pgfortran 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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
$as_echo "$ac_ct_F77" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    F77=$ac_ct_F77
  fi
fi


# Provide some information about the compiler.
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FFLAGS+set}
ac_save_FFLAGS=$FFLAGS
FFLAGS=
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
if test "${ac_cv_prog_f77_g+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
$as_echo "$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

if test $ac_compiler_gnu = yes; then
  G77=yes
else
  G77=
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 "$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 pgfortran 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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_FC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $FC" >&5
$as_echo "$FC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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 pgfortran 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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
  $as_echo_n "(cached) " >&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"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
$as_echo "$ac_ct_FC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    FC=$ac_ct_FC
  fi
fi


# Provide some information about the compiler.
$as_echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  $as_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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
if test "${ac_cv_fc_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FCFLAGS+set}
ac_save_FFLAGS=$FCFLAGS
FCFLAGS=
{ $as_echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
$as_echo_n "checking whether $FC accepts -g... " >&6; }
if test "${ac_cv_prog_fc_g+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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
  $as_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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
$as_echo "$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




# Set options
enable_dlopen=yes
enable_win32_dll=yes

case $host in
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
set dummy ${ac_tool_prefix}as; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AS+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$AS"; then
  ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
AS=$ac_cv_prog_AS
if test -n "$AS"; then
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
$as_echo "$AS" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AS"; then
  ac_ct_AS=$AS
  # Extract the first word of "as", so it can be a program name with args.
set dummy as; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AS"; then
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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_AS="as"
    $as_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_AS=$ac_cv_prog_ac_ct_AS
if test -n "$ac_ct_AS"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
$as_echo "$ac_ct_AS" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_AS" = x; then
    AS="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AS=$ac_ct_AS
  fi
else
  AS="$ac_cv_prog_AS"
fi

  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool"
    $as_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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
fi

  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  $as_echo_n "(cached) " >&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="${ac_tool_prefix}objdump"
    $as_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
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_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_ac_ct_OBJDUMP="objdump"
    $as_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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

  ;;
esac

test -z "$AS" && AS=as





test -z "$DLLTOOL" && DLLTOOL=dlltool





test -z "$OBJDUMP" && OBJDUMP=objdump












# 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











# 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

{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
$as_echo_n "checking for objdir... " >&6; }
if test "${lt_cv_objdir+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
$as_echo "$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
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  $as_echo_n "(cached) " >&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
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi





if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
    { $as_echo "$as_me:$LINENO: checking for file" >&5
$as_echo_n "checking for file... " >&6; }
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  $as_echo_n "(cached) " >&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
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
$as_echo "$MAGIC_CMD" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "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 -r conftest*


## 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...
if test -n "$compiler"; then

lt_prog_compiler_no_builtin_flag=

if test "$GCC" = yes; then
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'

  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  $as_echo_n "(cached) " >&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:172662: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:172666: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
$as_echo "$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=

{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&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*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic='-fPIC'
        ;;
      m68k)
            # 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'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # 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 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +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
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # 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
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-KPIC'
	lt_prog_compiler_static='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-fPIC'
	lt_prog_compiler_static='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='--shared'
	lt_prog_compiler_static='--static'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # 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'
        ;;
      xl*)
	# IBM XL C 8.0/Fortran 10.1 on PPC
	lt_prog_compiler_wl='-Wl,'
	lt_prog_compiler_pic='-qpic'
	lt_prog_compiler_static='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ F* | *Sun*Fortran*)
	  # 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=''
	  ;;
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic='-KPIC'
	  lt_prog_compiler_static='-Bstatic'
	  lt_prog_compiler_wl='-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
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
$as_echo "$lt_prog_compiler_pic" >&6; }






#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic"; then
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_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:173001: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:173005: \$? = $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_pic_works=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }

if test x"$lt_cv_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\"
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_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_cv_prog_compiler_static_works=yes
       fi
     else
       lt_cv_prog_compiler_static_works=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }

if test x"$lt_cv_prog_compiler_static_works" = xyes; then
    :
else
    lt_prog_compiler_static=
fi







  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  $as_echo_n "(cached) " >&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:173106: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:173110: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }






  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  $as_echo_n "(cached) " >&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:173161: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:173165: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
$as_echo "$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
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&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
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_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






  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&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_|_GLOBAL__F[ID]_.*'
  # 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.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # 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
    aix[3-9]*)
      # 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*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            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
        ;;
      esac
      ;;

    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* | cegcc*)
      # _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=
	tmp_sharedflag='-shared'
	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* | pgfortran*)	# 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' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec=
	  tmp_sharedflag='--shared' ;;
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	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' ;;
	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

	case $cc_basename in
	xlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec=
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $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~
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      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
      ;;

    aix[4-9]*)
      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].*|aix[5-9]*)
	  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

      export_dynamic_flag_spec='${wl}-bexpall'
      # 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds=''
        ;;
      m68k)
            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
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # 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*)


  archive_cmds_need_lc=no
  hardcode_direct=no
  hardcode_automatic=yes
  hardcode_shlibpath_var=unsupported
  whole_archive_flag_spec=''
  link_all_deplibs=yes
  allow_undefined_flag="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=echo
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs=no
  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 -fPIC ${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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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

{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
$as_echo "$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.
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&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=$?
  $as_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=$?
  $as_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*
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
$as_echo "$archive_cmds_need_lc" >&6; }
      ;;
    esac
  fi
  ;;
esac





























































































































































  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

if test "$GCC" = 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'
  ;;

aix[4-9]*)
  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*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    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'
    ;;
  esac
  ;;

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* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    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* | cegcc*)
      # 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  shlibpath_overrides_runpath=yes
fi

else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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_names_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
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
$as_echo "$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

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi























































































  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&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
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
$as_echo "$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* | cegcc*)
    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
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dl_dlopen=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dl_dlopen=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""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

    ;;

  *)
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
$as_echo_n "checking for shl_load... " >&6; }
if test "${ac_cv_func_shl_load+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_shl_load=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_shl_load=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
$as_echo "$ac_cv_func_shl_load" >&6; }
if test "x$ac_cv_func_shl_load" = x""yes; then
  lt_cv_dlopen="shl_load"
else
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
$as_echo_n "checking for shl_load in -ldld... " >&6; }
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dld_shl_load=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dld_shl_load=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
else
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
$as_echo_n "checking for dlopen... " >&6; }
if test "${ac_cv_func_dlopen+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_dlopen=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_dlopen=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
$as_echo "$ac_cv_func_dlopen" >&6; }
if test "x$ac_cv_func_dlopen" = x""yes; then
  lt_cv_dlopen="dlopen"
else
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dl_dlopen=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dl_dlopen=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
else
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_svld_dlopen=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_svld_dlopen=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
else
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
$as_echo_n "checking for dld_link in -ldld... " >&6; }
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dld_dld_link=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dld_dld_link=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
if test "x$ac_cv_lib_dld_dld_link" = x""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"

    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self+set}" = set; then
  $as_echo_n "(cached) " >&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 175961 "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

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 ());

  return status;
}
_LT_EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
$as_echo "$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\"
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
if test "${lt_cv_dlopen_self_static+set}" = set; then
  $as_echo_n "(cached) " >&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 176057 "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

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 ());

  return status;
}
_LT_EOF
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  $as_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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
$as_echo "$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=
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
$as_echo_n "checking whether stripping libraries is possible... " >&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"
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "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"
      { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
      { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
    ;;
  *)
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ;;
  esac
fi












  # Report which library types will actually be built
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&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
    ;;

  aix[4-9]*)
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
      test "$enable_shared" = yes && enable_static=no
    fi
    ;;
  esac
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
  # Make sure either enable_shared or enable_static is yes.
  test "$enable_shared" = yes || enable_static=yes
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
$as_echo "$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 -r 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.
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
$as_echo_n "checking for ld used by $CC... " >&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
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
$as_echo_n "checking for GNU ld... " >&6; }
else
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
$as_echo_n "checking for non-GNU ld... " >&6; }
fi
if test "${lt_cv_path_LD+set}" = set; then
  $as_echo_n "(cached) " >&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
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
$as_echo "$LD" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
if test "${lt_cv_prog_gnu_ld+set}" = set; then
  $as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
with_gnu_ld=$lt_cv_prog_gnu_ld







      # Check if GNU C++ uses GNU ld as the underlying linker, since the
      # archiving commands below assume that GNU ld is being used.
      if test "$with_gnu_ld" = yes; then
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'

        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'

        # If archive_cmds runs LD, not CC, wlarc should be empty
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
        #     investigate it a little bit more. (MM)
        wlarc='${wl}'

        # ancient GNU ld didn't support --whole-archive et. al.
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
	  $GREP 'no-whole-archive' > /dev/null; then
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        else
          whole_archive_flag_spec_CXX=
        fi
      else
        with_gnu_ld=no
        wlarc=

        # A generic and very simple default shared library creation
        # command for GNU C++ for the case where it uses the native
        # linker, instead of GNU ld.  If possible, this setting should
        # overridden to take advantage of the native linker features on
        # the platform it is being used on.
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
      fi

      # Commands to make compiler produce verbose output that lists
      # what "hidden" libraries, object files and flags are used when
      # linking a shared library.
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'

    else
      GXX=no
      with_gnu_ld=no
      wlarc=
    fi

    # PORTME: fill in a description of your system's C++ link characteristics
    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    ld_shlibs_CXX=yes
    case $host_os in
      aix3*)
        # FIXME: insert proper C++ library support
        ld_shlibs_CXX=no
        ;;
      aix[4-9]*)
        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].*|aix[5-9]*)
	    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

        export_dynamic_flag_spec_CXX='${wl}-bexpall'
        # 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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* | cegcc*)
        # _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*)


  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
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=echo
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
      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${_lt_dsymutil}"
      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${_lt_dar_export_syms}${_lt_dsymutil}"
    fi

  else
  ld_shlibs_CXX=no
  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'
	    ;;
	  xl*)
	    # IBM XL 8.0 on PPC, with GNU ld
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
	    if test "x$supports_anon_versioning" = xyes; then
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
		echo "local: *; };" >> $output_objdir/$libname.ver~
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
	    fi
	    ;;
	  *)
	    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

    { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
$as_echo "$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=$?
  $as_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

  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
 compiler_lib_search_dirs_CXX=
if test -n "${compiler_lib_search_path_CXX}"; then
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi































    lt_prog_compiler_wl_CXX=
lt_prog_compiler_pic_CXX=
lt_prog_compiler_static_CXX=

{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&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*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_CXX='-fPIC'
        ;;
      m68k)
            # 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'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # 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 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	;;
      *)
	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
      aix[4-9]*)
	# 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
	;;
      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'
	    ;;
	  ecpc* )
	    # old Intel C++ for x86_64 which still supported -KPIC.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-KPIC'
	    lt_prog_compiler_static_CXX='-static'
	    ;;
	  icpc* )
	    # Intel C++, used to be incompatible with GCC.
	    # ICC 10 doesn't accept -KPIC any more.
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-fPIC'
	    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'
	    ;;
	  xlc* | xlC*)
	    # IBM XL 8.0 on PPC
	    lt_prog_compiler_wl_CXX='-Wl,'
	    lt_prog_compiler_pic_CXX='-qpic'
	    lt_prog_compiler_static_CXX='-qstaticlink'
	    ;;
	  *)
	    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
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }



#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_CXX"; then
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_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:178077: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:178081: \$? = $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_pic_works_CXX=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }

if test x"$lt_cv_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\"
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_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_cv_prog_compiler_static_works_CXX=yes
       fi
     else
       lt_cv_prog_compiler_static_works_CXX=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }

if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    :
else
    lt_prog_compiler_static_CXX=
fi




    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  $as_echo_n "(cached) " >&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:178176: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:178180: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }



    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  $as_echo_n "(cached) " >&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:178228: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:178232: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
$as_echo "$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
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&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
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_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



    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }

  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  case $host_os in
  aix[4-9]*)
    # 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* | cegcc*)
    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
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'

{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
$as_echo "$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.
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&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=$?
  $as_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=$?
  $as_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*
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
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'
  ;;

aix[4-9]*)
  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*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    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'
    ;;
  esac
  ;;

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* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    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* | cegcc*)
      # 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  shlibpath_overrides_runpath=yes
fi

else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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_names_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
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
$as_echo "$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

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




































    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&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
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
$as_echo "$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 -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC="$CC"
  lt_save_GCC=$GCC
  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-%%"`

  GCC=$G77
  if test -n "$compiler"; then
    { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

    { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&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
        ;;
      aix[4-9]*)
	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
	  test "$enable_shared" = yes && enable_static=no
	fi
        ;;
    esac
    { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

    { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
    # Make sure either enable_shared or enable_static is yes.
    test "$enable_shared" = yes || enable_static=yes
    { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
$as_echo "$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=

{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&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*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_F77='-fPIC'
        ;;
      m68k)
            # 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'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # 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 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +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
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # 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
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-KPIC'
	lt_prog_compiler_static_F77='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-fPIC'
	lt_prog_compiler_static_F77='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='--shared'
	lt_prog_compiler_static_F77='--static'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # 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'
        ;;
      xl*)
	# IBM XL C 8.0/Fortran 10.1 on PPC
	lt_prog_compiler_wl_F77='-Wl,'
	lt_prog_compiler_pic_F77='-qpic'
	lt_prog_compiler_static_F77='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ F* | *Sun*Fortran*)
	  # 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=''
	  ;;
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic_F77='-KPIC'
	  lt_prog_compiler_static_F77='-Bstatic'
	  lt_prog_compiler_wl_F77='-Wl,'
	  ;;
	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
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
$as_echo "$lt_prog_compiler_pic_F77" >&6; }



#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_F77"; then
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_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:179640: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:179644: \$? = $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_pic_works_F77=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }

if test x"$lt_cv_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\"
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_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_cv_prog_compiler_static_works_F77=yes
       fi
     else
       lt_cv_prog_compiler_static_works_F77=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }

if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
    :
else
    lt_prog_compiler_static_F77=
fi




    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  $as_echo_n "(cached) " >&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:179739: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:179743: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }



    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  $as_echo_n "(cached) " >&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:179791: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:179795: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
$as_echo "$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
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&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
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_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



    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&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_|_GLOBAL__F[ID]_.*'
  # 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.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # 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
    aix[3-9]*)
      # 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*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds_F77=''
        ;;
      m68k)
            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
        ;;
      esac
      ;;

    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* | cegcc*)
      # _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=
	tmp_sharedflag='-shared'
	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* | pgfortran*)	# 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' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec_F77=
	  tmp_sharedflag='--shared' ;;
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	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' ;;
	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

	case $cc_basename in
	xlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec_F77=
	  hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
	  archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $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~
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      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
      ;;

    aix[4-9]*)
      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].*|aix[5-9]*)
	  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

      export_dynamic_flag_spec_F77='${wl}-bexpall'
      # 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds_F77=''
        ;;
      m68k)
            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
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_F77=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # 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*)


  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
  allow_undefined_flag_F77="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=echo
    archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs_F77=no
  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 -fPIC ${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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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

{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
$as_echo "$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.
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&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=$?
  $as_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=$?
  $as_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*
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
$as_echo "$archive_cmds_need_lc_F77" >&6; }
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
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'
  ;;

aix[4-9]*)
  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*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    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'
    ;;
  esac
  ;;

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* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    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* | cegcc*)
      # 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  shlibpath_overrides_runpath=yes
fi

else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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_names_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
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
$as_echo "$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

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




































    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&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
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
$as_echo "$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"

  GCC=$lt_save_GCC
  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 -r conftest*


  # Allow CC to be a program name with arguments.
  lt_save_CC="$CC"
  lt_save_GCC=$GCC
  CC=${FC-"f95"}
  compiler=$CC
  GCC=$ac_cv_fc_compiler_gnu

  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
    { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
    { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
$as_echo "$can_build_shared" >&6; }

    { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
$as_echo_n "checking whether to build shared libraries... " >&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
        ;;
      aix[4-9]*)
	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
	  test "$enable_shared" = yes && enable_static=no
	fi
        ;;
    esac
    { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
$as_echo "$enable_shared" >&6; }

    { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
$as_echo_n "checking whether to build static libraries... " >&6; }
    # Make sure either enable_shared or enable_static is yes.
    test "$enable_shared" = yes || enable_static=yes
    { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
$as_echo "$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=$?
  $as_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

  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
 compiler_lib_search_dirs_FC=
if test -n "${compiler_lib_search_path_FC}"; then
 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
fi













    lt_prog_compiler_wl_FC=
lt_prog_compiler_pic_FC=
lt_prog_compiler_static_FC=

{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
$as_echo_n "checking for $compiler option to produce PIC... " >&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*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            lt_prog_compiler_pic_FC='-fPIC'
        ;;
      m68k)
            # 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'
        ;;
      esac
      ;;

    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # 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 64-bit PA HP-UX, but not for 32-bit
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      hppa*64*)
	# +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
      ;;

    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # 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
      # old Intel for x86_64 which still supported -KPIC.
      ecc*)
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='-KPIC'
	lt_prog_compiler_static_FC='-static'
        ;;
      # icc used to be incompatible with GCC.
      # ICC 10 doesn't accept -KPIC any more.
      icc* | ifort*)
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='-fPIC'
	lt_prog_compiler_static_FC='-static'
        ;;
      # Lahey Fortran 8.1.
      lf95*)
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='--shared'
	lt_prog_compiler_static_FC='--static'
	;;
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
        # 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'
        ;;
      xl*)
	# IBM XL C 8.0/Fortran 10.1 on PPC
	lt_prog_compiler_wl_FC='-Wl,'
	lt_prog_compiler_pic_FC='-qpic'
	lt_prog_compiler_static_FC='-qstaticlink'
	;;
      *)
	case `$CC -V 2>&1 | sed 5q` in
	*Sun\ F* | *Sun*Fortran*)
	  # 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=''
	  ;;
	*Sun\ C*)
	  # Sun C 5.9
	  lt_prog_compiler_pic_FC='-KPIC'
	  lt_prog_compiler_static_FC='-Bstatic'
	  lt_prog_compiler_wl_FC='-Wl,'
	  ;;
	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
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
$as_echo "$lt_prog_compiler_pic_FC" >&6; }



#
# Check to make sure the PIC flag actually works.
#
if test -n "$lt_prog_compiler_pic_FC"; then
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_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:182341: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>conftest.err)
   ac_status=$?
   cat conftest.err >&5
   echo "$as_me:182345: \$? = $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_pic_works_FC=yes
     fi
   fi
   $RM conftest*

fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_FC" >&5
$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }

if test x"$lt_cv_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\"
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  lt_cv_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_cv_prog_compiler_static_works_FC=yes
       fi
     else
       lt_cv_prog_compiler_static_works_FC=yes
     fi
   fi
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"

fi
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_FC" >&5
$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }

if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
    :
else
    lt_prog_compiler_static_FC=
fi




    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
  $as_echo_n "(cached) " >&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:182440: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:182444: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }



    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
  $as_echo_n "(cached) " >&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:182492: $lt_compile\"" >&5)
   (eval "$lt_compile" 2>out/conftest.err)
   ac_status=$?
   cat out/conftest.err >&5
   echo "$as_me:182496: \$? = $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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
$as_echo "$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
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
$as_echo_n "checking if we can lock with hard links... " >&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
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
$as_echo "$hard_links" >&6; }
  if test "$hard_links" = no; then
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
$as_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



    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&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_|_GLOBAL__F[ID]_.*'
  # 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.
  # Exclude shared library initialization/finalization symbols.
  extract_expsyms_cmds=

  case $host_os in
  cygwin* | mingw* | pw32* | cegcc*)
    # 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
    aix[3-9]*)
      # 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*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds_FC=''
        ;;
      m68k)
            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
        ;;
      esac
      ;;

    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* | cegcc*)
      # _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=
	tmp_sharedflag='-shared'
	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* | pgfortran*)	# 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' ;;
	lf95*)				# Lahey Fortran 8.1
	  whole_archive_flag_spec_FC=
	  tmp_sharedflag='--shared' ;;
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
	  tmp_sharedflag='-qmkshrobj'
	  tmp_addflag= ;;
	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' ;;
	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

	case $cc_basename in
	xlf*)
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
	  hardcode_libdir_flag_spec_FC=
	  hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
	  archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $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~
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
	  fi
	  ;;
	esac
      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
      ;;

    aix[4-9]*)
      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].*|aix[5-9]*)
	  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

      export_dynamic_flag_spec_FC='${wl}-bexpall'
      # 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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*)
      case $host_cpu in
      powerpc)
            # see comment about AmigaOS4 .so support
            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
            archive_expsym_cmds_FC=''
        ;;
      m68k)
            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
        ;;
      esac
      ;;

    bsdi[45]*)
      export_dynamic_flag_spec_FC=-rdynamic
      ;;

    cygwin* | mingw* | pw32* | cegcc*)
      # 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*)


  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
  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
  case $cc_basename in
     ifort*) _lt_dar_can_shared=yes ;;
     *) _lt_dar_can_shared=$GCC ;;
  esac
  if test "$_lt_dar_can_shared" = "yes"; then
    output_verbose_link_cmd=echo
    archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
    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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
    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${_lt_dar_export_syms}${_lt_dsymutil}"

  else
  ld_shlibs_FC=no
  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 -fPIC ${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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $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
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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

{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
$as_echo "$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.
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
$as_echo_n "checking whether -lc should be explicitly linked in... " >&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=$?
  $as_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=$?
  $as_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*
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
$as_echo "$archive_cmds_need_lc_FC" >&6; }
      ;;
    esac
  fi
  ;;
esac
































































    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
$as_echo_n "checking dynamic linker characteristics... " >&6; }

library_names_spec=
libname_spec='lib$name'
soname_spec=
shrext_cmds=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
finish_eval=
shlibpath_var=
shlibpath_overrides_runpath=unknown
version_type=none
dynamic_linker="$host_os ld.so"
sys_lib_dlsearch_path_spec="/lib /usr/lib"
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'
  ;;

aix[4-9]*)
  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*)
  case $host_cpu in
  powerpc)
    # Since July 2007 AmigaOS4 officially supports .so libraries.
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    ;;
  m68k)
    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'
    ;;
  esac
  ;;

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* | cegcc*)
  version_type=windows
  shrext_cmds=".dll"
  need_version=no
  need_lib_prefix=no

  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    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* | cegcc*)
      # 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_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 && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  shlibpath_overrides_runpath=yes
fi

else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
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_names_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
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
$as_echo "$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

if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
fi
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
fi




































    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
$as_echo_n "checking how to hardcode library paths into programs... " >&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
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
$as_echo "$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"

  GCC=$lt_save_GCC
  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:




ompi_show_subtitle "GNU libltdl setup"

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

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 $OMPI_VISIBILITY_CFLAGS"


#
# 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
    { $as_echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
$as_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" ||
		{ { $as_echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
$as_echo "$as_me: error: cannot create $subdir_dir" >&2;}
   { (exit 1); exit 1; }; }
		;;
	    esac
	done; }

	if test -d ./$subdir_dir; then :;
	else
	    { { $as_echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
$as_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'"
    { $as_echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
$as_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
	{ $as_echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
    else
	eval $subdir_failure
	{ $as_echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
$as_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

        CPPFLAGS_save="$CPPFLAGS"
        CPPFLAGS="-I."
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <opal/libltdl/ltdl.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "lt_dladvise_init" >/dev/null 2>&1; then
  OPAL_HAVE_LTDL_ADVISE=1
else
  OPAL_HAVE_LTDL_ADVISE=0
fi
rm -f conftest*

        CPPFLAGS="$CPPFLAGS_save"

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

{ $as_echo "$as_me:$LINENO: checking for libtool-supplied linker flags" >&5
$as_echo_n "checking for libtool-supplied linker flags... " >&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:184718: $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:184731: \$? = $status" >&5
else
    echo \$? = $status >&5
fi
    if test "$status" != "0"; then
	{ $as_echo "$as_me:$LINENO: result: libtool error!" >&5
$as_echo "libtool error!" >&6; }
	{ { $as_echo "$as_me:$LINENO: error: Cannot continue" >&5
$as_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
    { $as_echo "$as_me:$LINENO: result: $extra_ldflags" >&5
$as_echo "$extra_ldflags" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no extra flags" >&5
$as_echo "no extra flags" >&6; }
fi

cd ..
rm -rf conftest.$$

        WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $extra_ldflags"
        LDFLAGS="-export-dynamic $LDFLAGS"
    else
        { { $as_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
$as_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"
else
    { $as_echo "$as_me:$LINENO: WARNING: libltdl support disabled (by --disable-dlopen)" >&5
$as_echo "$as_me: WARNING: libltdl support disabled (by --disable-dlopen)" >&2;}

    LIBLTDL=
    LIBLTDL_SUBDIR=
    OPAL_HAVE_LTDL_ADVISE=0

    # 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






cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_LIBLTDL $OMPI_ENABLE_DLOPEN_SUPPORT
_ACEOF



cat >>confdefs.h <<_ACEOF
#define OPAL_HAVE_LTDL_ADVISE $OPAL_HAVE_LTDL_ADVISE
_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
    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
    # for an explanation of [ and ] -- they m4 expand to [ and ]
    case $s_word in
    -g)                 ;;
    -g[1-3])      ;;
    +K[0-5])      ;;
    -O)                 ;;
    -O[0-9])      ;;
    -xO)                ;;
    -xO[0-9])     ;;
    -fast)              ;;
    -finline-functions) ;;

    # The below Sun Studio flags require or
    # trigger -xO optimization
    -xvector*)          ;;
    -xdepend=yes)       ;;

    *)     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
    # Tweak the compiler flags passed to orterun for Sun Studio SPARC
    # https://svn.open-mpi.org/trac/ompi/ticket/1448
    if test "x$ompi_cv_c_compiler_vendor" = "xsun" -a -n "`echo $host | $GREP sparc`"; then
        TOTALVIEW_DEBUG_FLAGS="-g -xO0"
    else
        # Tweak the compiler flags passed for intel
        # to stop its aggressive inlining of functions
        if test "x$ompi_cv_c_compiler_vendor" = "xintel"; then
            TOTALVIEW_DEBUG_FLAGS="-g -O0"
        else
            TOTALVIEW_DEBUG_FLAGS="-g"
        fi
    fi
fi
{ $as_echo "$as_me:$LINENO: checking which of CFLAGS are ok for TotalView modules" >&5
$as_echo_n "checking which of CFLAGS are ok for TotalView modules... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $CFLAGS_WITHOUT_OPTFLAGS" >&5
$as_echo "$CFLAGS_WITHOUT_OPTFLAGS" >&6; }
{ $as_echo "$as_me:$LINENO: checking extra CFLAGS for TotalView modules" >&5
$as_echo_n "checking extra CFLAGS for TotalView modules... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $TOTALVIEW_DEBUG_FLAGS" >&5
$as_echo "$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.
#











#
# Aggregate MCA parameters directory
#
AMCA_PARAM_SETS_DIR='$(pkgdatadir)/amca-param-sets'


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

    { $as_echo "$as_me:$LINENO: checking for OPAL CPPFLAGS" >&5
$as_echo_n "checking for OPAL CPPFLAGS... " >&6; }
    OPAL_WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $USER_WRAPPER_EXTRA_CPPFLAGS"

    { $as_echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CPPFLAGS" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_CPPFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OPAL CFLAGS" >&5
$as_echo_n "checking for OPAL CFLAGS... " >&6; }
    OPAL_WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $USER_WRAPPER_EXTRA_CFLAGS"

    { $as_echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CFLAGS" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_CFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OPAL CXXFLAGS" >&5
$as_echo_n "checking for OPAL CXXFLAGS... " >&6; }
    OPAL_WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $USER_WRAPPER_EXTRA_CXXFLAGS"

    { $as_echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CXXFLAGS" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_CXXFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OPAL LDFLAGS" >&5
$as_echo_n "checking for OPAL LDFLAGS... " >&6; }
    OPAL_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $WRAPPER_EXTRA_LDFLAGS $USER_WRAPPER_EXTRA_LDFLAGS"

    { $as_echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_LDFLAGS" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_LDFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OPAL LIBS" >&5
$as_echo_n "checking for OPAL LIBS... " >&6; }
    OPAL_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $WRAPPER_EXTRA_LIBS $USER_WRAPPER_EXTRA_LIBS"

    { $as_echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_LIBS" >&5
$as_echo "$OPAL_WRAPPER_EXTRA_LIBS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OPAL extra include dirs" >&5
$as_echo_n "checking for OPAL extra include dirs... " >&6; }
    if test "$WANT_INSTALL_HEADERS" = "1" ; then
        OPAL_WRAPPER_EXTRA_INCLUDES="openmpi"
    else
        OPAL_WRAPPER_EXTRA_INCLUDES=
    fi

    { $as_echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_INCLUDES" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking for ORTE CPPFLAGS" >&5
$as_echo_n "checking for ORTE CPPFLAGS... " >&6; }
    ORTE_WRAPPER_EXTRA_CPPFLAGS="$OPAL_WRAPPER_EXTRA_CPPFLAGS"

    { $as_echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CPPFLAGS" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_CPPFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for ORTE CFLAGS" >&5
$as_echo_n "checking for ORTE CFLAGS... " >&6; }
    ORTE_WRAPPER_EXTRA_CFLAGS="$OPAL_WRAPPER_EXTRA_CFLAGS"

    { $as_echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CFLAGS" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_CFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for ORTE CXXFLAGS" >&5
$as_echo_n "checking for ORTE CXXFLAGS... " >&6; }
    ORTE_WRAPPER_EXTRA_CXXFLAGS="$OPAL_WRAPPER_EXTRA_CXXFLAGS"

    { $as_echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CXXFLAGS" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_CXXFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for ORTE LDFLAGS" >&5
$as_echo_n "checking for ORTE LDFLAGS... " >&6; }
    ORTE_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $OPAL_WRAPPER_EXTRA_LDFLAGS"

    { $as_echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_LDFLAGS" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_LDFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for ORTE LIBS" >&5
$as_echo_n "checking for ORTE LIBS... " >&6; }
    ORTE_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $OPAL_WRAPPER_EXTRA_LIBS"

    { $as_echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_LIBS" >&5
$as_echo "$ORTE_WRAPPER_EXTRA_LIBS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for ORTE extra include dirs" >&5
$as_echo_n "checking for ORTE extra include dirs... " >&6; }
    ORTE_WRAPPER_EXTRA_INCLUDES="$OPAL_WRAPPER_EXTRA_INCLUDES"

    { $as_echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_INCLUDES" >&5
$as_echo "$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

    { $as_echo "$as_me:$LINENO: checking for OMPI CPPFLAGS" >&5
$as_echo_n "checking for OMPI CPPFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_CPPFLAGS="$ORTE_WRAPPER_EXTRA_CPPFLAGS"

    { $as_echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CPPFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_CPPFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OMPI CFLAGS" >&5
$as_echo_n "checking for OMPI CFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_CFLAGS="$ORTE_WRAPPER_EXTRA_CFLAGS"

    { $as_echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_CFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OMPI CXXFLAGS" >&5
$as_echo_n "checking for OMPI CXXFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_CXXFLAGS="$ORTE_WRAPPER_EXTRA_CXXFLAGS"

    { $as_echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CXXFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_CXXFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OMPI FFLAGS" >&5
$as_echo_n "checking for OMPI FFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $USER_WRAPPER_EXTRA_FFLAGS"

    { $as_echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_FFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_FFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OMPI FCFLAGS" >&5
$as_echo_n "checking for OMPI FCFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $USER_WRAPPER_EXTRA_FCFLAGS"

    { $as_echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_FCFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_FCFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OMPI LDFLAGS" >&5
$as_echo_n "checking for OMPI LDFLAGS... " >&6; }
    OMPI_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $ORTE_WRAPPER_EXTRA_LDFLAGS"

    { $as_echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_LDFLAGS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_LDFLAGS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OMPI LIBS" >&5
$as_echo_n "checking for OMPI LIBS... " >&6; }
    OMPI_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $ORTE_WRAPPER_EXTRA_LIBS"

    { $as_echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_LIBS" >&5
$as_echo "$OMPI_WRAPPER_EXTRA_LIBS" >&6; }

    { $as_echo "$as_me:$LINENO: checking for OMPI extra include dirs" >&5
$as_echo_n "checking for OMPI extra include dirs... " >&6; }
    OMPI_WRAPPER_EXTRA_INCLUDES="$ORTE_WRAPPER_EXTRA_INCLUDES"

    { $as_echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_INCLUDES" >&5
$as_echo "$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


    # For script-based wrappers that don't do relocatable binaries.
    # Don't use if you don't have to.
    exec_prefix_save="${exec_prefix}"
    test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
    eval "OMPI_WRAPPER_INCLUDEDIR=\"${includedir}\""
    eval "OMPI_WRAPPER_LIBDIR=\"${libdir}\""
    exec_prefix="${exec_prefix_save}"



    # 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



# Recreate some defines prefixed with OMPI_ so that there are no bare
# autoconf macro defines in mpi.h.  Since AC sometimes changes whether
# things are defined as null tokens or an integer result, two projects
# with different versions of AC can cause problems.
if test $ac_cv_header_stdc = yes; then

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

fi
if test $ac_cv_header_sys_time_h = yes ; then

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

fi
if test $ac_cv_type_long_long = yes ; then

cat >>confdefs.h <<\_ACEOF
#define OMPI_HAVE_LONG_LONG 1
_ACEOF
 fi
if test $ac_cv_header_sys_synch_h = yes ; then

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

fi


cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_BOOL $ac_cv_sizeof_bool
_ACEOF

cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_INT $ac_cv_sizeof_int
_ACEOF

############################################################################
# Party on
############################################################################

ompi_show_subtitle "Final output"

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 opal/tools/opal-checkpoint/Makefile opal/tools/opal-restart/Makefile 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 orte/tools/orte-checkpoint/Makefile orte/tools/orte-iof/Makefile orte/tools/orte-restart/Makefile orte/tools/orte-ps/Makefile orte/tools/orte-clean/Makefile 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/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 ompi/tools/ompi-server/Makefile test/Makefile test/event/Makefile test/asm/Makefile test/class/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_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $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" &&
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_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=`$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_TRIVIAL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_SMALL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_MEDIUM\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_LARGE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_INSTALL_HEADERS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_PERUSE_TRUE}" && test -z "${WANT_PERUSE_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_PERUSE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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 "${ORTE_DISABLE_FULL_SUPPORT_TRUE}" && test -z "${ORTE_DISABLE_FULL_SUPPORT_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"ORTE_DISABLE_FULL_SUPPORT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"ORTE_DISABLE_FULL_SUPPORT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${WANT_FT_TRUE}" && test -z "${WANT_FT_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_FT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"WANT_FT\" 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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_INSTALL_BINARIES\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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 "${OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_TRUE}" && test -z "${OMPI_WANT_SCRIPT_WRAPPER_COMPILERS_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_SCRIPT_WRAPPER_COMPILERS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_WANT_SCRIPT_WRAPPER_COMPILERS\" 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
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_MPI_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_PMPI_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_MPI_CXX_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_ASM_FILE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_F77_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_MPI_F77_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_PMPI_F77_BINDINGS_LAYER\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_F90_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_POSIX_THREADS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_SOLARIS_THREADS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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 "${WANT_FT_THREAD_TRUE}" && test -z "${WANT_FT_THREAD_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_FT_THREAD\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"WANT_FT_THREAD\" 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
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"CASE_SENSITIVE_FS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_execinfo_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_execinfo_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_execinfo_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_printstack_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_darwin_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_none_DSO_TRUE}" && test -z "${OMPI_BUILD_backtrace_none_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_backtrace_none_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_carto_auto_detect_DSO_TRUE}" && test -z "${OMPI_BUILD_carto_auto_detect_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_carto_auto_detect_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_carto_auto_detect_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_carto_file_DSO_TRUE}" && test -z "${OMPI_BUILD_carto_file_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_carto_file_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_carto_file_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_crs_none_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_none_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crs_none_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_crs_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_crs_blcr_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_blcr_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crs_blcr_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_crs_blcr_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_crs_self_DSO_TRUE}" && test -z "${OMPI_BUILD_crs_self_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crs_self_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_crs_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_installdirs_env_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_env_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_installdirs_env_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_installdirs_config_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_installdirs_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_installdirs_windows_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_installdirs_windows_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_installdirs_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_maffinity_first_use_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_first_use_DSO_FALSE}"; then
  { { $as_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
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_maffinity_libnuma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_WANT_MEMCHECKER_TRUE}" && test -z "${OMPI_WANT_MEMCHECKER_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_MEMCHECKER\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_WANT_MEMCHECKER\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_memchecker_valgrind_DSO_TRUE}" && test -z "${OMPI_BUILD_memchecker_valgrind_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memchecker_valgrind_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_memchecker_valgrind_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_ptmalloc2_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_malloc_solaris_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_malloc_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_memory_malloc_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PLPA_BUILD_STANDALONE_TRUE}" && test -z "${PLPA_BUILD_STANDALONE_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PLPA_BUILD_EXECUTABLES_TRUE}" && test -z "${PLPA_BUILD_EXECUTABLES_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PLPA_BUILD_STANDALONE_TRUE}" && test -z "${PLPA_BUILD_STANDALONE_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"PLPA_BUILD_STANDALONE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PLPA_BUILD_EXECUTABLES_TRUE}" && test -z "${PLPA_BUILD_EXECUTABLES_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"PLPA_BUILD_EXECUTABLES\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"PLPA_BUILD_EXECUTABLES\" 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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_linux_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_windows_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_paffinity_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_darwin_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_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_paffinity_test_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_test_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_test_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_test_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_posix_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_posix_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_posix_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_posix_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_catamount_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_catamount_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_catamount_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_timer_catamount_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_aix_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_altix_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_darwin_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_solaris_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_windows_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_linux_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_default_DSO_TRUE}" && test -z "${OMPI_BUILD_errmgr_default_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_errmgr_default_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_errmgr_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_ess_portals_utcp_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_portals_utcp_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_portals_utcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ess_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_ess_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_cnos_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ess_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_ess_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_alps_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_alps_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ess_alps_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ess_env_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_env_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_env_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ess_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_ess_hnp_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_hnp_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_hnp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ess_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_ess_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_lsf_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_lsf_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ess_lsf_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_ess_singleton_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_singleton_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_singleton_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ess_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_ess_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_slurm_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ess_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_ess_tool_DSO_TRUE}" && test -z "${OMPI_BUILD_ess_tool_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ess_tool_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ess_tool_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_filem_rsh_DSO_TRUE}" && test -z "${OMPI_BUILD_filem_rsh_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_filem_rsh_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_filem_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_grpcomm_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_cnos_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_grpcomm_cnos_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_grpcomm_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_grpcomm_bad_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_bad_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_grpcomm_bad_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_grpcomm_bad_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_grpcomm_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_grpcomm_basic_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_grpcomm_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_grpcomm_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_iof_hnp_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_hnp_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_hnp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_iof_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_iof_orted_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_orted_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_orted_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_iof_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_iof_tool_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_tool_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_tool_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_iof_tool_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_notifier_syslog_DSO_TRUE}" && test -z "${OMPI_BUILD_notifier_syslog_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_notifier_syslog_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_notifier_syslog_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_odls_default_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_odls_process_DSO_TRUE}" && test -z "${OMPI_BUILD_odls_process_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_odls_process_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_odls_process_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_oob_tcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_plm_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_alps_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_alps_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_plm_alps_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_plm_ccp_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_ccp_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_ccp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_plm_ccp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_plm_lsf_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_lsf_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_lsf_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_plm_lsf_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_plm_process_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_process_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_process_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_plm_process_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_plm_rsh_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_rsh_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_rsh_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_plm_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_plm_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_slurm_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_plm_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_plm_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_tm_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_tm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_plm_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_plm_xgrid_DSO_TRUE}" && test -z "${OMPI_BUILD_plm_xgrid_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_plm_xgrid_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_plm_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_alps_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_alps_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_alps_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ras_alps_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_ccp_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_ccp_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_ccp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ras_ccp_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_gridengine_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_loadleveler_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_lsf_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_lsf_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_ras_lsf_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_slurm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_tm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_rmaps_load_balance_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_load_balance_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_load_balance_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_load_balance_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_rank_file_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_rank_file_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_rank_file_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_rank_file_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
  { { $as_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
$as_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_rmaps_seq_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_seq_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_seq_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_seq_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rml_oob_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_ftrm_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_ftrm_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rml_ftrm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_rml_ftrm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_routed_binomial_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_binomial_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_routed_binomial_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_routed_binomial_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_routed_direct_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_direct_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_routed_direct_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_routed_direct_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_routed_linear_DSO_TRUE}" && test -z "${OMPI_BUILD_routed_linear_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_routed_linear_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_routed_linear_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_snapc_full_DSO_TRUE}" && test -z "${OMPI_BUILD_snapc_full_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_snapc_full_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_snapc_full_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_allocator_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_allocator_bucket_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_bml_r2_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_self_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_elan_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_elan_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_elan_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_btl_elan_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_gm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_mx_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_mx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_ofud_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_ofud_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_ofud_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_btl_ofud_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${MCA_btl_openib_have_xrc_TRUE}" && test -z "${MCA_btl_openib_have_xrc_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"MCA_btl_openib_have_xrc\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"MCA_btl_openib_have_xrc\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${MCA_btl_openib_have_rdmacm_TRUE}" && test -z "${MCA_btl_openib_have_rdmacm_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"MCA_btl_openib_have_rdmacm\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"MCA_btl_openib_have_rdmacm\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${MCA_btl_openib_have_ibcm_TRUE}" && test -z "${MCA_btl_openib_have_ibcm_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"MCA_btl_openib_have_ibcm\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"MCA_btl_openib_have_ibcm\" 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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_openib_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_tcp_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_udapl_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_coll_hierarch_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_hierarch_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_coll_inter_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_inter_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_inter_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_coll_inter_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_self_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_sync_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_sync_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_sync_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_coll_sync_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_tuned_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_mx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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 "${OMPI_BUILD_crcp_bkmrk_DSO_TRUE}" && test -z "${OMPI_BUILD_crcp_bkmrk_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_crcp_bkmrk_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_crcp_bkmrk_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_dpm_orte_DSO_TRUE}" && test -z "${OMPI_BUILD_dpm_orte_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_dpm_orte_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_dpm_orte_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"MCA_io_romio_SHOULD_BUILD\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_io_romio_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_PROVIDE_MPI_FILE_INTERFACE_TRUE}" && test -z "${OMPI_PROVIDE_MPI_FILE_INTERFACE_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_PROVIDE_MPI_FILE_INTERFACE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_PROVIDE_MPI_FILE_INTERFACE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_mpool_fake_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_fake_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_fake_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_mpool_fake_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_rdma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_sm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_mx_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_portals_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mtl_psm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_osc_pt2pt_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_osc_rdma_DSO_TRUE}" && test -z "${OMPI_BUILD_osc_rdma_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_osc_rdma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_osc_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_pml_cm_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_cm_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_cm_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_csum_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_csum_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_csum_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_pml_csum_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_ob1_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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_pml_crcpw_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_crcpw_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_crcpw_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_pml_crcpw_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_TRUE}" && test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_TRUE}" && test -z "${OMPI_BUILD_vprotocol_pessimist_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_vprotocol_pessimist_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_vprotocol_pessimist_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_v_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_v_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_v_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_pml_v_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${OMPI_BUILD_pubsub_orte_DSO_TRUE}" && test -z "${OMPI_BUILD_pubsub_orte_DSO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pubsub_orte_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"OMPI_BUILD_pubsub_orte_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rcache_vma_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_topo_unity_DSO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_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

: ${CONFIG_STATUS=./config.status}
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#! $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 || ac_write_fail=1
## --------------------- ##
## 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=:
  # Pre-4.2 versions of Zsh do 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

as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
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.)
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
  $as_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.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# 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 ||
$as_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" ||
    { $as_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 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  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
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.4.2, which was
generated by GNU Autoconf 2.63.  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

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# 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_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTION]... [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
  -q, --quiet, --silent
                   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_write_fail=1
ac_cs_version="\\
Open MPI config.status 1.4.2
configured by $0, generated by GNU Autoconf 2.63,
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

Copyright (C) 2008 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'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
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 )
    $as_echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    { $as_echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    $as_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.
  -*) { $as_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 || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# 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"`'
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
OBJDUMP='`$ECHO "X$OBJDUMP" | $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"`'
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
OTOOL64='`$ECHO "X$OTOOL64" | $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"`'
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $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"`'
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_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 \
DSYMUTIL \
NMEDIT \
LIPO \
OTOOL \
OTOOL64 \
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 \
compiler_lib_search_dirs \
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 \
compiler_lib_search_dirs_CXX \
compiler_lib_search_dirs_F77 \
compiler_lib_search_dirs_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 || ac_write_fail=1

# 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" ;;
    "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" ;;
    "ompi/tools/wrappers/ompi_wrapper_script") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/ompi_wrapper_script" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "opal/mca/installdirs/config/install_dirs.h") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/config/install_dirs.h" ;;
    "opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/mca/paffinity/linux/plpa/src/libplpa/plpa_config.h" ;;
    "opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/mca/paffinity/linux/plpa/src/libplpa/plpa.h" ;;
    "opal/mca/paffinity/linux/plpa/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/Makefile" ;;
    "opal/mca/paffinity/linux/plpa/config/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/config/Makefile" ;;
    "opal/mca/paffinity/linux/plpa/src/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/Makefile" ;;
    "opal/mca/paffinity/linux/plpa/src/libplpa/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/libplpa/Makefile" ;;
    "opal/mca/paffinity/linux/plpa/src/plpa-info/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/plpa-info/Makefile" ;;
    "opal/mca/paffinity/linux/plpa/src/plpa-taskset/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/plpa/src/plpa-taskset/Makefile" ;;
    "opal/mca/backtrace/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/backtrace/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/carto/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/Makefile" ;;
    "opal/mca/carto/auto_detect/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/auto_detect/Makefile" ;;
    "opal/mca/carto/file/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/carto/file/Makefile" ;;
    "opal/mca/crs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/Makefile" ;;
    "opal/mca/crs/blcr/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/blcr/Makefile" ;;
    "opal/mca/crs/none/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/none/Makefile" ;;
    "opal/mca/crs/self/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/crs/self/Makefile" ;;
    "opal/mca/installdirs/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/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/installdirs/windows/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/installdirs/windows/Makefile" ;;
    "opal/mca/maffinity/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/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/memchecker/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memchecker/Makefile" ;;
    "opal/mca/memchecker/valgrind/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memchecker/valgrind/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/memory/malloc_solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/malloc_solaris/Makefile" ;;
    "opal/mca/memory/ptmalloc2/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/ptmalloc2/Makefile" ;;
    "opal/mca/paffinity/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/Makefile" ;;
    "opal/mca/paffinity/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/darwin/Makefile" ;;
    "opal/mca/paffinity/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/Makefile" ;;
    "opal/mca/paffinity/posix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/posix/Makefile" ;;
    "opal/mca/paffinity/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/solaris/Makefile" ;;
    "opal/mca/paffinity/test/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/test/Makefile" ;;
    "opal/mca/paffinity/windows/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/windows/Makefile" ;;
    "opal/mca/timer/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/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/catamount/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/catamount/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/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/Makefile" ;;
    "orte/mca/errmgr/default/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/default/Makefile" ;;
    "orte/mca/ess/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/Makefile" ;;
    "orte/mca/ess/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/alps/Makefile" ;;
    "orte/mca/ess/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/cnos/Makefile" ;;
    "orte/mca/ess/env/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/env/Makefile" ;;
    "orte/mca/ess/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/hnp/Makefile" ;;
    "orte/mca/ess/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/lsf/Makefile" ;;
    "orte/mca/ess/portals_utcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/portals_utcp/Makefile" ;;
    "orte/mca/ess/singleton/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/singleton/Makefile" ;;
    "orte/mca/ess/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/slurm/Makefile" ;;
    "orte/mca/ess/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ess/tool/Makefile" ;;
    "orte/mca/filem/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/filem/Makefile" ;;
    "orte/mca/filem/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/filem/rsh/Makefile" ;;
    "orte/mca/grpcomm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/Makefile" ;;
    "orte/mca/grpcomm/bad/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/bad/Makefile" ;;
    "orte/mca/grpcomm/basic/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/basic/Makefile" ;;
    "orte/mca/grpcomm/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/grpcomm/cnos/Makefile" ;;
    "orte/mca/iof/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/Makefile" ;;
    "orte/mca/iof/hnp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/hnp/Makefile" ;;
    "orte/mca/iof/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/orted/Makefile" ;;
    "orte/mca/iof/tool/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/tool/Makefile" ;;
    "orte/mca/notifier/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/Makefile" ;;
    "orte/mca/notifier/syslog/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/notifier/syslog/Makefile" ;;
    "orte/mca/odls/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/Makefile" ;;
    "orte/mca/odls/default/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/default/Makefile" ;;
    "orte/mca/odls/process/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/odls/process/Makefile" ;;
    "orte/mca/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/Makefile" ;;
    "orte/mca/oob/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/tcp/Makefile" ;;
    "orte/mca/plm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/Makefile" ;;
    "orte/mca/plm/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/alps/Makefile" ;;
    "orte/mca/plm/ccp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/ccp/Makefile" ;;
    "orte/mca/plm/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/lsf/Makefile" ;;
    "orte/mca/plm/process/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/process/Makefile" ;;
    "orte/mca/plm/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/rsh/Makefile" ;;
    "orte/mca/plm/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/slurm/Makefile" ;;
    "orte/mca/plm/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/tm/Makefile" ;;
    "orte/mca/plm/xgrid/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/plm/xgrid/Makefile" ;;
    "orte/mca/ras/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/Makefile" ;;
    "orte/mca/ras/alps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/alps/Makefile" ;;
    "orte/mca/ras/ccp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/ccp/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/lsf/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/lsf/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/rmaps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/Makefile" ;;
    "orte/mca/rmaps/load_balance/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/load_balance/Makefile" ;;
    "orte/mca/rmaps/rank_file/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/rank_file/Makefile" ;;
    "orte/mca/rmaps/round_robin/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/round_robin/Makefile" ;;
    "orte/mca/rmaps/seq/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/seq/Makefile" ;;
    "orte/mca/rml/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/Makefile" ;;
    "orte/mca/rml/ftrm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/ftrm/Makefile" ;;
    "orte/mca/rml/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/oob/Makefile" ;;
    "orte/mca/routed/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/Makefile" ;;
    "orte/mca/routed/binomial/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/binomial/Makefile" ;;
    "orte/mca/routed/direct/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/direct/Makefile" ;;
    "orte/mca/routed/linear/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/routed/linear/Makefile" ;;
    "orte/mca/snapc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/snapc/Makefile" ;;
    "orte/mca/snapc/full/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/snapc/full/Makefile" ;;
    "ompi/mca/allocator/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/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/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/Makefile" ;;
    "ompi/mca/bml/r2/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/r2/Makefile" ;;
    "ompi/mca/btl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/Makefile" ;;
    "ompi/mca/btl/elan/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/elan/Makefile" ;;
    "ompi/mca/btl/gm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/gm/Makefile" ;;
    "ompi/mca/btl/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/mx/Makefile" ;;
    "ompi/mca/btl/ofud/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/ofud/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/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/Makefile" ;;
    "ompi/mca/coll/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/basic/Makefile" ;;
    "ompi/mca/coll/hierarch/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/hierarch/Makefile" ;;
    "ompi/mca/coll/inter/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/inter/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/sync/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/sync/Makefile" ;;
    "ompi/mca/coll/tuned/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/tuned/Makefile" ;;
    "ompi/mca/common/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/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/crcp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/crcp/Makefile" ;;
    "ompi/mca/crcp/bkmrk/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/crcp/bkmrk/Makefile" ;;
    "ompi/mca/dpm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/dpm/Makefile" ;;
    "ompi/mca/dpm/orte/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/dpm/orte/Makefile" ;;
    "ompi/mca/io/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/Makefile" ;;
    "ompi/mca/io/romio/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/romio/Makefile" ;;
    "ompi/mca/mpool/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/Makefile" ;;
    "ompi/mca/mpool/fake/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/fake/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/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mtl/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/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/Makefile" ;;
    "ompi/mca/osc/pt2pt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/pt2pt/Makefile" ;;
    "ompi/mca/osc/rdma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/rdma/Makefile" ;;
    "ompi/mca/pml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/Makefile" ;;
    "ompi/mca/pml/cm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/cm/Makefile" ;;
    "ompi/mca/pml/crcpw/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/crcpw/Makefile" ;;
    "ompi/mca/pml/csum/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/csum/Makefile" ;;
    "ompi/mca/pml/ob1/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/ob1/Makefile" ;;
    "ompi/mca/pml/v/mca/vprotocol/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/mca/vprotocol/Makefile" ;;
    "ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/mca/vprotocol/pessimist/Makefile" ;;
    "ompi/mca/pml/v/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/v/Makefile" ;;
    "ompi/mca/pubsub/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pubsub/Makefile" ;;
    "ompi/mca/pubsub/orte/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pubsub/orte/Makefile" ;;
    "ompi/mca/rcache/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/Makefile" ;;
    "ompi/mca/rcache/vma/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/vma/Makefile" ;;
    "ompi/mca/topo/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/Makefile" ;;
    "ompi/mca/topo/unity/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/unity/Makefile" ;;
    "ompi/contrib/vt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/Makefile" ;;
    "ompi/contrib/vt/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/Makefile" ;;
    "ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt" ;;
    "ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt" ;;
    "ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpif77-vt-wrapper-data.txt" ;;
    "ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/contrib/vt/wrappers/mpif90-vt-wrapper-data.txt" ;;
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    "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" ;;
    "opal/tools/opal-checkpoint/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/opal-checkpoint/Makefile" ;;
    "opal/tools/opal-restart/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/opal-restart/Makefile" ;;
    "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" ;;
    "orte/tools/orte-checkpoint/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-checkpoint/Makefile" ;;
    "orte/tools/orte-iof/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-iof/Makefile" ;;
    "orte/tools/orte-restart/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-restart/Makefile" ;;
    "orte/tools/orte-ps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-ps/Makefile" ;;
    "orte/tools/orte-clean/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orte-clean/Makefile" ;;
    "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/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" ;;
    "ompi/tools/ompi-server/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi-server/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/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" ;;

  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
$as_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")
} ||
{
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr='
'
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_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
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\).*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\).*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
   { (exit 1); exit 1; }; }
_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 || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_t"; then
    break
  elif $ac_last_try; then
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # 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.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
   { (exit 1); exit 1; }; }
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
$as_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 ||
	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   { (exit 1); exit 1; }; };;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; 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 '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin" \
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; } ;;
    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 ||
$as_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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_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 || ac_write_fail=1
# 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=

ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p
'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  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 || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;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
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; }

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"; } &&
  { $as_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
$as_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 \
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; }
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
    } >"$tmp/config.h" \
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; }
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$tmp/config.h" "$ac_file" \
	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; }
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
$as_echo "$as_me: error: could not create -" >&2;}
   { (exit 1); exit 1; }; }
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    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)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "ompi/tools/wrappers/ompi_wrapper_script":F) chmod +x ompi/tools/wrappers/ompi_wrapper_script ;;
    "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 -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/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 ||
$as_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 ||
$as_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=`$as_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 ||
$as_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" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_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 ($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, 2008 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

# Assembler program.
AS=$AS

# DLL creation program.
DLLTOOL=$DLLTOOL

# Object dumper program.
OBJDUMP=$OBJDUMP

# 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

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# 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

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs

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

# func_xform libobj-or-source
func_xform ()
{
  func_xform_result=${1%.*}.lo
}

# func_arith arithmetic-term...
func_arith ()
{
  func_arith_result=$(( $* ))
}

# func_len string
# STRING may not start with a hyphen.
func_len ()
{
  func_len_result=${#1}
}

_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_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"`
}

# func_xform libobj-or-source
func_xform ()
{
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
}

# func_arith arithmetic-term...
func_arith ()
{
  func_arith_result=`expr "$@"`
}

# func_len string
# STRING may not start with a hyphen.
func_len ()
{
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
}

_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

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_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

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_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

# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_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

test $ac_write_fail = 0 ||
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }


# 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
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi

