#! /bin/sh
# From configure.ac Autotools support for ABINIT 6.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for ABINIT 6.4.3.
#
# Report bugs to <https://bugs.launchpad.net/abinit/>.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 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


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
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (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


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

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="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_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a
	# neutralization value for shells without unset; and this also
	# works around shells that cannot unset nonexistent variables.
	BASH_ENV=/dev/null
	ENV=/dev/null
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
	export CONFIG_SHELL
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
$0: https://bugs.launchpad.net/abinit/ about your system,
$0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    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_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error

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

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

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

# 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_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # 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; as_fn_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
}

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

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='mkdir -p "$as_dir"'
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'"


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 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=

# Identity of this package.
PACKAGE_NAME='ABINIT'
PACKAGE_TARNAME='abinit'
PACKAGE_VERSION='6.4.3'
PACKAGE_STRING='ABINIT 6.4.3'
PACKAGE_BUGREPORT='https://bugs.launchpad.net/abinit/'
PACKAGE_URL=''

ac_unique_file="src/98_main/abinit.F90"
# 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='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
DO_TEST_VDWXC_FALSE
DO_TEST_VDWXC_TRUE
DO_BUILD_MACROAVE_FALSE
DO_BUILD_MACROAVE_TRUE
DO_BUILD_01_MACROAVNEW_EXT_FALSE
DO_BUILD_01_MACROAVNEW_EXT_TRUE
DO_TEST_BUILDSYS_FALSE
DO_TEST_BUILDSYS_TRUE
DO_TEST_ABIRULES_FALSE
DO_TEST_ABIRULES_TRUE
DO_TEST_GWDP_FALSE
DO_TEST_GWDP_TRUE
DO_CHECK_FAST_FALSE
DO_CHECK_FAST_TRUE
DO_BUILD_EXPORTS_FALSE
DO_BUILD_EXPORTS_TRUE
DO_BUILD_02_CLIB_FALSE
DO_BUILD_02_CLIB_TRUE
DO_BUILD_BINDINGS_FALSE
DO_BUILD_BINDINGS_TRUE
DO_BUILD_NIGHTLY_FALSE
DO_BUILD_NIGHTLY_TRUE
nightly_timeout
FFLAGS
F77
FC_NOWRAP
DO_BUILD_WANNIER90_FALSE
DO_BUILD_WANNIER90_TRUE
DO_TEST_WANNIER90_FALSE
DO_TEST_WANNIER90_TRUE
build_wannier90
lib_wannier90_libs
lib_wannier90_incs
FCLIBS_WANNIER90
FCFLAGS_WANNIER90
CXXFLAGS_WANNIER90
CFLAGS_WANNIER90
CPPFLAGS_WANNIER90
CFGFLAGS_WANNIER90
wannier90_pkg_string
wannier90_pkg_name
DO_BUILD_BIGDFT_FALSE
DO_BUILD_BIGDFT_TRUE
DO_TEST_BIGDFT_FALSE
DO_TEST_BIGDFT_TRUE
build_bigdft
lib_bigdft_libs
lib_bigdft_incs
FCFLAGS_BIGDFT
CXXFLAGS_BIGDFT
CFLAGS_BIGDFT
CPPFLAGS_BIGDFT
CFGFLAGS_BIGDFT
bigdft_pkg_string
bigdft_pkg_name
DO_BUILD_LIBXC_FALSE
DO_BUILD_LIBXC_TRUE
DO_TEST_LIBXC_FALSE
DO_TEST_LIBXC_TRUE
build_libxc
lib_libxc_libs
lib_libxc_incs
FCFLAGS_LIBXC
CXXFLAGS_LIBXC
CFLAGS_LIBXC
CPPFLAGS_LIBXC
CFGFLAGS_LIBXC
libxc_pkg_string
libxc_pkg_name
DO_BUILD_ETSF_IO_FALSE
DO_BUILD_ETSF_IO_TRUE
DO_TEST_ETSF_IO_FALSE
DO_TEST_ETSF_IO_TRUE
build_etsf_io
lib_etsf_io_libs
lib_etsf_io_incs
FCLIBS_ETSF_IO
FCFLAGS_ETSF_IO
CXXFLAGS_ETSF_IO
CFLAGS_ETSF_IO
CPPFLAGS_ETSF_IO
CFGFLAGS_ETSF_IO
etsf_io_pkg_string
etsf_io_pkg_name
DO_BUILD_NETCDF_FALSE
DO_BUILD_NETCDF_TRUE
DO_TEST_NETCDF_FALSE
DO_TEST_NETCDF_TRUE
build_netcdf
lib_netcdf_libs
lib_netcdf_incs
FCLIBS_NETCDF
FCFLAGS_NETCDF
CXXFLAGS_NETCDF
CFLAGS_NETCDF
CPPFLAGS_NETCDF
CFGFLAGS_NETCDF
netcdf_pkg_string
netcdf_pkg_name
DO_BUILD_FOX_FALSE
DO_BUILD_FOX_TRUE
DO_TEST_FOX_FALSE
DO_TEST_FOX_TRUE
build_fox
lib_fox_libs
lib_fox_incs
FCLIBS_FOX
FCFLAGS_FOX
CXXFLAGS_FOX
CFLAGS_FOX
CPPFLAGS_FOX
CFGFLAGS_FOX
fox_pkg_string
fox_pkg_name
abinit_tardir
lib_dft_libs
lib_dft_incs
lib_dft_ldflags
lib_dft_fcflags
lib_dft_flavor
lib_fft_libs
lib_fft_incs
lib_fft_ldflags
lib_fft_fcflags
lib_fft_flavor
DO_BUILD_01_GSL_EXT_FALSE
DO_BUILD_01_GSL_EXT_TRUE
lib_math_libs
lib_math_incs
lib_math_ldflags
lib_math_fcflags
lib_math_flavor
GSL_CONFIG
DO_BUILD_LINALG_FALSE
DO_BUILD_LINALG_TRUE
lib_linalg_libs
lib_linalg_incs
lib_linalg_ldflags
lib_linalg_fcflags
lib_linalg_flavor
FCFLAGS_LINALG
CXXFLAGS_LINALG
CFLAGS_LINALG
CPPFLAGS_LINALG
lib_timer_libs
lib_timer_incs
lib_timer_ldflags
lib_timer_fcflags
lib_timer_flavor
lib_trio_libs
lib_trio_incs
lib_trio_ldflags
lib_trio_fcflags
lib_trio_flavor
DO_BUILD_51_MANAGE_CUDA_FALSE
DO_BUILD_51_MANAGE_CUDA_TRUE
DO_BUILD_15_GPU_TOOLBOX_FALSE
DO_BUILD_15_GPU_TOOLBOX_TRUE
DO_TEST_MPI_FALSE
DO_TEST_MPI_TRUE
lib_mpi_ldflags
lib_mpi_fcflags
fc_timing
DO_BUILD_CCLOCK_FALSE
DO_BUILD_CCLOCK_TRUE
ABINIT_BINARY_PACKAGE
ABINIT_TARGET
fcflags_opt_98_main
fcflags_opt_wannier90
fcflags_opt_netcdf
fcflags_opt_libxc
fcflags_opt_fox
fcflags_opt_etsf_io
fcflags_opt_bigdft
fcflags_opt_linalg
fcflags_opt_95_drive
fcflags_opt_93_rdm
fcflags_opt_83_cut3d
fcflags_opt_79_seqpar_mpi
fcflags_opt_77_suscep
fcflags_opt_77_lwf
fcflags_opt_77_ddb
fcflags_opt_72_response
fcflags_opt_69_bse
fcflags_opt_68_rsprc
fcflags_opt_68_recursion
fcflags_opt_68_gw
fcflags_opt_68_dmft
fcflags_opt_67_common
fcflags_opt_66_wfs
fcflags_opt_66_paw
fcflags_opt_65_psp
fcflags_opt_65_nonlocal
fcflags_opt_64_atompaw
fcflags_opt_63_bader
fcflags_opt_62_wvl_wfs
fcflags_opt_62_poisson
fcflags_opt_62_occeig
fcflags_opt_62_iowfdenpot
fcflags_opt_62_cg_noabirule
fcflags_opt_61_ionetcdf
fcflags_opt_59_io_mpi
fcflags_opt_57_iovars
fcflags_opt_56_xc
fcflags_opt_56_recipspace
fcflags_opt_53_spacepar
fcflags_opt_53_ffts
fcflags_opt_53_abiutil
fcflags_opt_52_fft_mpi_noabirule
fcflags_opt_51_manage_mpi
fcflags_opt_51_manage_cuda
fcflags_opt_50_abitypes_defs
fcflags_opt_49_gw_toolbox_oop
fcflags_opt_47_xml
fcflags_opt_45_psp_parser
fcflags_opt_43_ptgroups
fcflags_opt_42_parser
fcflags_opt_42_nlstrain
fcflags_opt_42_geomoptim
fcflags_opt_42_geometry
fcflags_opt_32_util
fcflags_opt_32_contract
fcflags_opt_28_numeric_noabirule
fcflags_opt_27_toolbox_oop
fcflags_opt_18_timing
fcflags_opt_16_hideleave
fcflags_opt_15_gpu_toolbox
fcflags_opt_14_hidewrite
fcflags_opt_12_hide_mpi
fcflags_opt_10_defs
fcflags_opt_02_clib
fcflags_opt_01_qespresso_ext
fcflags_opt_01_macroavnew_ext
fcflags_opt_01_interfaces_ext
fcflags_opt_01_gsl_ext
DO_BUILD_32_CONTRACT_FALSE
DO_BUILD_32_CONTRACT_TRUE
TRUE_CPP
with_gnu_ld
enable_static
enable_shared
ARFLAGS
RANLIB
AR
bzr_clean
bzr_revno
bzr_branch
PYTHON_CPPFLAGS
BAZAAR
PYTHON_CONFIG
PYTHON
FCLIBS
FCFLAGS_F90
MODEXT
fc_info_string
abi_fc_wrap
abi_fc_version
abi_fc_vendor
abi_fpp_path
ac_ct_FC
FC
abi_fc_path
cxx_info_string
abi_cxx_version
abi_cxx_vendor
am__fastdepCXX_FALSE
am__fastdepCXX_TRUE
CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
abi_cxx_path
cc_for_timeout
cc_info_string
abi_cc_version
abi_cc_vendor
CPP
abi_cpp_path
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
abi_cc_path
CURL
WGET
TAR
PS2PDF
PATCH
MD5SUM
MARKDOWN
LATEX
DVI2PDF
DVI2PS
RM
PERL
MV
BOURNE_SHELL
lib_gpu_libs
lib_gpu_incs
lib_gpu_flavor
lib_gpu_ldflags
lib_gpu_fcflags
lib_mpi_libs
lib_mpi_incs
abi_mpi_runner_works
abi_lt_version
abi_am_version
abi_ac_version
abi_m4_version
src_mods_incs
src_incs_incs
src_95_drive_incs
src_93_rdm_incs
src_83_cut3d_incs
src_79_seqpar_mpi_incs
src_77_suscep_incs
src_77_lwf_incs
src_77_ddb_incs
src_72_response_incs
src_69_bse_incs
src_68_rsprc_incs
src_68_recursion_incs
src_68_gw_incs
src_68_dmft_incs
src_67_common_incs
src_66_wfs_incs
src_66_paw_incs
src_65_psp_incs
src_65_nonlocal_incs
src_64_atompaw_incs
src_63_bader_incs
src_62_wvl_wfs_incs
src_62_poisson_incs
src_62_occeig_incs
src_62_iowfdenpot_incs
src_62_cg_noabirule_incs
src_61_ionetcdf_incs
src_59_io_mpi_incs
src_57_iovars_incs
src_56_xc_incs
src_56_recipspace_incs
src_53_spacepar_incs
src_53_ffts_incs
src_53_abiutil_incs
src_52_fft_mpi_noabirule_incs
src_51_manage_mpi_incs
src_51_manage_cuda_incs
src_50_abitypes_defs_incs
src_49_gw_toolbox_oop_incs
src_47_xml_incs
src_45_psp_parser_incs
src_43_ptgroups_incs
src_42_parser_incs
src_42_nlstrain_incs
src_42_geomoptim_incs
src_42_geometry_incs
src_32_util_incs
src_32_contract_incs
src_28_numeric_noabirule_incs
src_27_toolbox_oop_incs
src_18_timing_incs
src_16_hideleave_incs
src_15_gpu_toolbox_incs
src_14_hidewrite_incs
src_12_hide_mpi_incs
src_10_defs_incs
src_02_clib_incs
src_01_qespresso_ext_incs
src_01_macroavnew_ext_incs
src_01_interfaces_ext_incs
src_01_gsl_ext_incs
abinit_mandir
abinit_libdir
abinit_incdir
abinit_docdir
abinit_datdir
abinit_chkdir
abinit_bindir
abinit_prefix
XPPFLAGS_OPTIM
XPPFLAGS_EXTRA
XPPFLAGS_DEBUG
XPPFLAGS
XPP
SERIAL_RUNNER
PDFFLAGS
NVCC_LIBS
NVCC_LDFLAGS
NVCC_CPPFLAGS
NVCC_CFLAGS
NVCC
MPI_RUNNER
MDFLAGS
LTXFLAGS
FPPFLAGS_OPTIM
FPPFLAGS_HINTS
FPPFLAGS_EXTRA
FPPFLAGS_DEBUG
FPPFLAGS
FPP
FC_LIBS_OPTIM
FC_LIBS_HINTS
FC_LIBS_EXTRA
FC_LIBS_DEBUG
FC_LIBS_64BITS
FC_LIBS
FC_LDFLAGS_OPTIM
FC_LDFLAGS_HINTS
FC_LDFLAGS_EXTRA
FC_LDFLAGS_DEBUG
FC_LDFLAGS_64BITS
FC_LDFLAGS
FCFLAGS_OPTIM
FCFLAGS_MODDIR
FCFLAGS_HINTS
FCFLAGS_FREEFORM
FCFLAGS_FIXEDFORM
FCFLAGS_EXTRA
FCFLAGS_DEBUG
FCFLAGS_64BITS
FCFLAGS
CXX_LIBS_OPTIM
CXX_LIBS_HINTS
CXX_LIBS_GPU
CXX_LIBS_EXTRA
CXX_LIBS_DEBUG
CXX_LIBS_64BITS
CXX_LIBS
CXX_LDFLAGS_OPTIM
CXX_LDFLAGS_HINTS
CXX_LDFLAGS_GPU
CXX_LDFLAGS_EXTRA
CXX_LDFLAGS_DEBUG
CXX_LDFLAGS_64BITS
CXX_LDFLAGS
CXXFLAGS_OPTIM
CXXFLAGS_HINTS
CXXFLAGS_GPU
CXXFLAGS_EXTRA
CXXFLAGS_DEBUG
CXXFLAGS_64BITS
CPPFLAGS_OPTIM
CPPFLAGS_HINTS
CPPFLAGS_GPU
CPPFLAGS_EXTRA
CPPFLAGS_DEBUG
CPPFLAGS_64BITS
CFLAGS_OPTIM
CFLAGS_HINTS
CFLAGS_GPU
CFLAGS_EXTRA
CFLAGS_DEBUG
CFLAGS_64BITS
CC_LIBS_OPTIM
CC_LIBS_HINTS
CC_LIBS_GPU
CC_LIBS_EXTRA
CC_LIBS_DEBUG
CC_LIBS_64BITS
CC_LIBS
CC_LDFLAGS_OPTIM
CC_LDFLAGS_HINTS
CC_LDFLAGS_GPU
CC_LDFLAGS_EXTRA
CC_LDFLAGS_DEBUG
CC_LDFLAGS_64BITS
CC_LDFLAGS
ARFLAGS_OPTIM
ARFLAGS_HINTS
ARFLAGS_EXTRA
ARFLAGS_DEBUG
ARFLAGS_CMD
ARFLAGS_64BITS
ABI_CPPFLAGS
with_wannier90_libs
with_wannier90_includes
with_wannier90
with_trio_libs
with_trio_includes
with_trio_flavor
with_timer_libs
with_timer_includes
with_timer_flavor
with_test_timeout
with_plugins_tardir
with_plugins_prefix
with_netcdf_libs
with_netcdf_includes
with_mpi_prefix
with_mpi_libs
with_mpi_level
with_mpi_includes
with_math_libs
with_math_includes
with_math_flavor
with_linalg_libs
with_linalg_includes
with_linalg_flavor
with_libxc_libs
with_libxc_includes
with_gpu_prefix
with_gpu_libs
with_gpu_ldflags
with_gpu_includes
with_gpu_flavor
with_gpu_cppflags
with_gpu_cflags
with_fox_libs
with_fox_includes
with_fft_libs
with_fft_includes
with_fft_flavor
with_fc_version
with_fc_vendor
with_etsf_io_libs
with_etsf_io_includes
with_dft_libs
with_dft_includes
with_dft_flavor
with_config_file
with_bigdft_libs
with_bigdft_includes
enable_zdot_bugfix
enable_wannier90
enable_vdwxc
enable_trio
enable_timer
enable_test_timeout
enable_stdin
enable_smp
enable_scalapack
enable_optim
enable_netcdf
enable_mpi_trace
enable_mpi_io_test
enable_mpi_io
enable_mpi
enable_math
enable_maintainer_checks
enable_macroave
enable_linalg
enable_libxc
enable_hints
enable_gw_wrapper
enable_gw_optimal
enable_gw_dpc
enable_gw_cutoff
enable_gpu
enable_fox
enable_fft
enable_fc_wrapper
enable_fast_check
enable_exports
enable_etsf_io
enable_dft
enable_debug
enable_config_file
enable_clib
enable_cclock
enable_bse_unpacked
enable_bindings
enable_bigdft
enable_all_plugins
enable_64bit_flags
linalg_pkg_string
linalg_pkg_name
EGREP
GREP
SED
LN_S
abi_sys_spec
abi_cpu_bits
abi_cpu_64bits
abi_cpu_spec
abi_cpu_model
abi_cpu_vendor
abi_cpu_platform
ABINIT_VERSION_BASE
ABINIT_VERSION_BUILD
ABINIT_VERSION_MICRO
ABINIT_VERSION_MINOR
ABINIT_VERSION_MAJOR
ABINIT_VERSION
abinit_moddir
abinit_builddir
abinit_srcdir
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
target_os
target_vendor
target_cpu
target
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
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_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_64bit_flags
enable_all_plugins
enable_bigdft
enable_bindings
enable_bse_unpacked
enable_cclock
enable_clib
enable_config_file
enable_debug
enable_dft
enable_etsf_io
enable_exports
enable_fast_check
enable_fc_wrapper
enable_fft
enable_fox
enable_gpu
enable_gw_cutoff
enable_gw_dpc
enable_gw_optimal
enable_gw_wrapper
enable_hints
enable_libxc
enable_linalg
enable_macroave
enable_maintainer_checks
enable_math
enable_mpi
enable_mpi_io
enable_mpi_io_test
enable_mpi_trace
enable_netcdf
enable_optim
enable_scalapack
enable_smp
enable_stdin
enable_test_timeout
enable_timer
enable_trio
enable_vdwxc
enable_wannier90
enable_zdot_bugfix
with_bigdft_includes
with_bigdft_libs
with_config_file
with_dft_flavor
with_dft_includes
with_dft_libs
with_etsf_io_includes
with_etsf_io_libs
with_fc_vendor
with_fc_version
with_fft_flavor
with_fft_includes
with_fft_libs
with_fox_includes
with_fox_libs
with_gpu_cflags
with_gpu_cppflags
with_gpu_flavor
with_gpu_includes
with_gpu_ldflags
with_gpu_libs
with_gpu_prefix
with_libxc_includes
with_libxc_libs
with_linalg_flavor
with_linalg_includes
with_linalg_libs
with_math_flavor
with_math_includes
with_math_libs
with_mpi_includes
with_mpi_level
with_mpi_libs
with_mpi_prefix
with_netcdf_includes
with_netcdf_libs
with_plugins_prefix
with_plugins_tardir
with_test_timeout
with_timer_flavor
with_timer_includes
with_timer_libs
with_trio_flavor
with_trio_includes
with_trio_libs
with_wannier90
with_wannier90_includes
with_wannier90_libs
enable_dependency_tracking
'
      ac_precious_vars='build_alias
host_alias
target_alias
ARFLAGS_DEBUG
ARFLAGS_EXTRA
ARFLAGS_OPTIM
CC_LDFLAGS
CC_LDFLAGS_DEBUG
CC_LDFLAGS_OPTIM
CC_LIBS
CC_LIBS_DEBUG
CC_LIBS_OPTIM
CFLAGS_DEBUG
CFLAGS_EXTRA
CFLAGS_OPTIM
CPPFLAGS_DEBUG
CPPFLAGS_EXTRA
CPPFLAGS_OPTIM
CXXFLAGS_DEBUG
CXXFLAGS_EXTRA
CXXFLAGS_OPTIM
CXX_LDFLAGS
CXX_LDFLAGS_DEBUG
CXX_LDFLAGS_EXTRA
CXX_LDFLAGS_OPTIM
CXX_LIBS
CXX_LIBS_DEBUG
CXX_LIBS_OPTIM
FCFLAGS_DEBUG
FCFLAGS_EXTRA
FCFLAGS_OPTIM
FC_LDFLAGS
FC_LDFLAGS_DEBUG
FC_LDFLAGS_EXTRA
FC_LDFLAGS_OPTIM
FC_LIBS
FC_LIBS_DEBUG
FC_LIBS_OPTIM
FPP
FPPFLAGS
FPPFLAGS_DEBUG
FPPFLAGS_EXTRA
FPPFLAGS_OPTIM
MPI_RUNNER
SERIAL_RUNNER
XPP
XPPFLAGS
XPPFLAGS_DEBUG
XPPFLAGS_EXTRA
XPPFLAGS_OPTIM
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
CXX
CXXFLAGS
CCC
FC
FCFLAGS'


# 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_fn_error "invalid feature name: $ac_useropt"
    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_fn_error "invalid feature name: $ac_useropt"
    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_fn_error "invalid package name: $ac_useropt"
    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_fn_error "invalid package name: $ac_useropt"
    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_fn_error "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information."
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
    esac
    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_fn_error "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $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_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
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_fn_error "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error "pwd does not report name of working directory"


# 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_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
	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 ABINIT 6.4.3 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/abinit]
  --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]
  --target=TARGET   configure for building compilers for TARGET [HOST]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of ABINIT 6.4.3:";;
   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-64bit-flags    Use 64-bit flags (see documentation) (default: no)
  --enable-all-plugins    Activate support for all plug-ins (default: None)
  --enable-bigdft         Activate internal support for BigDFT (default: yes)
  --enable-bindings       Activate support for bindings (EXPERIMENTAL)
                          (default: no)
  --enable-bse-unpacked   Activate Bethe-Salpeter unpacking (EXPERIMENTAL)
                          (default: no)
  --enable-cclock         Use C clock for timings (default: no)
  --enable-clib           Enable the Abinit C library (EXPERIMENTAL) (default:
                          no)
  --enable-config-file    Read options from config file (default: yes)
  --enable-debug          Set debug level (default: basic)
  --enable-dft            Activate support for DFT libraries (default: no)
  --enable-etsf-io        Activate support for ETSF I/O (default: yes)
  --enable-exports        Activate build of exported libraries (EXPERIMENTAL)
                          (default: no)
  --enable-fast-check     Run 'make check' using 4 processors (default: no)
  --enable-fc-wrapper     Wrap Fortran compiler calls (default: no)
  --enable-fft            Enable use of external FFT libraries (EXPERIMENTAL)
                          (default: no)
  --enable-fox            Activate support for FoX (under development)
                          (default: no)
  --enable-gpu            Activate support for GPU (EXPERIMENTAL) (default:
                          no)
  --enable-gw-cutoff      Activate the use of cut-offs for GW calculations
                          (EXPERIMENTAL) (default: no)
  --enable-gw-dpc         Activate double-precision GW calculations
                          (EXPERIMENTAL) (default: no)
  --enable-gw-optimal     Activate optimal GW calculations (EXPERIMENTAL)
                          (default: no)
  --enable-gw-wrapper     Activate wrapped GW calculations (EXPERIMENTAL)
                          (default: no)
  --enable-hints          Preset flags to have the source building properly
                          (default: yes)
  --enable-libxc          Activate support for LibXC (default: yes)
  --enable-linalg         Activate support for external linear algebra
                          libraries (default: yes)
  --enable-macroave       Enable build of macroave (EXPERIMENTAL) (default:
                          yes)
  --enable-maintainer-checks
                          Activate maintainer checks (BuildBot) (default: no)
  --enable-math           Enable use of an external math library (default: no)
  --enable-mpi            Enable MPI support (default: None)
  --enable-mpi-io         Enable MPI I/O (default: None)
  --enable-mpi-io-test    Enable MPI I/O untested features (EXPERIMENTAL)
                          (default: no)
  --enable-mpi-trace      Enable MPI time tracing (EXPERIMENTAL) (default: no)
  --enable-netcdf         Activate support for NetCDF (default: yes)
  --enable-optim          Set optimization level (default: standard)
  --enable-scalapack      Use ScaLAPACK for parallel linear algebra operations
                          (default: no)
  --enable-smp            Activate support for Symmetric Multi-Processing
                          (EXPERIMENTAL) (default: no)
  --enable-stdin          Tell Abinit to read file lists from standard input
                          (default: yes)
  --enable-test-timeout   Activate timeout for tests (will build additional C
                          code) (default: no)
  --enable-timer          Use external timer (default: no)
  --enable-trio           Activate transferable I/O support (default: no)
  --enable-vdwxc          Activate van der Waals exchange-correlation
                          (EXPERIMENTAL) (default: no)
  --enable-wannier90      Activate support for Wannier90 (default: yes)
  --enable-zdot-bugfix    Activate workaround for bugged ZDOTC and ZDOTU
                          (default: no)
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-bigdft-includes  Include parameters for BigDFT support (default:
                          None)
  --with-bigdft-libs      BigDFT libraries to link Abinit binaries with
                          (default: None)
  --with-config-file      Specify config file to read options from (default:
                          None)
  --with-dft-flavor       Kind of DFT support to activate (default:
                          bigdft+libxc+wannier90)
  --with-dft-includes     Include parameters for DFT support (default: None)
  --with-dft-libs         Enhanced DFT libraries to link Abinit binaries with
                          (default: None)
  --with-etsf-io-includes Include parameters for ETSF I/O support (default:
                          None)
  --with-etsf-io-libs     ETSF I/O libraries to link Abinit binaries with
                          (default: None)
  --with-fc-vendor        Fortran compiler vendor to be used by the build
                          system (default: None)
  --with-fc-version       Fortran compiler version to be used by the build
                          system (default: None)
  --with-fft-flavor       Kind of FFT support to activate (default: fftw3)
  --with-fft-includes     Include parameters for the FFTW libraries (default:
                          None)
  --with-fft-libs         FFTW libraries to link Abinit binaries with
                          (default: None)
  --with-fox-includes     Include parameters for FoX support (default: None)
  --with-fox-libs         FoX libraries to link Abinit binaries with (default:
                          None)
  --with-gpu-cflags       C flags to build GPU kernels (default: None)
  --with-gpu-cppflags     Preprocessing options to build GPU kernels (default:
                          None)
  --with-gpu-flavor       Kind of GPU support to activate (default:
                          cuda-single)
  --with-gpu-includes     Include parameters for GPU support (default: None)
  --with-gpu-ldflags      Link flags to build GPU-specific binaries (default:
                          None)
  --with-gpu-libs         GPU libraries to link Abinit binaries with (default:
                          None)
  --with-gpu-prefix       Prefix path for the GPU installation (default: None)
  --with-libxc-includes   Include parameters for ETSF XC support (default:
                          None)
  --with-libxc-libs       ETSF XC libraries to link Abinit binaries with
                          (default: None)
  --with-linalg-flavor    See ~abinit/doc/config/build-config.ac for
                          information (default: netlib)
  --with-linalg-includes  Include parameters for the linear algebra libraries
                          (BLAS+LAPACK) (default: None)
  --with-linalg-libs      Linear algebra libraries (BLAS+LAPACK) to link with
                          (default: None)
  --with-math-flavor      Kind of math library to use (default: gsl)
  --with-math-includes    Include parameters for the math library (default:
                          None)
  --with-math-libs        GSL libraries to link Abinit binaries with (default:
                          None)
  --with-mpi-includes     Include parameters for the MPI library (default:
                          None)
  --with-mpi-level        MPI standard level to use (1 or 2) (default: None)
  --with-mpi-libs         MPI libraries to link Abinit binaries with (default:
                          None)
  --with-mpi-prefix       Prefix path to the MPI installation (default: None)
  --with-netcdf-includes  Include parameters for NetCDF support (default:
                          None)
  --with-netcdf-libs      NetCDF libraries to link Abinit binaries with
                          (default: None)
  --with-plugins-prefix   Prefix for already installed plug-ins (default:
                          None)
  --with-plugins-tardir   Full path for the tarballs of plug-ins (default:
                          None)
  --with-test-timeout     Automatic test timeout (default: 900)
  --with-timer-flavor     Kind of timer to use (default: abinit)
  --with-timer-includes   Include parameters for the timer library (default:
                          None)
  --with-timer-libs       PAPI libraries to link Abinit binaries with
                          (default: None)
  --with-trio-flavor      Kind of transferable I/O to activate (default:
                          fox+etsf)
  --with-trio-includes    Include parameters for transferable I/O support
                          (default: None)
  --with-trio-libs        Enhanced I/O libraries to link Abinit binaries with
                          (default: None)
  --with-wannier90        Full path to the Wannier90 executable (default:
                          None)
  --with-wannier90-includes
                          Include parameters for Wannier90 support (default:
                          None)
  --with-wannier90-libs   Wannier90 libraries to link Abinit binaries with
                          (default: None)

Some influential environment variables:
  ARFLAGS_DEBUG
              Library archiver flags for debugging
  ARFLAGS_EXTRA
              Additional library archiver flags
  ARFLAGS_OPTIM
              Library archiver flags for optimization
  CC_LDFLAGS  C linker flags
  CC_LDFLAGS_DEBUG
              C linker flags for debugging
  CC_LDFLAGS_OPTIM
              C linker flags for optimization
  CC_LIBS     C linker libraries
  CC_LIBS_DEBUG
              C linker additional libraries for debugging
  CC_LIBS_OPTIM
              C linker additional libraries for optimization
  CFLAGS_DEBUG
              C compiler flags for debugging
  CFLAGS_EXTRA
              Additional C compiler flags
  CFLAGS_OPTIM
              C compiler flags for optimization
  CPPFLAGS_DEBUG
              C preprocessor flags for debugging
  CPPFLAGS_EXTRA
              Additional C preprocessor flags
  CPPFLAGS_OPTIM
              C preprocessor flags for optimization
  CXXFLAGS_DEBUG
              C++ compiler flags for debugging
  CXXFLAGS_EXTRA
              Additional C++ compiler flags
  CXXFLAGS_OPTIM
              C++ compiler flags for optimization
  CXX_LDFLAGS C++ linker flags
  CXX_LDFLAGS_DEBUG
              C++ linker flags for debugging
  CXX_LDFLAGS_EXTRA
              Additional C++ linker flags
  CXX_LDFLAGS_OPTIM
              C++ linker flags for optimization
  CXX_LIBS    C++ linker additional libraries
  CXX_LIBS_DEBUG
              C++ linker additional libraries for debugging
  CXX_LIBS_OPTIM
              C++ linker additional libraries for optimization
  FCFLAGS_DEBUG
              Fortran compiler flags for debugging
  FCFLAGS_EXTRA
              Additional Fortran compiler flags
  FCFLAGS_OPTIM
              Fortran compiler flags for optimization
  FC_LDFLAGS  Fortran linker flags
  FC_LDFLAGS_DEBUG
              Fortran linker flags for debugging
  FC_LDFLAGS_EXTRA
              Additional Fortran linker flags
  FC_LDFLAGS_OPTIM
              Fortran linker flags for optimization
  FC_LIBS     Fortran linker additional libraries
  FC_LIBS_DEBUG
              Fortran linker additional libraries for debugging
  FC_LIBS_OPTIM
              Fortran linker additional libraries for optimization
  FPP         Fortran preprocessor
  FPPFLAGS    Fortran preprocessor flags
  FPPFLAGS_DEBUG
              Fortran preprocessor flags for debugging
  FPPFLAGS_EXTRA
              Additional Fortran preprocessor flags
  FPPFLAGS_OPTIM
              Fortran preprocessor flags for optimization
  MPI_RUNNER  MPI runner command
  SERIAL_RUNNER
              Serial runner command
  XPP         C++ preprocessor
  XPPFLAGS    C++ preprocessor flags
  XPPFLAGS_DEBUG
              C++ preprocessor flags for debugging
  XPPFLAGS_EXTRA
              Additional C++ preprocessor flags
  XPPFLAGS_OPTIM
              C++ preprocessor flags for optimization
  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    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  FC          Fortran compiler command
  FCFLAGS     Fortran 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 <https://bugs.launchpad.net/abinit/>.
_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
ABINIT configure 6.4.3
generated by GNU Autoconf 2.65

Copyright (C) 2009 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

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  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:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { 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:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=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

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_compile

# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_compile

# ac_fn_fc_try_compile LINENO
# ---------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_fc_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_fc_try_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$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_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
( cat <<\_ASBOX
## ------------------------------------------------- ##
## Report this to https://bugs.launchpad.net/abinit/ ##
## ------------------------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_header_mongrel

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); 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 $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* 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_$2 || defined __stub___$2
choke me
#endif

#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_func

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid; break
else
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=$ac_mid; break
else
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  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
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid
else
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	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
if ac_fn_c_try_run "$LINENO"; then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
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
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

} # ac_fn_c_check_type

# ac_fn_fc_try_link LINENO
# ------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_fc_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 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 :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_fc_try_link

# ac_fn_cxx_try_link LINENO
# -------------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 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 :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  as_fn_set_status $ac_retval

} # ac_fn_cxx_try_link
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 ABINIT $as_me 6.4.3, which was
generated by GNU Autoconf 2.65.  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) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append 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
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset 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:${as_lineno-$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= ;; #(
      *) { eval $ac_var=; 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'; as_fn_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

$as_echo "/* confdefs.h */" > 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

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_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 /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$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.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$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.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$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_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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/gnu "$srcdir"/config/gnu; do
  for ac_t in install-sh install.sh shtool; do
    if test -f "$ac_dir/$ac_t"; then
      ac_aux_dir=$ac_dir
      ac_install_sh="$ac_aux_dir/$ac_t -c"
      break 2
    fi
  done
done
if test -z "$ac_aux_dir"; then
  as_fn_error "cannot find install-sh, install.sh, or shtool in config/gnu \"$srcdir\"/config/gnu" "$LINENO" 5
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.




# Test suite - DO NOT ACTIVATE !
#AC_CONFIG_TESTDIR(tests)

# ---------------------------------------------------------------------------- #

#
# Startup
#



  abi_sec_title="Overall startup"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Initial setup
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$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_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

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


{ $as_echo "$as_me:${as_lineno-$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_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
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


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
$as_echo_n "checking target system type... " >&6; }
if test "${ac_cv_target+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$target_alias" = x; then
  ac_cv_target=$ac_cv_host
else
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
$as_echo "$ac_cv_target" >&6; }
case $ac_cv_target in
*-*-*) ;;
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
esac
target=$ac_cv_target
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_target
shift
target_cpu=$1
target_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
target_os=$*
IFS=$ac_save_IFS
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac


# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-
am__api_version='1.11'

# 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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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
# Reject unsafe characters in $srcdir or the absolute working directory
# name.  Accept space and tab only in the latter.
am_lf='
'
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
esac
case $srcdir in
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
esac

# 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_fn_error "ls -t appears to fail.  Make sure there is not a broken
alias in your environment" "$LINENO" 5
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   as_fn_error "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$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`

if test x"${MISSING+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  *)
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  esac
fi
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

if test x"${install_sh}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  *)
    install_sh="\${SHELL} $am_aux_dir/install-sh"
  esac
fi

# 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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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"

{ $as_echo "$as_me:${as_lineno-$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

  test -d ./--version && rmdir ./--version
  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.
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$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_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  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='abinit'
 VERSION='6.4.3'


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


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

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

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'





ac_config_headers="$ac_config_headers config.h"



    ac_builddir=.

case "." in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "." | 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

  abinit_srcdir="${ac_abs_top_srcdir}"
  abinit_builddir="${ac_abs_top_builddir}"
  abinit_moddir="${abinit_builddir}/src/mods"

  export abinit_srcdir abinit_builddir






    ABINIT_VERSION="${PACKAGE_VERSION}"
  ABINIT_VERSION_MAJOR=`echo "${ABINIT_VERSION}" | cut -d. -s -f1`
  ABINIT_VERSION_MINOR=`echo "${ABINIT_VERSION}" | cut -d. -s -f2`
  ABINIT_VERSION_MICRO=`echo "${ABINIT_VERSION}" | cut -d. -s -f3`
  ABINIT_VERSION_MINOR=`echo "${ABINIT_VERSION_MINOR}" | sed -e 's/a-z//g'`
  if test "${ABINIT_VERSION_MICRO}" = ""; then
    ABINIT_VERSION_MICRO=`echo "${ABINIT_VERSION}" | cut -b4-`
  fi
  if test "${ABINIT_VERSION_MICRO}" = ""; then
    ABINIT_VERSION_MICRO="dev"
  fi
  ABINIT_VERSION_BUILD=`date '+%Y%m%d'`

  ABINIT_VERSION_BASE="${ABINIT_VERSION_MAJOR}.${ABINIT_VERSION_MINOR}"


cat >>confdefs.h <<_ACEOF
#define ABINIT_VERSION "${ABINIT_VERSION}"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ABINIT_VERSION_MAJOR "${ABINIT_VERSION_MAJOR}"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ABINIT_VERSION_MINOR "${ABINIT_VERSION_MINOR}"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ABINIT_VERSION_MICRO "${ABINIT_VERSION_MICRO}"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ABINIT_VERSION_BUILD "${ABINIT_VERSION_BUILD}"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ABINIT_VERSION_BASE "${ABINIT_VERSION_BASE}"
_ACEOF









  abi_cpu_platform=`echo "${target}" | cut -d- -f2`
  abi_cpu_vendor=""
  abi_cpu_model=""
  abi_cpu_spec=""
  abi_cpu_bits=""
  abi_cpu_64bits=""

  case "${target}" in

    alpha*)
      abi_cpu_vendor="dec"
      abi_cpu_model="${target_cpu}"
      abi_cpu_64bits=`echo "${abi_cpu_model}" | grep '64$'`
      if test "${abi_cpu_64bits}" = ""; then
        abi_cpu_64bits="no"
        abi_cpu_bits="32"
      else
        abi_cpu_64bits="yes"
        abi_cpu_bits="64"
      fi
      ;;

    powerpc*)
      abi_cpu_vendor="ibm"
      abi_cpu_model="${target_cpu}"
      abi_cpu_64bits=`echo "${abi_cpu_model}" | grep '64$'`
      if test "${abi_cpu_64bits}" = ""; then
        abi_cpu_64bits="no"
        abi_cpu_bits="32"
      else
        abi_cpu_64bits="yes"
        abi_cpu_bits="64"
      fi
      ;;

    i686-*linux*)
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Athlon'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="amd"
          abi_cpu_model="athlon"
          abi_cpu_64bits="no"
          abi_cpu_bits="32"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Pentium III'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="pentium3"
          abi_cpu_64bits="no"
          abi_cpu_bits="32"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Intel(R) Pentium(R) 4'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="pentium4"
          abi_cpu_64bits="no"
          abi_cpu_bits="32"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Intel(R) Pentium(R) M'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="pentium4"
          abi_cpu_64bits="no"
          abi_cpu_bits="32"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Intel(R) CPU           T2400'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="centrino"
          abi_cpu_64bits="no"
          abi_cpu_bits="32"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Intel(R) CPU           T2050'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="coreduo"
          abi_cpu_64bits="no"
          abi_cpu_bits="32"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Intel(R) Core(TM)2 CPU'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="core2"
          abi_cpu_64bits="no"
          abi_cpu_bits="32"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Intel(R) Core(TM)2 Quad CPU'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="core2"
          abi_cpu_64bits="no"
          abi_cpu_bits="32"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_vendor="unknown"
        abi_cpu_model="unknown"
        abi_cpu_64bits="unknown"
        abi_cpu_bits="32"
      fi
      ;;

    ia64-*linux*)
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Itanium' | grep -v 'Itanium 2'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="itanium1"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Itanium 2'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="itanium2"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Madison'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="itanium2"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_vendor="unknown"
        abi_cpu_model="unknown"
      fi
            abi_cpu_64bits="yes"
      abi_cpu_bits="64"
      ;;

    mips*irix*)
      # Get processor type
      abi_cpu_vendor="mips"
      abi_cpu_model=`hinv 2> /dev/null | grep '^CPU: MIPS '`
      if test "${abi_cpu_model}" != ""; then
        abi_cpu_model=`echo "${abi_cpu_model}" | awk '{print tolower()}'`
      fi
      abi_cpu_64bits="yes"
      abi_cpu_bits="64"
      ;;

    x86_64-*linux*)
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Athlon'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="amd"
          abi_cpu_model="athlon64"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Opteron'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="amd"
          abi_cpu_model="opteron"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Sempron'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="amd"
          abi_cpu_model="athlon64"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Intel(R) Core(TM)2 CPU'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="core2"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Intel(R) Core(TM)2 Quad CPU'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="core2"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Intel(R) XEON(TM)'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="xeon"
        fi
      fi
      if test "${abi_cpu_model}" = ""; then
        abi_cpu_model=`cat /proc/cpuinfo | grep 'Intel(R) Xeon(R)'`
        if test "${abi_cpu_model}" != ""; then
          abi_cpu_vendor="intel"
          abi_cpu_model="xeon"
        fi
      fi
            if test "${abi_cpu_model}" = ""; then
        abi_cpu_vendor="unknown"
        abi_cpu_model="unknown"
      fi
            abi_cpu_64bits="yes"
      abi_cpu_bits="64"
      ;;

  esac

    abi_cpu_spec="${abi_cpu_vendor}_${abi_cpu_model}"

    abi_sys_spec=`echo "${target_os}" | cut -d- -f1`
  abi_sys_spec="${abi_sys_spec}-${target_cpu}"










  case "${target_os}" in

    *linux*)

$as_echo "#define HAVE_OS_LINUX 1" >>confdefs.h

      ;;

    *apple*)

$as_echo "#define HAVE_OS_MACOSX 1" >>confdefs.h

      ;;

  esac







# Check for common programs
{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi


{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$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
     { ac_script=; unset 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
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    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_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed

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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$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
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    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_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

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



# Workaround for the "grep -e" issue on Solaris systems
{ $as_echo "$as_me:${as_lineno-$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
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    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_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"



# Workaround for the wrong path to install-sh on Mac systems


  abi_tmp_mkdir_p=`echo "${MKDIR_P}" | awk '{print $1}'`
  if test "${abi_tmp_mkdir_p}" = "config/gnu/install-sh"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: fixing wrong path to mkdir replacement" >&5
$as_echo "$as_me: fixing wrong path to mkdir replacement" >&6;}
    MKDIR_P="${abinit_srcdir}/${MKDIR_P}"
  fi
  unset abi_tmp_mkdir_p


# Initialization of connectors
# (must be performed before option parsing)

    linalg_pkg_name="lapack-abinit_6.0"
  linalg_pkg_string="The 3.2.1 Lapack library (dlamch.f hacked by XG)"





# Define command-line arguments



  # Check whether --enable-64bit-flags was given.
if test "${enable_64bit_flags+set}" = set; then :
  enableval=$enable_64bit_flags;
fi



  # Check whether --enable-all-plugins was given.
if test "${enable_all_plugins+set}" = set; then :
  enableval=$enable_all_plugins;
fi



  # Check whether --enable-bigdft was given.
if test "${enable_bigdft+set}" = set; then :
  enableval=$enable_bigdft;
fi



  # Check whether --enable-bindings was given.
if test "${enable_bindings+set}" = set; then :
  enableval=$enable_bindings;
fi



  # Check whether --enable-bse-unpacked was given.
if test "${enable_bse_unpacked+set}" = set; then :
  enableval=$enable_bse_unpacked;
fi



  # Check whether --enable-cclock was given.
if test "${enable_cclock+set}" = set; then :
  enableval=$enable_cclock;
fi



  # Check whether --enable-clib was given.
if test "${enable_clib+set}" = set; then :
  enableval=$enable_clib;
fi



  # Check whether --enable-config-file was given.
if test "${enable_config_file+set}" = set; then :
  enableval=$enable_config_file;
fi



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



  # Check whether --enable-dft was given.
if test "${enable_dft+set}" = set; then :
  enableval=$enable_dft;
fi



  # Check whether --enable-etsf-io was given.
if test "${enable_etsf_io+set}" = set; then :
  enableval=$enable_etsf_io;
fi



  # Check whether --enable-exports was given.
if test "${enable_exports+set}" = set; then :
  enableval=$enable_exports;
fi



  # Check whether --enable-fast-check was given.
if test "${enable_fast_check+set}" = set; then :
  enableval=$enable_fast_check;
fi



  # Check whether --enable-fc-wrapper was given.
if test "${enable_fc_wrapper+set}" = set; then :
  enableval=$enable_fc_wrapper;
fi



  # Check whether --enable-fft was given.
if test "${enable_fft+set}" = set; then :
  enableval=$enable_fft;
fi



  # Check whether --enable-fox was given.
if test "${enable_fox+set}" = set; then :
  enableval=$enable_fox;
fi



  # Check whether --enable-gpu was given.
if test "${enable_gpu+set}" = set; then :
  enableval=$enable_gpu;
fi



  # Check whether --enable-gw-cutoff was given.
if test "${enable_gw_cutoff+set}" = set; then :
  enableval=$enable_gw_cutoff;
fi



  # Check whether --enable-gw-dpc was given.
if test "${enable_gw_dpc+set}" = set; then :
  enableval=$enable_gw_dpc;
fi



  # Check whether --enable-gw-optimal was given.
if test "${enable_gw_optimal+set}" = set; then :
  enableval=$enable_gw_optimal;
fi



  # Check whether --enable-gw-wrapper was given.
if test "${enable_gw_wrapper+set}" = set; then :
  enableval=$enable_gw_wrapper;
fi



  # Check whether --enable-hints was given.
if test "${enable_hints+set}" = set; then :
  enableval=$enable_hints;
fi



  # Check whether --enable-libxc was given.
if test "${enable_libxc+set}" = set; then :
  enableval=$enable_libxc;
fi



  # Check whether --enable-linalg was given.
if test "${enable_linalg+set}" = set; then :
  enableval=$enable_linalg;
fi



  # Check whether --enable-macroave was given.
if test "${enable_macroave+set}" = set; then :
  enableval=$enable_macroave;
fi



  # Check whether --enable-maintainer-checks was given.
if test "${enable_maintainer_checks+set}" = set; then :
  enableval=$enable_maintainer_checks;
fi



  # Check whether --enable-math was given.
if test "${enable_math+set}" = set; then :
  enableval=$enable_math;
fi



  # Check whether --enable-mpi was given.
if test "${enable_mpi+set}" = set; then :
  enableval=$enable_mpi;
fi



  # Check whether --enable-mpi-io was given.
if test "${enable_mpi_io+set}" = set; then :
  enableval=$enable_mpi_io;
fi



  # Check whether --enable-mpi-io-test was given.
if test "${enable_mpi_io_test+set}" = set; then :
  enableval=$enable_mpi_io_test;
fi



  # Check whether --enable-mpi-trace was given.
if test "${enable_mpi_trace+set}" = set; then :
  enableval=$enable_mpi_trace;
fi



  # Check whether --enable-netcdf was given.
if test "${enable_netcdf+set}" = set; then :
  enableval=$enable_netcdf;
fi



  # Check whether --enable-optim was given.
if test "${enable_optim+set}" = set; then :
  enableval=$enable_optim;
fi



  # Check whether --enable-scalapack was given.
if test "${enable_scalapack+set}" = set; then :
  enableval=$enable_scalapack;
fi



  # Check whether --enable-smp was given.
if test "${enable_smp+set}" = set; then :
  enableval=$enable_smp;
fi



  # Check whether --enable-stdin was given.
if test "${enable_stdin+set}" = set; then :
  enableval=$enable_stdin;
fi



  # Check whether --enable-test-timeout was given.
if test "${enable_test_timeout+set}" = set; then :
  enableval=$enable_test_timeout;
fi



  # Check whether --enable-timer was given.
if test "${enable_timer+set}" = set; then :
  enableval=$enable_timer;
fi



  # Check whether --enable-trio was given.
if test "${enable_trio+set}" = set; then :
  enableval=$enable_trio;
fi



  # Check whether --enable-vdwxc was given.
if test "${enable_vdwxc+set}" = set; then :
  enableval=$enable_vdwxc;
fi



  # Check whether --enable-wannier90 was given.
if test "${enable_wannier90+set}" = set; then :
  enableval=$enable_wannier90;
fi



  # Check whether --enable-zdot-bugfix was given.
if test "${enable_zdot_bugfix+set}" = set; then :
  enableval=$enable_zdot_bugfix;
fi





# Check whether --with-bigdft-includes was given.
if test "${with_bigdft_includes+set}" = set; then :
  withval=$with_bigdft_includes;
fi




# Check whether --with-bigdft-libs was given.
if test "${with_bigdft_libs+set}" = set; then :
  withval=$with_bigdft_libs;
fi




# Check whether --with-config-file was given.
if test "${with_config_file+set}" = set; then :
  withval=$with_config_file;
fi




# Check whether --with-dft-flavor was given.
if test "${with_dft_flavor+set}" = set; then :
  withval=$with_dft_flavor;
fi




# Check whether --with-dft-includes was given.
if test "${with_dft_includes+set}" = set; then :
  withval=$with_dft_includes;
fi




# Check whether --with-dft-libs was given.
if test "${with_dft_libs+set}" = set; then :
  withval=$with_dft_libs;
fi




# Check whether --with-etsf-io-includes was given.
if test "${with_etsf_io_includes+set}" = set; then :
  withval=$with_etsf_io_includes;
fi




# Check whether --with-etsf-io-libs was given.
if test "${with_etsf_io_libs+set}" = set; then :
  withval=$with_etsf_io_libs;
fi




# Check whether --with-fc-vendor was given.
if test "${with_fc_vendor+set}" = set; then :
  withval=$with_fc_vendor;
fi




# Check whether --with-fc-version was given.
if test "${with_fc_version+set}" = set; then :
  withval=$with_fc_version;
fi




# Check whether --with-fft-flavor was given.
if test "${with_fft_flavor+set}" = set; then :
  withval=$with_fft_flavor;
fi




# Check whether --with-fft-includes was given.
if test "${with_fft_includes+set}" = set; then :
  withval=$with_fft_includes;
fi




# Check whether --with-fft-libs was given.
if test "${with_fft_libs+set}" = set; then :
  withval=$with_fft_libs;
fi




# Check whether --with-fox-includes was given.
if test "${with_fox_includes+set}" = set; then :
  withval=$with_fox_includes;
fi




# Check whether --with-fox-libs was given.
if test "${with_fox_libs+set}" = set; then :
  withval=$with_fox_libs;
fi




# Check whether --with-gpu-cflags was given.
if test "${with_gpu_cflags+set}" = set; then :
  withval=$with_gpu_cflags;
fi




# Check whether --with-gpu-cppflags was given.
if test "${with_gpu_cppflags+set}" = set; then :
  withval=$with_gpu_cppflags;
fi




# Check whether --with-gpu-flavor was given.
if test "${with_gpu_flavor+set}" = set; then :
  withval=$with_gpu_flavor;
fi




# Check whether --with-gpu-includes was given.
if test "${with_gpu_includes+set}" = set; then :
  withval=$with_gpu_includes;
fi




# Check whether --with-gpu-ldflags was given.
if test "${with_gpu_ldflags+set}" = set; then :
  withval=$with_gpu_ldflags;
fi




# Check whether --with-gpu-libs was given.
if test "${with_gpu_libs+set}" = set; then :
  withval=$with_gpu_libs;
fi




# Check whether --with-gpu-prefix was given.
if test "${with_gpu_prefix+set}" = set; then :
  withval=$with_gpu_prefix;
fi




# Check whether --with-libxc-includes was given.
if test "${with_libxc_includes+set}" = set; then :
  withval=$with_libxc_includes;
fi




# Check whether --with-libxc-libs was given.
if test "${with_libxc_libs+set}" = set; then :
  withval=$with_libxc_libs;
fi




# Check whether --with-linalg-flavor was given.
if test "${with_linalg_flavor+set}" = set; then :
  withval=$with_linalg_flavor;
fi




# Check whether --with-linalg-includes was given.
if test "${with_linalg_includes+set}" = set; then :
  withval=$with_linalg_includes;
fi




# Check whether --with-linalg-libs was given.
if test "${with_linalg_libs+set}" = set; then :
  withval=$with_linalg_libs;
fi




# Check whether --with-math-flavor was given.
if test "${with_math_flavor+set}" = set; then :
  withval=$with_math_flavor;
fi




# Check whether --with-math-includes was given.
if test "${with_math_includes+set}" = set; then :
  withval=$with_math_includes;
fi




# Check whether --with-math-libs was given.
if test "${with_math_libs+set}" = set; then :
  withval=$with_math_libs;
fi




# Check whether --with-mpi-includes was given.
if test "${with_mpi_includes+set}" = set; then :
  withval=$with_mpi_includes;
fi




# Check whether --with-mpi-level was given.
if test "${with_mpi_level+set}" = set; then :
  withval=$with_mpi_level;
fi




# Check whether --with-mpi-libs was given.
if test "${with_mpi_libs+set}" = set; then :
  withval=$with_mpi_libs;
fi




# Check whether --with-mpi-prefix was given.
if test "${with_mpi_prefix+set}" = set; then :
  withval=$with_mpi_prefix;
fi




# Check whether --with-netcdf-includes was given.
if test "${with_netcdf_includes+set}" = set; then :
  withval=$with_netcdf_includes;
fi




# Check whether --with-netcdf-libs was given.
if test "${with_netcdf_libs+set}" = set; then :
  withval=$with_netcdf_libs;
fi




# Check whether --with-plugins-prefix was given.
if test "${with_plugins_prefix+set}" = set; then :
  withval=$with_plugins_prefix;
fi




# Check whether --with-plugins-tardir was given.
if test "${with_plugins_tardir+set}" = set; then :
  withval=$with_plugins_tardir;
fi




# Check whether --with-test-timeout was given.
if test "${with_test_timeout+set}" = set; then :
  withval=$with_test_timeout;
fi




# Check whether --with-timer-flavor was given.
if test "${with_timer_flavor+set}" = set; then :
  withval=$with_timer_flavor;
fi




# Check whether --with-timer-includes was given.
if test "${with_timer_includes+set}" = set; then :
  withval=$with_timer_includes;
fi




# Check whether --with-timer-libs was given.
if test "${with_timer_libs+set}" = set; then :
  withval=$with_timer_libs;
fi




# Check whether --with-trio-flavor was given.
if test "${with_trio_flavor+set}" = set; then :
  withval=$with_trio_flavor;
fi




# Check whether --with-trio-includes was given.
if test "${with_trio_includes+set}" = set; then :
  withval=$with_trio_includes;
fi




# Check whether --with-trio-libs was given.
if test "${with_trio_libs+set}" = set; then :
  withval=$with_trio_libs;
fi




# Check whether --with-wannier90 was given.
if test "${with_wannier90+set}" = set; then :
  withval=$with_wannier90;
fi




# Check whether --with-wannier90-includes was given.
if test "${with_wannier90_includes+set}" = set; then :
  withval=$with_wannier90_includes;
fi




# Check whether --with-wannier90-libs was given.
if test "${with_wannier90_libs+set}" = set; then :
  withval=$with_wannier90_libs;
fi




# Read config file and ensure that priorities are respected


    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"




        cmd_enable_64bit_flags="${enable_64bit_flags}"
  cmd_enable_all_plugins="${enable_all_plugins}"
  cmd_enable_bigdft="${enable_bigdft}"
  cmd_enable_bindings="${enable_bindings}"
  cmd_enable_bse_unpacked="${enable_bse_unpacked}"
  cmd_enable_cclock="${enable_cclock}"
  cmd_enable_clib="${enable_clib}"
  cmd_enable_config_file="${enable_config_file}"
  cmd_enable_debug="${enable_debug}"
  cmd_enable_dft="${enable_dft}"
  cmd_enable_etsf_io="${enable_etsf_io}"
  cmd_enable_exports="${enable_exports}"
  cmd_enable_fast_check="${enable_fast_check}"
  cmd_enable_fc_wrapper="${enable_fc_wrapper}"
  cmd_enable_fft="${enable_fft}"
  cmd_enable_fox="${enable_fox}"
  cmd_enable_gpu="${enable_gpu}"
  cmd_enable_gw_cutoff="${enable_gw_cutoff}"
  cmd_enable_gw_dpc="${enable_gw_dpc}"
  cmd_enable_gw_optimal="${enable_gw_optimal}"
  cmd_enable_gw_wrapper="${enable_gw_wrapper}"
  cmd_enable_hints="${enable_hints}"
  cmd_enable_libxc="${enable_libxc}"
  cmd_enable_linalg="${enable_linalg}"
  cmd_enable_macroave="${enable_macroave}"
  cmd_enable_maintainer_checks="${enable_maintainer_checks}"
  cmd_enable_math="${enable_math}"
  cmd_enable_mpi="${enable_mpi}"
  cmd_enable_mpi_io="${enable_mpi_io}"
  cmd_enable_mpi_io_test="${enable_mpi_io_test}"
  cmd_enable_mpi_trace="${enable_mpi_trace}"
  cmd_enable_netcdf="${enable_netcdf}"
  cmd_enable_optim="${enable_optim}"
  cmd_enable_scalapack="${enable_scalapack}"
  cmd_enable_smp="${enable_smp}"
  cmd_enable_stdin="${enable_stdin}"
  cmd_enable_test_timeout="${enable_test_timeout}"
  cmd_enable_timer="${enable_timer}"
  cmd_enable_trio="${enable_trio}"
  cmd_enable_vdwxc="${enable_vdwxc}"
  cmd_enable_wannier90="${enable_wannier90}"
  cmd_enable_zdot_bugfix="${enable_zdot_bugfix}"

        cmd_with_bigdft_includes="${with_bigdft_includes}"
  cmd_with_bigdft_libs="${with_bigdft_libs}"
  cmd_with_config_file="${with_config_file}"
  cmd_with_dft_flavor="${with_dft_flavor}"
  cmd_with_dft_includes="${with_dft_includes}"
  cmd_with_dft_libs="${with_dft_libs}"
  cmd_with_etsf_io_includes="${with_etsf_io_includes}"
  cmd_with_etsf_io_libs="${with_etsf_io_libs}"
  cmd_with_fc_vendor="${with_fc_vendor}"
  cmd_with_fc_version="${with_fc_version}"
  cmd_with_fft_flavor="${with_fft_flavor}"
  cmd_with_fft_includes="${with_fft_includes}"
  cmd_with_fft_libs="${with_fft_libs}"
  cmd_with_fox_includes="${with_fox_includes}"
  cmd_with_fox_libs="${with_fox_libs}"
  cmd_with_gpu_cflags="${with_gpu_cflags}"
  cmd_with_gpu_cppflags="${with_gpu_cppflags}"
  cmd_with_gpu_flavor="${with_gpu_flavor}"
  cmd_with_gpu_includes="${with_gpu_includes}"
  cmd_with_gpu_ldflags="${with_gpu_ldflags}"
  cmd_with_gpu_libs="${with_gpu_libs}"
  cmd_with_gpu_prefix="${with_gpu_prefix}"
  cmd_with_libxc_includes="${with_libxc_includes}"
  cmd_with_libxc_libs="${with_libxc_libs}"
  cmd_with_linalg_flavor="${with_linalg_flavor}"
  cmd_with_linalg_includes="${with_linalg_includes}"
  cmd_with_linalg_libs="${with_linalg_libs}"
  cmd_with_math_flavor="${with_math_flavor}"
  cmd_with_math_includes="${with_math_includes}"
  cmd_with_math_libs="${with_math_libs}"
  cmd_with_mpi_includes="${with_mpi_includes}"
  cmd_with_mpi_level="${with_mpi_level}"
  cmd_with_mpi_libs="${with_mpi_libs}"
  cmd_with_mpi_prefix="${with_mpi_prefix}"
  cmd_with_netcdf_includes="${with_netcdf_includes}"
  cmd_with_netcdf_libs="${with_netcdf_libs}"
  cmd_with_plugins_prefix="${with_plugins_prefix}"
  cmd_with_plugins_tardir="${with_plugins_tardir}"
  cmd_with_test_timeout="${with_test_timeout}"
  cmd_with_timer_flavor="${with_timer_flavor}"
  cmd_with_timer_includes="${with_timer_includes}"
  cmd_with_timer_libs="${with_timer_libs}"
  cmd_with_trio_flavor="${with_trio_flavor}"
  cmd_with_trio_includes="${with_trio_includes}"
  cmd_with_trio_libs="${with_trio_libs}"
  cmd_with_wannier90="${with_wannier90}"
  cmd_with_wannier90_includes="${with_wannier90_includes}"
  cmd_with_wannier90_libs="${with_wannier90_libs}"

        if test "${prefix}" != "NONE"; then
    cmd_prefix="${prefix}"
  fi

test "${enable_config_file}" = "" && enable_config_file="yes"

    abi_hostname=`hostname | sed -e 's/\..*//'`
  abi_sys_options="/etc/abinit/build/${abi_hostname}.ac"
  abi_per_options="${HOME}/.abinit/build/${abi_hostname}.ac"
  abi_src_options="${abinit_srcdir}/${abi_hostname}.ac"
  abi_loc_options="./${abi_hostname}.ac"
  abi_cmd_options=`eval echo "${with_config_file}"`
  abi_cfg_options=""

    if test "${enable_config_file}" = "yes"; then
    if test "${with_config_file}" != "" -a \
            ! -e "${with_config_file}"; then
      as_fn_error "config file ${with_config_file} not found" "$LINENO" 5
    fi

    for abi_options in "${abi_sys_options}" "${abi_per_options}" \
                       "${abi_src_options}" "${abi_loc_options}" \
                       "${abi_cmd_options}"; do
      if test -s "${abi_options}"; then
        abi_cfg_options="${abi_options}"
      fi
    done

    if test "${abi_cfg_options}" != ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: reading options from ${abi_cfg_options}" >&5
$as_echo "$as_me: reading options from ${abi_cfg_options}" >&6;}
      . ${abi_cfg_options}
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: not loading options (no config file available)" >&5
$as_echo "$as_me: not loading options (no config file available)" >&6;}
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not loading options (disabled from command line)" >&5
$as_echo "$as_me: not loading options (disabled from command line)" >&6;}
  fi




  if test "${cmd_enable_64bit_flags}" != ""; then
    enable_64bit_flags="${cmd_enable_64bit_flags}"
  fi

  if test "${cmd_enable_all_plugins}" != ""; then
    enable_all_plugins="${cmd_enable_all_plugins}"
  fi

  if test "${cmd_enable_bigdft}" != ""; then
    enable_bigdft="${cmd_enable_bigdft}"
  fi

  if test "${cmd_enable_bindings}" != ""; then
    enable_bindings="${cmd_enable_bindings}"
  fi

  if test "${cmd_enable_bse_unpacked}" != ""; then
    enable_bse_unpacked="${cmd_enable_bse_unpacked}"
  fi

  if test "${cmd_enable_cclock}" != ""; then
    enable_cclock="${cmd_enable_cclock}"
  fi

  if test "${cmd_enable_clib}" != ""; then
    enable_clib="${cmd_enable_clib}"
  fi

  if test "${cmd_enable_config_file}" != ""; then
    enable_config_file="${cmd_enable_config_file}"
  fi

  if test "${cmd_enable_debug}" != ""; then
    enable_debug="${cmd_enable_debug}"
  fi

  if test "${cmd_enable_dft}" != ""; then
    enable_dft="${cmd_enable_dft}"
  fi

  if test "${cmd_enable_etsf_io}" != ""; then
    enable_etsf_io="${cmd_enable_etsf_io}"
  fi

  if test "${cmd_enable_exports}" != ""; then
    enable_exports="${cmd_enable_exports}"
  fi

  if test "${cmd_enable_fast_check}" != ""; then
    enable_fast_check="${cmd_enable_fast_check}"
  fi

  if test "${cmd_enable_fc_wrapper}" != ""; then
    enable_fc_wrapper="${cmd_enable_fc_wrapper}"
  fi

  if test "${cmd_enable_fft}" != ""; then
    enable_fft="${cmd_enable_fft}"
  fi

  if test "${cmd_enable_fox}" != ""; then
    enable_fox="${cmd_enable_fox}"
  fi

  if test "${cmd_enable_gpu}" != ""; then
    enable_gpu="${cmd_enable_gpu}"
  fi

  if test "${cmd_enable_gw_cutoff}" != ""; then
    enable_gw_cutoff="${cmd_enable_gw_cutoff}"
  fi

  if test "${cmd_enable_gw_dpc}" != ""; then
    enable_gw_dpc="${cmd_enable_gw_dpc}"
  fi

  if test "${cmd_enable_gw_optimal}" != ""; then
    enable_gw_optimal="${cmd_enable_gw_optimal}"
  fi

  if test "${cmd_enable_gw_wrapper}" != ""; then
    enable_gw_wrapper="${cmd_enable_gw_wrapper}"
  fi

  if test "${cmd_enable_hints}" != ""; then
    enable_hints="${cmd_enable_hints}"
  fi

  if test "${cmd_enable_libxc}" != ""; then
    enable_libxc="${cmd_enable_libxc}"
  fi

  if test "${cmd_enable_linalg}" != ""; then
    enable_linalg="${cmd_enable_linalg}"
  fi

  if test "${cmd_enable_macroave}" != ""; then
    enable_macroave="${cmd_enable_macroave}"
  fi

  if test "${cmd_enable_maintainer_checks}" != ""; then
    enable_maintainer_checks="${cmd_enable_maintainer_checks}"
  fi

  if test "${cmd_enable_math}" != ""; then
    enable_math="${cmd_enable_math}"
  fi

  if test "${cmd_enable_mpi}" != ""; then
    enable_mpi="${cmd_enable_mpi}"
  fi

  if test "${cmd_enable_mpi_io}" != ""; then
    enable_mpi_io="${cmd_enable_mpi_io}"
  fi

  if test "${cmd_enable_mpi_io_test}" != ""; then
    enable_mpi_io_test="${cmd_enable_mpi_io_test}"
  fi

  if test "${cmd_enable_mpi_trace}" != ""; then
    enable_mpi_trace="${cmd_enable_mpi_trace}"
  fi

  if test "${cmd_enable_netcdf}" != ""; then
    enable_netcdf="${cmd_enable_netcdf}"
  fi

  if test "${cmd_enable_optim}" != ""; then
    enable_optim="${cmd_enable_optim}"
  fi

  if test "${cmd_enable_scalapack}" != ""; then
    enable_scalapack="${cmd_enable_scalapack}"
  fi

  if test "${cmd_enable_smp}" != ""; then
    enable_smp="${cmd_enable_smp}"
  fi

  if test "${cmd_enable_stdin}" != ""; then
    enable_stdin="${cmd_enable_stdin}"
  fi

  if test "${cmd_enable_test_timeout}" != ""; then
    enable_test_timeout="${cmd_enable_test_timeout}"
  fi

  if test "${cmd_enable_timer}" != ""; then
    enable_timer="${cmd_enable_timer}"
  fi

  if test "${cmd_enable_trio}" != ""; then
    enable_trio="${cmd_enable_trio}"
  fi

  if test "${cmd_enable_vdwxc}" != ""; then
    enable_vdwxc="${cmd_enable_vdwxc}"
  fi

  if test "${cmd_enable_wannier90}" != ""; then
    enable_wannier90="${cmd_enable_wannier90}"
  fi

  if test "${cmd_enable_zdot_bugfix}" != ""; then
    enable_zdot_bugfix="${cmd_enable_zdot_bugfix}"
  fi


  if test "${cmd_with_bigdft_includes}" != ""; then
    with_bigdft_includes="${cmd_with_bigdft_includes}"
  fi

  if test "${cmd_with_bigdft_libs}" != ""; then
    with_bigdft_libs="${cmd_with_bigdft_libs}"
  fi

  if test "${cmd_with_config_file}" != ""; then
    with_config_file="${cmd_with_config_file}"
  fi

  if test "${cmd_with_dft_flavor}" != ""; then
    with_dft_flavor="${cmd_with_dft_flavor}"
  fi

  if test "${cmd_with_dft_includes}" != ""; then
    with_dft_includes="${cmd_with_dft_includes}"
  fi

  if test "${cmd_with_dft_libs}" != ""; then
    with_dft_libs="${cmd_with_dft_libs}"
  fi

  if test "${cmd_with_etsf_io_includes}" != ""; then
    with_etsf_io_includes="${cmd_with_etsf_io_includes}"
  fi

  if test "${cmd_with_etsf_io_libs}" != ""; then
    with_etsf_io_libs="${cmd_with_etsf_io_libs}"
  fi

  if test "${cmd_with_fc_vendor}" != ""; then
    with_fc_vendor="${cmd_with_fc_vendor}"
  fi

  if test "${cmd_with_fc_version}" != ""; then
    with_fc_version="${cmd_with_fc_version}"
  fi

  if test "${cmd_with_fft_flavor}" != ""; then
    with_fft_flavor="${cmd_with_fft_flavor}"
  fi

  if test "${cmd_with_fft_includes}" != ""; then
    with_fft_includes="${cmd_with_fft_includes}"
  fi

  if test "${cmd_with_fft_libs}" != ""; then
    with_fft_libs="${cmd_with_fft_libs}"
  fi

  if test "${cmd_with_fox_includes}" != ""; then
    with_fox_includes="${cmd_with_fox_includes}"
  fi

  if test "${cmd_with_fox_libs}" != ""; then
    with_fox_libs="${cmd_with_fox_libs}"
  fi

  if test "${cmd_with_gpu_cflags}" != ""; then
    with_gpu_cflags="${cmd_with_gpu_cflags}"
  fi

  if test "${cmd_with_gpu_cppflags}" != ""; then
    with_gpu_cppflags="${cmd_with_gpu_cppflags}"
  fi

  if test "${cmd_with_gpu_flavor}" != ""; then
    with_gpu_flavor="${cmd_with_gpu_flavor}"
  fi

  if test "${cmd_with_gpu_includes}" != ""; then
    with_gpu_includes="${cmd_with_gpu_includes}"
  fi

  if test "${cmd_with_gpu_ldflags}" != ""; then
    with_gpu_ldflags="${cmd_with_gpu_ldflags}"
  fi

  if test "${cmd_with_gpu_libs}" != ""; then
    with_gpu_libs="${cmd_with_gpu_libs}"
  fi

  if test "${cmd_with_gpu_prefix}" != ""; then
    with_gpu_prefix="${cmd_with_gpu_prefix}"
  fi

  if test "${cmd_with_libxc_includes}" != ""; then
    with_libxc_includes="${cmd_with_libxc_includes}"
  fi

  if test "${cmd_with_libxc_libs}" != ""; then
    with_libxc_libs="${cmd_with_libxc_libs}"
  fi

  if test "${cmd_with_linalg_flavor}" != ""; then
    with_linalg_flavor="${cmd_with_linalg_flavor}"
  fi

  if test "${cmd_with_linalg_includes}" != ""; then
    with_linalg_includes="${cmd_with_linalg_includes}"
  fi

  if test "${cmd_with_linalg_libs}" != ""; then
    with_linalg_libs="${cmd_with_linalg_libs}"
  fi

  if test "${cmd_with_math_flavor}" != ""; then
    with_math_flavor="${cmd_with_math_flavor}"
  fi

  if test "${cmd_with_math_includes}" != ""; then
    with_math_includes="${cmd_with_math_includes}"
  fi

  if test "${cmd_with_math_libs}" != ""; then
    with_math_libs="${cmd_with_math_libs}"
  fi

  if test "${cmd_with_mpi_includes}" != ""; then
    with_mpi_includes="${cmd_with_mpi_includes}"
  fi

  if test "${cmd_with_mpi_level}" != ""; then
    with_mpi_level="${cmd_with_mpi_level}"
  fi

  if test "${cmd_with_mpi_libs}" != ""; then
    with_mpi_libs="${cmd_with_mpi_libs}"
  fi

  if test "${cmd_with_mpi_prefix}" != ""; then
    with_mpi_prefix="${cmd_with_mpi_prefix}"
  fi

  if test "${cmd_with_netcdf_includes}" != ""; then
    with_netcdf_includes="${cmd_with_netcdf_includes}"
  fi

  if test "${cmd_with_netcdf_libs}" != ""; then
    with_netcdf_libs="${cmd_with_netcdf_libs}"
  fi

  if test "${cmd_with_plugins_prefix}" != ""; then
    with_plugins_prefix="${cmd_with_plugins_prefix}"
  fi

  if test "${cmd_with_plugins_tardir}" != ""; then
    with_plugins_tardir="${cmd_with_plugins_tardir}"
  fi

  if test "${cmd_with_test_timeout}" != ""; then
    with_test_timeout="${cmd_with_test_timeout}"
  fi

  if test "${cmd_with_timer_flavor}" != ""; then
    with_timer_flavor="${cmd_with_timer_flavor}"
  fi

  if test "${cmd_with_timer_includes}" != ""; then
    with_timer_includes="${cmd_with_timer_includes}"
  fi

  if test "${cmd_with_timer_libs}" != ""; then
    with_timer_libs="${cmd_with_timer_libs}"
  fi

  if test "${cmd_with_trio_flavor}" != ""; then
    with_trio_flavor="${cmd_with_trio_flavor}"
  fi

  if test "${cmd_with_trio_includes}" != ""; then
    with_trio_includes="${cmd_with_trio_includes}"
  fi

  if test "${cmd_with_trio_libs}" != ""; then
    with_trio_libs="${cmd_with_trio_libs}"
  fi

  if test "${cmd_with_wannier90}" != ""; then
    with_wannier90="${cmd_with_wannier90}"
  fi

  if test "${cmd_with_wannier90_includes}" != ""; then
    with_wannier90_includes="${cmd_with_wannier90_includes}"
  fi

  if test "${cmd_with_wannier90_libs}" != ""; then
    with_wannier90_libs="${cmd_with_wannier90_libs}"
  fi

        if test "${cmd_prefix}" != ""; then
    prefix="${cmd_prefix}"
  fi



    if test "${abi_env_ABI_CPPFLAGS}" != ""; then
    test "${ABI_CPPFLAGS}" != "${abi_env_ABI_CPPFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of ABI_CPPFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of ABI_CPPFLAGS from environment" >&6;}
    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"
  fi

    if test "${abi_env_AR}" != ""; then
    test "${AR}" != "${abi_env_AR}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of AR from environment" >&5
$as_echo "$as_me: overriding configuration of AR from environment" >&6;}
    AR="${abi_env_AR}"
  fi

    if test "${abi_env_ARFLAGS}" != ""; then
    test "${ARFLAGS}" != "${abi_env_ARFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of ARFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of ARFLAGS from environment" >&6;}
    ARFLAGS="${abi_env_ARFLAGS}"
  fi

    if test "${abi_env_ARFLAGS_64BITS}" != ""; then
    test "${ARFLAGS_64BITS}" != "${abi_env_ARFLAGS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of ARFLAGS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of ARFLAGS_64BITS from environment" >&6;}
    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"
  fi

    if test "${abi_env_ARFLAGS_CMD}" != ""; then
    test "${ARFLAGS_CMD}" != "${abi_env_ARFLAGS_CMD}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of ARFLAGS_CMD from environment" >&5
$as_echo "$as_me: overriding configuration of ARFLAGS_CMD from environment" >&6;}
    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"
  fi

    if test "${abi_env_ARFLAGS_DEBUG}" != ""; then
    test "${ARFLAGS_DEBUG}" != "${abi_env_ARFLAGS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of ARFLAGS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of ARFLAGS_DEBUG from environment" >&6;}
    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"
  fi

    if test "${abi_env_ARFLAGS_EXTRA}" != ""; then
    test "${ARFLAGS_EXTRA}" != "${abi_env_ARFLAGS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of ARFLAGS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of ARFLAGS_EXTRA from environment" >&6;}
    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"
  fi

    if test "${abi_env_ARFLAGS_HINTS}" != ""; then
    test "${ARFLAGS_HINTS}" != "${abi_env_ARFLAGS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of ARFLAGS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of ARFLAGS_HINTS from environment" >&6;}
    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"
  fi

    if test "${abi_env_ARFLAGS_OPTIM}" != ""; then
    test "${ARFLAGS_OPTIM}" != "${abi_env_ARFLAGS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of ARFLAGS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of ARFLAGS_OPTIM from environment" >&6;}
    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"
  fi

    if test "${abi_env_CC}" != ""; then
    test "${CC}" != "${abi_env_CC}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC from environment" >&5
$as_echo "$as_me: overriding configuration of CC from environment" >&6;}
    CC="${abi_env_CC}"
  fi

    if test "${abi_env_CC_LDFLAGS}" != ""; then
    test "${CC_LDFLAGS}" != "${abi_env_CC_LDFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LDFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LDFLAGS from environment" >&6;}
    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"
  fi

    if test "${abi_env_CC_LDFLAGS_64BITS}" != ""; then
    test "${CC_LDFLAGS_64BITS}" != "${abi_env_CC_LDFLAGS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LDFLAGS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LDFLAGS_64BITS from environment" >&6;}
    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"
  fi

    if test "${abi_env_CC_LDFLAGS_DEBUG}" != ""; then
    test "${CC_LDFLAGS_DEBUG}" != "${abi_env_CC_LDFLAGS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LDFLAGS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LDFLAGS_DEBUG from environment" >&6;}
    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"
  fi

    if test "${abi_env_CC_LDFLAGS_EXTRA}" != ""; then
    test "${CC_LDFLAGS_EXTRA}" != "${abi_env_CC_LDFLAGS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LDFLAGS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LDFLAGS_EXTRA from environment" >&6;}
    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"
  fi

    if test "${abi_env_CC_LDFLAGS_GPU}" != ""; then
    test "${CC_LDFLAGS_GPU}" != "${abi_env_CC_LDFLAGS_GPU}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LDFLAGS_GPU from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LDFLAGS_GPU from environment" >&6;}
    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"
  fi

    if test "${abi_env_CC_LDFLAGS_HINTS}" != ""; then
    test "${CC_LDFLAGS_HINTS}" != "${abi_env_CC_LDFLAGS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LDFLAGS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LDFLAGS_HINTS from environment" >&6;}
    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"
  fi

    if test "${abi_env_CC_LDFLAGS_OPTIM}" != ""; then
    test "${CC_LDFLAGS_OPTIM}" != "${abi_env_CC_LDFLAGS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LDFLAGS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LDFLAGS_OPTIM from environment" >&6;}
    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"
  fi

    if test "${abi_env_CC_LIBS}" != ""; then
    test "${CC_LIBS}" != "${abi_env_CC_LIBS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LIBS from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LIBS from environment" >&6;}
    CC_LIBS="${abi_env_CC_LIBS}"
  fi

    if test "${abi_env_CC_LIBS_64BITS}" != ""; then
    test "${CC_LIBS_64BITS}" != "${abi_env_CC_LIBS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LIBS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LIBS_64BITS from environment" >&6;}
    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"
  fi

    if test "${abi_env_CC_LIBS_DEBUG}" != ""; then
    test "${CC_LIBS_DEBUG}" != "${abi_env_CC_LIBS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LIBS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LIBS_DEBUG from environment" >&6;}
    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"
  fi

    if test "${abi_env_CC_LIBS_EXTRA}" != ""; then
    test "${CC_LIBS_EXTRA}" != "${abi_env_CC_LIBS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LIBS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LIBS_EXTRA from environment" >&6;}
    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"
  fi

    if test "${abi_env_CC_LIBS_GPU}" != ""; then
    test "${CC_LIBS_GPU}" != "${abi_env_CC_LIBS_GPU}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LIBS_GPU from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LIBS_GPU from environment" >&6;}
    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"
  fi

    if test "${abi_env_CC_LIBS_HINTS}" != ""; then
    test "${CC_LIBS_HINTS}" != "${abi_env_CC_LIBS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LIBS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LIBS_HINTS from environment" >&6;}
    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"
  fi

    if test "${abi_env_CC_LIBS_OPTIM}" != ""; then
    test "${CC_LIBS_OPTIM}" != "${abi_env_CC_LIBS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CC_LIBS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of CC_LIBS_OPTIM from environment" >&6;}
    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"
  fi

    if test "${abi_env_CFLAGS}" != ""; then
    test "${CFLAGS}" != "${abi_env_CFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of CFLAGS from environment" >&6;}
    CFLAGS="${abi_env_CFLAGS}"
  fi

    if test "${abi_env_CFLAGS_64BITS}" != ""; then
    test "${CFLAGS_64BITS}" != "${abi_env_CFLAGS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CFLAGS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of CFLAGS_64BITS from environment" >&6;}
    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"
  fi

    if test "${abi_env_CFLAGS_DEBUG}" != ""; then
    test "${CFLAGS_DEBUG}" != "${abi_env_CFLAGS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CFLAGS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of CFLAGS_DEBUG from environment" >&6;}
    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"
  fi

    if test "${abi_env_CFLAGS_EXTRA}" != ""; then
    test "${CFLAGS_EXTRA}" != "${abi_env_CFLAGS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CFLAGS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of CFLAGS_EXTRA from environment" >&6;}
    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"
  fi

    if test "${abi_env_CFLAGS_GPU}" != ""; then
    test "${CFLAGS_GPU}" != "${abi_env_CFLAGS_GPU}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CFLAGS_GPU from environment" >&5
$as_echo "$as_me: overriding configuration of CFLAGS_GPU from environment" >&6;}
    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"
  fi

    if test "${abi_env_CFLAGS_HINTS}" != ""; then
    test "${CFLAGS_HINTS}" != "${abi_env_CFLAGS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CFLAGS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of CFLAGS_HINTS from environment" >&6;}
    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"
  fi

    if test "${abi_env_CFLAGS_OPTIM}" != ""; then
    test "${CFLAGS_OPTIM}" != "${abi_env_CFLAGS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CFLAGS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of CFLAGS_OPTIM from environment" >&6;}
    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"
  fi

    if test "${abi_env_CPP}" != ""; then
    test "${CPP}" != "${abi_env_CPP}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CPP from environment" >&5
$as_echo "$as_me: overriding configuration of CPP from environment" >&6;}
    CPP="${abi_env_CPP}"
  fi

    if test "${abi_env_CPPFLAGS}" != ""; then
    test "${CPPFLAGS}" != "${abi_env_CPPFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CPPFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of CPPFLAGS from environment" >&6;}
    CPPFLAGS="${abi_env_CPPFLAGS}"
  fi

    if test "${abi_env_CPPFLAGS_64BITS}" != ""; then
    test "${CPPFLAGS_64BITS}" != "${abi_env_CPPFLAGS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CPPFLAGS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of CPPFLAGS_64BITS from environment" >&6;}
    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"
  fi

    if test "${abi_env_CPPFLAGS_DEBUG}" != ""; then
    test "${CPPFLAGS_DEBUG}" != "${abi_env_CPPFLAGS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CPPFLAGS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of CPPFLAGS_DEBUG from environment" >&6;}
    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"
  fi

    if test "${abi_env_CPPFLAGS_EXTRA}" != ""; then
    test "${CPPFLAGS_EXTRA}" != "${abi_env_CPPFLAGS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CPPFLAGS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of CPPFLAGS_EXTRA from environment" >&6;}
    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"
  fi

    if test "${abi_env_CPPFLAGS_GPU}" != ""; then
    test "${CPPFLAGS_GPU}" != "${abi_env_CPPFLAGS_GPU}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CPPFLAGS_GPU from environment" >&5
$as_echo "$as_me: overriding configuration of CPPFLAGS_GPU from environment" >&6;}
    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"
  fi

    if test "${abi_env_CPPFLAGS_HINTS}" != ""; then
    test "${CPPFLAGS_HINTS}" != "${abi_env_CPPFLAGS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CPPFLAGS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of CPPFLAGS_HINTS from environment" >&6;}
    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"
  fi

    if test "${abi_env_CPPFLAGS_OPTIM}" != ""; then
    test "${CPPFLAGS_OPTIM}" != "${abi_env_CPPFLAGS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CPPFLAGS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of CPPFLAGS_OPTIM from environment" >&6;}
    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"
  fi

    if test "${abi_env_CXX}" != ""; then
    test "${CXX}" != "${abi_env_CXX}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX from environment" >&5
$as_echo "$as_me: overriding configuration of CXX from environment" >&6;}
    CXX="${abi_env_CXX}"
  fi

    if test "${abi_env_CXXFLAGS}" != ""; then
    test "${CXXFLAGS}" != "${abi_env_CXXFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXXFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of CXXFLAGS from environment" >&6;}
    CXXFLAGS="${abi_env_CXXFLAGS}"
  fi

    if test "${abi_env_CXXFLAGS_64BITS}" != ""; then
    test "${CXXFLAGS_64BITS}" != "${abi_env_CXXFLAGS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXXFLAGS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of CXXFLAGS_64BITS from environment" >&6;}
    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"
  fi

    if test "${abi_env_CXXFLAGS_DEBUG}" != ""; then
    test "${CXXFLAGS_DEBUG}" != "${abi_env_CXXFLAGS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXXFLAGS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of CXXFLAGS_DEBUG from environment" >&6;}
    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"
  fi

    if test "${abi_env_CXXFLAGS_EXTRA}" != ""; then
    test "${CXXFLAGS_EXTRA}" != "${abi_env_CXXFLAGS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXXFLAGS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of CXXFLAGS_EXTRA from environment" >&6;}
    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"
  fi

    if test "${abi_env_CXXFLAGS_GPU}" != ""; then
    test "${CXXFLAGS_GPU}" != "${abi_env_CXXFLAGS_GPU}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXXFLAGS_GPU from environment" >&5
$as_echo "$as_me: overriding configuration of CXXFLAGS_GPU from environment" >&6;}
    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"
  fi

    if test "${abi_env_CXXFLAGS_HINTS}" != ""; then
    test "${CXXFLAGS_HINTS}" != "${abi_env_CXXFLAGS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXXFLAGS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of CXXFLAGS_HINTS from environment" >&6;}
    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"
  fi

    if test "${abi_env_CXXFLAGS_OPTIM}" != ""; then
    test "${CXXFLAGS_OPTIM}" != "${abi_env_CXXFLAGS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXXFLAGS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of CXXFLAGS_OPTIM from environment" >&6;}
    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"
  fi

    if test "${abi_env_CXX_LDFLAGS}" != ""; then
    test "${CXX_LDFLAGS}" != "${abi_env_CXX_LDFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LDFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LDFLAGS from environment" >&6;}
    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"
  fi

    if test "${abi_env_CXX_LDFLAGS_64BITS}" != ""; then
    test "${CXX_LDFLAGS_64BITS}" != "${abi_env_CXX_LDFLAGS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LDFLAGS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LDFLAGS_64BITS from environment" >&6;}
    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"
  fi

    if test "${abi_env_CXX_LDFLAGS_DEBUG}" != ""; then
    test "${CXX_LDFLAGS_DEBUG}" != "${abi_env_CXX_LDFLAGS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LDFLAGS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LDFLAGS_DEBUG from environment" >&6;}
    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"
  fi

    if test "${abi_env_CXX_LDFLAGS_EXTRA}" != ""; then
    test "${CXX_LDFLAGS_EXTRA}" != "${abi_env_CXX_LDFLAGS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LDFLAGS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LDFLAGS_EXTRA from environment" >&6;}
    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"
  fi

    if test "${abi_env_CXX_LDFLAGS_GPU}" != ""; then
    test "${CXX_LDFLAGS_GPU}" != "${abi_env_CXX_LDFLAGS_GPU}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LDFLAGS_GPU from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LDFLAGS_GPU from environment" >&6;}
    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"
  fi

    if test "${abi_env_CXX_LDFLAGS_HINTS}" != ""; then
    test "${CXX_LDFLAGS_HINTS}" != "${abi_env_CXX_LDFLAGS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LDFLAGS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LDFLAGS_HINTS from environment" >&6;}
    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"
  fi

    if test "${abi_env_CXX_LDFLAGS_OPTIM}" != ""; then
    test "${CXX_LDFLAGS_OPTIM}" != "${abi_env_CXX_LDFLAGS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LDFLAGS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LDFLAGS_OPTIM from environment" >&6;}
    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"
  fi

    if test "${abi_env_CXX_LIBS}" != ""; then
    test "${CXX_LIBS}" != "${abi_env_CXX_LIBS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LIBS from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LIBS from environment" >&6;}
    CXX_LIBS="${abi_env_CXX_LIBS}"
  fi

    if test "${abi_env_CXX_LIBS_64BITS}" != ""; then
    test "${CXX_LIBS_64BITS}" != "${abi_env_CXX_LIBS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LIBS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LIBS_64BITS from environment" >&6;}
    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"
  fi

    if test "${abi_env_CXX_LIBS_DEBUG}" != ""; then
    test "${CXX_LIBS_DEBUG}" != "${abi_env_CXX_LIBS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LIBS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LIBS_DEBUG from environment" >&6;}
    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"
  fi

    if test "${abi_env_CXX_LIBS_EXTRA}" != ""; then
    test "${CXX_LIBS_EXTRA}" != "${abi_env_CXX_LIBS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LIBS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LIBS_EXTRA from environment" >&6;}
    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"
  fi

    if test "${abi_env_CXX_LIBS_GPU}" != ""; then
    test "${CXX_LIBS_GPU}" != "${abi_env_CXX_LIBS_GPU}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LIBS_GPU from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LIBS_GPU from environment" >&6;}
    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"
  fi

    if test "${abi_env_CXX_LIBS_HINTS}" != ""; then
    test "${CXX_LIBS_HINTS}" != "${abi_env_CXX_LIBS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LIBS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LIBS_HINTS from environment" >&6;}
    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"
  fi

    if test "${abi_env_CXX_LIBS_OPTIM}" != ""; then
    test "${CXX_LIBS_OPTIM}" != "${abi_env_CXX_LIBS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of CXX_LIBS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of CXX_LIBS_OPTIM from environment" >&6;}
    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"
  fi

    if test "${abi_env_DEFS}" != ""; then
    test "${DEFS}" != "${abi_env_DEFS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of DEFS from environment" >&5
$as_echo "$as_me: overriding configuration of DEFS from environment" >&6;}
    DEFS="${abi_env_DEFS}"
  fi

    if test "${abi_env_F77}" != ""; then
    test "${F77}" != "${abi_env_F77}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of F77 from environment" >&5
$as_echo "$as_me: overriding configuration of F77 from environment" >&6;}
    F77="${abi_env_F77}"
  fi

    if test "${abi_env_FC}" != ""; then
    test "${FC}" != "${abi_env_FC}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC from environment" >&5
$as_echo "$as_me: overriding configuration of FC from environment" >&6;}
    FC="${abi_env_FC}"
  fi

    if test "${abi_env_FCFLAGS}" != ""; then
    test "${FCFLAGS}" != "${abi_env_FCFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FCFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of FCFLAGS from environment" >&6;}
    FCFLAGS="${abi_env_FCFLAGS}"
  fi

    if test "${abi_env_FCFLAGS_64BITS}" != ""; then
    test "${FCFLAGS_64BITS}" != "${abi_env_FCFLAGS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FCFLAGS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of FCFLAGS_64BITS from environment" >&6;}
    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"
  fi

    if test "${abi_env_FCFLAGS_DEBUG}" != ""; then
    test "${FCFLAGS_DEBUG}" != "${abi_env_FCFLAGS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FCFLAGS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of FCFLAGS_DEBUG from environment" >&6;}
    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"
  fi

    if test "${abi_env_FCFLAGS_EXTRA}" != ""; then
    test "${FCFLAGS_EXTRA}" != "${abi_env_FCFLAGS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FCFLAGS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of FCFLAGS_EXTRA from environment" >&6;}
    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"
  fi

    if test "${abi_env_FCFLAGS_FIXEDFORM}" != ""; then
    test "${FCFLAGS_FIXEDFORM}" != "${abi_env_FCFLAGS_FIXEDFORM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FCFLAGS_FIXEDFORM from environment" >&5
$as_echo "$as_me: overriding configuration of FCFLAGS_FIXEDFORM from environment" >&6;}
    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"
  fi

    if test "${abi_env_FCFLAGS_FREEFORM}" != ""; then
    test "${FCFLAGS_FREEFORM}" != "${abi_env_FCFLAGS_FREEFORM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FCFLAGS_FREEFORM from environment" >&5
$as_echo "$as_me: overriding configuration of FCFLAGS_FREEFORM from environment" >&6;}
    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"
  fi

    if test "${abi_env_FCFLAGS_HINTS}" != ""; then
    test "${FCFLAGS_HINTS}" != "${abi_env_FCFLAGS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FCFLAGS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of FCFLAGS_HINTS from environment" >&6;}
    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"
  fi

    if test "${abi_env_FCFLAGS_MODDIR}" != ""; then
    test "${FCFLAGS_MODDIR}" != "${abi_env_FCFLAGS_MODDIR}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FCFLAGS_MODDIR from environment" >&5
$as_echo "$as_me: overriding configuration of FCFLAGS_MODDIR from environment" >&6;}
    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"
  fi

    if test "${abi_env_FCFLAGS_OPTIM}" != ""; then
    test "${FCFLAGS_OPTIM}" != "${abi_env_FCFLAGS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FCFLAGS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of FCFLAGS_OPTIM from environment" >&6;}
    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"
  fi

    if test "${abi_env_FC_LDFLAGS}" != ""; then
    test "${FC_LDFLAGS}" != "${abi_env_FC_LDFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LDFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LDFLAGS from environment" >&6;}
    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"
  fi

    if test "${abi_env_FC_LDFLAGS_64BITS}" != ""; then
    test "${FC_LDFLAGS_64BITS}" != "${abi_env_FC_LDFLAGS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LDFLAGS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LDFLAGS_64BITS from environment" >&6;}
    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"
  fi

    if test "${abi_env_FC_LDFLAGS_DEBUG}" != ""; then
    test "${FC_LDFLAGS_DEBUG}" != "${abi_env_FC_LDFLAGS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LDFLAGS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LDFLAGS_DEBUG from environment" >&6;}
    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"
  fi

    if test "${abi_env_FC_LDFLAGS_EXTRA}" != ""; then
    test "${FC_LDFLAGS_EXTRA}" != "${abi_env_FC_LDFLAGS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LDFLAGS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LDFLAGS_EXTRA from environment" >&6;}
    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"
  fi

    if test "${abi_env_FC_LDFLAGS_HINTS}" != ""; then
    test "${FC_LDFLAGS_HINTS}" != "${abi_env_FC_LDFLAGS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LDFLAGS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LDFLAGS_HINTS from environment" >&6;}
    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"
  fi

    if test "${abi_env_FC_LDFLAGS_OPTIM}" != ""; then
    test "${FC_LDFLAGS_OPTIM}" != "${abi_env_FC_LDFLAGS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LDFLAGS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LDFLAGS_OPTIM from environment" >&6;}
    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"
  fi

    if test "${abi_env_FC_LIBS}" != ""; then
    test "${FC_LIBS}" != "${abi_env_FC_LIBS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LIBS from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LIBS from environment" >&6;}
    FC_LIBS="${abi_env_FC_LIBS}"
  fi

    if test "${abi_env_FC_LIBS_64BITS}" != ""; then
    test "${FC_LIBS_64BITS}" != "${abi_env_FC_LIBS_64BITS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LIBS_64BITS from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LIBS_64BITS from environment" >&6;}
    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"
  fi

    if test "${abi_env_FC_LIBS_DEBUG}" != ""; then
    test "${FC_LIBS_DEBUG}" != "${abi_env_FC_LIBS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LIBS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LIBS_DEBUG from environment" >&6;}
    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"
  fi

    if test "${abi_env_FC_LIBS_EXTRA}" != ""; then
    test "${FC_LIBS_EXTRA}" != "${abi_env_FC_LIBS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LIBS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LIBS_EXTRA from environment" >&6;}
    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"
  fi

    if test "${abi_env_FC_LIBS_HINTS}" != ""; then
    test "${FC_LIBS_HINTS}" != "${abi_env_FC_LIBS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LIBS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LIBS_HINTS from environment" >&6;}
    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"
  fi

    if test "${abi_env_FC_LIBS_OPTIM}" != ""; then
    test "${FC_LIBS_OPTIM}" != "${abi_env_FC_LIBS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FC_LIBS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of FC_LIBS_OPTIM from environment" >&6;}
    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"
  fi

    if test "${abi_env_FPP}" != ""; then
    test "${FPP}" != "${abi_env_FPP}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FPP from environment" >&5
$as_echo "$as_me: overriding configuration of FPP from environment" >&6;}
    FPP="${abi_env_FPP}"
  fi

    if test "${abi_env_FPPFLAGS}" != ""; then
    test "${FPPFLAGS}" != "${abi_env_FPPFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FPPFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of FPPFLAGS from environment" >&6;}
    FPPFLAGS="${abi_env_FPPFLAGS}"
  fi

    if test "${abi_env_FPPFLAGS_DEBUG}" != ""; then
    test "${FPPFLAGS_DEBUG}" != "${abi_env_FPPFLAGS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FPPFLAGS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of FPPFLAGS_DEBUG from environment" >&6;}
    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"
  fi

    if test "${abi_env_FPPFLAGS_EXTRA}" != ""; then
    test "${FPPFLAGS_EXTRA}" != "${abi_env_FPPFLAGS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FPPFLAGS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of FPPFLAGS_EXTRA from environment" >&6;}
    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"
  fi

    if test "${abi_env_FPPFLAGS_HINTS}" != ""; then
    test "${FPPFLAGS_HINTS}" != "${abi_env_FPPFLAGS_HINTS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FPPFLAGS_HINTS from environment" >&5
$as_echo "$as_me: overriding configuration of FPPFLAGS_HINTS from environment" >&6;}
    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"
  fi

    if test "${abi_env_FPPFLAGS_OPTIM}" != ""; then
    test "${FPPFLAGS_OPTIM}" != "${abi_env_FPPFLAGS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of FPPFLAGS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of FPPFLAGS_OPTIM from environment" >&6;}
    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"
  fi

    if test "${abi_env_LD}" != ""; then
    test "${LD}" != "${abi_env_LD}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of LD from environment" >&5
$as_echo "$as_me: overriding configuration of LD from environment" >&6;}
    LD="${abi_env_LD}"
  fi

    if test "${abi_env_LTXFLAGS}" != ""; then
    test "${LTXFLAGS}" != "${abi_env_LTXFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of LTXFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of LTXFLAGS from environment" >&6;}
    LTXFLAGS="${abi_env_LTXFLAGS}"
  fi

    if test "${abi_env_MDFLAGS}" != ""; then
    test "${MDFLAGS}" != "${abi_env_MDFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of MDFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of MDFLAGS from environment" >&6;}
    MDFLAGS="${abi_env_MDFLAGS}"
  fi

    if test "${abi_env_MPI_RUNNER}" != ""; then
    test "${MPI_RUNNER}" != "${abi_env_MPI_RUNNER}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of MPI_RUNNER from environment" >&5
$as_echo "$as_me: overriding configuration of MPI_RUNNER from environment" >&6;}
    MPI_RUNNER="${abi_env_MPI_RUNNER}"
  fi

    if test "${abi_env_NM}" != ""; then
    test "${NM}" != "${abi_env_NM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of NM from environment" >&5
$as_echo "$as_me: overriding configuration of NM from environment" >&6;}
    NM="${abi_env_NM}"
  fi

    if test "${abi_env_NVCC}" != ""; then
    test "${NVCC}" != "${abi_env_NVCC}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of NVCC from environment" >&5
$as_echo "$as_me: overriding configuration of NVCC from environment" >&6;}
    NVCC="${abi_env_NVCC}"
  fi

    if test "${abi_env_NVCC_CFLAGS}" != ""; then
    test "${NVCC_CFLAGS}" != "${abi_env_NVCC_CFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of NVCC_CFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of NVCC_CFLAGS from environment" >&6;}
    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"
  fi

    if test "${abi_env_NVCC_CPPFLAGS}" != ""; then
    test "${NVCC_CPPFLAGS}" != "${abi_env_NVCC_CPPFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of NVCC_CPPFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of NVCC_CPPFLAGS from environment" >&6;}
    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"
  fi

    if test "${abi_env_NVCC_LDFLAGS}" != ""; then
    test "${NVCC_LDFLAGS}" != "${abi_env_NVCC_LDFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of NVCC_LDFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of NVCC_LDFLAGS from environment" >&6;}
    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"
  fi

    if test "${abi_env_NVCC_LIBS}" != ""; then
    test "${NVCC_LIBS}" != "${abi_env_NVCC_LIBS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of NVCC_LIBS from environment" >&5
$as_echo "$as_me: overriding configuration of NVCC_LIBS from environment" >&6;}
    NVCC_LIBS="${abi_env_NVCC_LIBS}"
  fi

    if test "${abi_env_PDFFLAGS}" != ""; then
    test "${PDFFLAGS}" != "${abi_env_PDFFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of PDFFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of PDFFLAGS from environment" >&6;}
    PDFFLAGS="${abi_env_PDFFLAGS}"
  fi

    if test "${abi_env_RANLIB}" != ""; then
    test "${RANLIB}" != "${abi_env_RANLIB}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of RANLIB from environment" >&5
$as_echo "$as_me: overriding configuration of RANLIB from environment" >&6;}
    RANLIB="${abi_env_RANLIB}"
  fi

    if test "${abi_env_SERIAL_RUNNER}" != ""; then
    test "${SERIAL_RUNNER}" != "${abi_env_SERIAL_RUNNER}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of SERIAL_RUNNER from environment" >&5
$as_echo "$as_me: overriding configuration of SERIAL_RUNNER from environment" >&6;}
    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"
  fi

    if test "${abi_env_XPP}" != ""; then
    test "${XPP}" != "${abi_env_XPP}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of XPP from environment" >&5
$as_echo "$as_me: overriding configuration of XPP from environment" >&6;}
    XPP="${abi_env_XPP}"
  fi

    if test "${abi_env_XPPFLAGS}" != ""; then
    test "${XPPFLAGS}" != "${abi_env_XPPFLAGS}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of XPPFLAGS from environment" >&5
$as_echo "$as_me: overriding configuration of XPPFLAGS from environment" >&6;}
    XPPFLAGS="${abi_env_XPPFLAGS}"
  fi

    if test "${abi_env_XPPFLAGS_DEBUG}" != ""; then
    test "${XPPFLAGS_DEBUG}" != "${abi_env_XPPFLAGS_DEBUG}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of XPPFLAGS_DEBUG from environment" >&5
$as_echo "$as_me: overriding configuration of XPPFLAGS_DEBUG from environment" >&6;}
    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"
  fi

    if test "${abi_env_XPPFLAGS_EXTRA}" != ""; then
    test "${XPPFLAGS_EXTRA}" != "${abi_env_XPPFLAGS_EXTRA}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of XPPFLAGS_EXTRA from environment" >&5
$as_echo "$as_me: overriding configuration of XPPFLAGS_EXTRA from environment" >&6;}
    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"
  fi

    if test "${abi_env_XPPFLAGS_OPTIM}" != ""; then
    test "${XPPFLAGS_OPTIM}" != "${abi_env_XPPFLAGS_OPTIM}" && \
      { $as_echo "$as_me:${as_lineno-$LINENO}: overriding configuration of XPPFLAGS_OPTIM from environment" >&5
$as_echo "$as_me: overriding configuration of XPPFLAGS_OPTIM from environment" >&6;}
    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"
  fi



# Set still undefined options



  if test "${enable_64bit_flags}" = ""; then
    enable_64bit_flags="no"
  fi
  if test "${enable_bigdft}" = ""; then
    enable_bigdft="yes"
  fi
  if test "${enable_bindings}" = ""; then
    enable_bindings="no"
  fi
  if test "${enable_bse_unpacked}" = ""; then
    enable_bse_unpacked="no"
  fi
  if test "${enable_cclock}" = ""; then
    enable_cclock="no"
  fi
  if test "${enable_clib}" = ""; then
    enable_clib="no"
  fi
  if test "${enable_config_file}" = ""; then
    enable_config_file="yes"
  fi
  if test "${enable_debug}" = ""; then
    enable_debug="basic"
  fi
  if test "${enable_dft}" = ""; then
    enable_dft="no"
  fi
  if test "${enable_etsf_io}" = ""; then
    enable_etsf_io="yes"
  fi
  if test "${enable_exports}" = ""; then
    enable_exports="no"
  fi
  if test "${enable_fast_check}" = ""; then
    enable_fast_check="no"
  fi
  if test "${enable_fc_wrapper}" = ""; then
    enable_fc_wrapper="no"
  fi
  if test "${enable_fft}" = ""; then
    enable_fft="no"
  fi
  if test "${enable_fox}" = ""; then
    enable_fox="no"
  fi
  if test "${enable_gpu}" = ""; then
    enable_gpu="no"
  fi
  if test "${enable_gw_cutoff}" = ""; then
    enable_gw_cutoff="no"
  fi
  if test "${enable_gw_dpc}" = ""; then
    enable_gw_dpc="no"
  fi
  if test "${enable_gw_optimal}" = ""; then
    enable_gw_optimal="no"
  fi
  if test "${enable_gw_wrapper}" = ""; then
    enable_gw_wrapper="no"
  fi
  if test "${enable_hints}" = ""; then
    enable_hints="yes"
  fi
  if test "${enable_libxc}" = ""; then
    enable_libxc="yes"
  fi
  if test "${enable_linalg}" = ""; then
    enable_linalg="yes"
  fi
  if test "${enable_macroave}" = ""; then
    enable_macroave="yes"
  fi
  if test "${enable_maintainer_checks}" = ""; then
    enable_maintainer_checks="no"
  fi
  if test "${enable_math}" = ""; then
    enable_math="no"
  fi
  if test "${enable_mpi_io_test}" = ""; then
    enable_mpi_io_test="no"
  fi
  if test "${enable_mpi_trace}" = ""; then
    enable_mpi_trace="no"
  fi
  if test "${enable_netcdf}" = ""; then
    enable_netcdf="yes"
  fi
  if test "${enable_optim}" = ""; then
    enable_optim="standard"
  fi
  if test "${enable_scalapack}" = ""; then
    enable_scalapack="no"
  fi
  if test "${enable_smp}" = ""; then
    enable_smp="no"
  fi
  if test "${enable_stdin}" = ""; then
    enable_stdin="yes"
  fi
  if test "${enable_test_timeout}" = ""; then
    enable_test_timeout="no"
  fi
  if test "${enable_timer}" = ""; then
    enable_timer="no"
  fi
  if test "${enable_trio}" = ""; then
    enable_trio="no"
  fi
  if test "${enable_vdwxc}" = ""; then
    enable_vdwxc="no"
  fi
  if test "${enable_wannier90}" = ""; then
    enable_wannier90="yes"
  fi
  if test "${enable_zdot_bugfix}" = ""; then
    enable_zdot_bugfix="no"
  fi


  if test "${with_dft_flavor}" = ""; then
    with_dft_flavor="bigdft+libxc+wannier90"
  fi
  if test "${with_fft_flavor}" = ""; then
    with_fft_flavor="fftw3"
  fi
  if test "${with_gpu_flavor}" = ""; then
    with_gpu_flavor="cuda-single"
  fi
  if test "${with_linalg_flavor}" = ""; then
    with_linalg_flavor="netlib"
  fi
  if test "${with_math_flavor}" = ""; then
    with_math_flavor="gsl"
  fi
  if test "${with_test_timeout}" = ""; then
    with_test_timeout="900"
  fi
  if test "${with_timer_flavor}" = ""; then
    with_timer_flavor="abinit"
  fi
  if test "${with_trio_flavor}" = ""; then
    with_trio_flavor="fox+etsf"
  fi


# Initialize environment, taking options into account


    ABI_CPPFLAGS=''




    ARFLAGS_64BITS=''


    ARFLAGS_CMD='rc'








    ARFLAGS_HINTS=''









    CC_LDFLAGS_64BITS=''







    CC_LDFLAGS_GPU=''


    CC_LDFLAGS_HINTS=''








    CC_LIBS_64BITS=''







    CC_LIBS_GPU=''


    CC_LIBS_HINTS=''






    CFLAGS_64BITS=''








    CFLAGS_GPU=''


    CFLAGS_HINTS=''







    CPPFLAGS_64BITS=''








    CPPFLAGS_GPU=''


    CPPFLAGS_HINTS=''







    CXXFLAGS_64BITS=''








    CXXFLAGS_GPU=''


    CXXFLAGS_HINTS=''







    CXX_LDFLAGS_64BITS=''








    CXX_LDFLAGS_GPU=''


    CXX_LDFLAGS_HINTS=''








    CXX_LIBS_64BITS=''







    CXX_LIBS_GPU=''


    CXX_LIBS_HINTS=''










    FCFLAGS_64BITS=''








    FCFLAGS_FIXEDFORM=''


    FCFLAGS_FREEFORM=''


    FCFLAGS_HINTS=''


    FCFLAGS_MODDIR=''







    FC_LDFLAGS_64BITS=''








    FC_LDFLAGS_HINTS=''








    FC_LIBS_64BITS=''







    FC_LIBS_HINTS=''

















    FPPFLAGS_HINTS=''






















































# Initialize install dirs (requires version and config options to be set)

    if test "${prefix}" = "NONE"; then
    abinit_prefix="${ac_default_prefix}"
  else
    abinit_prefix="${prefix}"
  fi

    abinit_bindir="${abinit_prefix}/bin"
  abinit_chkdir="${abinit_prefix}/share/abinit/tests"
  abinit_datdir="${abinit_prefix}/share/abinit"
  abinit_docdir="${abinit_prefix}/doc/abinit"
  abinit_incdir="${abinit_prefix}/include"
  abinit_libdir="${abinit_prefix}/lib"
  abinit_mandir="${abinit_prefix}/share/man"











# Propagate "--enable-all-plugins"
if test "${enable_all_plugins}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: enabling all plug-ins" >&5
$as_echo "$as_me: enabling all plug-ins" >&6;}
  enable_bigdft="yes"
  enable_etsf_io="yes"
  enable_libxc="yes"
  enable_fox="yes"
  enable_netcdf="yes"
  enable_wannier90="yes"
fi
if test "${enable_all_plugins}" = "no"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: disabling all plug-ins" >&5
$as_echo "$as_me: disabling all plug-ins" >&6;}
  enable_bigdft="no"
  enable_etsf_io="no"
  enable_libxc="no"
  enable_fox="no"
  enable_netcdf="no"
  enable_wannier90="no"
fi

# Translate optimization level
abi_optflags_mode="${enable_optim}"

# Allow for bindings between Fortran and C
abi_lang_mix="yes"

# Disable wrapping of Fortran compiler by default
abi_fc_wrap="no"

# Save user-defined CPP
abi_cpp_user="${CPP}"

# Set-up required information for core libraries

    src_01_gsl_ext_incs='-I$(top_builddir)/src/01_gsl_ext -I$(top_srcdir)/src/01_gsl_ext'
  src_01_interfaces_ext_incs='-I$(top_builddir)/src/01_interfaces_ext -I$(top_srcdir)/src/01_interfaces_ext'
  src_01_macroavnew_ext_incs='-I$(top_builddir)/src/01_macroavnew_ext -I$(top_srcdir)/src/01_macroavnew_ext'
  src_01_qespresso_ext_incs='-I$(top_builddir)/src/01_qespresso_ext -I$(top_srcdir)/src/01_qespresso_ext'
  src_02_clib_incs='-I$(top_builddir)/src/02_clib -I$(top_srcdir)/src/02_clib'
  src_10_defs_incs='-I$(top_builddir)/src/10_defs -I$(top_srcdir)/src/10_defs'
  src_12_hide_mpi_incs='-I$(top_builddir)/src/12_hide_mpi -I$(top_srcdir)/src/12_hide_mpi'
  src_14_hidewrite_incs='-I$(top_builddir)/src/14_hidewrite -I$(top_srcdir)/src/14_hidewrite'
  src_15_gpu_toolbox_incs='-I$(top_builddir)/src/15_gpu_toolbox -I$(top_srcdir)/src/15_gpu_toolbox'
  src_16_hideleave_incs='-I$(top_builddir)/src/16_hideleave -I$(top_srcdir)/src/16_hideleave'
  src_18_timing_incs='-I$(top_builddir)/src/18_timing -I$(top_srcdir)/src/18_timing'
  src_27_toolbox_oop_incs='-I$(top_builddir)/src/27_toolbox_oop -I$(top_srcdir)/src/27_toolbox_oop'
  src_28_numeric_noabirule_incs='-I$(top_builddir)/src/28_numeric_noabirule -I$(top_srcdir)/src/28_numeric_noabirule'
  src_32_contract_incs='-I$(top_builddir)/src/32_contract -I$(top_srcdir)/src/32_contract'
  src_32_util_incs='-I$(top_builddir)/src/32_util -I$(top_srcdir)/src/32_util'
  src_42_geometry_incs='-I$(top_builddir)/src/42_geometry -I$(top_srcdir)/src/42_geometry'
  src_42_geomoptim_incs='-I$(top_builddir)/src/42_geomoptim -I$(top_srcdir)/src/42_geomoptim'
  src_42_nlstrain_incs='-I$(top_builddir)/src/42_nlstrain -I$(top_srcdir)/src/42_nlstrain'
  src_42_parser_incs='-I$(top_builddir)/src/42_parser -I$(top_srcdir)/src/42_parser'
  src_43_ptgroups_incs='-I$(top_builddir)/src/43_ptgroups -I$(top_srcdir)/src/43_ptgroups'
  src_45_psp_parser_incs='-I$(top_builddir)/src/45_psp_parser -I$(top_srcdir)/src/45_psp_parser'
  src_47_xml_incs='-I$(top_builddir)/src/47_xml -I$(top_srcdir)/src/47_xml'
  src_49_gw_toolbox_oop_incs='-I$(top_builddir)/src/49_gw_toolbox_oop -I$(top_srcdir)/src/49_gw_toolbox_oop'
  src_50_abitypes_defs_incs='-I$(top_builddir)/src/50_abitypes_defs -I$(top_srcdir)/src/50_abitypes_defs'
  src_51_manage_cuda_incs='-I$(top_builddir)/src/51_manage_cuda -I$(top_srcdir)/src/51_manage_cuda'
  src_51_manage_mpi_incs='-I$(top_builddir)/src/51_manage_mpi -I$(top_srcdir)/src/51_manage_mpi'
  src_52_fft_mpi_noabirule_incs='-I$(top_builddir)/src/52_fft_mpi_noabirule -I$(top_srcdir)/src/52_fft_mpi_noabirule'
  src_53_abiutil_incs='-I$(top_builddir)/src/53_abiutil -I$(top_srcdir)/src/53_abiutil'
  src_53_ffts_incs='-I$(top_builddir)/src/53_ffts -I$(top_srcdir)/src/53_ffts'
  src_53_spacepar_incs='-I$(top_builddir)/src/53_spacepar -I$(top_srcdir)/src/53_spacepar'
  src_56_recipspace_incs='-I$(top_builddir)/src/56_recipspace -I$(top_srcdir)/src/56_recipspace'
  src_56_xc_incs='-I$(top_builddir)/src/56_xc -I$(top_srcdir)/src/56_xc'
  src_57_iovars_incs='-I$(top_builddir)/src/57_iovars -I$(top_srcdir)/src/57_iovars'
  src_59_io_mpi_incs='-I$(top_builddir)/src/59_io_mpi -I$(top_srcdir)/src/59_io_mpi'
  src_61_ionetcdf_incs='-I$(top_builddir)/src/61_ionetcdf -I$(top_srcdir)/src/61_ionetcdf'
  src_62_cg_noabirule_incs='-I$(top_builddir)/src/62_cg_noabirule -I$(top_srcdir)/src/62_cg_noabirule'
  src_62_iowfdenpot_incs='-I$(top_builddir)/src/62_iowfdenpot -I$(top_srcdir)/src/62_iowfdenpot'
  src_62_occeig_incs='-I$(top_builddir)/src/62_occeig -I$(top_srcdir)/src/62_occeig'
  src_62_poisson_incs='-I$(top_builddir)/src/62_poisson -I$(top_srcdir)/src/62_poisson'
  src_62_wvl_wfs_incs='-I$(top_builddir)/src/62_wvl_wfs -I$(top_srcdir)/src/62_wvl_wfs'
  src_63_bader_incs='-I$(top_builddir)/src/63_bader -I$(top_srcdir)/src/63_bader'
  src_64_atompaw_incs='-I$(top_builddir)/src/64_atompaw -I$(top_srcdir)/src/64_atompaw'
  src_65_nonlocal_incs='-I$(top_builddir)/src/65_nonlocal -I$(top_srcdir)/src/65_nonlocal'
  src_65_psp_incs='-I$(top_builddir)/src/65_psp -I$(top_srcdir)/src/65_psp'
  src_66_paw_incs='-I$(top_builddir)/src/66_paw -I$(top_srcdir)/src/66_paw'
  src_66_wfs_incs='-I$(top_builddir)/src/66_wfs -I$(top_srcdir)/src/66_wfs'
  src_67_common_incs='-I$(top_builddir)/src/67_common -I$(top_srcdir)/src/67_common'
  src_68_dmft_incs='-I$(top_builddir)/src/68_dmft -I$(top_srcdir)/src/68_dmft'
  src_68_gw_incs='-I$(top_builddir)/src/68_gw -I$(top_srcdir)/src/68_gw'
  src_68_recursion_incs='-I$(top_builddir)/src/68_recursion -I$(top_srcdir)/src/68_recursion'
  src_68_rsprc_incs='-I$(top_builddir)/src/68_rsprc -I$(top_srcdir)/src/68_rsprc'
  src_69_bse_incs='-I$(top_builddir)/src/69_bse -I$(top_srcdir)/src/69_bse'
  src_72_response_incs='-I$(top_builddir)/src/72_response -I$(top_srcdir)/src/72_response'
  src_77_ddb_incs='-I$(top_builddir)/src/77_ddb -I$(top_srcdir)/src/77_ddb'
  src_77_lwf_incs='-I$(top_builddir)/src/77_lwf -I$(top_srcdir)/src/77_lwf'
  src_77_suscep_incs='-I$(top_builddir)/src/77_suscep -I$(top_srcdir)/src/77_suscep'
  src_79_seqpar_mpi_incs='-I$(top_builddir)/src/79_seqpar_mpi -I$(top_srcdir)/src/79_seqpar_mpi'
  src_83_cut3d_incs='-I$(top_builddir)/src/83_cut3d -I$(top_srcdir)/src/83_cut3d'
  src_93_rdm_incs='-I$(top_builddir)/src/93_rdm -I$(top_srcdir)/src/93_rdm'
  src_95_drive_incs='-I$(top_builddir)/src/95_drive -I$(top_srcdir)/src/95_drive'
  src_incs_incs='-I$(top_builddir)/src/incs -I$(top_srcdir)/src/incs'
  src_mods_incs='-I$(top_builddir)/src/mods -I$(top_srcdir)/src/mods'


































































# ---------------------------------------------------------------------------- #

#
# Build-system information
#



  abi_sec_title="Build-system information"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Display ABINIT version
{ $as_echo "$as_me:${as_lineno-$LINENO}: ABINIT version ${ABINIT_VERSION}" >&5
$as_echo "$as_me: ABINIT version ${ABINIT_VERSION}" >&6;}

# Display Autotools version information

    abi_m4_version="010414"
  abi_ac_version="026500"
  abi_am_version="011100"
  abi_lt_version="020204"

    { $as_echo "$as_me:${as_lineno-$LINENO}: M4 ${abi_m4_version} - Autoconf ${abi_ac_version} - Automake ${abi_am_version} - Libtool ${abi_lt_version}" >&5
$as_echo "$as_me: M4 ${abi_m4_version} - Autoconf ${abi_ac_version} - Automake ${abi_am_version} - Libtool ${abi_lt_version}" >&6;}







# Display UI changes

  { $as_echo "$as_me:${as_lineno-$LINENO}: reporting user interface changes:" >&5
$as_echo "$as_me: reporting user interface changes:" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-bse-unpacked is available" >&5
$as_echo "$as_me:  * new option --enable-bse-unpacked is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-dft is available" >&5
$as_echo "$as_me:  * new option --enable-dft is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --enable-etsf-io-test removed" >&5
$as_echo "$as_me:  * --enable-etsf-io-test removed" >&6;}
  if test "${enable_etsf_io_test}" != ""; then
    as_fn_error "removed option --enable-etsf-io-test has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-fast-check is available" >&5
$as_echo "$as_me:  * new option --enable-fast-check is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --enable-fftw renamed --enable-fft" >&5
$as_echo "$as_me:  * --enable-fftw renamed --enable-fft" >&6;}
  if test "${enable_fftw}" != ""; then
    as_fn_error "renamed option --enable-fftw has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --enable-fftw-threads removed" >&5
$as_echo "$as_me:  * --enable-fftw-threads removed" >&6;}
  if test "${enable_fftw_threads}" != ""; then
    as_fn_error "removed option --enable-fftw-threads has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --enable-cuda renamed --enable-gpu" >&5
$as_echo "$as_me:  * --enable-cuda renamed --enable-gpu" >&6;}
  if test "${enable_cuda}" != ""; then
    as_fn_error "renamed option --enable-cuda has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-gw-cutoff is available" >&5
$as_echo "$as_me:  * new option --enable-gw-cutoff is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-gw-optimal is available" >&5
$as_echo "$as_me:  * new option --enable-gw-optimal is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-gw-wrapper is available" >&5
$as_echo "$as_me:  * new option --enable-gw-wrapper is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-linalg is available" >&5
$as_echo "$as_me:  * new option --enable-linalg is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-maintainer-checks is available" >&5
$as_echo "$as_me:  * new option --enable-maintainer-checks is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --enable-gsl renamed --enable-math" >&5
$as_echo "$as_me:  * --enable-gsl renamed --enable-math" >&6;}
  if test "${enable_gsl}" != ""; then
    as_fn_error "renamed option --enable-gsl has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-smp is available" >&5
$as_echo "$as_me:  * new option --enable-smp is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --enable-nightly renamed --enable-test-timeout" >&5
$as_echo "$as_me:  * --enable-nightly renamed --enable-test-timeout" >&6;}
  if test "${enable_nightly}" != ""; then
    as_fn_error "renamed option --enable-nightly has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --enable-papi renamed --enable-timer" >&5
$as_echo "$as_me:  * --enable-papi renamed --enable-timer" >&6;}
  if test "${enable_papi}" != ""; then
    as_fn_error "renamed option --enable-papi has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-trio is available" >&5
$as_echo "$as_me:  * new option --enable-trio is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --enable-vdwxc is available" >&5
$as_echo "$as_me:  * new option --enable-vdwxc is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-64bit-flags removed" >&5
$as_echo "$as_me:  * --with-64bit-flags removed" >&6;}
  if test "${with_64bit_flags}" != ""; then
    as_fn_error "removed option --with-64bit-flags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-ar-dbgflags removed" >&5
$as_echo "$as_me:  * --with-ar-dbgflags removed" >&6;}
  if test "${with_ar_dbgflags}" != ""; then
    as_fn_error "removed option --with-ar-dbgflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-ar-optflags removed" >&5
$as_echo "$as_me:  * --with-ar-optflags removed" >&6;}
  if test "${with_ar_optflags}" != ""; then
    as_fn_error "removed option --with-ar-optflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cc-dbgflags removed" >&5
$as_echo "$as_me:  * --with-cc-dbgflags removed" >&6;}
  if test "${with_cc_dbgflags}" != ""; then
    as_fn_error "removed option --with-cc-dbgflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cc-ld-dbgflags removed" >&5
$as_echo "$as_me:  * --with-cc-ld-dbgflags removed" >&6;}
  if test "${with_cc_ld_dbgflags}" != ""; then
    as_fn_error "removed option --with-cc-ld-dbgflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cc-ld-dbglibs removed" >&5
$as_echo "$as_me:  * --with-cc-ld-dbglibs removed" >&6;}
  if test "${with_cc_ld_dbglibs}" != ""; then
    as_fn_error "removed option --with-cc-ld-dbglibs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cc-ld-optflags removed" >&5
$as_echo "$as_me:  * --with-cc-ld-optflags removed" >&6;}
  if test "${with_cc_ld_optflags}" != ""; then
    as_fn_error "removed option --with-cc-ld-optflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cc-ld-optlibs removed" >&5
$as_echo "$as_me:  * --with-cc-ld-optlibs removed" >&6;}
  if test "${with_cc_ld_optlibs}" != ""; then
    as_fn_error "removed option --with-cc-ld-optlibs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cc-optflags removed" >&5
$as_echo "$as_me:  * --with-cc-optflags removed" >&6;}
  if test "${with_cc_optflags}" != ""; then
    as_fn_error "removed option --with-cc-optflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cpp-dbgflags removed" >&5
$as_echo "$as_me:  * --with-cpp-dbgflags removed" >&6;}
  if test "${with_cpp_dbgflags}" != ""; then
    as_fn_error "removed option --with-cpp-dbgflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cpp-optflags removed" >&5
$as_echo "$as_me:  * --with-cpp-optflags removed" >&6;}
  if test "${with_cpp_optflags}" != ""; then
    as_fn_error "removed option --with-cpp-optflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cxx-dbgflags removed" >&5
$as_echo "$as_me:  * --with-cxx-dbgflags removed" >&6;}
  if test "${with_cxx_dbgflags}" != ""; then
    as_fn_error "removed option --with-cxx-dbgflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cxx-ld-dbgflags removed" >&5
$as_echo "$as_me:  * --with-cxx-ld-dbgflags removed" >&6;}
  if test "${with_cxx_ld_dbgflags}" != ""; then
    as_fn_error "removed option --with-cxx-ld-dbgflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cxx-ld-dbglibs removed" >&5
$as_echo "$as_me:  * --with-cxx-ld-dbglibs removed" >&6;}
  if test "${with_cxx_ld_dbglibs}" != ""; then
    as_fn_error "removed option --with-cxx-ld-dbglibs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cxx-ld-optflags removed" >&5
$as_echo "$as_me:  * --with-cxx-ld-optflags removed" >&6;}
  if test "${with_cxx_ld_optflags}" != ""; then
    as_fn_error "removed option --with-cxx-ld-optflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cxx-ld-optlibs removed" >&5
$as_echo "$as_me:  * --with-cxx-ld-optlibs removed" >&6;}
  if test "${with_cxx_ld_optlibs}" != ""; then
    as_fn_error "removed option --with-cxx-ld-optlibs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cxx-optflags removed" >&5
$as_echo "$as_me:  * --with-cxx-optflags removed" >&6;}
  if test "${with_cxx_optflags}" != ""; then
    as_fn_error "removed option --with-cxx-optflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-dft-flavor is available" >&5
$as_echo "$as_me:  * new option --with-dft-flavor is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-dft-includes is available" >&5
$as_echo "$as_me:  * new option --with-dft-includes is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-dft-libs is available" >&5
$as_echo "$as_me:  * new option --with-dft-libs is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-etsf-io-test-includes removed" >&5
$as_echo "$as_me:  * --with-etsf-io-test-includes removed" >&6;}
  if test "${with_etsf_io_test_includes}" != ""; then
    as_fn_error "removed option --with-etsf-io-test-includes has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-etsf-io-test-libs removed" >&5
$as_echo "$as_me:  * --with-etsf-io-test-libs removed" >&6;}
  if test "${with_etsf_io_test_libs}" != ""; then
    as_fn_error "removed option --with-etsf-io-test-libs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-fc-dbgflags removed" >&5
$as_echo "$as_me:  * --with-fc-dbgflags removed" >&6;}
  if test "${with_fc_dbgflags}" != ""; then
    as_fn_error "removed option --with-fc-dbgflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-fc-ld-dbgflags removed" >&5
$as_echo "$as_me:  * --with-fc-ld-dbgflags removed" >&6;}
  if test "${with_fc_ld_dbgflags}" != ""; then
    as_fn_error "removed option --with-fc-ld-dbgflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-fc-ld-dbglibs removed" >&5
$as_echo "$as_me:  * --with-fc-ld-dbglibs removed" >&6;}
  if test "${with_fc_ld_dbglibs}" != ""; then
    as_fn_error "removed option --with-fc-ld-dbglibs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-fc-ld-optflags removed" >&5
$as_echo "$as_me:  * --with-fc-ld-optflags removed" >&6;}
  if test "${with_fc_ld_optflags}" != ""; then
    as_fn_error "removed option --with-fc-ld-optflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-fc-ld-optlibs removed" >&5
$as_echo "$as_me:  * --with-fc-ld-optlibs removed" >&6;}
  if test "${with_fc_ld_optlibs}" != ""; then
    as_fn_error "removed option --with-fc-ld-optlibs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-fc-optflags removed" >&5
$as_echo "$as_me:  * --with-fc-optflags removed" >&6;}
  if test "${with_fc_optflags}" != ""; then
    as_fn_error "removed option --with-fc-optflags has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-fft-flavor is available" >&5
$as_echo "$as_me:  * new option --with-fft-flavor is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-fftw-includes renamed --with-fft-includes" >&5
$as_echo "$as_me:  * --with-fftw-includes renamed --with-fft-includes" >&6;}
  if test "${with_fftw_includes}" != ""; then
    as_fn_error "renamed option --with-fftw-includes has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-fftw-libs renamed --with-fft-libs" >&5
$as_echo "$as_me:  * --with-fftw-libs renamed --with-fft-libs" >&6;}
  if test "${with_fftw_libs}" != ""; then
    as_fn_error "renamed option --with-fftw-libs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-gpu-cflags is available" >&5
$as_echo "$as_me:  * new option --with-gpu-cflags is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-gpu-cppflags is available" >&5
$as_echo "$as_me:  * new option --with-gpu-cppflags is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-gpu-flavor is available" >&5
$as_echo "$as_me:  * new option --with-gpu-flavor is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cuda-includes renamed --with-gpu-includes" >&5
$as_echo "$as_me:  * --with-cuda-includes renamed --with-gpu-includes" >&6;}
  if test "${with_cuda_includes}" != ""; then
    as_fn_error "renamed option --with-cuda-includes has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-gpu-ldflags is available" >&5
$as_echo "$as_me:  * new option --with-gpu-ldflags is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-cuda-libs renamed --with-gpu-libs" >&5
$as_echo "$as_me:  * --with-cuda-libs renamed --with-gpu-libs" >&6;}
  if test "${with_cuda_libs}" != ""; then
    as_fn_error "renamed option --with-cuda-libs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-gpu-prefix is available" >&5
$as_echo "$as_me:  * new option --with-gpu-prefix is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-linalg-type renamed --with-linalg-flavor" >&5
$as_echo "$as_me:  * --with-linalg-type renamed --with-linalg-flavor" >&6;}
  if test "${with_linalg_type}" != ""; then
    as_fn_error "renamed option --with-linalg-type has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-math-flavor is available" >&5
$as_echo "$as_me:  * new option --with-math-flavor is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-gsl-includes renamed --with-math-includes" >&5
$as_echo "$as_me:  * --with-gsl-includes renamed --with-math-includes" >&6;}
  if test "${with_gsl_includes}" != ""; then
    as_fn_error "renamed option --with-gsl-includes has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-gsl-libs renamed --with-math-libs" >&5
$as_echo "$as_me:  * --with-gsl-libs renamed --with-math-libs" >&6;}
  if test "${with_gsl_libs}" != ""; then
    as_fn_error "renamed option --with-gsl-libs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-mpi-runner removed" >&5
$as_echo "$as_me:  * --with-mpi-runner removed" >&6;}
  if test "${with_mpi_runner}" != ""; then
    as_fn_error "removed option --with-mpi-runner has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-scalapack-includes removed" >&5
$as_echo "$as_me:  * --with-scalapack-includes removed" >&6;}
  if test "${with_scalapack_includes}" != ""; then
    as_fn_error "removed option --with-scalapack-includes has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-scalapack-libs removed" >&5
$as_echo "$as_me:  * --with-scalapack-libs removed" >&6;}
  if test "${with_scalapack_libs}" != ""; then
    as_fn_error "removed option --with-scalapack-libs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-timeout renamed --with-test-timeout" >&5
$as_echo "$as_me:  * --with-timeout renamed --with-test-timeout" >&6;}
  if test "${with_timeout}" != ""; then
    as_fn_error "renamed option --with-timeout has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-timer-flavor is available" >&5
$as_echo "$as_me:  * new option --with-timer-flavor is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-papi-includes renamed --with-timer-includes" >&5
$as_echo "$as_me:  * --with-papi-includes renamed --with-timer-includes" >&6;}
  if test "${with_papi_includes}" != ""; then
    as_fn_error "renamed option --with-papi-includes has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * --with-papi-libs renamed --with-timer-libs" >&5
$as_echo "$as_me:  * --with-papi-libs renamed --with-timer-libs" >&6;}
  if test "${with_papi_libs}" != ""; then
    as_fn_error "renamed option --with-papi-libs has been used" "$LINENO" 5
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-trio-flavor is available" >&5
$as_echo "$as_me:  * new option --with-trio-flavor is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-trio-includes is available" >&5
$as_echo "$as_me:  * new option --with-trio-includes is available" >&6;}

    { $as_echo "$as_me:${as_lineno-$LINENO}:  * new option --with-trio-libs is available" >&5
$as_echo "$as_me:  * new option --with-trio-libs is available" >&6;}



# ---------------------------------------------------------------------------- #

#
# Check option consistency
#

# NOTE: please hack this section with EXTREME CARE



  abi_sec_title="Option consistency checking"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# --------- #
# Libraries #
# --------- #

abi_optchk_ok="yes"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of library-related options" >&5
$as_echo "$as_me: checking consistency of library-related options" >&6;}

# C-CLOCK requires the building of 02_clib.
if test "${enable_cclock}" = "yes"; then
  if test "${enable_clib}" = "" -o "${enable_clib}" = "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}:  |---> disabling C-clock (requires clib)" >&5
$as_echo "$as_me:  |---> disabling C-clock (requires clib)" >&6;}
    enable_cclock="no"
    with_clib_libs=""
    with_clib_includes=""
    abi_optchk_ok="no"
  fi
fi

# CLib support requires language mixing
if test "${enable_clib}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}:  |---> enabling language mixing for CLib" >&5
$as_echo "$as_me:  |---> enabling language mixing for CLib" >&6;}
  abi_lang_mix="yes"
  abi_optchk_ok="no"
fi

# GPU support requires MPI
if test "${enable_gpu}" = "yes"; then
  if test "${enable_mpi}" != "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}:  |---> disabling GPU support (requires MPI)" >&5
$as_echo "$as_me:  |---> disabling GPU support (requires MPI)" >&6;}
    enable_gpu="no"
    abi_optchk_ok="no"
  fi
fi

# GSL support requires language mixing
if test "${enable_gsl}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}:  |---> enabling language mixing for GSL" >&5
$as_echo "$as_me:  |---> enabling language mixing for GSL" >&6;}
  abi_lang_mix="yes"
  abi_optchk_ok="no"
fi

# ScaLAPACK requires MPI
if test "${enable_mpi}" = "no"; then
  if test "${enable_scalapack}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}:  |---> disabling ScaLAPACK (requires MPI)" >&5
$as_echo "$as_me:  |---> disabling ScaLAPACK (requires MPI)" >&6;}
    enable_scalapack="no"
    abi_optchk_ok="no"
  fi
fi

# Closing remarks
if test "${abi_optchk_ok}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}:  |---> all OK" >&5
$as_echo "$as_me:  |---> all OK" >&6;}
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}

# -------- #
# Plug-ins #
# -------- #

abi_optchk_ok="yes"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of plug-in options" >&5
$as_echo "$as_me: checking consistency of plug-in options" >&6;}

# The ETSF I/O library requires NetCDF support
if test "${enable_etsf_io}" = "yes" -a "${enable_netcdf}" != "yes"; then
  enable_etsf_io="no"
  { $as_echo "$as_me:${as_lineno-$LINENO}:  |---> disabling ETSF I/O support (requires NetCDF)" >&5
$as_echo "$as_me:  |---> disabling ETSF I/O support (requires NetCDF)" >&6;}
  abi_optchk_ok="no"
fi

# Closing remarks
if test "${abi_optchk_ok}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}:  |---> all OK" >&5
$as_echo "$as_me:  |---> all OK" >&6;}
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}

# -------------------- #
# Experimental options #
# -------------------- #

abi_optchk_ok="yes"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of experimental options" >&5
$as_echo "$as_me: checking consistency of experimental options" >&6;}

# Bindings require exports
if test "${enable_bindings}" = "yes"; then
  if test "${enable_exports}" != "yes"; then
    enable_exports="yes"
    { $as_echo "$as_me:${as_lineno-$LINENO}: |---> enabling exports (required for bindings" >&5
$as_echo "$as_me: |---> enabling exports (required for bindings" >&6;}
    abi_optchk_ok="no"
  fi
fi

# Closing remarks
if test "${abi_optchk_ok}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}:  |---> all OK" >&5
$as_echo "$as_me:  |---> all OK" >&6;}
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}

# -------------- #
# Nightly builds #
# -------------- #

abi_optchk_ok="yes"

# Silently ignore timeout if Nightly support is disabled
test "${enable_test_timeout}" != "yes" && with_test_timeout="0"

# ------------------- #
# Final step: parsing #
# ------------------- #



  { $as_echo "$as_me:${as_lineno-$LINENO}: parsing command-line options" >&5
$as_echo "$as_me: parsing command-line options" >&6;}

    if test "${enable_64bit_flags}" != ""; then
    for v in `echo "${enable_64bit_flags}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_64bit_flags = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_64bit_flags = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_64bit_flags = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_all_plugins}" != ""; then
    for v in `echo "${enable_all_plugins}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_all_plugins = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_all_plugins = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_all_plugins = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_bigdft}" != ""; then
    for v in `echo "${enable_bigdft}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_bigdft = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_bigdft = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_bigdft = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_bindings}" != ""; then
    for v in `echo "${enable_bindings}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_bindings = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_bindings = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_bindings = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_bse_unpacked}" != ""; then
    for v in `echo "${enable_bse_unpacked}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_bse_unpacked = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_bse_unpacked = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_bse_unpacked = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_cclock}" != ""; then
    for v in `echo "${enable_cclock}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_cclock = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_cclock = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_cclock = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_clib}" != ""; then
    for v in `echo "${enable_clib}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_clib = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_clib = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_clib = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_config_file}" != ""; then
    for v in `echo "${enable_config_file}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_config_file = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_config_file = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_config_file = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_debug}" != ""; then
    for v in `echo "${enable_debug}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes basic enhanced paranoid naughty; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_debug = (no|yes|basic|enhanced|paranoid|naughty)" >&5
$as_echo "$as_me: WARNING: enable_debug = (no|yes|basic|enhanced|paranoid|naughty)" >&2;}
      as_fn_error "invalid option: enable_debug = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_dft}" != ""; then
    for v in `echo "${enable_dft}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_dft = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_dft = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_dft = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_etsf_io}" != ""; then
    for v in `echo "${enable_etsf_io}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_etsf_io = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_etsf_io = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_etsf_io = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_exports}" != ""; then
    for v in `echo "${enable_exports}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_exports = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_exports = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_exports = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_fast_check}" != ""; then
    for v in `echo "${enable_fast_check}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_fast_check = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_fast_check = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_fast_check = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_fc_wrapper}" != ""; then
    for v in `echo "${enable_fc_wrapper}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_fc_wrapper = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_fc_wrapper = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_fc_wrapper = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_fft}" != ""; then
    for v in `echo "${enable_fft}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_fft = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_fft = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_fft = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_fox}" != ""; then
    for v in `echo "${enable_fox}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_fox = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_fox = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_fox = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_gpu}" != ""; then
    for v in `echo "${enable_gpu}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_gpu = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_gpu = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_gpu = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_gw_cutoff}" != ""; then
    for v in `echo "${enable_gw_cutoff}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_gw_cutoff = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_gw_cutoff = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_gw_cutoff = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_gw_dpc}" != ""; then
    for v in `echo "${enable_gw_dpc}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_gw_dpc = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_gw_dpc = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_gw_dpc = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_gw_optimal}" != ""; then
    for v in `echo "${enable_gw_optimal}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_gw_optimal = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_gw_optimal = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_gw_optimal = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_gw_wrapper}" != ""; then
    for v in `echo "${enable_gw_wrapper}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_gw_wrapper = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_gw_wrapper = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_gw_wrapper = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_hints}" != ""; then
    for v in `echo "${enable_hints}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_hints = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_hints = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_hints = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_libxc}" != ""; then
    for v in `echo "${enable_libxc}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_libxc = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_libxc = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_libxc = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_linalg}" != ""; then
    for v in `echo "${enable_linalg}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_linalg = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_linalg = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_linalg = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_macroave}" != ""; then
    for v in `echo "${enable_macroave}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_macroave = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_macroave = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_macroave = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_maintainer_checks}" != ""; then
    for v in `echo "${enable_maintainer_checks}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_maintainer_checks = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_maintainer_checks = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_maintainer_checks = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_math}" != ""; then
    for v in `echo "${enable_math}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_math = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_math = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_math = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_mpi}" != ""; then
    for v in `echo "${enable_mpi}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_mpi = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_mpi = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_mpi = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_mpi_io}" != ""; then
    for v in `echo "${enable_mpi_io}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_mpi_io = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_mpi_io = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_mpi_io = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_mpi_io_test}" != ""; then
    for v in `echo "${enable_mpi_io_test}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_mpi_io_test = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_mpi_io_test = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_mpi_io_test = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_mpi_trace}" != ""; then
    for v in `echo "${enable_mpi_trace}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_mpi_trace = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_mpi_trace = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_mpi_trace = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_netcdf}" != ""; then
    for v in `echo "${enable_netcdf}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_netcdf = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_netcdf = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_netcdf = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_optim}" != ""; then
    for v in `echo "${enable_optim}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes safe standard aggressive; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_optim = (no|yes|safe|standard|aggressive)" >&5
$as_echo "$as_me: WARNING: enable_optim = (no|yes|safe|standard|aggressive)" >&2;}
      as_fn_error "invalid option: enable_optim = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_scalapack}" != ""; then
    for v in `echo "${enable_scalapack}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_scalapack = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_scalapack = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_scalapack = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_smp}" != ""; then
    for v in `echo "${enable_smp}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_smp = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_smp = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_smp = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_stdin}" != ""; then
    for v in `echo "${enable_stdin}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_stdin = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_stdin = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_stdin = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_test_timeout}" != ""; then
    for v in `echo "${enable_test_timeout}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_test_timeout = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_test_timeout = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_test_timeout = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_timer}" != ""; then
    for v in `echo "${enable_timer}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_timer = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_timer = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_timer = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_trio}" != ""; then
    for v in `echo "${enable_trio}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_trio = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_trio = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_trio = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_vdwxc}" != ""; then
    for v in `echo "${enable_vdwxc}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_vdwxc = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_vdwxc = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_vdwxc = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_wannier90}" != ""; then
    for v in `echo "${enable_wannier90}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_wannier90 = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_wannier90 = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_wannier90 = ${v}" "$LINENO" 5
    fi
  fi

    if test "${enable_zdot_bugfix}" != ""; then
    for v in `echo "${enable_zdot_bugfix}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in no yes; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_zdot_bugfix = (no|yes)" >&5
$as_echo "$as_me: WARNING: enable_zdot_bugfix = (no|yes)" >&2;}
      as_fn_error "invalid option: enable_zdot_bugfix = ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_bigdft_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_bigdft_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_bigdft_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_bigdft_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_bigdft_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_bigdft_libs: ${v}" "$LINENO" 5
    fi
  fi

    if test "${with_dft_flavor}" != ""; then
    for v in `echo "${with_dft_flavor}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in bigdft libxc wannier90; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with_dft_flavor = (bigdft|libxc|wannier90)" >&5
$as_echo "$as_me: WARNING: with_dft_flavor = (bigdft|libxc|wannier90)" >&2;}
      as_fn_error "invalid option: with_dft_flavor = ${v}" "$LINENO" 5
    fi
  fi


   if test "${with_dft_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_dft_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_dft_libs: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_etsf_io_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_etsf_io_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_etsf_io_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_etsf_io_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_etsf_io_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_etsf_io_libs: ${v}" "$LINENO" 5
    fi
  fi

    if test "${with_fft_flavor}" != ""; then
    for v in `echo "${with_fft_flavor}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in asl fftw2 fftw2-threads fftw3 fftw3-mkl fftw3-threads sgimath; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with_fft_flavor = (asl|fftw2|fftw2-threads|fftw3|fftw3-mkl|fftw3-threads|sgimath)" >&5
$as_echo "$as_me: WARNING: with_fft_flavor = (asl|fftw2|fftw2-threads|fftw3|fftw3-mkl|fftw3-threads|sgimath)" >&2;}
      as_fn_error "invalid option: with_fft_flavor = ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_fft_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_fft_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_fft_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_fft_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_fft_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_fft_libs: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_fox_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_fox_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_fox_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_fox_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_fox_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_fox_libs: ${v}" "$LINENO" 5
    fi
  fi

    if test "${with_gpu_flavor}" != ""; then
    for v in `echo "${with_gpu_flavor}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in cuda-single cuda-double; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with_gpu_flavor = (cuda-single|cuda-double)" >&5
$as_echo "$as_me: WARNING: with_gpu_flavor = (cuda-single|cuda-double)" >&2;}
      as_fn_error "invalid option: with_gpu_flavor = ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_gpu_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_gpu_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_gpu_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_gpu_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_gpu_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_gpu_libs: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_libxc_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_libxc_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_libxc_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_libxc_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_libxc_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_libxc_libs: ${v}" "$LINENO" 5
    fi
  fi

    if test "${with_linalg_flavor}" != ""; then
    for v in `echo "${with_linalg_flavor}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in acml asl atlas cxml essl mkl mlib netlib sgimath sunperf; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with_linalg_flavor = (acml|asl|atlas|cxml|essl|mkl|mlib|netlib|sgimath|sunperf)" >&5
$as_echo "$as_me: WARNING: with_linalg_flavor = (acml|asl|atlas|cxml|essl|mkl|mlib|netlib|sgimath|sunperf)" >&2;}
      as_fn_error "invalid option: with_linalg_flavor = ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_linalg_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_linalg_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_linalg_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_linalg_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_linalg_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_linalg_libs: ${v}" "$LINENO" 5
    fi
  fi

    if test "${with_math_flavor}" != ""; then
    for v in `echo "${with_math_flavor}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in gsl mlib; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with_math_flavor = (gsl|mlib)" >&5
$as_echo "$as_me: WARNING: with_math_flavor = (gsl|mlib)" >&2;}
      as_fn_error "invalid option: with_math_flavor = ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_math_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_math_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_math_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_math_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_math_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_math_libs: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_mpi_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_mpi_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_mpi_includes: ${v}" "$LINENO" 5
    fi
  fi

    if test "${with_mpi_level}" != ""; then
    for v in `echo "${with_mpi_level}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in 1 2; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with_mpi_level = (1|2)" >&5
$as_echo "$as_me: WARNING: with_mpi_level = (1|2)" >&2;}
      as_fn_error "invalid option: with_mpi_level = ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_mpi_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_mpi_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_mpi_libs: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_netcdf_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_netcdf_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_netcdf_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_netcdf_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_netcdf_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_netcdf_libs: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_test_timeout}" != ""; then
    opt_ok="yes"
    test "`echo "${with_test_timeout}" | ${EGREP} -e '^-?[0-9]+$'`" = "" && opt_ok="no"
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid integer: with_test_timeout = ${with_test_timeout}" "$LINENO" 5
    fi
  fi

    if test "${with_timer_flavor}" != ""; then
    for v in `echo "${with_timer_flavor}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in abinit gptl papi; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with_timer_flavor = (abinit|gptl|papi)" >&5
$as_echo "$as_me: WARNING: with_timer_flavor = (abinit|gptl|papi)" >&2;}
      as_fn_error "invalid option: with_timer_flavor = ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_timer_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_timer_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_timer_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_timer_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_timer_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_timer_libs: ${v}" "$LINENO" 5
    fi
  fi

    if test "${with_trio_flavor}" != ""; then
    for v in `echo "${with_trio_flavor}" | sed -e 's/+/ /g'`; do
      opt_ok="no"
      for r in etsf fox hdf netcdf; do
        if test "${v}" = "${r}";then
          opt_ok="yes"
          break
        fi
      done
      test "${opt_ok}" = "no" && break
    done
    if test "${opt_ok}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with_trio_flavor = (etsf|fox|hdf|netcdf)" >&5
$as_echo "$as_me: WARNING: with_trio_flavor = (etsf|fox|hdf|netcdf)" >&2;}
      as_fn_error "invalid option: with_trio_flavor = ${v}" "$LINENO" 5
    fi
  fi


   if test "${with_trio_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_trio_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_trio_libs: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_wannier90_includes}" != ""; then
    opt_ok="yes"
    for v in ${with_wannier90_includes}; do
      if test "`echo "${v}" | grep '^-I'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid include statement in with_wannier90_includes: ${v}" "$LINENO" 5
    fi
  fi

   if test "${with_wannier90_libs}" != ""; then
    opt_ok="yes"
    for v in ${with_wannier90_libs}; do
      if test "`echo "${v}" | grep '^-[LlW]'`" = ""; then
        opt_ok="no"
        break
      fi
    done
    if test "${opt_ok}" = "no"; then
      as_fn_error "invalid library statement in with_wannier90_libs: ${v}" "$LINENO" 5
    fi
  fi



# ---------------------------------------------------------------------------- #

#
# Connector startup
#



  abi_sec_title="Connector startup"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Prepare MPI support

    abi_mpi_complete="unknown"
  abi_mpi_has_cc="no"
  abi_mpi_has_cxx="no"
  abi_mpi_has_fc="no"
  abi_mpi_has_runner="no"
  abi_mpi_level="${with_mpi_level}"
  abi_mpi_usable="no"
  lib_mpi_incs="${with_mpi_includes}"
  lib_mpi_libs="${with_mpi_libs}"
  test "${MPI_RUNNER}" = "" && MPI_RUNNER="${with_mpi_runner}"

  if test "${enable_mpi}" = "yes"; then

        { $as_echo "$as_me:${as_lineno-$LINENO}: Initializing MPI support" >&5
$as_echo "$as_me: Initializing MPI support" >&6;}

        if test "${with_mpi_prefix}" != ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: looking for MPI in ${with_mpi_prefix}" >&5
$as_echo "$as_me: looking for MPI in ${with_mpi_prefix}" >&6;}

            if test "${CPP}" != ""; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CPP} might not be fully compatible with MPI" >&5
$as_echo "$as_me: WARNING: ${CPP} might not be fully compatible with MPI" >&2;}
      fi
      if test "${CC}" != ""; then
        as_fn_error "use --with-mpi-prefix or set CC, not both" "$LINENO" 5
      fi
      if test "${CXX}" != ""; then
        as_fn_error "use --with-mpi-prefix or set CXX, not both" "$LINENO" 5
      fi
      if test "${FC}" != ""; then
        as_fn_error "use --with-mpi-prefix or set FC, not both" "$LINENO" 5
      fi
      if test "${MPI_RUNNER}" != ""; then
        as_fn_error "use --with-mpi-prefix or set MPI_RUNNER, not both" "$LINENO" 5
      fi
      if test "${with_mpi_includes}" != ""; then
        as_fn_error "use --with-mpi-prefix or --with-mpi-includes, not both" "$LINENO" 5
      fi
      if test "${with_mpi_level}" != ""; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: forcing MPI level to ${with_mpi_level} might make the build fail" >&5
$as_echo "$as_me: WARNING: forcing MPI level to ${with_mpi_level} might make the build fail" >&2;}
      fi
      if test "${with_mpi_libs}" != ""; then
        as_fn_error "use --with-mpi-prefix or --with-mpi-libs, not both" "$LINENO" 5
      fi
      if test "${with_mpi_runner}" != ""; then
        as_fn_error "use --with-mpi-prefix or --with-mpi-runner, not both" "$LINENO" 5
      fi

            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI C compiler" >&5
$as_echo_n "checking for a MPI C compiler... " >&6; }
      if test -x "${with_mpi_prefix}/bin/mpicc"; then
        abi_mpi_has_cc="yes"
        CC="${with_mpi_prefix}/bin/mpicc"
      fi
      if test "${CC}" = ""; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
$as_echo "none found" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CC}" >&5
$as_echo "${CC}" >&6; }
      fi

            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI C++ compiler" >&5
$as_echo_n "checking for a MPI C++ compiler... " >&6; }
      if test -x "${with_mpi_prefix}/bin/mpicxx"; then
        abi_mpi_has_cxx="yes"
        CXX="${with_mpi_prefix}/bin/mpicxx"
      elif test -x "${with_mpi_prefix}/bin/mpic++"; then
        abi_mpi_has_cxx="yes"
        CXX="${with_mpi_prefix}/bin/mpic++"
      fi
      if test "${CXX}" = ""; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
$as_echo "none found" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CXX}" >&5
$as_echo "${CXX}" >&6; }
      fi

            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI Fortran compiler" >&5
$as_echo_n "checking for a MPI Fortran compiler... " >&6; }
      if test -x "${with_mpi_prefix}/bin/mpif90"; then
        abi_mpi_has_fc="yes"
        FC="${with_mpi_prefix}/bin/mpif90"
      fi
      if test "${FC}" = ""; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
$as_echo "none found" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FC}" >&5
$as_echo "${FC}" >&6; }
      fi

            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI runner" >&5
$as_echo_n "checking for a MPI runner... " >&6; }
      if test -x "${with_mpi_prefix}/bin/mpirun"; then
        abi_mpi_has_runner="yes"
        MPI_RUNNER="${with_mpi_prefix}/bin/mpirun"
      elif test -x "${with_mpi_prefix}/bin/mpiexec"; then
        abi_mpi_has_runner="yes"
        MPI_RUNNER="${with_mpi_prefix}/bin/mpiexec"
      elif test -x "${with_mpi_prefix}/bin/dmpirun"; then
        abi_mpi_has_runner="yes"
        MPI_RUNNER="${with_mpi_prefix}/bin/dmpirun"
      fi
      if test "${MPI_RUNNER}" = ""; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
$as_echo "none found" >&6; }
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MPI_RUNNER}" >&5
$as_echo "${MPI_RUNNER}" >&6; }
      fi

            if test "${abi_mpi_has_cc}" = "yes" -a \
                      "${abi_mpi_has_fc}" = "yes" -a \
                      "${abi_mpi_has_runner}" = "yes"; then
        abi_mpi_complete="yes"
      else
        unset CC
        unset CXX
        unset FC
        unset MPI_RUNNER
        abi_mpi_complete="no"
      fi

    else

            if test "${MPI_RUNNER}" = ""; then
        for ac_prog in mpirun mpiexec dmpirun
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MPI_RUNNER+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MPI_RUNNER"; then
  ac_cv_prog_MPI_RUNNER="$MPI_RUNNER" # 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_MPI_RUNNER="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MPI_RUNNER=$ac_cv_prog_MPI_RUNNER
if test -n "$MPI_RUNNER"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_RUNNER" >&5
$as_echo "$MPI_RUNNER" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MPI_RUNNER" && break
done

        if test "${MPI_RUNNER}" != ""; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI runner ${MPI_RUNNER} may be incompatible with MPI compilers" >&5
$as_echo "$as_me: WARNING: MPI runner ${MPI_RUNNER} may be incompatible with MPI compilers" >&2;}
        fi
      else
        abi_mpi_runner_works="no"
        if test -x "${MPI_RUNNER}"; then
          abi_mpi_runner_works="yes"
        else
          unset abi_mpi_runner_works
          # Extract the first word of "${MPI_RUNNER}", so it can be a program name with args.
set dummy ${MPI_RUNNER}; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_abi_mpi_runner_works+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$abi_mpi_runner_works"; then
  ac_cv_prog_abi_mpi_runner_works="$abi_mpi_runner_works" # 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_abi_mpi_runner_works="yes"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_prog_abi_mpi_runner_works" && ac_cv_prog_abi_mpi_runner_works="no"
fi
fi
abi_mpi_runner_works=$ac_cv_prog_abi_mpi_runner_works
if test -n "$abi_mpi_runner_works"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi_mpi_runner_works" >&5
$as_echo "$abi_mpi_runner_works" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


        fi
        if test "${abi_mpi_runner_works}" = "no"; then
          as_fn_error "invalid MPI runner: ${MPI_RUNNER}" "$LINENO" 5
        fi
      fi

            { $as_echo "$as_me:${as_lineno-$LINENO}: compiler checks deferred" >&5
$as_echo "$as_me: compiler checks deferred" >&6;}

            if test "${MPI_RUNNER}" != ""; then
        abi_mpi_complete="yes"
      else
        abi_mpi_complete="no"
      fi

    fi
        if test "${enable_mpi_io}" = "" -a "${enable_mpi_io_test}" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: setting MPI I/O main trigger" >&5
$as_echo "$as_me: setting MPI I/O main trigger" >&6;}
      enable_mpi_io="yes"
    fi

  else

    { $as_echo "$as_me:${as_lineno-$LINENO}: MPI support disabled from command-line" >&5
$as_echo "$as_me: MPI support disabled from command-line" >&6;}
    enable_mpi_io="no"
    enable_mpi_io_test="no"
    enable_mpi_trace="no"
    with_mpi_level=""
    with_mpi_prefix=""

  fi





# Prepare GPU support

    abi_gpu_complete="unknown"
  abi_gpu_has_cc="no"
  abi_gpu_has_fft="no"
  abi_gpu_has_incs="no"
  abi_gpu_has_libs="no"
  abi_gpu_has_linalg="no"
  abi_gpu_usable="no"
  lib_gpu_fcflags=""
  lib_gpu_ldflags=""
  lib_gpu_flavor="none"
  lib_gpu_incs=""
  lib_gpu_libs=""

  if test "${enable_gpu}" = "yes"; then

        { $as_echo "$as_me:${as_lineno-$LINENO}: Initializing GPU support" >&5
$as_echo "$as_me: Initializing GPU support" >&6;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which kind of GPU we want" >&5
$as_echo_n "checking which kind of GPU we want... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_gpu_flavor}" >&5
$as_echo "${with_gpu_flavor}" >&6; }

        if test "${with_gpu_prefix}" != ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: looking for GPU support in ${with_gpu_prefix}" >&5
$as_echo "$as_me: looking for GPU support in ${with_gpu_prefix}" >&6;}

            if test "${with_gpu_includes}" != ""; then
        as_fn_error "use --with-gpu-prefix or --with-gpu-includes, not both" "$LINENO" 5
      fi
      if test "${with_gpu_libs}" != ""; then
        as_fn_error "use --with-gpu-prefix or --with-gpu-libs, not both" "$LINENO" 5
      fi
    fi

        case "${with_gpu_flavor}" in

      cuda*)

    abi_gpu_cuda_has_cc="no"
  abi_gpu_cuda_has_fft="no"
  abi_gpu_cuda_has_incs="no"
  abi_gpu_cuda_has_libs="no"
  abi_gpu_cuda_has_linalg="no"
  abi_gpu_cuda_libdir=""
  abi_gpu_cuda_incs=""
  abi_gpu_cuda_libs=""

    if test "${with_gpu_prefix}" != ""; then

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the nVidia C compiler" >&5
$as_echo_n "checking for the nVidia C compiler... " >&6; }
    if test -x "${with_gpu_prefix}/bin/nvcc"; then
      abi_gpu_cuda_has_cc="yes"
      NVCC="${with_gpu_prefix}/bin/nvcc"
    fi
    if test "${NVCC}" = ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
$as_echo "none found" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NVCC}" >&5
$as_echo "${NVCC}" >&6; }
    fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cuda includes" >&5
$as_echo_n "checking for Cuda includes... " >&6; }
    abi_result="none"
    if test -s "${with_gpu_prefix}/include/cuda_runtime_api.h"; then
      abi_gpu_cuda_incs="-I${with_gpu_prefix}/include"
      abi_gpu_cuda_has_incs="yes"
      abi_result="run-time"
    fi
    if test -s "${with_gpu_prefix}/include/cufft.h"; then
      abi_result="${abi_result} fft"
    fi
    if test -s "${with_gpu_prefix}/include/cublas.h"; then
      abi_result="${abi_result} blas"
    fi
    if test -s "${with_gpu_prefix}/SDK/C/common/inc/cutil.h"; then
      abi_gpu_cuda_incs="-I${with_gpu_prefix}/SDK/C/common/inc ${abi_gpu_cuda_incs}"
      abi_result="${abi_result} sdk"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_result}" >&5
$as_echo "${abi_result}" >&6; }

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cuda libraries" >&5
$as_echo_n "checking for Cuda libraries... " >&6; }
    abi_result="none"
    if test "${abi_cpu_64bits}" = "yes"; then
      abi_gpu_cuda_libdir="${with_gpu_prefix}/lib64"
    else
      abi_gpu_cuda_libdir="${with_gpu_prefix}/lib"
    fi
    if test -s "${abi_gpu_cuda_libdir}/libcudart.so"; then
      abi_gpu_cuda_libs="-lcudart"
      abi_gpu_cuda_has_libs="yes"
      abi_result="run-time"
    fi
    if test "${abi_gpu_cuda_has_libs}" = "yes"; then
      if test -s "${abi_gpu_cuda_libdir}/libcufft.so"; then
        abi_gpu_cuda_libs="-lcufft ${abi_gpu_cuda_libs}"
        abi_gpu_cuda_has_fft="yes"
        abi_result="${abi_result} fft"
      fi
      if test -s "${abi_gpu_cuda_libdir}/libcublas.so"; then
        abi_gpu_cuda_libs="-lcublas ${abi_gpu_cuda_libs}"
        abi_gpu_cuda_has_linalg="yes"
        abi_result="${abi_result} blas"
      fi
      abi_gpu_cuda_libs="-L${abi_gpu_cuda_libdir} ${abi_gpu_cuda_libs}"
    fi
    if test -s "${with_gpu_prefix}/SDK/C/lib/libcutil.a"; then
      abi_gpu_cuda_libs="-L${with_gpu_prefix}/SDK/C/lib -lcutil ${abi_gpu_cuda_libs}"
      abi_result="${abi_result} sdk"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_result}" >&5
$as_echo "${abi_result}" >&6; }

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cuda link flags" >&5
$as_echo_n "checking for Cuda link flags... " >&6; }
    if test "${CC_LDFLAGS_GPU}" = ""; then
      if test "${abi_cpu_64bits}" = "yes"; then
        CC_LDFLAGS_GPU="-Wl,-rpath=${with_gpu_prefix}/lib64"
      else
        CC_LDFLAGS_GPU="-Wl,-rpath=${with_gpu_prefix}/lib"
      fi
    fi
    if test "${CXX_LDFLAGS_GPU}" = ""; then
      if test "${abi_cpu_64bits}" = "yes"; then
        CXX_LDFLAGS_GPU="-Wl,-rpath=${with_gpu_prefix}/lib64"
      else
        CXX_LDFLAGS_GPU="-Wl,-rpath=${with_gpu_prefix}/lib"
      fi
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CC_LDFLAGS_GPU}" >&5
$as_echo "${CC_LDFLAGS_GPU}" >&6; }


  else

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the nVidia C compiler" >&5
$as_echo_n "checking for the nVidia C compiler... " >&6; }
    if test "${NVCC}" = ""; then
      for ac_prog in nvcc
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_NVCC+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$NVCC"; then
  ac_cv_prog_NVCC="$NVCC" # 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_NVCC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
NVCC=$ac_cv_prog_NVCC
if test -n "$NVCC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NVCC" >&5
$as_echo "$NVCC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$NVCC" && break
done

      if test "${NVCC}" != ""; then
        abi_gpu_cuda_has_cc="yes"
      fi
    fi

  fi
        abi_gpu_has_cc="${abi_gpu_cuda_has_cc}"
        abi_gpu_has_fft="${abi_gpu_cuda_has_fft}"
        abi_gpu_has_incs="${abi_gpu_cuda_has_incs}"
        abi_gpu_has_libs="${abi_gpu_cuda_has_libs}"
        abi_gpu_has_linalg="${abi_gpu_cuda_has_linalg}"
        if test "${abi_gpu_has_cc}" = "yes" -a \
                "${abi_gpu_has_incs}" = "yes" -a \
                "${abi_gpu_has_libs}" = "yes"; then
          abi_gpu_complete="yes"
        else
          abi_gpu_complete="no"
        fi
        ;;

    esac

  else

    { $as_echo "$as_me:${as_lineno-$LINENO}: GPU support disabled from command-line" >&5
$as_echo "$as_me: GPU support disabled from command-line" >&6;}

  fi







# ---------------------------------------------------------------------------- #

#
# Miscellaneous utilities
#



  abi_sec_title="Utilities"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Check for various programs
# Extract the first word of "sh", so it can be a program name with args.
set dummy sh; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_BOURNE_SHELL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $BOURNE_SHELL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BOURNE_SHELL="$BOURNE_SHELL" # 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_BOURNE_SHELL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_BOURNE_SHELL" && ac_cv_path_BOURNE_SHELL="/bin/sh"
  ;;
esac
fi
BOURNE_SHELL=$ac_cv_path_BOURNE_SHELL
if test -n "$BOURNE_SHELL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOURNE_SHELL" >&5
$as_echo "$BOURNE_SHELL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


# Extract the first word of "mv", so it can be a program name with args.
set dummy mv; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MV+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $MV in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MV="$MV" # 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_MV="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/false"
  ;;
esac
fi
MV=$ac_cv_path_MV
if test -n "$MV"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
$as_echo "$MV" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


# 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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PERL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PERL="$PERL" # 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_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/bin/false"
  ;;
esac
fi
PERL=$ac_cv_path_PERL
if test -n "$PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
$as_echo "$PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


# Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_RM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $RM in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_RM="$RM" # 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_RM="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/false"
  ;;
esac
fi
RM=$ac_cv_path_RM
if test -n "$RM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
$as_echo "$RM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



for ac_prog in dvips
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DVI2PS+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DVI2PS"; then
  ac_cv_prog_DVI2PS="$DVI2PS" # 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_DVI2PS="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DVI2PS=$ac_cv_prog_DVI2PS
if test -n "$DVI2PS"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVI2PS" >&5
$as_echo "$DVI2PS" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$DVI2PS" && break
done

for ac_prog in dvipdf
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DVI2PDF+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$DVI2PDF"; then
  ac_cv_prog_DVI2PDF="$DVI2PDF" # 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_DVI2PDF="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
DVI2PDF=$ac_cv_prog_DVI2PDF
if test -n "$DVI2PDF"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVI2PDF" >&5
$as_echo "$DVI2PDF" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$DVI2PDF" && break
done

for ac_prog in latex
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_LATEX+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$LATEX"; then
  ac_cv_prog_LATEX="$LATEX" # 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_LATEX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
LATEX=$ac_cv_prog_LATEX
if test -n "$LATEX"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
$as_echo "$LATEX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$LATEX" && break
done

for ac_prog in markdown
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MARKDOWN+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MARKDOWN"; then
  ac_cv_prog_MARKDOWN="$MARKDOWN" # 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_MARKDOWN="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MARKDOWN=$ac_cv_prog_MARKDOWN
if test -n "$MARKDOWN"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MARKDOWN" >&5
$as_echo "$MARKDOWN" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MARKDOWN" && break
done

for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

for ac_prog in patch
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_PATCH+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$PATCH"; then
  ac_cv_prog_PATCH="$PATCH" # 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_PATCH="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
PATCH=$ac_cv_prog_PATCH
if test -n "$PATCH"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
$as_echo "$PATCH" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$PATCH" && break
done

for ac_prog in ps2pdf
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_PS2PDF+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$PS2PDF"; then
  ac_cv_prog_PS2PDF="$PS2PDF" # 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_PS2PDF="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
PS2PDF=$ac_cv_prog_PS2PDF
if test -n "$PS2PDF"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
$as_echo "$PS2PDF" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$PS2PDF" && break
done

for ac_prog in tar
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_TAR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$TAR"; then
  ac_cv_prog_TAR="$TAR" # 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_TAR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
TAR=$ac_cv_prog_TAR
if test -n "$TAR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
$as_echo "$TAR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$TAR" && break
done

for ac_prog in wget
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_WGET+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$WGET"; then
  ac_cv_prog_WGET="$WGET" # 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_WGET="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
WGET=$ac_cv_prog_WGET
if test -n "$WGET"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
$as_echo "$WGET" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$WGET" && break
done

for ac_prog in curl
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CURL+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CURL"; then
  ac_cv_prog_CURL="$CURL" # 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_CURL="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CURL=$ac_cv_prog_CURL
if test -n "$CURL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
$as_echo "$CURL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$CURL" && break
done


# Make sure we can use markdown
if test "${MARKDOWN}" = ""; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: using internal version of MarkDown" >&5
$as_echo "$as_me: using internal version of MarkDown" >&6;}
  MARKDOWN="${PERL} ${abinit_srcdir}/util/developers/markdown.pl"
fi

# ---------------------------------------------------------------------------- #

#
# C support
#



  abi_sec_title="C support"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Preserve environment


    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"



# Look for the C compiler
if test "${CC}" != "" -a ! -x "${CC}"; then
  abi_cc_probe=`echo "${CC}" | sed -e 's/ .*//'`
  if test ! -x "${abi_cc_probe}"; then
    # Extract the first word of "${abi_cc_probe}", so it can be a program name with args.
set dummy ${abi_cc_probe}; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_abi_cc_path+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $abi_cc_path in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_abi_cc_path="$abi_cc_path" # 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_abi_cc_path="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
abi_cc_path=$ac_cv_path_abi_cc_path
if test -n "$abi_cc_path"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi_cc_path" >&5
$as_echo "$abi_cc_path" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    if test "${abi_cc_path}" = ""; then
      as_fn_error "could not run C compiler \"${CC}\"" "$LINENO" 5
    fi
  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 -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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "no acceptable C compiler found in \$PATH
See \`config.log' for more details." "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&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:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; 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
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "C compiler cannot create executables
See \`config.log' for more details." "$LINENO" 5; }; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; 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:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; 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:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compute suffix of object files: cannot compile
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  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:${as_lineno-$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:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
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:${as_lineno-$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:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
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:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

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
DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@echo this is the am__doit target
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
{ $as_echo "$as_me:${as_lineno-$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
# Ignore all kinds of additional output from `make'.
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
  am__include=include
  am__quote=
  _am_result=GNU
  ;;
esac
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   case `$am_make -s -f confmf 2> /dev/null` in #(
   *the\ am__doit\ target*)
     am__include=.include
     am__quote="\""
     _am_result=BSD
     ;;
   esac
fi


{ $as_echo "$as_me:${as_lineno-$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



depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$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
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  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

    # 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.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    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
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj 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 $am__obj 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:${as_lineno-$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



# Fail if no C compiler is available
if test "${CC}" = ""; then
  as_fn_error "no C compiler available" "$LINENO" 5
fi

# Look for the C preprocessor
if test "${CPP}" != "" -a ! -x "${CPP}"; then
  # Extract the first word of "${CPP}", so it can be a program name with args.
set dummy ${CPP}; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_abi_cpp_path+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $abi_cpp_path in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_abi_cpp_path="$abi_cpp_path" # 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_abi_cpp_path="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
abi_cpp_path=$ac_cv_path_abi_cpp_path
if test -n "$abi_cpp_path"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi_cpp_path" >&5
$as_echo "$abi_cpp_path" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test "${abi_cpp_path}" = ""; then
    as_fn_error "could not run C preprocessor \"${CPP}\"" "$LINENO" 5
  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
{ $as_echo "$as_me:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # 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:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # 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:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." "$LINENO" 5; }
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


# Fail if no C preprocessor is available
if test "${CPP}" = ""; then
  as_fn_error "no C preprocessor available" "$LINENO" 5
fi

# Set Abinit C parameters

    if test "${abi_cc_vendor}" = ""; then
    abi_cc_vendor="unknown"
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of compiler we have" >&5
$as_echo_n "checking which type of compiler we have... " >&6; }

    if test "${abi_cc_vendor}" = "unknown"; then


    cc_info_string=`${CC} -qversion 2>&1 | head -n 1`
  cc_garbage=`${CC} -qversion 2>&1 | wc -l | sed -e 's/ //g'`
  abi_result=`echo "${cc_info_string}" | grep 'IBM XL C/C++'`
  if test "${abi_result}" = ""; then
    abi_result=`echo "${cc_info_string}" | grep 'IBM(R) XL C/C++'`
  fi
  if test "${abi_result}" = ""; then
    abi_result=`echo "${cc_info_string}" | grep 'C for AIX'`
  fi
  if test "${abi_result}" = ""; then
    abi_result="no"
    cc_info_string=""
    abi_cc_vendor="unknown"
    abi_cc_version="unknown"
    if test "${cc_garbage}" -gt 50; then

$as_echo "#define CC_IBM 1" >>confdefs.h

      abi_cc_vendor="ibm"
      abi_cc_version="unknown"
      abi_result="yes"
    fi
  else

$as_echo "#define CC_IBM 1" >>confdefs.h

    abi_cc_vendor="ibm"
    abi_cc_version=`echo "${abi_result}" | sed -e 's/.* V//; s/ .*//'`
    if test "${abi_cc_version}" = "${abi_result}"; then
      abi_cc_version=`echo "${abi_result}" | sed -e 's/C for AIX version //'`
    fi
    if test "${abi_cc_version}" = "${abi_result}"; then
      abi_cc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi

  if test "${abi_cc_vendor}" = "unknown"; then


    cc_info_string=`${CC} -V 2>&1 | head -n 1`
  abi_result=`echo "${cc_info_string}" | grep '^Compaq C '`
  if test "${abi_result}" = ""; then
    abi_result="no"
    cc_info_string=""
    abi_cc_vendor="unknown"
    abi_cc_version="unknown"
  else

$as_echo "#define CC_COMPAQ 1" >>confdefs.h

    abi_cc_vendor="compaq"
    cc_info_string=`${CC} -V 2>&1 | grep '^Compiler Driver' | head -n 1`
    abi_cc_version=`echo "${cc_info_string}" | sed -e 's/Compiler Driver V//; s/ .*//'`
    if test "${abi_cc_version}" = "${cc_info_string}"; then
      abi_cc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  if test "${abi_cc_vendor}" = "unknown"; then


    cc_info_string=`${CC} -V 2>&1 | head -n 1`
  abi_result=`echo "${cc_info_string}" | grep '^Intel(R) C'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    cc_info_string=""
    abi_cc_vendor="unknown"
    abi_cc_version="unknown"
  else

$as_echo "#define CC_INTEL 1" >>confdefs.h

    abi_cc_vendor="intel"
    abi_cc_version=`echo "${abi_result}" | sed -e 's/.*Version //; s/ .*//'`
    if test "${abi_cc_version}" = "${abi_result}"; then
      abi_cc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  if test "${abi_cc_vendor}" = "unknown"; then


    cc_info_string=`${CC} --version 2>&1 | head -n 1`
  abi_result=`echo "${cc_info_string}" | grep '^PathScale'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    cc_info_string=""
    abi_cc_vendor="unknown"
    abi_cc_version="unknown"
  else

$as_echo "#define CC_PATHSCALE 1" >>confdefs.h

    abi_cc_vendor="pathscale"
    abi_cc_version=`echo "${abi_result}" | sed -e 's/.* Version //; s/ .*//'`
    if test "${abi_cc_version}" = "${abi_result}"; then
      abi_cc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  if test "${abi_cc_vendor}" = "unknown"; then


    cc_info_string=`${CC} -V 2>&1 | sed -e '/^$/d' | head -n 1`
  abi_result=`echo "${cc_info_string}" | grep '^pgcc'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    cc_info_string=""
    abi_cc_vendor="unknown"
    abi_cc_version="unknown"
  else

$as_echo "#define CC_PGI 1" >>confdefs.h

    abi_cc_vendor="pgi"
    abi_cc_version=`echo "${abi_result}" | sed -e 's/.* //; s/-.*//'`
    if test "${abi_cc_version}" = "${abi_result}"; then
      abi_cc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  if test "${abi_cc_vendor}" = "unknown"; then


    cc_info_string=`${CC} -V 2>&1 | head -n 1`
  abi_result=`echo "${cc_info_string}" | grep 'Sun' | grep ' C '`
  if test "${abi_result}" = ""; then
    abi_result="no"
    cc_info_string=""
    abi_cc_vendor="unknown"
    abi_cc_version="unknown"
  else

$as_echo "#define CC_SUN 1" >>confdefs.h

    abi_cc_vendor="sun"
    abi_cc_version=`echo "${abi_result}" | sed -e 's/.* C //; s/ .*//'`
    if test "${abi_cc_version}" = "${abi_result}"; then
      abi_cc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi

      if test "${abi_cc_vendor}" = "unknown"; then


    cc_info_string=`${CC} --version 2>&1 | ${EGREP} '^g?cc' | head -n 1`
  if test "${ac_cv_c_compiler_gnu}" != "yes"; then
    abi_cc_vendor="unknown"
    abi_cc_version="unknown"
    abi_result="no"
  else

$as_echo "#define CC_GNU 1" >>confdefs.h

    abi_cc_vendor="gnu"
    abi_cc_version=`echo ${cc_info_string} | sed -e 's/.*([^)]*) //; s/ .*//'`
    if test "${abi_cc_version}" = "${cc_info_string}"; then
      abi_result=`echo "${cc_info_string}" | grep ' '`
      if test "${abi_result}" != ""; then
        abi_cc_version="unknown"
      fi
    fi
    abi_result="yes"
  fi

  fi

    if test "${abi_cc_vendor}" = "unknown"; then
    abi_cc_vendor="generic"
    abi_cc_version="0.0"
  fi

    abi_cc_version=`echo ${abi_cc_version} | cut -d. -f1-2`

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_cc_vendor} ${abi_cc_version}" >&5
$as_echo "${abi_cc_vendor} ${abi_cc_version}" >&6; }






# Restore back CPPFLAGS and CFLAGS
CPPFLAGS="${abi_env_CPPFLAGS}"
CFLAGS="${abi_env_CFLAGS}"

# LibXC sometimes requires C99
if test "${abi_fc_vendor}" = "ibm"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if test "${ac_cv_prog_cc_c99+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
}

int
main ()
{

  // Check bool.
  _Bool success = false;

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);

  ;
  return 0;
}
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

fi


else
  ac_cv_prog_cc_c99="no"
fi

# Check for system peculiarities


{ $as_echo "$as_me:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

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

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
eval as_val=\$$as_ac_Header
   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:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=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
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=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
    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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_compile "$LINENO"; 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
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac


# The Intel C compiler 10.1 is not even able to compile a program as
# simple as timeout.c!
if test "${enable_test_timeout}" = "yes"; then
  if test "${abi_cc_vendor}" = "intel" -a "${abi_cc_version}" = "10.1"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: icc 10.1 does not even know how to compile timeout.c" >&5
$as_echo "$as_me: icc 10.1 does not even know how to compile timeout.c" >&6;}
    for ac_prog in gcc gcc-4.5 gcc-4.4 gcc-4.3 gcc-4.2
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_cc_for_timeout+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$cc_for_timeout"; then
  ac_cv_prog_cc_for_timeout="$cc_for_timeout" # 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_for_timeout="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
cc_for_timeout=$ac_cv_prog_cc_for_timeout
if test -n "$cc_for_timeout"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_timeout" >&5
$as_echo "$cc_for_timeout" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$cc_for_timeout" && break
done

    if test "${cc_for_timeout}" = ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no working C compiler found - disabling test timeout" >&5
$as_echo "$as_me: WARNING: no working C compiler found - disabling test timeout" >&2;}
      enable_test_timeout="no"
      with_test_timeout="0"
    fi
  else
    cc_for_timeout="${CC}"
  fi
fi


# ---------------------------------------------------------------------------- #

#
# C++ support
#



  abi_sec_title="C++ support"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Preserve environment


    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"



# Look for the C++ compiler
if test "${CXX}" != "" -a ! -x "${CXX}"; then
  abi_cxx_probe=`echo "${CXX}" | sed -e 's/ .*//'`
  if test ! -x "${abi_cxx_probe}"; then
    # Extract the first word of "${abi_cxx_probe}", so it can be a program name with args.
set dummy ${abi_cxx_probe}; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_abi_cxx_path+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $abi_cxx_path in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_abi_cxx_path="$abi_cxx_path" # 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_abi_cxx_path="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
abi_cxx_path=$ac_cv_path_abi_cxx_path
if test -n "$abi_cxx_path"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi_cxx_path" >&5
$as_echo "$abi_cxx_path" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    if test "${abi_cxx_path}" = ""; then
      as_fn_error "could not run C++ compiler \"${CXX}\"" "$LINENO" 5
    fi
  fi
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
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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  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:${as_lineno-$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:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
else
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :

else
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  ac_cv_prog_cxx_g=yes
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:${as_lineno-$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:${as_lineno-$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
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  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

    # 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.  Also, some Intel
    # versions had trouble with output in subdirs
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    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
      ;;
    msvisualcpp | msvcmsys)
      # This compiler won't grok `-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj 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 $am__obj 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:${as_lineno-$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



# Warn if no C++ compiler is available
if test "${CXX}" = ""; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no C++ compiler available" >&5
$as_echo "$as_me: WARNING: no C++ compiler available" >&2;}
fi

# Set Abinit C++ parameters
if test "${CXX}" != ""; then

    if test "${abi_cxx_vendor}" = ""; then
    abi_cxx_vendor="unknown"
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of C++ compiler we have" >&5
$as_echo_n "checking which type of C++ compiler we have... " >&6; }

    if test "${abi_cxx_vendor}" = "unknown"; then


    cxx_info_string=`${CXX} -qversion 2>&1 | head -n 1`
  cxx_garbage=`${CXX} -qversion 2>&1 | wc -l | sed -e 's/ //g'`
  abi_result=`echo "${cc_info_string}" | grep 'IBM XL C/C++'`
  if test "${abi_result}" = ""; then
    abi_result=`echo "${cxx_info_string}" | grep 'IBM(R) XL C/C++'`
  fi
  if test "${abi_result}" = ""; then
    abi_result=`echo "${cxx_info_string}" | grep 'C for AIX'`
  fi
  if test "${abi_result}" = ""; then
    abi_result="no"
    cxx_info_string=""
    abi_cxx_vendor="unknown"
    abi_cxx_version="unknown"
    if test "${cxx_garbage}" -gt 50; then

$as_echo "#define CXX_IBM 1" >>confdefs.h

      abi_cxx_vendor="ibm"
      abi_cxx_version="unknown"
      abi_result="yes"
    fi
  else

$as_echo "#define CXX_IBM 1" >>confdefs.h

    abi_cxx_vendor="ibm"
    abi_cxx_version=`echo "${cxx_info_string}" | sed -e 's/.* V//; s/ .*//'`
    if test "${abi_cxx_version}" = "${cxx_info_string}"; then
      abi_cxx_version=`echo "${cxx_info_string}" | sed -e 's/C for AIX version //'`
    fi
    if test "${abi_cxx_version}" = "${cxx_info_string}"; then
      abi_cxx_version="unknown"
    fi
    abi_result="yes"
  fi

  fi

  if test "${abi_cxx_vendor}" = "unknown"; then


    cxx_info_string=`${CXX} -V 2>&1 | head -n 1`
  abi_result=`echo "${cxx_info_string}" | grep '^Compaq C++'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    cxx_info_string=""
    abi_cxx_vendor="unknown"
    abi_cxx_version="unknown"
  else

$as_echo "#define CXX_COMPAQ 1" >>confdefs.h

    abi_cxx_vendor="compaq"
    abi_cxx_version=`echo "${cxx_info_string}" | grep '^Compiler Driver' | sed -e 's/Compiler Driver V//; s/-.*//'`
    if test "${abi_cxx_version}" = "${cxx_info_string}"; then
      abi_cxx_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  if test "${abi_cxx_vendor}" = "unknown"; then


    cxx_info_string=`${CXX} -v -V 2>&1 | head -n 1`
  abi_result=`echo "${cxx_info_string}" | grep '^Intel(R) C++'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    cxx_info_string=""
    abi_cxx_vendor="unknown"
    abi_cxx_version="unknown"
  else

$as_echo "#define CXX_INTEL 1" >>confdefs.h

    abi_cxx_vendor="intel"
    abi_cxx_version=`echo "${abi_result}" | sed -e 's/.*Version //; s/ .*//'`
    if test "${abi_cxx_version}" = "${abi_result}"; then
      abi_cxx_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  if test "${abi_cxx_vendor}" = "unknown"; then


    cxx_info_string=`${CXX} --version 2>&1 | head -n 1`
  abi_result=`echo "${cxx_info_string}" | grep '^PathScale'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    cxx_info_string=""
    abi_cxx_vendor="unknown"
    abi_cxx_version="unknown"
  else

$as_echo "#define CXX_PATHSCALE 1" >>confdefs.h

    abi_cxx_vendor="pathscale"
    abi_cxx_version=`echo "${abi_result}" | sed -e 's/.* Version //; s/ .*//'`
    if test "${abi_cxx_version}" = "${abi_result}"; then
      abi_cxx_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  if test "${abi_cxx_vendor}" = "unknown"; then


    cxx_info_string=`${CXX} -v -V 2>&1 | sed -e '/^$/d' | head -n 1`
  abi_result=`echo "${cxx_info_string}" | grep '^pgCC'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    cxx_info_string=""
    abi_cxx_vendor="unknown"
    abi_cxx_version="unknown"
  else

$as_echo "#define CXX_PGI 1" >>confdefs.h

    abi_cxx_vendor="pgi"
    abi_cxx_version=`echo "${abi_result}" | sed -e 's/.* //; s/-.*//'`
    if test "${abi_cxx_version}" = "${abi_result}"; then
      abi_cxx_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  if test "${abi_cxx_vendor}" = "unknown"; then


    cxx_info_string=`${CXX} -V 2>&1 | head -n 1`
  abi_result=`echo "${cxx_info_string}" | grep 'Sun' | grep ' C++ '`
  if test "${abi_result}" = ""; then
    abi_result="no"
    cxx_info_string=""
    abi_cxx_vendor="unknown"
    abi_cxx_version="unknown"
  else

$as_echo "#define CXX_SUN 1" >>confdefs.h

    abi_cxx_vendor="sun"
    abi_cxx_version=`echo "${abi_result}" | sed -e 's/.* C++ //; s/ .*//'`
    if test "${abi_cxx_version}" = "${abi_result}"; then
      abi_cxx_version="unknown"
    fi
    abi_result="yes"
  fi

  fi

      if test "${abi_cxx_vendor}" = "unknown"; then


    cxx_info_string=`${CXX} --version 2>&1 | head -n 1`
  if test "${ac_cv_cxx_compiler_gnu}" != "yes"; then
    cxx_info_string=""
    abi_cxx_vendor="unknown"
    abi_cxx_version="unknown"
    abi_result="no"
  else

$as_echo "#define CXX_GNU 1" >>confdefs.h

    abi_cxx_vendor="gnu"
    abi_cxx_version=`echo ${cxx_info_string} | sed -e 's/.*([^)]*) //; s/ .*//'`
    if test "${abi_cxx_version}" = "${cxx_info_string}"; then
      abi_result=`echo "${cxx_info_string}" | grep ' '`
      if test "${abi_result}" != ""; then
        abi_cxx_version="unknown"
      fi
    fi
    abi_result="yes"
  fi

  fi

    if test "${abi_cxx_vendor}" = "unknown"; then
    abi_cxx_vendor="generic"
    abi_cxx_version="0.0"
  fi

    abi_cxx_version=`echo ${abi_cxx_version} | cut -d. -f1-2`

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_cxx_vendor} ${abi_cxx_version}" >&5
$as_echo "${abi_cxx_vendor} ${abi_cxx_version}" >&6; }





fi

# Restore back CXXFLAGS
CXXFLAGS="${abi_env_CXXFLAGS}"

# ---------------------------------------------------------------------------- #

#
# Fortran support
#



  abi_sec_title="Fortran support"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Preserve environment


    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"



# Look for the Fortran compiler
if test "${FC}" != "" -a ! -x "${FC}"; then
  abi_fc_probe=`echo "${FC}" | sed -e 's/ .*//'`
  if test ! -x "${abi_fc_probe}"; then
    # Extract the first word of "${abi_fc_probe}", so it can be a program name with args.
set dummy ${abi_fc_probe}; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_abi_fc_path+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $abi_fc_path in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_abi_fc_path="$abi_fc_path" # 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_abi_fc_path="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
abi_fc_path=$ac_cv_path_abi_fc_path
if test -n "$abi_fc_path"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi_fc_path" >&5
$as_echo "$abi_fc_path" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    if test "${abi_fc_path}" = ""; then
      as_fn_error "could not run Fortran compiler \"${FC}\"" "$LINENO" 5
    fi
  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
if test -n "$ac_tool_prefix"; then
  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $FC" >&5
$as_echo "$FC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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 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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
$as_echo "$ac_ct_FC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
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:${as_lineno-$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
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  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:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FCFLAGS=${FCFLAGS+set}
ac_save_FCFLAGS=$FCFLAGS
FCFLAGS=
{ $as_echo "$as_me:${as_lineno-$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
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_cv_prog_fc_g=yes
else
  ac_cv_prog_fc_g=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
$as_echo "$ac_cv_prog_fc_g" >&6; }
if test "$ac_test_FCFLAGS" = set; then
  FCFLAGS=$ac_save_FCFLAGS
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


# Fail if no Fortran compiler is available
if test "${FC}" = ""; then
  as_fn_error "no Fortran compiler available" "$LINENO" 5
fi

# Look for the Fortran preprocessor
if test "${FPP}" != "" -a ! -x "${FPP}"; then
  # Extract the first word of "${FPP}", so it can be a program name with args.
set dummy ${FPP}; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_abi_fpp_path+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $abi_fpp_path in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_abi_fpp_path="$abi_fpp_path" # 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_abi_fpp_path="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
abi_fpp_path=$ac_cv_path_abi_fpp_path
if test -n "$abi_fpp_path"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi_fpp_path" >&5
$as_echo "$abi_fpp_path" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test "${abi_fpp_path}" = ""; then
    as_fn_error "could not run Fortran preprocessor \"${FPP}\"" "$LINENO" 5
  fi
fi
#AC_PROG_FPP

# Set Abinit Fortran parameters

    abi_fc_vendor="${with_fc_vendor}"
  abi_fc_version="${with_fc_version}"
  tmp_fc_info_file="${abinit_builddir}/config.fc_info.tmp"

  if test "${abi_fc_vendor}" = ""; then
    abi_fc_vendor="unknown"
  fi
  if test "${abi_fc_version}" = ""; then
    abi_fc_version="unknown"
  fi
  abi_fc_wrap="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type of Fortran compiler we have" >&5
$as_echo_n "checking which type of Fortran compiler we have... " >&6; }

    rm -f "${tmp_fc_info_file}"

    if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} -qversion 2>&1 | head -n 1`
  fc_garbage=`${FC} -qversion 2>&1 | wc -l | sed -e 's/ //g'`
  abi_result=`echo "${fc_info_string}" | grep 'IBM XL Fortran'`
  if test "${abi_result}" = ""; then
    abi_result=`echo "${fc_info_string}" | grep 'IBM(R) XL Fortran'`
  fi
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
    if test "${fc_garbage}" -gt 50; then

$as_echo "#define FC_IBM 1" >>confdefs.h

      abi_fc_vendor="ibm"
      abi_fc_version="unknown"
      abi_result="yes"
    fi
  else

$as_echo "#define FC_IBM 1" >>confdefs.h

    abi_fc_vendor="ibm"
    abi_fc_version=`echo "${abi_result}" | sed -e 's/.* V//; s/ .*//'`
    if test "${abi_fc_version}" = "${abi_result}"; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

    if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} -V 2>&1 | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^Intel(R) Fortran'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_INTEL 1" >>confdefs.h

    abi_fc_vendor="intel"
    abi_fc_version=`echo "${fc_info_string}" | sed -e 's/.*Version //;s/ .*//'`
    if test "${abi_fc_version}" = ""; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} --version 2>/dev/null | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^G95'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_G95 1" >>confdefs.h

    abi_fc_vendor="g95"
    abi_fc_version=`echo ${abi_result} | sed -e 's/.*GCC //; s/ .*//'`
    if test "${abi_fc_version}" = "${abi_result}"; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} --version 2>/dev/null | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^GNU Fortran'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_GNU 1" >>confdefs.h


$as_echo "#define HAVE_FORTRAN2003 1" >>confdefs.h

    abi_fc_vendor="gnu"
    abi_fc_version=`echo ${abi_result} | sed -e 's/^[^(]*([^)]*) //; s/ .*//'`
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} -version 2>&1 | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^PathScale'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_PATHSCALE 1" >>confdefs.h

    abi_fc_vendor="pathscale"
    abi_fc_version=`echo "${abi_result}" | sed -e 's/.* Version //; s/ .*//'`
    if test "${abi_fc_version}" = "${abi_result}"; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  #if test "${abi_fc_vendor}" = "unknown"; then
  #  _ABI_CHECK_FC_COMPAQ(${FC})
  #fi
  #echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} -V 2>/dev/null | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^Pro Fortran'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_ABSOFT 1" >>confdefs.h

    abi_fc_vendor="absoft"
    abi_fc_version=`echo "${abi_result}" | sed -e 's/Pro Fortran //'`
    if test "${abi_fc_version}" = "${abi_result}"; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} -version 2>&1 | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^MIPSpro'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_MIPSPRO 1" >>confdefs.h

    abi_fc_vendor="mipspro"
    abi_fc_version=`echo "${abi_result}" | sed -e 's/.*Version //'`
    if test "${abi_fc_version}" = "${abi_result}"; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} --version 2>&1 | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^Open64'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_OPEN64 1" >>confdefs.h

    abi_fc_vendor="open64"
    abi_fc_version=`echo "${abi_result}" | sed -e 's/.* Version //; s/ .*//'`
    if test "${abi_fc_version}" = "${abi_result}"; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} -V 2>/dev/null | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^Fujitsu Fortran'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_FUJITSU 1" >>confdefs.h

    abi_fc_vendor="fujitsu"
    abi_fc_version=`echo "${abi_result}" | sed -e 's/.*Driver //;s/ .*//'`
    if test "${abi_fc_version}" = "${abi_result}"; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} -V 2>&1 | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep 'Sun' | grep 'Fortran 95'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_SUN 1" >>confdefs.h

    abi_fc_vendor="sun"
    abi_fc_version=`echo "${abi_result}" | sed -e 's/.* Fortran 95 //;s/ .*//'`
    if test "${abi_fc_version}" = "${abi_result}" -o "${abi_fc_version}" = ""; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} -V 2>/dev/null | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^Hitachi Fortran'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_HITACHI 1" >>confdefs.h

    abi_fc_vendor="hitachi"
    abi_fc_version=`echo "${abi_result}" | sed -e 's/.*Driver //;s/ .*//'`
    if test "${abi_fc_version}" = "${abi_result}"; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} -V 2>&1 | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^NAG'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_NAG 1" >>confdefs.h

    abi_fc_vendor="nag"
    abi_fc_version=`echo "${fc_info_string}" | sed -e 's/.*Release //;s/[( ].*//'`
    if test "${abi_fc_version}" = ""; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

  if test "${abi_fc_vendor}" = "unknown"; then


    fc_info_string=`${FC} -V 2>&1 | head -n 1`
  abi_result=`echo "${fc_info_string}" | grep '^pgf9[05]'`
  if test "${abi_result}" = ""; then
    abi_result="no"
    fc_info_string=""
    abi_fc_vendor="unknown"
    abi_fc_version="unknown"
  else

$as_echo "#define FC_PGI 1" >>confdefs.h

    abi_fc_vendor="pgi"
    abi_fc_version=`echo "${abi_result}" | sed -e 's/^pgf9[05] //' | sed -e 's/-.*//'`
    if test "${abi_fc_version}" = "${abi_result}"; then
      abi_fc_version="unknown"
    fi
    abi_result="yes"
  fi

  fi
  echo "${fc_info_string}" >>"${tmp_fc_info_file}"

    if test "${abi_fc_vendor}" = "unknown"; then
    abi_fc_vendor="generic"
  #else
  #  rm -f "${tmp_fc_info_file}"
  fi

    if test "${abi_fc_version}" = "unknown"; then
    abi_fc_version="0.0"
  else
    abi_fc_version=`echo ${abi_fc_version} | cut -d. -f1-2`
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fc_vendor} ${abi_fc_version}" >&5
$as_echo "${abi_fc_vendor} ${abi_fc_version}" >&6; }







# Set default file extensions



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules extension" >&5
$as_echo_n "checking fortran 90 modules extension... " >&6; }
if test "${ax_cv_f90_modext+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

i=0
while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do
    i=`expr $i + 1`
done
mkdir tmpdir_$i
cd tmpdir_$i
cat > conftest.$ac_ext <<_ACEOF

!234567
            module conftest_module
            contains
            subroutine conftest_routine
            write(*,'(a)') 'gotcha!'
            end subroutine conftest_routine
            end module conftest_module

_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ax_cv_f90_modext=`ls | sed -n 's,conftest_module\.,,p'`
      if test x$ax_cv_f90_modext = x ; then
          ax_cv_f90_modext=`ls | sed -n 's,CONFTEST_MODULE\.,,p'`
          if test x$ax_cv_f90_modext = x ; then
              ax_cv_f90_modext=""
          fi
      fi

else
  ax_cv_f90_modext=""
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cd ..
rm -fr tmpdir_$i
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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:${as_lineno-$LINENO}: result: $ax_cv_f90_modext" >&5
$as_echo "$ax_cv_f90_modext" >&6; }
  if test "${ax_cv_f90_modext}" != ""; then
    MODEXT="${ax_cv_f90_modext}"
  else
    MODEXT="mod"
    { $as_echo "$as_me:${as_lineno-$LINENO}: setting Fortran module extension to \".${MODEXT}\"" >&5
$as_echo "$as_me: setting Fortran module extension to \".${MODEXT}\"" >&6;}
  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
{ $as_echo "$as_me:${as_lineno-$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
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_cv_fc_srcext_F90=$ac_flag; break
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:${as_lineno-$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
  abi_fc_src_ok="no"
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

  abi_fc_src_ok="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

  if test "${abi_fc_src_ok}" != "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran file extension could not be changed" >&5
$as_echo "$as_me: WARNING: Fortran file extension could not be changed" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some advanced Fortran tests may fail" >&5
$as_echo "$as_me: WARNING: some advanced Fortran tests may fail" >&2;}
  fi


# Get module file case



    fc_mod_lowercase="yes"
  fc_mod_uppercase="no"
  { $as_echo "$as_me:${as_lineno-$LINENO}: determining Fortran module case" >&5
$as_echo "$as_me: determining Fortran module case" >&6;}

    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

    module conftest
    end module conftest

_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "unable to compile a simple Fortran module
See \`config.log' for more details." "$LINENO" 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


    if test -f "CONFTEST.${MODEXT}"; then
    fc_mod_lowercase="no"
    fc_mod_uppercase="yes"
  elif test ! -f "conftest.${MODEXT}"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: conftest.${MODEXT} Fortran module could not be found" >&5
$as_echo "$as_me: WARNING: conftest.${MODEXT} Fortran module could not be found" >&2;}
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran modules are upper-case" >&5
$as_echo_n "checking whether Fortran modules are upper-case... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_mod_uppercase}" >&5
$as_echo "${fc_mod_uppercase}" >&6; }


# Restore back FCFLAGS
FCFLAGS="${abi_env_FCFLAGS}"

# Wrap Fortran compiler calls if needed or requested
if test "${enable_fc_wrapper}" = "yes"; then
  abi_fc_wrap="yes"
fi

# Determine Fortran-C name mangling scheme
if test "${abi_lang_mix}" = "yes"; 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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
$as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
if test "${ac_cv_prog_fc_v+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_cv_prog_fc_v=
# Try some options frequently used verbose output
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
  cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF

# Compile and link our simple test program by passing a flag (argument
# 1 to this macro) to the Fortran compiler in order to get
# "verbose" output that we can then parse for the Fortran linker
# flags.
ac_save_FCFLAGS=$FCFLAGS
FCFLAGS="$FCFLAGS $ac_verb"
eval "set x $ac_link"
shift
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
# LIBRARY_PATH; skip all such settings.
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
$as_echo "$ac_fc_v_output" >&5
FCFLAGS=$ac_save_FCFLAGS

rm -rf conftest*

# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
# /foo, /bar, and /baz are search directories for the Fortran linker.
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
ac_fc_v_output="`echo $ac_fc_v_output |
	grep 'LPATH is:' |
	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"

# FIXME: we keep getting bitten by quoted arguments; a more general fix
#        that detects unbalanced quotes in FLIBS should be implemented
#        and (ugh) tested at some point.
case $ac_fc_v_output in
  # If we are using xlf then replace all the commas with spaces.
  *xlfentry*)
    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;

  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
  # $LIBS confuse us, and the libraries appear later in the output anyway).
  *mGLOB_options_string*)
    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;

  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
  *-cmdline\ * | *-ignore\ * | *-def\ *)
    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;

  # If we are using Cray Fortran then delete quotes.
  *cft90*)
    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
esac


  # look for -l* and *.a constructs in the output
  for ac_arg in $ac_fc_v_output; do
     case $ac_arg in
	[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
	  ac_cv_prog_fc_v=$ac_verb
	  break 2 ;;
     esac
  done
done
if test -z "$ac_cv_prog_fc_v"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
$as_echo "$as_me: WARNING: compilation failed" >&2;}
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
$as_echo "$ac_cv_prog_fc_v" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
$as_echo_n "checking for Fortran libraries of $FC... " >&6; }
if test "${ac_cv_fc_libs+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$FCLIBS" != "x"; then
  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
else

cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF

# Compile and link our simple test program by passing a flag (argument
# 1 to this macro) to the Fortran compiler in order to get
# "verbose" output that we can then parse for the Fortran linker
# flags.
ac_save_FCFLAGS=$FCFLAGS
FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
eval "set x $ac_link"
shift
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
# LIBRARY_PATH; skip all such settings.
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
$as_echo "$ac_fc_v_output" >&5
FCFLAGS=$ac_save_FCFLAGS

rm -rf conftest*

# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
# /foo, /bar, and /baz are search directories for the Fortran linker.
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
ac_fc_v_output="`echo $ac_fc_v_output |
	grep 'LPATH is:' |
	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"

# FIXME: we keep getting bitten by quoted arguments; a more general fix
#        that detects unbalanced quotes in FLIBS should be implemented
#        and (ugh) tested at some point.
case $ac_fc_v_output in
  # If we are using xlf then replace all the commas with spaces.
  *xlfentry*)
    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;

  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
  # $LIBS confuse us, and the libraries appear later in the output anyway).
  *mGLOB_options_string*)
    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;

  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
  *-cmdline\ * | *-ignore\ * | *-def\ *)
    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;

  # If we are using Cray Fortran then delete quotes.
  *cft90*)
    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
esac



ac_cv_fc_libs=

# Save positional arguments (if any)
ac_save_positional="$@"

set X $ac_fc_v_output
while test $# != 1; do
  shift
  ac_arg=$1
  case $ac_arg in
	[\\/]*.a | ?:[\\/]*.a)
	    ac_exists=false
  for ac_i in $ac_cv_fc_libs; do
    if test x"$ac_arg" = x"$ac_i"; then
      ac_exists=true
      break
    fi
  done

  if test x"$ac_exists" = xtrue; then :

else
  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
fi
	  ;;
	-bI:*)
	    ac_exists=false
  for ac_i in $ac_cv_fc_libs; do
    if test x"$ac_arg" = x"$ac_i"; then
      ac_exists=true
      break
    fi
  done

  if test x"$ac_exists" = xtrue; then :

else
  if test "$ac_compiler_gnu" = yes; then
  for ac_link_opt in $ac_arg; do
    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
  done
else
  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
fi
fi
	  ;;
	  # Ignore these flags.
	-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
	  |-LANG:=* | -LIST:* | -LNO:*)
	  ;;
	-lkernel32)
	  test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
	  ;;
	-[LRuYz])
	  # These flags, when seen by themselves, take an argument.
	  # We remove the space between option and argument and re-iterate
	  # unless we find an empty arg or a new option (starting with -)
	  case $2 in
	     "" | -*);;
	     *)
		ac_arg="$ac_arg$2"
		shift; shift
		set X $ac_arg "$@"
		;;
	  esac
	  ;;
	-YP,*)
	  for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
	      ac_exists=false
  for ac_i in $ac_cv_fc_libs; do
    if test x"$ac_j" = x"$ac_i"; then
      ac_exists=true
      break
    fi
  done

  if test x"$ac_exists" = xtrue; then :

else
  ac_arg="$ac_arg $ac_j"
			       ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
fi
	  done
	  ;;
	-[lLR]*)
	    ac_exists=false
  for ac_i in $ac_cv_fc_libs; do
    if test x"$ac_arg" = x"$ac_i"; then
      ac_exists=true
      break
    fi
  done

  if test x"$ac_exists" = xtrue; then :

else
  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
fi
	  ;;
	-zallextract*| -zdefaultextract)
	  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
	  ;;
	  # Ignore everything else.
  esac
done
# restore positional arguments
set X $ac_save_positional; shift

# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
# then we insist that the "run path" must be an absolute path (i.e. it
# must begin with a "/").
case `(uname -sr) 2>/dev/null` in
   "SunOS 5"*)
      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
			sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
      test "x$ac_ld_run_path" != x &&
	if test "$ac_compiler_gnu" = yes; then
  for ac_link_opt in $ac_ld_run_path; do
    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
  done
else
  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
fi
      ;;
esac
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
$as_echo "$ac_cv_fc_libs" >&6; }
FCLIBS="$ac_cv_fc_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

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:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
$as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
if test "${ac_cv_fc_dummy_main+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_fc_dm_save_LIBS=$LIBS
 LIBS="$LIBS $FCLIBS"
 ac_fortran_dm_var=FC_DUMMY_MAIN
 ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

 # First, try linking without a dummy main:
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_fortran_dummy_main=none
else
  ac_cv_fortran_dummy_main=unknown
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

 if test $ac_cv_fortran_dummy_main = unknown; then
   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#define $ac_fortran_dm_var $ac_func
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_fortran_dummy_main=$ac_func; break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
   done
 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_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
 rm -rf conftest*
 LIBS=$ac_fc_dm_save_LIBS

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
$as_echo "$ac_cv_fc_dummy_main" >&6; }
FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
if test "$FC_DUMMY_MAIN" != unknown; then :
  if test $FC_DUMMY_MAIN != none; then

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

  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then

$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h

  fi
fi
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "linking to Fortran libraries from C fails
See \`config.log' for more details." "$LINENO" 5; }
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_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:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
$as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
if test "${ac_cv_fc_mangling+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      subroutine foobar()
      return
      end
      subroutine foo_bar()
      return
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  mv conftest.$ac_objext cfortran_test.$ac_objext

  ac_save_LIBS=$LIBS
  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"

  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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_success=no
  for ac_foobar in foobar FOOBAR; do
    for ac_underscore in "" "_"; do
      ac_func="$ac_foobar$ac_underscore"
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because 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 ();
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_success=yes; break 2
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    done
  done
  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 "$ac_success" = "yes"; then
     case $ac_foobar in
	foobar)
	   ac_case=lower
	   ac_foo_bar=foo_bar
	   ;;
	FOOBAR)
	   ac_case=upper
	   ac_foo_bar=FOO_BAR
	   ;;
     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
     ac_success_extra=no
     for ac_extra in "" "_"; do
	ac_func="$ac_foo_bar$ac_underscore$ac_extra"
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because 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 ();
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_success_extra=yes; break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
     done
     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 "$ac_success_extra" = "yes"; then
	ac_cv_fc_mangling="$ac_case case"
	if test -z "$ac_underscore"; then
	   ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
	else
	   ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
	fi
	if test -z "$ac_extra"; then
	   ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
	else
	   ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
	fi
      else
	ac_cv_fc_mangling="unknown"
      fi
  else
     ac_cv_fc_mangling="unknown"
  fi

  LIBS=$ac_save_LIBS
  rm -rf conftest*
  rm -f cfortran_test*
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compile a simple Fortran program
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

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

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
case $ac_cv_fc_mangling in
  "lower case, no underscore, no extra underscore")
	  $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h

	  $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
 ;;
  "lower case, no underscore, extra underscore")
	  $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h

	  $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
 ;;
  "lower case, underscore, no extra underscore")
	  $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h

	  $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
 ;;
  "lower case, underscore, extra underscore")
	  $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h

	  $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
 ;;
  "upper case, no underscore, no extra underscore")
	  $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h

	  $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
 ;;
  "upper case, no underscore, extra underscore")
	  $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h

	  $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
 ;;
  "upper case, underscore, no extra underscore")
	  $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h

	  $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
 ;;
  "upper case, underscore, extra underscore")
	  $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h

	  $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
 ;;
  *)
	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
	  ;;
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

fi

# The IBM Fortran compiler crashes if the mpi module is included
# more than once
if test "${abi_fc_vendor}" = "ibm"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: activating MPI workaround for the IBM Fortran compiler" >&5
$as_echo "$as_me: activating MPI workaround for the IBM Fortran compiler" >&6;}

$as_echo "#define HAVE_MPI_INCLUDED_ONCE 1" >>confdefs.h

fi

# ---------------------------------------------------------------------------- #

#
# Python support
#



  abi_sec_title="Python support"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Look for programs
for ac_prog in python python2.6 python2.5 python2.4
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_PYTHON+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$PYTHON"; then
  ac_cv_prog_PYTHON="$PYTHON" # 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_PYTHON="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
PYTHON=$ac_cv_prog_PYTHON
if test -n "$PYTHON"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
$as_echo "$PYTHON" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$PYTHON" && break
done

for ac_prog in python-config python2.6-config python2.5-config python2.4-config
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$PYTHON_CONFIG"; then
  ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # 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_PYTHON_CONFIG="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
if test -n "$PYTHON_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
$as_echo "$PYTHON_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$PYTHON_CONFIG" && break
done


# Check name consistency
if test "${PYTHON}" != "" -a "${PYTHON_CONFIG}" != ""; then
  if test "${PYTHON}" != "`echo ${PYTHON_CONFIG} | sed -e 's/-config//'`"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python interpeter and configurator have different names" >&5
$as_echo "$as_me: WARNING: Python interpeter and configurator have different names" >&2;}
  fi
fi

# Get Python preprocessing options
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python CPPFLAGS" >&5
$as_echo_n "checking for Python CPPFLAGS... " >&6; }
if test "${PYTHON_CONFIG}" != "" -a "${PYTHON_CPPFLAGS}" = ""; then
  PYTHON_CPPFLAGS=`${PYTHON_CONFIG} --includes`
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CPPFLAGS}" >&5
$as_echo "${PYTHON_CPPFLAGS}" >&6; }

# Check whether Bazaar is installed
if test "${PYTHON}" != ""; then
  for ac_prog in bzr
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_BAZAAR+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$BAZAAR"; then
  ac_cv_prog_BAZAAR="$BAZAAR" # 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_BAZAAR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
BAZAAR=$ac_cv_prog_BAZAAR
if test -n "$BAZAAR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BAZAAR" >&5
$as_echo "$BAZAAR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$BAZAAR" && break
done

fi



    abi_numpy_new="no"
  abi_numpy_old="no"
  abi_save_CPPFLAGS="${CPPFLAGS}"
  CPPFLAGS="${PYTHON_CPPFLAGS} ${CPPFLAGS}"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python NumPy headers" >&5
$as_echo_n "checking for Python NumPy headers... " >&6; }
  if test "${abi_numpy_new}" = "no"; then
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <Python.h>
#include <numpy/arrayobject.h>
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{

int main(int argc, char** argv)
{
    return 0;
}
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  abi_numpy_new="yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test "${abi_numpy_new}" = "yes"; then

$as_echo "#define HAVE_NUMPY 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
    fi
  fi

  if test "${abi_numpy_new}" = "no"; then
    ac_fn_c_check_header_mongrel "$LINENO" "numarray/arrayobject.h" "ac_cv_header_numarray_arrayobject_h" "$ac_includes_default"
if test "x$ac_cv_header_numarray_arrayobject_h" = x""yes; then :
  abi_numpy_old="yes"
fi


    if test "${abi_numpy_old}" = "yes"; then

$as_echo "#define HAVE_NUMPY_OLD 1" >>confdefs.h

    fi
  fi

    CPPFLAGS="${abi_save_CPPFLAGS}"



# Set Bazaar variables
bzr_branch=""
bzr_revno=""
bzr_clean=""
if test "${BAZAAR}" != "" -a -d "${abinit_srcdir}/.bzr"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: retrieving Bazaar branch information" >&5
$as_echo "$as_me: retrieving Bazaar branch information" >&6;}
    eval `bzr version-info \
      --check-clean \
      --custom \
      --template='bzr_branch="{revision_id}"\nbzr_revno="{revno}"\nbzr_clean="{clean}"\n' \
      ${abinit_srcdir}`

$as_echo "#define HAVE_BZR_BRANCH 1" >>confdefs.h

fi

# Substitute Python-related variables





# ---------------------------------------------------------------------------- #

#
# Libraries and linking
#



  abi_sec_title="Libraries and linking"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Preserve environment


    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"



# Disable shared objects (may change in a distant future)
# Note: Libtool-provided macro
#AC_DISABLE_SHARED

# Look for archiver
if test "${AR}" = ""; then
  for ac_prog in ar xiar
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:${as_lineno-$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_prog"
    $as_echo "$as_me:${as_lineno-$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:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AR" && break
done

fi

# Set archiver command flag
test "${ARFLAGS_CMD}" = "" && ARFLAGS_CMD="rc"


# Look for ranlib
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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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:${as_lineno-$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:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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


# Look for linker (not used for now)
#AC_PROG_LD

# Restore back compile flags
CFLAGS="${abi_env_CFLAGS}"
CXXFLAGS="${abi_env_CXXFLAGS}"
FCFLAGS="${abi_env_FCFLAGS}"

# We want to be able access the archiver from anywhere



# Report the use of libtool-related options




# ---------------------------------------------------------------------------- #

#
# Hints
#



  abi_sec_title="Hints"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Look for a true C preprocessor
TRUE_CPP=""
if test "${TRUE_CPP}" = ""; then
  for ac_prog in cpp
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_TRUE_CPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$TRUE_CPP"; then
  ac_cv_prog_TRUE_CPP="$TRUE_CPP" # 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_TRUE_CPP="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
TRUE_CPP=$ac_cv_prog_TRUE_CPP
if test -n "$TRUE_CPP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE_CPP" >&5
$as_echo "$TRUE_CPP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$TRUE_CPP" && break
done

fi
if test "${TRUE_CPP}" = ""; then
  # Extract the first word of "cpp", so it can be a program name with args.
set dummy cpp; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_TRUE_CPP+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  case $TRUE_CPP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_TRUE_CPP="$TRUE_CPP" # 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_TRUE_CPP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
TRUE_CPP=$ac_cv_path_TRUE_CPP
if test -n "$TRUE_CPP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE_CPP" >&5
$as_echo "$TRUE_CPP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test "${TRUE_CPP}" = ""; then
  if test -x "/lib/cpp"; then
    TRUE_CPP="/lib/cpp"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a true C preprocessor" >&5
$as_echo_n "checking for a true C preprocessor... " >&6; }
if test "${TRUE_CPP}" = ""; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TRUE_CPP}" >&5
$as_echo "${TRUE_CPP}" >&6; }
fi

# Set Fortran preprocessor when needed
if test "${abi_fc_wrap}" = "yes"; then
  if test "${FPP}" = ""; then
    if test "${abi_cpp_user}" != ""; then
      FPP="${abi_cpp_user}"
    else
      if test "${TRUE_CPP}" != ""; then
        FPP="${TRUE_CPP}"
      else
        FPP="${CPP}"
      fi
    fi
  fi
fi

# FIXME: set CPP vendor
case "${target_os}" in
  aix*)
    abi_cpp_vendor="ibm"
    abi_xpp_vendor="ibm"
    abi_fpp_vendor="ibm"
    ;;
  *)
    abi_cpp_vendor="default"
    abi_xpp_vendor="default"
    abi_fpp_vendor="default"
    ;;
esac
case "${abi_fc_vendor}" in
  ibm)
    abi_fpp_vendor="ibm"
    ;;
esac

# Preset flags to have the source building properly
if test "${enable_hints}" = "yes"; then

  # C support

    abi_cpp_vendor_hnt="none"
  abi_cpp_version_hnt="none"
  abi_sys_spec_hnt="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which cpp hints to apply" >&5
$as_echo_n "checking which cpp hints to apply... " >&6; }

    case "${abi_cpp_vendor}" in
    ibm)
      abi_cpp_vendor_hnt="ibm"
      abi_cpp_version_hnt="default"
      case "${abi_sys_spec}" in
        aix-*)
          abi_sys_spec_hnt="aix-*"
          CPPFLAGS_HINTS_EXT='-P -traditional-cpp'
          ;;
        *)
          abi_sys_spec_hnt="default"

          ;;
      esac   # [case: abi_sys_spec, indent: 2, item: True]
      ;;
    *)
      abi_cpp_vendor_hnt="default"
      abi_cpp_version_hnt="default"
      abi_sys_spec_hnt="default"
      CPPFLAGS_HINTS_EXT='-P -std=c99'
      ;;
  esac   # [case: abi_cpp_vendor, indent: 0, item: True]

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_cpp_vendor_hnt}/${abi_cpp_version_hnt}/${abi_sys_spec_hnt}" >&5
$as_echo "${abi_cpp_vendor_hnt}/${abi_cpp_version_hnt}/${abi_sys_spec_hnt}" >&6; }



    abi_cc_vendor_hnt="none"
  abi_cc_version_hnt="none"
  abi_sys_spec_hnt="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which cc hints to apply" >&5
$as_echo_n "checking which cc hints to apply... " >&6; }

    case "${abi_cc_vendor}" in
    intel)
      abi_cc_vendor_hnt="intel"
      abi_cc_version_hnt="default"
      abi_sys_spec_hnt="default"
      CFLAGS_HINTS='-vec-report0'
      CFLAGS_PIC='-fPIC'
      CC_LDFLAGS_HINTS='-static-libgcc -static-intel'
      ;;
    ibm)
      abi_cc_vendor_hnt="ibm"
      abi_cc_version_hnt="default"
      abi_sys_spec_hnt="default"
      CFLAGS_64BITS='-q64'
      CFLAGS_PIC='-qpic'
      ;;
    gnu)
      abi_cc_vendor_hnt="gnu"
      abi_cc_version_hnt="default"
      case "${abi_sys_spec}" in
        irix-mips)
          abi_sys_spec_hnt="irix-mips"
          CFLAGS_64BITS='-mabi=64'
          CFLAGS_PIC='-fPIC'
          CFLAGS_32BITS='-mabi=32'
          ;;
        *)
          abi_sys_spec_hnt="default"
          CFLAGS_64BITS='-m64'
          CFLAGS_PIC='-fPIC'
          CFLAGS_32BITS='-m32'
          ;;
      esac   # [case: abi_sys_spec, indent: 2, item: True]
      ;;
    pathscale)
      abi_cc_vendor_hnt="pathscale"
      abi_cc_version_hnt="default"
      abi_sys_spec_hnt="default"
      CFLAGS_64BITS='-m64'
      CFLAGS_PIC='-fPIC'
      CFLAGS_32BITS='-m32'
      ;;
    compaq)
      abi_cc_vendor_hnt="compaq"
      abi_cc_version_hnt="default"
      abi_sys_spec_hnt="default"
      big_endian='-convert big_endian'
      ;;
  esac   # [case: abi_cc_vendor, indent: 0, item: True]

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_cc_vendor_hnt}/${abi_cc_version_hnt}/${abi_sys_spec_hnt}" >&5
$as_echo "${abi_cc_vendor_hnt}/${abi_cc_version_hnt}/${abi_sys_spec_hnt}" >&6; }



  # C++ support

    abi_xpp_vendor_hnt="none"
  abi_xpp_version_hnt="none"
  abi_sys_spec_hnt="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which xpp hints to apply" >&5
$as_echo_n "checking which xpp hints to apply... " >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_xpp_vendor_hnt}/${abi_xpp_version_hnt}/${abi_sys_spec_hnt}" >&5
$as_echo "${abi_xpp_vendor_hnt}/${abi_xpp_version_hnt}/${abi_sys_spec_hnt}" >&6; }



    abi_cxx_vendor_hnt="none"
  abi_cxx_version_hnt="none"
  abi_sys_spec_hnt="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which cxx hints to apply" >&5
$as_echo_n "checking which cxx hints to apply... " >&6; }

    case "${abi_cxx_vendor}" in
    intel)
      abi_cxx_vendor_hnt="intel"
      abi_cxx_version_hnt="default"
      abi_sys_spec_hnt="default"
      CXXFLAGS_HINTS='-vec-report0'
      CXXFLAGS_PIC='-fPIC'
      CXX_LDFLAGS_HINTS='-static-libgcc -static-intel'
      ;;
    ibm)
      abi_cxx_vendor_hnt="ibm"
      abi_cxx_version_hnt="default"
      abi_sys_spec_hnt="default"
      CXXFLAGS_64BITS='-q64'
      CXXFLAGS_PIC='-qpic'
      ;;
    gnu)
      abi_cxx_vendor_hnt="gnu"
      abi_cxx_version_hnt="default"
      case "${abi_sys_spec}" in
        irix-mips)
          abi_sys_spec_hnt="irix-mips"
          CXXFLAGS_64BITS='-mabi=64'
          CXXFLAGS_PIC='-fPIC'
          CXXFLAGS_32BITS='-mabi=32'
          ;;
        *)
          abi_sys_spec_hnt="default"
          CXXFLAGS_64BITS='-m64'
          CXXFLAGS_PIC='-fPIC'
          CXXFLAGS_32BITS='-m32'
          ;;
      esac   # [case: abi_sys_spec, indent: 2, item: True]
      ;;
    pathscale)
      abi_cxx_vendor_hnt="pathscale"
      abi_cxx_version_hnt="default"
      abi_sys_spec_hnt="default"
      CXXFLAGS_64BITS='-m64'
      CXXFLAGS_PIC='-fPIC'
      CXXFLAGS_32BITS='-m32'
      ;;
    compaq)
      abi_cxx_vendor_hnt="compaq"
      abi_cxx_version_hnt="default"
      abi_sys_spec_hnt="default"
      big_endian='-convert big_endian'
      ;;
  esac   # [case: abi_cxx_vendor, indent: 0, item: True]

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_cxx_vendor_hnt}/${abi_cxx_version_hnt}/${abi_sys_spec_hnt}" >&5
$as_echo "${abi_cxx_vendor_hnt}/${abi_cxx_version_hnt}/${abi_sys_spec_hnt}" >&6; }



  # Fortran support

    abi_fpp_vendor_hnt="none"
  abi_fpp_version_hnt="none"
  abi_sys_spec_hnt="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which fpp hints to apply" >&5
$as_echo_n "checking which fpp hints to apply... " >&6; }

    case "${abi_fpp_vendor}" in
    ibm)
      abi_fpp_vendor_hnt="ibm"
      abi_fpp_version_hnt="default"
      abi_sys_spec_hnt="default"
      FPPFLAGS_HINTS_EXT='-P -traditional-cpp'
      ;;
    *)
      abi_fpp_vendor_hnt="default"
      abi_fpp_version_hnt="default"
      abi_sys_spec_hnt="default"
      FPPFLAGS_HINTS_EXT='-P'
      ;;
  esac   # [case: abi_fpp_vendor, indent: 0, item: True]

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fpp_vendor_hnt}/${abi_fpp_version_hnt}/${abi_sys_spec_hnt}" >&5
$as_echo "${abi_fpp_vendor_hnt}/${abi_fpp_version_hnt}/${abi_sys_spec_hnt}" >&6; }



    abi_fc_vendor_hnt="none"
  abi_fc_version_hnt="none"
  abi_sys_spec_hnt="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which fc hints to apply" >&5
$as_echo_n "checking which fc hints to apply... " >&6; }

    case "${abi_fc_vendor}" in
    absoft)
      abi_fc_vendor_hnt="absoft"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      abi_fc_wrap='yes'
      FCFLAGS_FIXEDFORM='-ffixed'
      FCFLAGS_FREEFORM='-ffree'
      FCFLAGS_MODDIR='-p $(abinit_moddir)'
      ;;
    compaq)
      abi_fc_vendor_hnt="compaq"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      FCFLAGS_BIGENDIAN='-convert big_endian'
      FCFLAGS_FIXEDFORM='-fixed'
      FCFLAGS_FREEFORM='-free'
      FCFLAGS_MODDIR='-module $(abinit_moddir) -I$(abinit_moddir)'
      ;;
    gnu)
      abi_fc_vendor_hnt="gnu"
      case "${abi_fc_version}" in
        4.5)
          abi_fc_version_hnt="4.5"
          abi_sys_spec_hnt="default"
          FCFLAGS_HINTS='-ffree-line-length-none -Wstrict-aliasing=2'
          FCFLAGS_64BITS='-m64'
          FCFLAGS_PIC='-fPIC'
          FCFLAGS_FREEFORM='-ffree-form'
          FCFLAGS_32BITS='-m32'
          FCFLAGS_BIGENDIAN='-fconvert=big-endian -frecord-marker=4'
          FCFLAGS_FIXEDFORM='-ffixed-form'
          FCFLAGS_MODDIR='-J$(abinit_moddir)'
          ;;
        4.1)
          abi_fc_version_hnt="4.1"
          abi_sys_spec_hnt="default"
          FCFLAGS_64BITS='-m64'
          FCFLAGS_FREEFORM='-ffree-form'
          FC_LDFLAGS_HINTS='-static-libgfortran'
          FCFLAGS_32BITS='-m32'
          FCFLAGS_FIXEDFORM='-ffixed-form'
          FCFLAGS_MODDIR='-J$(abinit_moddir) -I$(abinit_moddir)'
          ;;
        *)
          abi_fc_version_hnt="default"
          abi_sys_spec_hnt="default"
          FCFLAGS_HINTS='-ffree-line-length-none'
          FCFLAGS_64BITS='-m64'
          FCFLAGS_PIC='-fPIC'
          FCFLAGS_FREEFORM='-ffree-form'
          FCFLAGS_32BITS='-m32'
          FCFLAGS_BIGENDIAN='-fconvert=big-endian -frecord-marker=4'
          FCFLAGS_FIXEDFORM='-ffixed-form'
          FCFLAGS_MODDIR='-J$(abinit_moddir)'
          ;;
      esac   # [case: abi_fc_version, indent: 2, item: True]
      ;;
    sun)
      abi_fc_vendor_hnt="sun"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      FCFLAGS_HINTS='-e'
      FCFLAGS_64BITS='-m64'
      FCFLAGS_PIC='-KPIC'
      FCFLAGS_FREEFORM='-free'
      FCFLAGS_32BITS='-m32'
      FCFLAGS_BIGENDIAN='-xfilebyteorder=big16:%all'
      FCFLAGS_FIXEDFORM='-fixed'
      FCFLAGS_MODDIR='-moddir=$(abinit_moddir) -M$(abinit_moddir)'
      ;;
    amd)
      abi_fc_vendor_hnt="amd"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      FCFLAGS_HINTS='-extend-source -col120'
      FCFLAGS_64BITS='-m64 -align64 -default64'
      FCFLAGS_PIC='-fPIC'
      FCFLAGS_FREEFORM='-freeform'
      FCFLAGS_32BITS='-m32 -align32'
      FCFLAGS_BIGENDIAN='-convert big_endian'
      FCFLAGS_FIXEDFORM='-fixedform'
      FCFLAGS_MODDIR='-module $(abinit_moddir) -I$(abinit_moddir)'
      ;;
    intel)
      abi_fc_vendor_hnt="intel"
      case "${abi_fc_version}" in
        10.1)
          abi_fc_version_hnt="10.1"
          case "${abi_sys_spec}" in
            *-ia64)
              abi_sys_spec_hnt="*-ia64"
              FCFLAGS_HINTS='-extend_source'
              FCFLAGS_PIC='-fPIC'
              FCFLAGS_FREEFORM='-free'
              FC_LDFLAGS_HINTS='-static-intel -static-libgcc'
              FCFLAGS_BIGENDIAN='-convert big_endian'
              FCFLAGS_FIXEDFORM='-fixed'
              FCFLAGS_MODDIR='-module $(abinit_moddir)'
              ;;
            *)
              abi_sys_spec_hnt="default"
              FCFLAGS_HINTS='-extend-source -vec-report0'
              FCFLAGS_PIC='-fPIC'
              FCFLAGS_FREEFORM='-free'
              FC_LDFLAGS_HINTS='-static-intel -static-libgcc'
              FCFLAGS_BIGENDIAN='-convert big_endian'
              FCFLAGS_FIXEDFORM='-fixed'
              FCFLAGS_MODDIR='-module $(abinit_moddir)'
              ;;
          esac   # [case: abi_sys_spec, indent: 4, item: True]
          ;;
        10.0)
          abi_fc_version_hnt="10.0"
          case "${abi_sys_spec}" in
            *-ia64)
              abi_sys_spec_hnt="*-ia64"
              FCFLAGS_HINTS='-extend_source'
              FCFLAGS_PIC='-fPIC'
              FCFLAGS_FREEFORM='-free'
              FC_LDFLAGS_HINTS='-static-intel -static-libgcc'
              FCFLAGS_BIGENDIAN='-convert big_endian'
              FCFLAGS_FIXEDFORM='-fixed'
              FCFLAGS_MODDIR='-module $(abinit_moddir)'
              ;;
            *)
              abi_sys_spec_hnt="default"
              FCFLAGS_HINTS='-extend-source -vec-report0'
              FCFLAGS_PIC='-fPIC'
              FCFLAGS_FREEFORM='-free'
              FC_LDFLAGS_HINTS='-static-intel -static-libgcc'
              FCFLAGS_BIGENDIAN='-convert big_endian'
              FCFLAGS_FIXEDFORM='-fixed'
              FCFLAGS_MODDIR='-module $(abinit_moddir)'
              ;;
          esac   # [case: abi_sys_spec, indent: 4, item: True]
          ;;
        *)
          abi_fc_version_hnt="default"
          case "${abi_sys_spec}" in
            *-ia64)
              abi_sys_spec_hnt="*-ia64"
              FCFLAGS_HINTS='-extend_source'
              FCFLAGS_PIC='-fPIC'
              FCFLAGS_FREEFORM='-free'
              FC_LDFLAGS_HINTS='-static-intel -static-libgcc'
              FCFLAGS_BIGENDIAN='-convert big_endian'
              FCFLAGS_FIXEDFORM='-fixed'
              FCFLAGS_MODDIR='-module $(abinit_moddir)'
              ;;
            *)
              abi_sys_spec_hnt="default"
              FCFLAGS_HINTS='-extend-source -vec-report0 -noaltparam -nofpscomp'
              FCFLAGS_PIC='-fPIC'
              FCFLAGS_FREEFORM='-free'
              FC_LDFLAGS_HINTS='-static-intel -static-libgcc'
              FCFLAGS_BIGENDIAN='-convert big_endian'
              FCFLAGS_FIXEDFORM='-fixed'
              FCFLAGS_MODDIR='-module $(abinit_moddir)'
              ;;
          esac   # [case: abi_sys_spec, indent: 4, item: True]
          ;;
      esac   # [case: abi_fc_version, indent: 2, item: True]
      ;;
    hitachi)
      abi_fc_vendor_hnt="hitachi"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      FCFLAGS_HINTS='-hf95 -nosave -nohugeary'
      ;;
    g95)
      abi_fc_vendor_hnt="g95"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      FCFLAGS_HINTS='-ffree-line-length-huge'
      FCFLAGS_64BITS='-m64'
      FCFLAGS_PIC='-fpic'
      FCFLAGS_FREEFORM='-ffree-form'
      FCFLAGS_32BITS='-m32'
      FCFLAGS_BIGENDIAN='-fconvert=big-endian -frecord-marker=4'
      FCFLAGS_FIXEDFORM='-ffixed-form'
      FCFLAGS_MODDIR='-fmod=$(abinit_moddir) -I$(abinit_moddir)'
      ;;
    fujitsu)
      abi_fc_vendor_hnt="fujitsu"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      abi_fc_wrap='yes'
      FCFLAGS_HINTS='-Am -Ee -Ep'
      FCFLAGS_FIXEDFORM='-Fixed -X7'
      FCFLAGS_FREEFORM='-Free -X9'
      FCFLAGS_MODDIR='-M $(abinit_moddir)'
      ;;
    pathscale)
      abi_fc_vendor_hnt="pathscale"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      FCFLAGS_HINTS='-extend-source'
      FCFLAGS_64BITS='-m64 -align64'
      FCFLAGS_PIC='-fPIC'
      FCFLAGS_FREEFORM='-freeform'
      FCFLAGS_32BITS='-m32 -align32'
      FCFLAGS_BIGENDIAN='-byteswapio'
      FCFLAGS_FIXEDFORM='-fixedform'
      FCFLAGS_MODDIR='-module $(abinit_moddir)'
      ;;
    nag)
      abi_fc_vendor_hnt="nag"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      FCFLAGS_HINTS='-132 -english -strict95'
      FCFLAGS_64BITS='-64t'
      FCFLAGS_PIC='-PIC'
      FCFLAGS_FREEFORM='-free'
      fpp='-fpp'
      FCFLAGS_FIXEDFORM='-fixed'
      FCFLAGS_MODDIR='-mdir $(abinit_moddir) -I$(abinit_moddir)'
      ;;
    mipspro)
      abi_fc_vendor_hnt="mipspro"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      FCFLAGS_HINTS='-extend_source -col120 -macro_expand'
      FCFLAGS_64BITS='-default64'
      FCFLAGS_PIC='-KPIC'
      FCFLAGS_FREEFORM='-freeform'
      FCFLAGS_32BITS='-32'
      abi_fc_wrap='yes'
      FCFLAGS_FIXEDFORM='-fixedform'
      ;;
    ibm)
      abi_fc_vendor_hnt="ibm"
      abi_fc_version_hnt="default"
      abi_sys_spec_hnt="default"
      FCFLAGS_HINTS='-qzerosize'
      FCFLAGS_64BITS='-q64'
      FCFLAGS_PIC='-qpic'
      FCFLAGS_FREEFORM='-qsuffix=cpp=F90:f=f90 -qfree=f90'
      FCFLAGS_32BITS='-q32'
      FCFLAGS_FIXEDFORM='-qsuffix=cpp=F:f=f -qfixed'
      FPPFLAGS_HINTS='-WF,-DHAVE_CONFIG_H'
      FCFLAGS_MODDIR='-qmoddir=$(abinit_moddir) -I$(abinit_moddir)'
      ;;
  esac   # [case: abi_fc_vendor, indent: 0, item: True]

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fc_vendor_hnt}/${abi_fc_version_hnt}/${abi_sys_spec_hnt}" >&5
$as_echo "${abi_fc_vendor_hnt}/${abi_fc_version_hnt}/${abi_sys_spec_hnt}" >&6; }



  # Library archiver support

    abi_ar_vendor_hnt="none"
  abi_ar_version_hnt="none"
  abi_sys_spec_hnt="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which ar hints to apply" >&5
$as_echo_n "checking which ar hints to apply... " >&6; }

    if test "${abi_ar_vendor}" = "ibm"; then
    abi_ar_vendor_hnt="ibm"
    abi_ar_version_hnt="default"
    case "${abi_sys_spec}" in
      aix-*)
        abi_sys_spec_hnt="aix-*"
        ARFLAGS_64BITS='-X 64'
        ARFLAGS_32BITS='-X 32'
        ;;
      *)
        abi_sys_spec_hnt="default"

        ;;
    esac   # [case: abi_sys_spec, indent: 1, item: False]
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_ar_vendor_hnt}/${abi_ar_version_hnt}/${abi_sys_spec_hnt}" >&5
$as_echo "${abi_ar_vendor_hnt}/${abi_ar_version_hnt}/${abi_sys_spec_hnt}" >&6; }



fi

# Set Fortran preprocessing flags
if test "${abi_fc_wrap}" = "yes"; then
  test "${FPPFLAGS}" = "" && FPPFLAGS="${FPPFLAGS_HINTS_EXT}"
fi

# Display Fortran preprocessing parameters
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which Fortran preprocessor to use" >&5
$as_echo_n "checking which Fortran preprocessor to use... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FPP}" >&5
$as_echo "${FPP}" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which Fortran preprocessor flags to apply" >&5
$as_echo_n "checking which Fortran preprocessor flags to apply... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FPPFLAGS}" >&5
$as_echo "${FPPFLAGS}" >&6; }

# Set flags for bindings
# FIXME: this is not generic enough (should use Libtool)
if test "${enable_exports}" = "yes"; then
    if test "${abi_cc_vendor}" = "gnu"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: setting PIC flags for C compiler" >&5
$as_echo "$as_me: setting PIC flags for C compiler" >&6;}
        CFLAGS_HINTS="${CFLAGS_HINTS} ${CFLAGS_PIC}"
    fi
    if test "${abi_cxx_vendor}" = "gnu"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: setting PIC flags for C++ compiler" >&5
$as_echo "$as_me: setting PIC flags for C++ compiler" >&6;}
        CXXFLAGS_HINTS="${CXXFLAGS_HINTS} ${CXXFLAGS_PIC}"
    fi
    if test "${abi_fc_vendor}" = "gnu"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: setting PIC flags for Fortran compiler" >&5
$as_echo "$as_me: setting PIC flags for Fortran compiler" >&6;}
        FCFLAGS_HINTS="${FCFLAGS_HINTS} ${FCFLAGS_PIC}"
    fi
fi

# Display Fortran compiler wrapper status
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to wrap Fortran compiler calls" >&5
$as_echo_n "checking whether to wrap Fortran compiler calls... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fc_wrap}" >&5
$as_echo "${abi_fc_wrap}" >&6; }

# ---------------------------------------------------------------------------- #

#
# Debugging
#
# NOTE:
#
#   * Please do not try to set-up the *FLAGS_DEBUG variables manually,
#     as they will systematically be overwritten. These flags should be
#     modified by the --with-*-dbgflags options only, and --enable-debug
#     set to "yes" in this case.
#



  abi_sec_title="Debugging"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Init debug flags

    abi_debug_mode="${enable_debug}"
  abi_optim_mode="${enable_optim}"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking debugging status" >&5
$as_echo_n "checking debugging status... " >&6; }
  case "${abi_debug_mode}" in
    no)
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
      CPPFLAGS_DEBUG=""
      CFLAGS_DEBUG=""
      CC_LDFLAGS_DEBUG=""
      CC_LIBS_DEBUG=""
      CXXFLAGS_DEBUG=""
      CXX_LDFLAGS_DEBUG=""
      CXX_LIBS_DEBUG=""
      FCFLAGS_DEBUG=""
      FC_LDFLAGS_DEBUG=""
      FC_LIBS_DEBUG=""
      ARFLAGS_DEBUG=""
      ;;
    yes)
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled (using user-specified debug flags)" >&5
$as_echo "enabled (using user-specified debug flags)" >&6; }
      ;;
    *)
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled (profile mode: ${abi_debug_mode})" >&5
$as_echo "enabled (profile mode: ${abi_debug_mode})" >&6; }
      CPPFLAGS_DEBUG=""
      CFLAGS_DEBUG=""
      CC_LDFLAGS_DEBUG=""
      CC_LIBS_DEBUG=""
      CXXFLAGS_DEBUG=""
      CXX_LDFLAGS_DEBUG=""
      CXX_LIBS_DEBUG=""
      FCFLAGS_DEBUG=""
      FC_LDFLAGS_DEBUG=""
      FC_LIBS_DEBUG=""
      ARFLAGS_DEBUG=""
      ;;
  esac

    if test "${abi_debug_mode}" != "no" -a "${abi_debug_mode}" != "yes"; then

        if test "${CFLAGS}" = ""; then
      if test "${ac_cv_prog_cc_g}" = "yes"; then
        CFLAGS_DEBUG="-g"
        { $as_echo "$as_me:${as_lineno-$LINENO}: setting C debug flags to '-g'" >&5
$as_echo "$as_me: setting C debug flags to '-g'" >&6;}
      fi
    fi

        if test "${CXXFLAGS}" = ""; then
      if test "${ac_cv_prog_cxx_g}" = "yes"; then
        CXXFLAGS_DEBUG="-g"
        { $as_echo "$as_me:${as_lineno-$LINENO}: setting C++ debug flags to '-g'" >&5
$as_echo "$as_me: setting C++ debug flags to '-g'" >&6;}
      fi
    fi

        if test "${FCFLAGS}" = ""; then
      if test "${ac_cv_prog_fc_g}" = "yes"; then
        FCFLAGS_DEBUG="-g"
        { $as_echo "$as_me:${as_lineno-$LINENO}: setting Fortran debug flags to '-g'" >&5
$as_echo "$as_me: setting Fortran debug flags to '-g'" >&6;}
      fi
    fi
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate debug mode in source files" >&5
$as_echo_n "checking whether to activate debug mode in source files... " >&6; }
  src_debug_mode="no"
  if test \( "${abi_debug_mode}" != "no" -a "${abi_debug_mode}" != "yes" -a \
             "${abi_debug_mode}" != "basic" \) \
       -o \( "${abi_debug_mode}" = "yes" -a "${abi_optim_mode}" = "no" \); then

$as_echo "#define DEBUG_MODE 1" >>confdefs.h

    src_debug_mode="yes"
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${src_debug_mode}" >&5
$as_echo "${src_debug_mode}" >&6; }


# Get debug flags from database when in profile mode
if test "${enable_debug}" != "no" -a "${enable_debug}" != "yes"; then
  if test "${CFLAGS}" = ""; then

    abi_cc_vendor_dbg="none"
  abi_cc_version_dbg="none"
  abi_cpu_spec_dbg="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which cc debug flags to apply" >&5
$as_echo_n "checking which cc debug flags to apply... " >&6; }

    if test "${abi_cc_vendor}" = "gnu"; then
    abi_cc_vendor_dbg="gnu"
    abi_cc_version_dbg="default"
    abi_cpu_spec_dbg="default"
    case "${enable_debug}" in
      paranoid)
        enable_debug_dbg="paranoid"
        CFLAGS_DEBUG="${CFLAGS_DEBUG} -g3 -ggdb -Wall -Wextra"
        ;;
      naughty)
        enable_debug_dbg="naughty"
        CFLAGS_DEBUG="${CFLAGS_DEBUG} -g3 -ggdb -Wall -Wextra -fbounds-checking"
        ;;
      enhanced)
        enable_debug_dbg="enhanced"
        CFLAGS_DEBUG="${CFLAGS_DEBUG} -g3 -ggdb"
        ;;
      basic)
        enable_debug_dbg="basic"

        ;;
    esac   # [case: enable_debug, indent: 1, item: False]
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_cc_vendor_dbg}/${abi_cc_version_dbg}/${abi_cpu_spec_dbg}" >&5
$as_echo "${abi_cc_vendor_dbg}/${abi_cc_version_dbg}/${abi_cpu_spec_dbg}" >&6; }


  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: debugging profile overriden by user-defined CFLAGS" >&5
$as_echo "$as_me: debugging profile overriden by user-defined CFLAGS" >&6;}
  fi
  if test "${CXXFLAGS}" = ""; then

    abi_cxx_vendor_dbg="none"
  abi_cxx_version_dbg="none"
  abi_cpu_spec_dbg="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which cxx debug flags to apply" >&5
$as_echo_n "checking which cxx debug flags to apply... " >&6; }


    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_cxx_vendor_dbg}/${abi_cxx_version_dbg}/${abi_cpu_spec_dbg}" >&5
$as_echo "${abi_cxx_vendor_dbg}/${abi_cxx_version_dbg}/${abi_cpu_spec_dbg}" >&6; }


  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: debugging profile overriden by user-defined CXXFLAGS" >&5
$as_echo "$as_me: debugging profile overriden by user-defined CXXFLAGS" >&6;}
  fi
  if test "${FCFLAGS}" = ""; then

    abi_fc_vendor_dbg="none"
  abi_fc_version_dbg="none"
  abi_cpu_spec_dbg="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which fc debug flags to apply" >&5
$as_echo_n "checking which fc debug flags to apply... " >&6; }

    case "${abi_fc_vendor}" in
    compaq)
      abi_fc_vendor_dbg="compaq"
      abi_fc_version_dbg="default"
      abi_cpu_spec_dbg="default"
      case "${enable_debug}" in
        paranoid)
          enable_debug_dbg="paranoid"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -u -warn declarations -warn truncated_source -warn unitialized -warn unused"
          ;;
        naughty)
          enable_debug_dbg="naughty"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -u -warn declarations -warn truncated_source -warn unitialized -warn unused  -check bounds"
          ;;
        enhanced)
          enable_debug_dbg="enhanced"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -u -warn declarations -warn truncated_source -warn unitialized -warn unused"
          ;;
        basic)
          enable_debug_dbg="basic"

          ;;
      esac   # [case: enable_debug, indent: 2, item: True]
      ;;
    gnu)
      abi_fc_vendor_dbg="gnu"
      abi_fc_version_dbg="default"
      abi_cpu_spec_dbg="default"
      case "${enable_debug}" in
        paranoid)
          enable_debug_dbg="paranoid"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -fbacktrace -finit-real=nan -Wimplicit-interface -Wtabs -Wall -Wextra"
          ;;
        naughty)
          enable_debug_dbg="naughty"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -fbacktrace -finit-real=nan -Wimplicit-interface -Wtabs -Wall -Wextra -fbounds-checking"
          ;;
        enhanced)
          enable_debug_dbg="enhanced"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -fbacktrace -finit-real=nan -Wimplicit-interface -Wtabs"
          ;;
        basic)
          enable_debug_dbg="basic"

          ;;
      esac   # [case: enable_debug, indent: 2, item: True]
      ;;
    open64)
      abi_fc_vendor_dbg="open64"
      abi_fc_version_dbg="default"
      abi_cpu_spec_dbg="default"
      case "${enable_debug}" in
        paranoid)
          enable_debug_dbg="paranoid"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -g3 -fullwarn -trapuv -Wall -Wendif-labels -Wunused -ansi -fno-permissive -Wfloat-equal -Wunreachable-code"
          ;;
        naughty)
          enable_debug_dbg="naughty"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -g3 -fullwarn -trapuv -Wall -Wendif-labels -Wunused -ansi -fno-permissive -Wfloat-equal -Wunreachable-code -C"
          ;;
        enhanced)
          enable_debug_dbg="enhanced"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -g3 -fullwarn -trapuv -Wall -Wendif-labels -Wunused"
          ;;
        basic)
          enable_debug_dbg="basic"

          ;;
      esac   # [case: enable_debug, indent: 2, item: True]
      ;;
    sun)
      abi_fc_vendor_dbg="sun"
      abi_fc_version_dbg="default"
      abi_cpu_spec_dbg="default"
      case "${enable_debug}" in
        paranoid)
          enable_debug_dbg="paranoid"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -erroff=%none -v -w4 -xcheck=init_local -ansi -u -xcommonchk -Xlist"
          ;;
        naughty)
          enable_debug_dbg="naughty"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -erroff=%none -v -w4 -xcheck=init_local -ansi -u -xcommonchk -Xlist -C"
          ;;
        enhanced)
          enable_debug_dbg="enhanced"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -erroff=%none -v -w4 -xcheck=init_local"
          ;;
        basic)
          enable_debug_dbg="basic"

          ;;
      esac   # [case: enable_debug, indent: 2, item: True]
      ;;
    intel)
      abi_fc_vendor_dbg="intel"
      case "${abi_fc_version}" in
        10.0)
          abi_fc_version_dbg="10.0"
          abi_cpu_spec_dbg="default"
          case "${enable_debug}" in
            paranoid)
              enable_debug_dbg="paranoid"
              FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -debug all -check uninit -ftrapuv -warn all"
              ;;
            naughty)
              enable_debug_dbg="naughty"
              FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -debug all -check uninit -ftrapuv -warn all -check bounds"
              ;;
            enhanced)
              enable_debug_dbg="enhanced"
              FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -debug all -check uninit -ftrapuv"
              ;;
            basic)
              enable_debug_dbg="basic"

              ;;
          esac   # [case: enable_debug, indent: 4, item: True]
          ;;
        10.1)
          abi_fc_version_dbg="10.1"
          abi_cpu_spec_dbg="default"
          case "${enable_debug}" in
            paranoid)
              enable_debug_dbg="paranoid"
              FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -debug all -check uninit -ftrapuv -warn all"
              ;;
            naughty)
              enable_debug_dbg="naughty"
              FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -debug all -check uninit -ftrapuv -warn all -check bounds"
              ;;
            enhanced)
              enable_debug_dbg="enhanced"
              FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -debug all -check uninit -ftrapuv"
              ;;
            basic)
              enable_debug_dbg="basic"

              ;;
          esac   # [case: enable_debug, indent: 4, item: True]
          ;;
        *)
          abi_fc_version_dbg="default"
          abi_cpu_spec_dbg="default"
          case "${enable_debug}" in
            paranoid)
              enable_debug_dbg="paranoid"
              FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -debug all -check uninit -ftrapuv -traceback -warn all -fp-stack-check"
              ;;
            naughty)
              enable_debug_dbg="naughty"
              FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -debug all -check uninit -ftrapuv -traceback -warn all -fp-stack-check -check bounds -WB"
              ;;
            enhanced)
              enable_debug_dbg="enhanced"
              FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -debug all -check uninit -ftrapuv -traceback"
              ;;
            basic)
              enable_debug_dbg="basic"

              ;;
          esac   # [case: enable_debug, indent: 4, item: True]
          ;;
      esac   # [case: abi_fc_version, indent: 2, item: True]
      ;;
    g95)
      abi_fc_vendor_dbg="g95"
      abi_fc_version_dbg="default"
      abi_cpu_spec_dbg="default"
      case "${enable_debug}" in
        paranoid)
          enable_debug_dbg="paranoid"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -On -Sw"
          ;;
        naughty)
          enable_debug_dbg="naughty"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -On -Sw -Ds"
          ;;
        enhanced)
          enable_debug_dbg="enhanced"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -On"
          ;;
        basic)
          enable_debug_dbg="basic"

          ;;
      esac   # [case: enable_debug, indent: 2, item: True]
      ;;
    fujitsu)
      abi_fc_vendor_dbg="fujitsu"
      abi_fc_version_dbg="default"
      abi_cpu_spec_dbg="default"
      case "${enable_debug}" in
        paranoid)
          enable_debug_dbg="paranoid"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -AT -Du -Si"
          ;;
        naughty)
          enable_debug_dbg="naughty"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -AT -Du -Si"
          ;;
        enhanced)
          enable_debug_dbg="enhanced"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -AT -Du -Si"
          ;;
        basic)
          enable_debug_dbg="basic"

          ;;
      esac   # [case: enable_debug, indent: 2, item: True]
      ;;
    pathscale)
      abi_fc_vendor_dbg="pathscale"
      abi_fc_version_dbg="default"
      abi_cpu_spec_dbg="default"
      case "${enable_debug}" in
        paranoid)
          enable_debug_dbg="paranoid"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -trapuv -fullwarn -Wall -fno-permissive -Wendif-labels"
          ;;
        naughty)
          enable_debug_dbg="naughty"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -trapuv -fullwarn -Wall -fno-permissive -Wendif-labels -ffortran-bounds-check"
          ;;
        enhanced)
          enable_debug_dbg="enhanced"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -trapuv -fullwarn -Wall"
          ;;
        basic)
          enable_debug_dbg="basic"

          ;;
      esac   # [case: enable_debug, indent: 2, item: True]
      ;;
    nag)
      abi_fc_vendor_dbg="nag"
      abi_fc_version_dbg="default"
      abi_cpu_spec_dbg="default"
      case "${enable_debug}" in
        paranoid)
          enable_debug_dbg="paranoid"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -gline -mtrace=verbose -nan -info"
          FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG} -mtrace=verbose"
          ;;
        naughty)
          enable_debug_dbg="naughty"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -gline -mtrace=verbose -nan -info -C"
          FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG} -mtrace=verbose"
          ;;
        enhanced)
          enable_debug_dbg="enhanced"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -gline -mtrace=verbose -nan"
          FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG} -mtrace=verbose"
          ;;
        basic)
          enable_debug_dbg="basic"

          ;;
      esac   # [case: enable_debug, indent: 2, item: True]
      ;;
    mipspro)
      abi_fc_vendor_dbg="mipspro"
      abi_fc_version_dbg="default"
      abi_cpu_spec_dbg="default"
      case "${enable_debug}" in
        paranoid)
          enable_debug_dbg="paranoid"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -u -fullwarn -ansi"
          ;;
        naughty)
          enable_debug_dbg="naughty"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -u -fullwarn -ansi -check_bounds"
          ;;
        enhanced)
          enable_debug_dbg="enhanced"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -u -fullwarn"
          ;;
        basic)
          enable_debug_dbg="basic"

          ;;
      esac   # [case: enable_debug, indent: 2, item: True]
      ;;
    ibm)
      abi_fc_vendor_dbg="ibm"
      abi_fc_version_dbg="default"
      abi_cpu_spec_dbg="default"
      case "${enable_debug}" in
        paranoid)
          enable_debug_dbg="paranoid"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -qnooptimize -qextcheck -qflag=i:i -qfloat=nans -qinitauto=7FBFFFFF -qflttrap=overflow:underflow:zerodivide:invalid:enable -qsigtrap"
          ;;
        naughty)
          enable_debug_dbg="naughty"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -qnooptimize -qextcheck -qflag=i:i -qfloat=nans -qinitauto=7FBFFFFF -qflttrap=overflow:underflow:zerodivide:invalid:enable -qsigtrap -C -qcheck"
          ;;
        enhanced)
          enable_debug_dbg="enhanced"
          FCFLAGS_DEBUG="${FCFLAGS_DEBUG} -qnooptimize -qextcheck -qflag=i:i -qfloat=nans -qinitauto=7FBFFFFF"
          ;;
        basic)
          enable_debug_dbg="basic"

          ;;
      esac   # [case: enable_debug, indent: 2, item: True]
      ;;
  esac   # [case: abi_fc_vendor, indent: 0, item: True]

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fc_vendor_dbg}/${abi_fc_version_dbg}/${abi_cpu_spec_dbg}" >&5
$as_echo "${abi_fc_vendor_dbg}/${abi_fc_version_dbg}/${abi_cpu_spec_dbg}" >&6; }


  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: debugging profile overriden by user-defined FCFLAGS" >&5
$as_echo "$as_me: debugging profile overriden by user-defined FCFLAGS" >&6;}
  fi
fi

# Disable optimizations if debug mode is activated in source files
if test "${src_debug_mode}" = "yes"; then
  if test "${enable_optim}" != "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling optimizations" >&5
$as_echo "$as_me: WARNING: disabling optimizations" >&2;}
  fi
  enable_optim="no"
fi

# Activate "design-by-contract" debugging tests when paranoid
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate design-by-contract debugging" >&5
$as_echo_n "checking whether to activate design-by-contract debugging... " >&6; }
if test "${enable_debug}" = "paranoid"; then

$as_echo "#define DEBUG_CONTRACT 1" >>confdefs.h

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
 if test "${enable_debug}" = "paranoid"; then
  DO_BUILD_32_CONTRACT_TRUE=
  DO_BUILD_32_CONTRACT_FALSE='#'
else
  DO_BUILD_32_CONTRACT_TRUE='#'
  DO_BUILD_32_CONTRACT_FALSE=
fi


# ---------------------------------------------------------------------------- #

#
# Optimizations
#
# NOTE: The optimizations will be taken from *FLAGS_OPTIM environment
# variables if enable_optim is set to yes, or set to predefined values
# for other optimization profiles.
#



  abi_sec_title="Optimizations"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Init optimization flags
# Note: must be done only once debugging is configured

    abi_optim_mode="${enable_optim}"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization status" >&5
$as_echo_n "checking optimization status... " >&6; }
  case "${abi_optim_mode}" in
    no)
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
$as_echo "disabled" >&6; }
      CPPFLAGS_OPTIM=""
      CFLAGS_OPTIM="-O0"
      CC_LDFLAGS_OPTIM=""
      CC_LIBS_OPTIM=""
      CXXFLAGS_OPTIM="-O0"
      CXX_LDFLAGS_OPTIM=""
      CXX_LIBS_OPTIM=""
      FCFLAGS_OPTIM="-O0"
      FC_LDFLAGS_OPTIM=""
      FC_LIBS_OPTIM=""
      ARFLAGS_OPTIM=""
      ;;
    yes)
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled (using user-specified flags)" >&5
$as_echo "enabled (using user-specified flags)" >&6; }
      ;;
    *)
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled (profile mode: ${abi_optim_mode})" >&5
$as_echo "enabled (profile mode: ${abi_optim_mode})" >&6; }
      CPPFLAGS_OPTIM=""
      CFLAGS_OPTIM=""
      CC_LDFLAGS_OPTIM=""
      CC_LIBS_OPTIM=""
      CXXFLAGS_OPTIM=""
      CXX_LDFLAGS_OPTIM=""
      CXX_LIBS_OPTIM=""
      FCFLAGS_OPTIM=""
      FC_LDFLAGS_OPTIM=""
      FC_LIBS_OPTIM=""
      ARFLAGS_OPTIM=""
      ;;
  esac


# Get optimization flags from database when in profile mode
if test "${enable_optim}" != "no" -a "${enable_optim}" != "yes"; then
  if test "${CFLAGS}" = ""; then

    abi_cc_vendor_opt="none"
  abi_cc_version_opt="none"
  abi_cpu_spec_opt="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which cc optimizations to apply" >&5
$as_echo_n "checking which cc optimizations to apply... " >&6; }

    case "${abi_cc_vendor}" in
    intel)
      abi_cc_vendor_opt="intel"
      case "${abi_cc_version}" in
        9.0)
          abi_cc_version_opt="9.0"
          case "${abi_cpu_spec}" in
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=pentiumpro -msse -xK"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=itanium2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=itanium"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        9.1)
          abi_cc_version_opt="9.1"
          case "${abi_cpu_spec}" in
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=pentiumpro -msse -xK"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=itanium2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_xeon)
              abi_cpu_spec_opt="intel_xeon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -xW"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O3 -xP"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=itanium"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_coreduo)
              abi_cpu_spec_opt="intel_coreduo"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_core2)
              abi_cpu_spec_opt="intel_core2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        10.0)
          abi_cc_version_opt="10.0"
          case "${abi_cpu_spec}" in
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=pentiumpro -msse -xK"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=itanium2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=itanium"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_coreduo)
              abi_cpu_spec_opt="intel_coreduo"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_core2)
              abi_cpu_spec_opt="intel_core2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        *)
          abi_cc_version_opt="default"
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cc_version, indent: 2, item: True]
      ;;
    ibm)
      abi_cc_vendor_opt="ibm"
      abi_cc_version_opt="default"
      case "${abi_cpu_spec}" in
        ibm_powerpc)
          abi_cpu_spec_opt="ibm_powerpc"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O4 -qarch=auto -qtune=auto -qstrict -qspill=2000"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2 -qarch=auto -qtune=auto -qstrict -qspill=2000"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O3 -qarch=auto -qtune=auto -qstrict -qspill=2000"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        ibm_powerpc64)
          abi_cpu_spec_opt="ibm_powerpc64"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O4 -qarch=auto -qtune=auto -qstrict -qspill=2000"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2 -qarch=auto -qtune=auto -qstrict -qspill=2000"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O3 -qarch=auto -qtune=auto -qstrict -qspill=2000"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    sun)
      abi_cc_vendor_opt="sun"
      abi_cc_version_opt="default"
      case "${abi_cpu_spec}" in
        amd_opteron)
          abi_cpu_spec_opt="amd_opteron"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=opteron -xarch=sse2a -m64 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3"
              CC_LDFLAGS_OPTIM="-xvector=simd -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=opteron -xarch=sse2a -m64"
              CC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=opteron -xarch=sse2a -m64 -xvector=simd"
              CC_LDFLAGS_OPTIM="-xvector=simd"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_pentium4)
          abi_cpu_spec_opt="intel_pentium4"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=lib -xipo"
              CC_LDFLAGS_OPTIM="-xvector=lib -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              CC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              CC_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_pentium3)
          abi_cpu_spec_opt="intel_pentium3"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium3 -xarch=sse -xlibmil -xlibmopt -xvector=lib -xipo"
              CC_LDFLAGS_OPTIM="-xvector=lib -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium3 -xarch=sse"
              CC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium3 -xarch=sse"
              CC_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_xeon)
          abi_cpu_spec_opt="intel_xeon"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-xO5 -fround=nearest -xarch=sse2 -xchip=native -xcache=native -xvector=lib"
              CC_LDFLAGS_OPTIM="-xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-xO2 -fround=nearest"
              CC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-xO3 -fround=nearest -xarch=sse2 -xchip=native -xcache=native -xvector=lib"
              CC_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_coreduo)
          abi_cpu_spec_opt="intel_coreduo"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3"
              CC_LDFLAGS_OPTIM="-xvector=simd -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              CC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xvector=simd"
              CC_LDFLAGS_OPTIM="-xvector=simd"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_core2)
          abi_cpu_spec_opt="intel_core2"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3"
              CC_LDFLAGS_OPTIM="-xvector=simd -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              CC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xvector=simd"
              CC_LDFLAGS_OPTIM="-xvector=simd"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=native -xlibmil -xlibmopt -xipo -xjobs=3"
              CC_LDFLAGS_OPTIM="-xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=native"
              CC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=native"
              CC_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    gnu)
      abi_cc_vendor_opt="gnu"
      case "${abi_cc_version}" in
        4.1)
          abi_cc_version_opt="4.1"
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        4.2)
          abi_cc_version_opt="4.2"
          case "${abi_cpu_spec}" in
            amd_athlon64)
              abi_cpu_spec_opt="amd_athlon64"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -march=athlon64"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -march=athlon64"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -march=athlon64"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            amd_opteron)
              abi_cpu_spec_opt="amd_opteron"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -march=opteron"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -march=opteron"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -march=opteron"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -fforce-addr -march=pentium4 -mmmx -msse -msse2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -fforce-addr -march=pentium4 -mmmx -msse -msse2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -fforce-addr -march=pentium4 -mmmx -msse -msse2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            dec_alphaev67)
              abi_cpu_spec_opt="dec_alphaev67"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            amd_athlon)
              abi_cpu_spec_opt="amd_athlon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -march=athlon"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -march=athlon"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -march=athlon"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            ibm_powerpc)
              abi_cpu_spec_opt="ibm_powerpc"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O4 -mpowerpc"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mpowerpc"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mpowerpc"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            dec_alphaev56)
              abi_cpu_spec_opt="dec_alphaev56"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -fforce-addr"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -fforce-addr"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O3 -fforce-addr"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_xeon)
              abi_cpu_spec_opt="intel_xeon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -fschedule-insns2 -march=nocona -mmmx -msse -msse2 -msse3 -mfpmath=sse"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -march=nocona -mmmx -msse -mfpmath=sse"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O3 -fschedule-insns2 -march=nocona -mmmx -msse -msse2 -msse3 -mfpmath=sse"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -fforce-addr"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -fforce-addr"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O3 -fforce-addr"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_coreduo)
              abi_cpu_spec_opt="intel_coreduo"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -march=prescott -mmmx -msse -msse2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -fforce-addr -march=pentium3 -mmmx -msse"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -fforce-addr -march=pentium3 -mmmx -msse"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -fforce-addr -march=pentium3 -mmmx -msse"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            ibm_powerpc64)
              abi_cpu_spec_opt="ibm_powerpc64"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O4 -mpowerpc64"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -mpowerpc64"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -mpowerpc64"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_core2)
              abi_cpu_spec_opt="intel_core2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3 -march=prescott -mmmx -msse -msse2 -msse3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2 -msse3"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2 -msse3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        *)
          abi_cc_version_opt="default"
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O3 -mtune=native -march=native"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O2 -mtune=native -march=native -mfpmath=sse"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cc_version, indent: 2, item: True]
      ;;
    pathscale)
      abi_cc_vendor_opt="pathscale"
      abi_cc_version_opt="default"
      case "${abi_cpu_spec}" in
        intel_pentium4)
          abi_cpu_spec_opt="intel_pentium4"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O3 -march=pentium4 -msse2"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2 -march=pentium4 -msse2"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O2 -march=pentium4 -msse2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        amd_opteron)
          abi_cpu_spec_opt="amd_opteron"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O3 -march=opteron -msse2"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2 -march=opteron -msse2"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O2 -march=opteron -msse2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    compaq)
      abi_cc_vendor_opt="compaq"
      abi_cc_version_opt="default"
      case "${abi_cpu_spec}" in
        dec_alphaev67)
          abi_cpu_spec_opt="dec_alphaev67"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2 -arch host -tune host"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        dec_alphaev56)
          abi_cpu_spec_opt="dec_alphaev56"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2 -arch host -tune host"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              CFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
  esac   # [case: abi_cc_vendor, indent: 0, item: True]

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_cc_vendor_opt}/${abi_cc_version_opt}/${abi_cpu_spec_opt}" >&5
$as_echo "${abi_cc_vendor_opt}/${abi_cc_version_opt}/${abi_cpu_spec_opt}" >&6; }


  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: optimization profile overriden by user-defined CFLAGS" >&5
$as_echo "$as_me: optimization profile overriden by user-defined CFLAGS" >&6;}
  fi
  if test "${CXXFLAGS}" = ""; then

    abi_cxx_vendor_opt="none"
  abi_cxx_version_opt="none"
  abi_cpu_spec_opt="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which cxx optimizations to apply" >&5
$as_echo_n "checking which cxx optimizations to apply... " >&6; }

    case "${abi_cxx_vendor}" in
    intel)
      abi_cxx_vendor_opt="intel"
      case "${abi_cxx_version}" in
        9.0)
          abi_cxx_version_opt="9.0"
          case "${abi_cpu_spec}" in
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=pentiumpro -msse -xK"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=itanium2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=itanium"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        9.1)
          abi_cxx_version_opt="9.1"
          case "${abi_cpu_spec}" in
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=pentiumpro -msse -xK"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=itanium2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_xeon)
              abi_cpu_spec_opt="intel_xeon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -xW"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O3 -xP"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=itanium"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_coreduo)
              abi_cpu_spec_opt="intel_coreduo"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_core2)
              abi_cpu_spec_opt="intel_core2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        10.0)
          abi_cxx_version_opt="10.0"
          case "${abi_cpu_spec}" in
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=pentiumpro -msse -xK"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentiumpro -msse -xK"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=itanium2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=itanium"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=itanium"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_coreduo)
              abi_cpu_spec_opt="intel_coreduo"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -xP"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_core2)
              abi_cpu_spec_opt="intel_core2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mcpu=pentium4 -msse -msse2 -msse3 -xT"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        *)
          abi_cxx_version_opt="default"
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cxx_version, indent: 2, item: True]
      ;;
    ibm)
      abi_cxx_vendor_opt="ibm"
      abi_cxx_version_opt="default"
      case "${abi_cpu_spec}" in
        ibm_powerpc)
          abi_cpu_spec_opt="ibm_powerpc"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O4 -qarch=auto -qtune=auto -qstrict -qspill=2000 -qessl"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2 -qarch=auto -qtune=auto -qstrict -qspill=2000 -qessl"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O3 -qarch=auto -qtune=auto -qstrict -qspill=2000 -qessl"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        ibm_powerpc64)
          abi_cpu_spec_opt="ibm_powerpc64"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O4 -qarch=auto -qtune=auto -qstrict -qspill=2000 -qessl"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2 -qarch=auto -qtune=auto -qstrict -qspill=2000 -qessl"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O3 -qarch=auto -qtune=auto -qstrict -qspill=2000 -qessl"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    sun)
      abi_cxx_vendor_opt="sun"
      abi_cxx_version_opt="default"
      case "${abi_cpu_spec}" in
        amd_opteron)
          abi_cpu_spec_opt="amd_opteron"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=opteron -xarch=sse2a -m64 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3"
              CXX_LDFLAGS_OPTIM="-xvector=simd -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=opteron -xarch=sse2a -m64"
              CXX_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=opteron -xarch=sse2a -m64 -xvector=simd"
              CXX_LDFLAGS_OPTIM="-xvector=simd"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_pentium4)
          abi_cpu_spec_opt="intel_pentium4"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=lib -xipo"
              CXX_LDFLAGS_OPTIM="-xvector=lib -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              CXX_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              CXX_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_pentium3)
          abi_cpu_spec_opt="intel_pentium3"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium3 -xarch=sse -xlibmil -xlibmopt -xvector=lib -xipo"
              CXX_LDFLAGS_OPTIM="-xvector=lib -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium3 -xarch=sse"
              CXX_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium3 -xarch=sse"
              CXX_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_xeon)
          abi_cpu_spec_opt="intel_xeon"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-xO5 -fround=nearest -xarch=sse2 -xchip=native -xcache=native -xvector=lib"
              CXX_LDFLAGS_OPTIM="-xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-xO2 -fround=nearest"
              CXX_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-xO3 -fround=nearest -xarch=sse2 -xchip=native -xcache=native -xvector=lib"
              CXX_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_coreduo)
          abi_cpu_spec_opt="intel_coreduo"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3"
              CXX_LDFLAGS_OPTIM="-xvector=simd -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              CXX_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xvector=simd"
              CXX_LDFLAGS_OPTIM="-xvector=simd"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_core2)
          abi_cpu_spec_opt="intel_core2"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3"
              CXX_LDFLAGS_OPTIM="-xvector=simd -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              CXX_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xvector=simd"
              CXX_LDFLAGS_OPTIM="-xvector=simd"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=native -xlibmil -xlibmopt -xipo -xjobs=3"
              CXX_LDFLAGS_OPTIM="-xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=native"
              CXX_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=native"
              CXX_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    gnu)
      abi_cxx_vendor_opt="gnu"
      case "${abi_cxx_version}" in
        4.1)
          abi_cxx_version_opt="4.1"
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        4.2)
          abi_cxx_version_opt="4.2"
          case "${abi_cpu_spec}" in
            amd_athlon64)
              abi_cpu_spec_opt="amd_athlon64"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -march=athlon64"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -march=athlon64"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -march=athlon64"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            amd_opteron)
              abi_cpu_spec_opt="amd_opteron"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -march=opteron"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -march=opteron"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -march=opteron"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -fforce-addr -march=pentium4 -mmmx -msse -msse2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -fforce-addr -march=pentium4 -mmmx -msse -msse2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -fforce-addr -march=pentium4 -mmmx -msse -msse2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            dec_alphaev67)
              abi_cpu_spec_opt="dec_alphaev67"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            amd_athlon)
              abi_cpu_spec_opt="amd_athlon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -march=athlon"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -march=athlon"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -march=athlon"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            ibm_powerpc)
              abi_cpu_spec_opt="ibm_powerpc"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O4 -mpowerpc"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mpowerpc"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mpowerpc"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            dec_alphaev56)
              abi_cpu_spec_opt="dec_alphaev56"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -fforce-addr"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -fforce-addr"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O3 -fforce-addr"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_xeon)
              abi_cpu_spec_opt="intel_xeon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -fschedule-insns2 -march=nocona -mmmx -msse -msse2 -msse3 -mfpmath=sse"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -march=nocona -mmmx -msse -mfpmath=sse"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O3 -fschedule-insns2 -march=nocona -mmmx -msse -msse2 -msse3 -mfpmath=sse"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -fforce-addr"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -fforce-addr"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O3 -fforce-addr"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_coreduo)
              abi_cpu_spec_opt="intel_coreduo"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -march=prescott -mmmx -msse -msse2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -fforce-addr -march=pentium3 -mmmx -msse"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -fforce-addr -march=pentium3 -mmmx -msse"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -fforce-addr -march=pentium3 -mmmx -msse"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            ibm_powerpc64)
              abi_cpu_spec_opt="ibm_powerpc64"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O4 -mpowerpc64"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -mpowerpc64"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -mpowerpc64"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_core2)
              abi_cpu_spec_opt="intel_core2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3 -march=prescott -mmmx -msse -msse2 -msse3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2 -msse3"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2 -msse3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  CXXFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  CXXFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  CXXFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        *)
          abi_cxx_version_opt="default"
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O3 -mtune=native -march=native"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O2 -mtune=native -march=native -mfpmath=sse"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cxx_version, indent: 2, item: True]
      ;;
    pathscale)
      abi_cxx_vendor_opt="pathscale"
      abi_cxx_version_opt="default"
      case "${abi_cpu_spec}" in
        intel_pentium4)
          abi_cpu_spec_opt="intel_pentium4"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O3 -march=pentium4 -msse2"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2 -march=pentium4 -msse2"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O2 -march=pentium4 -msse2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        amd_opteron)
          abi_cpu_spec_opt="amd_opteron"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O3 -march=opteron -msse2"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2 -march=opteron -msse2"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O2 -march=opteron -msse2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    compaq)
      abi_cxx_vendor_opt="compaq"
      abi_cxx_version_opt="default"
      case "${abi_cpu_spec}" in
        dec_alphaev67)
          abi_cpu_spec_opt="dec_alphaev67"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2 -arch host -tune host"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        dec_alphaev56)
          abi_cpu_spec_opt="dec_alphaev56"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2 -arch host -tune host"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              CXXFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              CXXFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              CXXFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
  esac   # [case: abi_cxx_vendor, indent: 0, item: True]

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_cxx_vendor_opt}/${abi_cxx_version_opt}/${abi_cpu_spec_opt}" >&5
$as_echo "${abi_cxx_vendor_opt}/${abi_cxx_version_opt}/${abi_cpu_spec_opt}" >&6; }


  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: optimization profile overriden by user-defined CXXFLAGS" >&5
$as_echo "$as_me: optimization profile overriden by user-defined CXXFLAGS" >&6;}
  fi
  if test "${FCFLAGS}" = ""; then

    abi_fc_vendor_opt="none"
  abi_fc_version_opt="none"
  abi_cpu_spec_opt="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which fc optimizations to apply" >&5
$as_echo_n "checking which fc optimizations to apply... " >&6; }

    case "${abi_fc_vendor}" in
    compaq)
      abi_fc_vendor_opt="compaq"
      abi_fc_version_opt="default"
      case "${abi_cpu_spec}" in
        dec_alphaev67)
          abi_cpu_spec_opt="dec_alphaev67"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -arch host -tune host"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        dec_alphaev56)
          abi_cpu_spec_opt="dec_alphaev56"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -arch host -tune host"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -arch host -tune host"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -arch host -tune host"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -arch host -tune host"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    gnu)
      abi_fc_vendor_opt="gnu"
      case "${abi_fc_version}" in
        4.5)
          abi_fc_version_opt="4.5"
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -mtune=native -march=native -funroll-loops"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -mtune=native -march=native -mfpmath=sse"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        4.2)
          abi_fc_version_opt="4.2"
          case "${abi_cpu_spec}" in
            amd_athlon64)
              abi_cpu_spec_opt="amd_athlon64"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -march=athlon64"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -march=athlon64"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2 -march=athlon64"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            amd_opteron)
              abi_cpu_spec_opt="amd_opteron"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -march=opteron"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -march=opteron"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2 -march=opteron"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -march=pentium4 -mmmx -msse -msse2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -march=pentium4 -mmmx -msse -msse2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2 -march=pentium4 -mmmx -msse -msse2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            dec_alphaev67)
              abi_cpu_spec_opt="dec_alphaev67"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            amd_athlon)
              abi_cpu_spec_opt="amd_athlon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -march=athlon"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -march=athlon"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2 -march=athlon"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            ibm_powerpc)
              abi_cpu_spec_opt="ibm_powerpc"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O4 -mpowerpc"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -mpowerpc"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2 -mpowerpc"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            dec_alphaev56)
              abi_cpu_spec_opt="dec_alphaev56"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_xeon)
              abi_cpu_spec_opt="intel_xeon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -fschedule-insns2 -march=nocona -mmmx -msse -msse2 -msse3 -mfpmath=sse"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -march=nocona -mmmx -msse -mfpmath=sse"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -fschedule-insns2 -march=nocona -mmmx -msse -msse2 -msse3 -mfpmath=sse"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_coreduo)
              abi_cpu_spec_opt="intel_coreduo"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -march=prescott -mmmx -msse -msse2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -march=pentium3 -mmmx -msse"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -march=pentium3 -mmmx -msse"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2 -march=pentium3 -mmmx -msse"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            ibm_powerpc64)
              abi_cpu_spec_opt="ibm_powerpc64"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O4 -mpowerpc64"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -mpowerpc64"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2 -mpowerpc64"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_core2)
              abi_cpu_spec_opt="intel_core2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -march=prescott -mmmx -msse -msse2 -msse3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2 -msse3"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2 -msse3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        *)
          abi_fc_version_opt="default"
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -mtune=native -march=native"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -mtune=native -march=native -mfpmath=sse"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_fc_version, indent: 2, item: True]
      ;;
    sun)
      abi_fc_vendor_opt="sun"
      abi_fc_version_opt="default"
      case "${abi_cpu_spec}" in
        amd_opteron)
          abi_cpu_spec_opt="amd_opteron"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=opteron -xarch=sse2a -m64 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3"
              FC_LDFLAGS_OPTIM="-xvector=simd -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=opteron -xarch=sse2a -m64"
              FC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=opteron -xarch=sse2a -m64 -xvector=simd"
              FC_LDFLAGS_OPTIM="-xvector=simd"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_pentium4)
          abi_cpu_spec_opt="intel_pentium4"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=lib -xipo"
              FC_LDFLAGS_OPTIM="-xvector=lib -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              FC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              FC_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_pentium3)
          abi_cpu_spec_opt="intel_pentium3"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium3 -xarch=sse -xlibmil -xlibmopt -xvector=lib -xipo"
              FC_LDFLAGS_OPTIM="-xvector=lib -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium3 -xarch=sse"
              FC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium3 -xarch=sse"
              FC_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_xeon)
          abi_cpu_spec_opt="intel_xeon"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-xO5 -fround=nearest -xarch=sse2 -xchip=native -xcache=native -xvector=lib"
              FC_LDFLAGS_OPTIM="-xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-xO2 -fround=nearest"
              FC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-xO3 -fround=nearest -xarch=sse2 -xchip=native -xcache=native -xvector=lib"
              FC_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_coreduo)
          abi_cpu_spec_opt="intel_coreduo"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3"
              FC_LDFLAGS_OPTIM="-xvector=simd -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              FC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xvector=simd"
              FC_LDFLAGS_OPTIM="-xvector=simd"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_core2)
          abi_cpu_spec_opt="intel_core2"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xlibmil -xlibmopt -xvector=simd -xipo -xjobs=3"
              FC_LDFLAGS_OPTIM="-xvector=simd -xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=pentium4 -xarch=sse2"
              FC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=pentium4 -xarch=sse2 -xvector=simd"
              FC_LDFLAGS_OPTIM="-xvector=simd"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-xO4 -fround=nearest -xtarget=native -xlibmil -xlibmopt -xipo -xjobs=3"
              FC_LDFLAGS_OPTIM="-xipo"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-xO2 -fround=nearest -xtarget=native"
              FC_LDFLAGS_OPTIM=""
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-xO3 -fround=nearest -xtarget=native"
              FC_LDFLAGS_OPTIM=""
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    intel)
      abi_fc_vendor_opt="intel"
      case "${abi_fc_version}" in
        10.0)
          abi_fc_version_opt="10.0"
          case "${abi_cpu_spec}" in
            intel_centrino)
              abi_cpu_spec_opt="intel_centrino"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            amd_opteron)
              abi_cpu_spec_opt="amd_opteron"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn3 -tune pn3 -xK"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn3 -tune pn3 -xK"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn3 -tune pn3 -xK"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -tpp2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -tpp2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_xeon)
              abi_cpu_spec_opt="intel_xeon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xP"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xT"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -tpp1"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -tpp1"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_coreduo)
              abi_cpu_spec_opt="intel_coreduo"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xP"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xP"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xP"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_core2)
              abi_cpu_spec_opt="intel_core2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xT"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xT"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        10.1)
          abi_fc_version_opt="10.1"
          case "${abi_cpu_spec}" in
            intel_centrino)
              abi_cpu_spec_opt="intel_centrino"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            amd_opteron)
              abi_cpu_spec_opt="amd_opteron"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn3 -tune pn3 -xK"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn3 -tune pn3 -xK"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn3 -tune pn3 -xK"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -tpp2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -tpp2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_xeon)
              abi_cpu_spec_opt="intel_xeon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xT"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -ip -mcmodel=large -xT"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -tpp1"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -tpp1"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_coreduo)
              abi_cpu_spec_opt="intel_coreduo"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xP"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xP"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xP"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_core2)
              abi_cpu_spec_opt="intel_core2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xT"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xT"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        9.0)
          abi_fc_version_opt="9.0"
          case "${abi_cpu_spec}" in
            amd_opteron)
              abi_cpu_spec_opt="amd_opteron"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -tpp7 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -tpp7 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -tpp7 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn3 -tune pn3 -tpp6 -xK"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn3 -tune pn3 -tpp6 -xK"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn3 -tune pn3 -tpp6 -xK"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -tpp2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -tpp2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -tpp2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -tpp1"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -tpp1"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -tpp1"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        9.1)
          abi_fc_version_opt="9.1"
          case "${abi_cpu_spec}" in
            amd_opteron)
              abi_cpu_spec_opt="amd_opteron"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium4)
              abi_cpu_spec_opt="intel_pentium4"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -tpp7 -xN"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -tpp7 -xN"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -tpp7 -xN"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_pentium3)
              abi_cpu_spec_opt="intel_pentium3"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn3 -tune pn3 -tpp6 -xK"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn3 -tune pn3 -tpp6 -xK"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn3 -tune pn3 -tpp6 -xK"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -tpp2"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -tpp2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -tpp2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_xeon)
              abi_cpu_spec_opt="intel_xeon"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -arch pn4 -tune pn4 -xW"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -arch pn4 -tune pn4 -xT"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -tpp1"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -tpp1"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -tpp1"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_coreduo)
              abi_cpu_spec_opt="intel_coreduo"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -tpp7 -xP"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -tpp7 -xP"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -tpp7 -xP"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_core2)
              abi_cpu_spec_opt="intel_core2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -tpp7 -xT"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -tpp7 -xT"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -tpp7 -xT"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
        *)
          abi_fc_version_opt="default"
          case "${abi_cpu_spec}" in
            intel_itanium1)
              abi_cpu_spec_opt="intel_itanium1"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -fp-model fast=1 -fp-relaxed -ip"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -fp-model precise -fp-speculation=safe"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            intel_itanium2)
              abi_cpu_spec_opt="intel_itanium2"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -fp-model fast=1 -fp-relaxed -ip"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -fp-model precise -fp-speculation=safe"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            amd_opteron)
              abi_cpu_spec_opt="amd_opteron"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O1"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O2"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
            *)
              abi_cpu_spec_opt="default"
              case "${enable_optim}" in
                aggressive)
                  enable_optim_opt="aggressive"
                  FCFLAGS_OPTIM="-O3 -xHost -fp-model fast=1 -fp-relaxed -ip"
                  ;;
                safe)
                  enable_optim_opt="safe"
                  FCFLAGS_OPTIM="-O2 -xHost -fltconsistency -fp-model precise -fp-speculation=safe -prec-div -prec-sqrt"
                  ;;
                standard)
                  enable_optim_opt="standard"
                  FCFLAGS_OPTIM="-O3 -xHost"
                  ;;
              esac   # [case: enable_optim, indent: 6, item: True]
              ;;
          esac   # [case: abi_cpu_spec, indent: 4, item: True]
          ;;
      esac   # [case: abi_fc_version, indent: 2, item: True]
      ;;
    g95)
      abi_fc_vendor_opt="g95"
      abi_fc_version_opt="default"
      case "${abi_cpu_spec}" in
        amd_athlon64)
          abi_cpu_spec_opt="amd_athlon64"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -march=athlon64"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -march=athlon64"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -march=athlon64"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        amd_opteron)
          abi_cpu_spec_opt="amd_opteron"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -march=opteron"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -march=opteron"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -march=opteron"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_pentium4)
          abi_cpu_spec_opt="intel_pentium4"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -march=pentium4 -mmmx -msse -msse2"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -march=pentium4 -mmmx -msse -msse2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -march=pentium4 -mmmx -msse -msse2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        dec_alphaev67)
          abi_cpu_spec_opt="dec_alphaev67"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        amd_athlon)
          abi_cpu_spec_opt="amd_athlon"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -march=athlon"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -march=athlon"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -march=athlon"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        ibm_powerpc)
          abi_cpu_spec_opt="ibm_powerpc"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O4 -mpowerpc"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -mpowerpc"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -mpowerpc"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        dec_alphaev56)
          abi_cpu_spec_opt="dec_alphaev56"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_itanium2)
          abi_cpu_spec_opt="intel_itanium2"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_xeon)
          abi_cpu_spec_opt="intel_xeon"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -march=nocona -mmmx -msse -msse2 -mfpmath=sse"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -march=nocona -mmmx -msse -mfpmath=sse"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3 -march=nocona -mmmx -msse -msse2 -mfpmath=sse"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_itanium1)
          abi_cpu_spec_opt="intel_itanium1"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_coreduo)
          abi_cpu_spec_opt="intel_coreduo"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -march=prescott -mmmx -msse -msse2"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_pentium3)
          abi_cpu_spec_opt="intel_pentium3"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -march=pentium3 -mmmx -msse"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -march=pentium3 -mmmx -msse"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -march=pentium3 -mmmx -msse"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        ibm_powerpc64)
          abi_cpu_spec_opt="ibm_powerpc64"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O4 -mpowerpc64"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -mpowerpc64"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -mpowerpc64"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        intel_core2)
          abi_cpu_spec_opt="intel_core2"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -march=prescott -mmmx -msse -msse2 -msse3"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2 -msse3"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -march=prescott -mmmx -msse -msse2 -msse3"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    fujitsu)
      abi_fc_vendor_opt="fujitsu"
      abi_fc_version_opt="default"
      abi_cpu_spec_opt="default"
      case "${enable_optim}" in
        aggressive)
          enable_optim_opt="aggressive"
          FCFLAGS_OPTIM="-Of -X9 -Ps -Wv,-md"
          ;;
        safe)
          enable_optim_opt="safe"
          FCFLAGS_OPTIM="-Of -X9 -Ps -Wv,-md"
          ;;
        standard)
          enable_optim_opt="standard"
          FCFLAGS_OPTIM="-Of -X9 -Ps -Wv,-md"
          ;;
      esac   # [case: enable_optim, indent: 2, item: True]
      ;;
    pathscale)
      abi_fc_vendor_opt="pathscale"
      abi_fc_version_opt="default"
      case "${abi_cpu_spec}" in
        intel_pentium4)
          abi_cpu_spec_opt="intel_pentium4"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -march=pentium4 -msse2"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -march=pentium4 -msse2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -march=pentium4 -msse2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        amd_opteron)
          abi_cpu_spec_opt="amd_opteron"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -march=opteron -msse2"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -march=opteron -msse2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2 -march=opteron -msse2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    nag)
      abi_fc_vendor_opt="nag"
      abi_fc_version_opt="default"
      abi_cpu_spec_opt="default"
      case "${enable_optim}" in
        aggressive)
          enable_optim_opt="aggressive"
          FCFLAGS_OPTIM="-O4"
          ;;
        safe)
          enable_optim_opt="safe"
          FCFLAGS_OPTIM="-O2"
          ;;
        standard)
          enable_optim_opt="standard"
          FCFLAGS_OPTIM="-O3"
          ;;
      esac   # [case: enable_optim, indent: 2, item: True]
      ;;
    mipspro)
      abi_fc_vendor_opt="mipspro"
      abi_fc_version_opt="default"
      case "${abi_cpu_spec}" in
        sgi_mips4)
          abi_cpu_spec_opt="sgi_mips4"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -OPT:Olimit=7168 -mips4"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -OPT:Olimit=7168 -mips4"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3 -OPT:Olimit=7168 -mips4"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        sgi_mips3)
          abi_cpu_spec_opt="sgi_mips3"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -OPT:Olimit=7168 -mips3"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -OPT:Olimit=7168 -mips3"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3 -OPT:Olimit=7168 -mips3"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3 -OPT:Olimit=7168"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -OPT:Olimit=7168"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3 -OPT:Olimit=7168"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
    ibm)
      abi_fc_vendor_opt="ibm"
      abi_fc_version_opt="default"
      case "${abi_cpu_spec}" in
        ibm_powerpc)
          abi_cpu_spec_opt="ibm_powerpc"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O4 -qmaxmem=65536 -qspill=2000 -qarch=auto -qtune=auto -qcache=auto -qstrict -qsuppress=1520-022:1520-031"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -qmaxmem=65536 -qspill=2000 -qarch=auto -qtune=auto -qcache=auto -qstrict -qsuppress=1520-022:1520-031"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3 -qmaxmem=65536 -qspill=2000 -qarch=auto -qtune=auto -qcache=auto -qstrict -qsuppress=1520-022:1520-031"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        ibm_powerpc64)
          abi_cpu_spec_opt="ibm_powerpc64"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O4 -qmaxmem=65536 -qspill=2000 -qarch=auto -qtune=auto -qcache=auto -qstrict -qsuppress=1520-022:1520-031"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2 -qmaxmem=65536 -qspill=2000 -qarch=auto -qtune=auto -qcache=auto -qstrict -qsuppress=1520-022:1520-031"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O3 -qmaxmem=65536 -qspill=2000 -qarch=auto -qtune=auto -qcache=auto -qstrict -qsuppress=1520-022:1520-031"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
        *)
          abi_cpu_spec_opt="default"
          case "${enable_optim}" in
            aggressive)
              enable_optim_opt="aggressive"
              FCFLAGS_OPTIM="-O3"
              ;;
            safe)
              enable_optim_opt="safe"
              FCFLAGS_OPTIM="-O2"
              ;;
            standard)
              enable_optim_opt="standard"
              FCFLAGS_OPTIM="-O2"
              ;;
          esac   # [case: enable_optim, indent: 4, item: True]
          ;;
      esac   # [case: abi_cpu_spec, indent: 2, item: True]
      ;;
  esac   # [case: abi_fc_vendor, indent: 0, item: True]

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fc_vendor_opt}/${abi_fc_version_opt}/${abi_cpu_spec_opt}" >&5
$as_echo "${abi_fc_vendor_opt}/${abi_fc_version_opt}/${abi_cpu_spec_opt}" >&6; }


  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: optimization profile overriden by user-defined FCFLAGS" >&5
$as_echo "$as_me: optimization profile overriden by user-defined FCFLAGS" >&6;}
  fi
fi

# Set per-directory Fortran optimizations
# Note: must be done only once FCFLAGS_OPTIM is set


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to apply per-directory optimizations" >&5
$as_echo_n "checking whether to apply per-directory optimizations... " >&6; }
  if test "${enable_optim}" = "no" -o "${FCFLAGS}" != ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  fi

  fcflags_opt_default="${FCFLAGS_OPTIM}"
  echo "fcflags_opt_default='${fcflags_opt_default}'" >config.optim
  fcflags_opt_dirlist=""

    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_01_gsl_ext}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_01_gsl_ext="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 01_gsl_ext is ${fcflags_opt_01_gsl_ext}" >&5
$as_echo "$as_me: optimization for 01_gsl_ext is ${fcflags_opt_01_gsl_ext}" >&6;}
      echo "fcflags_opt_01_gsl_ext='${fcflags_opt_01_gsl_ext}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 01_gsl_ext"
    fi
  else
    if test "${fcflags_opt_01_gsl_ext}" != ""; then
      fcflags_opt_01_gsl_ext=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_01_gsl_ext overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_01_gsl_ext overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_01_interfaces_ext}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_01_interfaces_ext="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 01_interfaces_ext is ${fcflags_opt_01_interfaces_ext}" >&5
$as_echo "$as_me: optimization for 01_interfaces_ext is ${fcflags_opt_01_interfaces_ext}" >&6;}
      echo "fcflags_opt_01_interfaces_ext='${fcflags_opt_01_interfaces_ext}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 01_interfaces_ext"
    fi
  else
    if test "${fcflags_opt_01_interfaces_ext}" != ""; then
      fcflags_opt_01_interfaces_ext=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_01_interfaces_ext overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_01_interfaces_ext overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_01_macroavnew_ext}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_01_macroavnew_ext="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 01_macroavnew_ext is ${fcflags_opt_01_macroavnew_ext}" >&5
$as_echo "$as_me: optimization for 01_macroavnew_ext is ${fcflags_opt_01_macroavnew_ext}" >&6;}
      echo "fcflags_opt_01_macroavnew_ext='${fcflags_opt_01_macroavnew_ext}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 01_macroavnew_ext"
    fi
  else
    if test "${fcflags_opt_01_macroavnew_ext}" != ""; then
      fcflags_opt_01_macroavnew_ext=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_01_macroavnew_ext overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_01_macroavnew_ext overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_01_qespresso_ext}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_01_qespresso_ext="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 01_qespresso_ext is ${fcflags_opt_01_qespresso_ext}" >&5
$as_echo "$as_me: optimization for 01_qespresso_ext is ${fcflags_opt_01_qespresso_ext}" >&6;}
      echo "fcflags_opt_01_qespresso_ext='${fcflags_opt_01_qespresso_ext}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 01_qespresso_ext"
    fi
  else
    if test "${fcflags_opt_01_qespresso_ext}" != ""; then
      fcflags_opt_01_qespresso_ext=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_01_qespresso_ext overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_01_qespresso_ext overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_02_clib}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_02_clib="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 02_clib is ${fcflags_opt_02_clib}" >&5
$as_echo "$as_me: optimization for 02_clib is ${fcflags_opt_02_clib}" >&6;}
      echo "fcflags_opt_02_clib='${fcflags_opt_02_clib}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 02_clib"
    fi
  else
    if test "${fcflags_opt_02_clib}" != ""; then
      fcflags_opt_02_clib=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_02_clib overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_02_clib overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_10_defs}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_10_defs="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 10_defs is ${fcflags_opt_10_defs}" >&5
$as_echo "$as_me: optimization for 10_defs is ${fcflags_opt_10_defs}" >&6;}
      echo "fcflags_opt_10_defs='${fcflags_opt_10_defs}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 10_defs"
    fi
  else
    if test "${fcflags_opt_10_defs}" != ""; then
      fcflags_opt_10_defs=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_10_defs overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_10_defs overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_12_hide_mpi}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_12_hide_mpi="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 12_hide_mpi is ${fcflags_opt_12_hide_mpi}" >&5
$as_echo "$as_me: optimization for 12_hide_mpi is ${fcflags_opt_12_hide_mpi}" >&6;}
      echo "fcflags_opt_12_hide_mpi='${fcflags_opt_12_hide_mpi}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 12_hide_mpi"
    fi
  else
    if test "${fcflags_opt_12_hide_mpi}" != ""; then
      fcflags_opt_12_hide_mpi=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_12_hide_mpi overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_12_hide_mpi overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_14_hidewrite}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_14_hidewrite="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 14_hidewrite is ${fcflags_opt_14_hidewrite}" >&5
$as_echo "$as_me: optimization for 14_hidewrite is ${fcflags_opt_14_hidewrite}" >&6;}
      echo "fcflags_opt_14_hidewrite='${fcflags_opt_14_hidewrite}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 14_hidewrite"
    fi
  else
    if test "${fcflags_opt_14_hidewrite}" != ""; then
      fcflags_opt_14_hidewrite=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_14_hidewrite overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_14_hidewrite overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_15_gpu_toolbox}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_15_gpu_toolbox="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 15_gpu_toolbox is ${fcflags_opt_15_gpu_toolbox}" >&5
$as_echo "$as_me: optimization for 15_gpu_toolbox is ${fcflags_opt_15_gpu_toolbox}" >&6;}
      echo "fcflags_opt_15_gpu_toolbox='${fcflags_opt_15_gpu_toolbox}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 15_gpu_toolbox"
    fi
  else
    if test "${fcflags_opt_15_gpu_toolbox}" != ""; then
      fcflags_opt_15_gpu_toolbox=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_15_gpu_toolbox overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_15_gpu_toolbox overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_16_hideleave}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_16_hideleave="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 16_hideleave is ${fcflags_opt_16_hideleave}" >&5
$as_echo "$as_me: optimization for 16_hideleave is ${fcflags_opt_16_hideleave}" >&6;}
      echo "fcflags_opt_16_hideleave='${fcflags_opt_16_hideleave}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 16_hideleave"
    fi
  else
    if test "${fcflags_opt_16_hideleave}" != ""; then
      fcflags_opt_16_hideleave=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_16_hideleave overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_16_hideleave overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_18_timing}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_18_timing="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 18_timing is ${fcflags_opt_18_timing}" >&5
$as_echo "$as_me: optimization for 18_timing is ${fcflags_opt_18_timing}" >&6;}
      echo "fcflags_opt_18_timing='${fcflags_opt_18_timing}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 18_timing"
    fi
  else
    if test "${fcflags_opt_18_timing}" != ""; then
      fcflags_opt_18_timing=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_18_timing overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_18_timing overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_27_toolbox_oop}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_27_toolbox_oop="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 27_toolbox_oop is ${fcflags_opt_27_toolbox_oop}" >&5
$as_echo "$as_me: optimization for 27_toolbox_oop is ${fcflags_opt_27_toolbox_oop}" >&6;}
      echo "fcflags_opt_27_toolbox_oop='${fcflags_opt_27_toolbox_oop}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 27_toolbox_oop"
    fi
  else
    if test "${fcflags_opt_27_toolbox_oop}" != ""; then
      fcflags_opt_27_toolbox_oop=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_27_toolbox_oop overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_27_toolbox_oop overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_28_numeric_noabirule}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_28_numeric_noabirule="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 28_numeric_noabirule is ${fcflags_opt_28_numeric_noabirule}" >&5
$as_echo "$as_me: optimization for 28_numeric_noabirule is ${fcflags_opt_28_numeric_noabirule}" >&6;}
      echo "fcflags_opt_28_numeric_noabirule='${fcflags_opt_28_numeric_noabirule}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 28_numeric_noabirule"
    fi
  else
    if test "${fcflags_opt_28_numeric_noabirule}" != ""; then
      fcflags_opt_28_numeric_noabirule=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_28_numeric_noabirule overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_28_numeric_noabirule overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_32_contract}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_32_contract="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 32_contract is ${fcflags_opt_32_contract}" >&5
$as_echo "$as_me: optimization for 32_contract is ${fcflags_opt_32_contract}" >&6;}
      echo "fcflags_opt_32_contract='${fcflags_opt_32_contract}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 32_contract"
    fi
  else
    if test "${fcflags_opt_32_contract}" != ""; then
      fcflags_opt_32_contract=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_32_contract overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_32_contract overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_32_util}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_32_util="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 32_util is ${fcflags_opt_32_util}" >&5
$as_echo "$as_me: optimization for 32_util is ${fcflags_opt_32_util}" >&6;}
      echo "fcflags_opt_32_util='${fcflags_opt_32_util}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 32_util"
    fi
  else
    if test "${fcflags_opt_32_util}" != ""; then
      fcflags_opt_32_util=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_32_util overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_32_util overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_42_geometry}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_42_geometry="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 42_geometry is ${fcflags_opt_42_geometry}" >&5
$as_echo "$as_me: optimization for 42_geometry is ${fcflags_opt_42_geometry}" >&6;}
      echo "fcflags_opt_42_geometry='${fcflags_opt_42_geometry}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 42_geometry"
    fi
  else
    if test "${fcflags_opt_42_geometry}" != ""; then
      fcflags_opt_42_geometry=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_42_geometry overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_42_geometry overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_42_geomoptim}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_42_geomoptim="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 42_geomoptim is ${fcflags_opt_42_geomoptim}" >&5
$as_echo "$as_me: optimization for 42_geomoptim is ${fcflags_opt_42_geomoptim}" >&6;}
      echo "fcflags_opt_42_geomoptim='${fcflags_opt_42_geomoptim}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 42_geomoptim"
    fi
  else
    if test "${fcflags_opt_42_geomoptim}" != ""; then
      fcflags_opt_42_geomoptim=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_42_geomoptim overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_42_geomoptim overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_42_nlstrain}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_42_nlstrain="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 42_nlstrain is ${fcflags_opt_42_nlstrain}" >&5
$as_echo "$as_me: optimization for 42_nlstrain is ${fcflags_opt_42_nlstrain}" >&6;}
      echo "fcflags_opt_42_nlstrain='${fcflags_opt_42_nlstrain}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 42_nlstrain"
    fi
  else
    if test "${fcflags_opt_42_nlstrain}" != ""; then
      fcflags_opt_42_nlstrain=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_42_nlstrain overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_42_nlstrain overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_42_parser}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_42_parser="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 42_parser is ${fcflags_opt_42_parser}" >&5
$as_echo "$as_me: optimization for 42_parser is ${fcflags_opt_42_parser}" >&6;}
      echo "fcflags_opt_42_parser='${fcflags_opt_42_parser}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 42_parser"
    fi
  else
    if test "${fcflags_opt_42_parser}" != ""; then
      fcflags_opt_42_parser=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_42_parser overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_42_parser overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_43_ptgroups}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_43_ptgroups="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 43_ptgroups is ${fcflags_opt_43_ptgroups}" >&5
$as_echo "$as_me: optimization for 43_ptgroups is ${fcflags_opt_43_ptgroups}" >&6;}
      echo "fcflags_opt_43_ptgroups='${fcflags_opt_43_ptgroups}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 43_ptgroups"
    fi
  else
    if test "${fcflags_opt_43_ptgroups}" != ""; then
      fcflags_opt_43_ptgroups=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_43_ptgroups overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_43_ptgroups overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_45_psp_parser}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_45_psp_parser="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 45_psp_parser is ${fcflags_opt_45_psp_parser}" >&5
$as_echo "$as_me: optimization for 45_psp_parser is ${fcflags_opt_45_psp_parser}" >&6;}
      echo "fcflags_opt_45_psp_parser='${fcflags_opt_45_psp_parser}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 45_psp_parser"
    fi
  else
    if test "${fcflags_opt_45_psp_parser}" != ""; then
      fcflags_opt_45_psp_parser=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_45_psp_parser overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_45_psp_parser overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_47_xml}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_47_xml="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 47_xml is ${fcflags_opt_47_xml}" >&5
$as_echo "$as_me: optimization for 47_xml is ${fcflags_opt_47_xml}" >&6;}
      echo "fcflags_opt_47_xml='${fcflags_opt_47_xml}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 47_xml"
    fi
  else
    if test "${fcflags_opt_47_xml}" != ""; then
      fcflags_opt_47_xml=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_47_xml overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_47_xml overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_49_gw_toolbox_oop}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_49_gw_toolbox_oop="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 49_gw_toolbox_oop is ${fcflags_opt_49_gw_toolbox_oop}" >&5
$as_echo "$as_me: optimization for 49_gw_toolbox_oop is ${fcflags_opt_49_gw_toolbox_oop}" >&6;}
      echo "fcflags_opt_49_gw_toolbox_oop='${fcflags_opt_49_gw_toolbox_oop}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 49_gw_toolbox_oop"
    fi
  else
    if test "${fcflags_opt_49_gw_toolbox_oop}" != ""; then
      fcflags_opt_49_gw_toolbox_oop=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_49_gw_toolbox_oop overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_49_gw_toolbox_oop overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_50_abitypes_defs}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_50_abitypes_defs="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 50_abitypes_defs is ${fcflags_opt_50_abitypes_defs}" >&5
$as_echo "$as_me: optimization for 50_abitypes_defs is ${fcflags_opt_50_abitypes_defs}" >&6;}
      echo "fcflags_opt_50_abitypes_defs='${fcflags_opt_50_abitypes_defs}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 50_abitypes_defs"
    fi
  else
    if test "${fcflags_opt_50_abitypes_defs}" != ""; then
      fcflags_opt_50_abitypes_defs=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_50_abitypes_defs overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_50_abitypes_defs overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_51_manage_cuda}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_51_manage_cuda="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 51_manage_cuda is ${fcflags_opt_51_manage_cuda}" >&5
$as_echo "$as_me: optimization for 51_manage_cuda is ${fcflags_opt_51_manage_cuda}" >&6;}
      echo "fcflags_opt_51_manage_cuda='${fcflags_opt_51_manage_cuda}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 51_manage_cuda"
    fi
  else
    if test "${fcflags_opt_51_manage_cuda}" != ""; then
      fcflags_opt_51_manage_cuda=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_51_manage_cuda overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_51_manage_cuda overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_51_manage_mpi}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_51_manage_mpi="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 51_manage_mpi is ${fcflags_opt_51_manage_mpi}" >&5
$as_echo "$as_me: optimization for 51_manage_mpi is ${fcflags_opt_51_manage_mpi}" >&6;}
      echo "fcflags_opt_51_manage_mpi='${fcflags_opt_51_manage_mpi}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 51_manage_mpi"
    fi
  else
    if test "${fcflags_opt_51_manage_mpi}" != ""; then
      fcflags_opt_51_manage_mpi=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_51_manage_mpi overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_51_manage_mpi overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_52_fft_mpi_noabirule}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_52_fft_mpi_noabirule="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 52_fft_mpi_noabirule is ${fcflags_opt_52_fft_mpi_noabirule}" >&5
$as_echo "$as_me: optimization for 52_fft_mpi_noabirule is ${fcflags_opt_52_fft_mpi_noabirule}" >&6;}
      echo "fcflags_opt_52_fft_mpi_noabirule='${fcflags_opt_52_fft_mpi_noabirule}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 52_fft_mpi_noabirule"
    fi
  else
    if test "${fcflags_opt_52_fft_mpi_noabirule}" != ""; then
      fcflags_opt_52_fft_mpi_noabirule=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_52_fft_mpi_noabirule overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_52_fft_mpi_noabirule overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_53_abiutil}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_53_abiutil="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 53_abiutil is ${fcflags_opt_53_abiutil}" >&5
$as_echo "$as_me: optimization for 53_abiutil is ${fcflags_opt_53_abiutil}" >&6;}
      echo "fcflags_opt_53_abiutil='${fcflags_opt_53_abiutil}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 53_abiutil"
    fi
  else
    if test "${fcflags_opt_53_abiutil}" != ""; then
      fcflags_opt_53_abiutil=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_53_abiutil overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_53_abiutil overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_53_ffts}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_53_ffts="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 53_ffts is ${fcflags_opt_53_ffts}" >&5
$as_echo "$as_me: optimization for 53_ffts is ${fcflags_opt_53_ffts}" >&6;}
      echo "fcflags_opt_53_ffts='${fcflags_opt_53_ffts}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 53_ffts"
    fi
  else
    if test "${fcflags_opt_53_ffts}" != ""; then
      fcflags_opt_53_ffts=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_53_ffts overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_53_ffts overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_53_spacepar}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_53_spacepar="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 53_spacepar is ${fcflags_opt_53_spacepar}" >&5
$as_echo "$as_me: optimization for 53_spacepar is ${fcflags_opt_53_spacepar}" >&6;}
      echo "fcflags_opt_53_spacepar='${fcflags_opt_53_spacepar}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 53_spacepar"
    fi
  else
    if test "${fcflags_opt_53_spacepar}" != ""; then
      fcflags_opt_53_spacepar=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_53_spacepar overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_53_spacepar overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_56_recipspace}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_56_recipspace="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 56_recipspace is ${fcflags_opt_56_recipspace}" >&5
$as_echo "$as_me: optimization for 56_recipspace is ${fcflags_opt_56_recipspace}" >&6;}
      echo "fcflags_opt_56_recipspace='${fcflags_opt_56_recipspace}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 56_recipspace"
    fi
  else
    if test "${fcflags_opt_56_recipspace}" != ""; then
      fcflags_opt_56_recipspace=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_56_recipspace overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_56_recipspace overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_56_xc}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_56_xc="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 56_xc is ${fcflags_opt_56_xc}" >&5
$as_echo "$as_me: optimization for 56_xc is ${fcflags_opt_56_xc}" >&6;}
      echo "fcflags_opt_56_xc='${fcflags_opt_56_xc}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 56_xc"
    fi
  else
    if test "${fcflags_opt_56_xc}" != ""; then
      fcflags_opt_56_xc=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_56_xc overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_56_xc overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_57_iovars}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_57_iovars="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 57_iovars is ${fcflags_opt_57_iovars}" >&5
$as_echo "$as_me: optimization for 57_iovars is ${fcflags_opt_57_iovars}" >&6;}
      echo "fcflags_opt_57_iovars='${fcflags_opt_57_iovars}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 57_iovars"
    fi
  else
    if test "${fcflags_opt_57_iovars}" != ""; then
      fcflags_opt_57_iovars=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_57_iovars overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_57_iovars overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_59_io_mpi}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_59_io_mpi="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 59_io_mpi is ${fcflags_opt_59_io_mpi}" >&5
$as_echo "$as_me: optimization for 59_io_mpi is ${fcflags_opt_59_io_mpi}" >&6;}
      echo "fcflags_opt_59_io_mpi='${fcflags_opt_59_io_mpi}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 59_io_mpi"
    fi
  else
    if test "${fcflags_opt_59_io_mpi}" != ""; then
      fcflags_opt_59_io_mpi=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_59_io_mpi overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_59_io_mpi overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_61_ionetcdf}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_61_ionetcdf="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 61_ionetcdf is ${fcflags_opt_61_ionetcdf}" >&5
$as_echo "$as_me: optimization for 61_ionetcdf is ${fcflags_opt_61_ionetcdf}" >&6;}
      echo "fcflags_opt_61_ionetcdf='${fcflags_opt_61_ionetcdf}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 61_ionetcdf"
    fi
  else
    if test "${fcflags_opt_61_ionetcdf}" != ""; then
      fcflags_opt_61_ionetcdf=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_61_ionetcdf overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_61_ionetcdf overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_62_cg_noabirule}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_62_cg_noabirule="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 62_cg_noabirule is ${fcflags_opt_62_cg_noabirule}" >&5
$as_echo "$as_me: optimization for 62_cg_noabirule is ${fcflags_opt_62_cg_noabirule}" >&6;}
      echo "fcflags_opt_62_cg_noabirule='${fcflags_opt_62_cg_noabirule}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 62_cg_noabirule"
    fi
  else
    if test "${fcflags_opt_62_cg_noabirule}" != ""; then
      fcflags_opt_62_cg_noabirule=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_62_cg_noabirule overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_62_cg_noabirule overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_62_iowfdenpot}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_62_iowfdenpot="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 62_iowfdenpot is ${fcflags_opt_62_iowfdenpot}" >&5
$as_echo "$as_me: optimization for 62_iowfdenpot is ${fcflags_opt_62_iowfdenpot}" >&6;}
      echo "fcflags_opt_62_iowfdenpot='${fcflags_opt_62_iowfdenpot}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 62_iowfdenpot"
    fi
  else
    if test "${fcflags_opt_62_iowfdenpot}" != ""; then
      fcflags_opt_62_iowfdenpot=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_62_iowfdenpot overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_62_iowfdenpot overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_62_occeig}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_62_occeig="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 62_occeig is ${fcflags_opt_62_occeig}" >&5
$as_echo "$as_me: optimization for 62_occeig is ${fcflags_opt_62_occeig}" >&6;}
      echo "fcflags_opt_62_occeig='${fcflags_opt_62_occeig}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 62_occeig"
    fi
  else
    if test "${fcflags_opt_62_occeig}" != ""; then
      fcflags_opt_62_occeig=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_62_occeig overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_62_occeig overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_62_poisson}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_62_poisson="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 62_poisson is ${fcflags_opt_62_poisson}" >&5
$as_echo "$as_me: optimization for 62_poisson is ${fcflags_opt_62_poisson}" >&6;}
      echo "fcflags_opt_62_poisson='${fcflags_opt_62_poisson}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 62_poisson"
    fi
  else
    if test "${fcflags_opt_62_poisson}" != ""; then
      fcflags_opt_62_poisson=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_62_poisson overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_62_poisson overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_62_wvl_wfs}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_62_wvl_wfs="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 62_wvl_wfs is ${fcflags_opt_62_wvl_wfs}" >&5
$as_echo "$as_me: optimization for 62_wvl_wfs is ${fcflags_opt_62_wvl_wfs}" >&6;}
      echo "fcflags_opt_62_wvl_wfs='${fcflags_opt_62_wvl_wfs}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 62_wvl_wfs"
    fi
  else
    if test "${fcflags_opt_62_wvl_wfs}" != ""; then
      fcflags_opt_62_wvl_wfs=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_62_wvl_wfs overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_62_wvl_wfs overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_63_bader}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_63_bader="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 63_bader is ${fcflags_opt_63_bader}" >&5
$as_echo "$as_me: optimization for 63_bader is ${fcflags_opt_63_bader}" >&6;}
      echo "fcflags_opt_63_bader='${fcflags_opt_63_bader}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 63_bader"
    fi
  else
    if test "${fcflags_opt_63_bader}" != ""; then
      fcflags_opt_63_bader=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_63_bader overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_63_bader overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_64_atompaw}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_64_atompaw="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 64_atompaw is ${fcflags_opt_64_atompaw}" >&5
$as_echo "$as_me: optimization for 64_atompaw is ${fcflags_opt_64_atompaw}" >&6;}
      echo "fcflags_opt_64_atompaw='${fcflags_opt_64_atompaw}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 64_atompaw"
    fi
  else
    if test "${fcflags_opt_64_atompaw}" != ""; then
      fcflags_opt_64_atompaw=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_64_atompaw overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_64_atompaw overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_65_nonlocal}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_65_nonlocal="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 65_nonlocal is ${fcflags_opt_65_nonlocal}" >&5
$as_echo "$as_me: optimization for 65_nonlocal is ${fcflags_opt_65_nonlocal}" >&6;}
      echo "fcflags_opt_65_nonlocal='${fcflags_opt_65_nonlocal}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 65_nonlocal"
    fi
  else
    if test "${fcflags_opt_65_nonlocal}" != ""; then
      fcflags_opt_65_nonlocal=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_65_nonlocal overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_65_nonlocal overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_65_psp}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_65_psp="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 65_psp is ${fcflags_opt_65_psp}" >&5
$as_echo "$as_me: optimization for 65_psp is ${fcflags_opt_65_psp}" >&6;}
      echo "fcflags_opt_65_psp='${fcflags_opt_65_psp}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 65_psp"
    fi
  else
    if test "${fcflags_opt_65_psp}" != ""; then
      fcflags_opt_65_psp=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_65_psp overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_65_psp overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_66_paw}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_66_paw="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 66_paw is ${fcflags_opt_66_paw}" >&5
$as_echo "$as_me: optimization for 66_paw is ${fcflags_opt_66_paw}" >&6;}
      echo "fcflags_opt_66_paw='${fcflags_opt_66_paw}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 66_paw"
    fi
  else
    if test "${fcflags_opt_66_paw}" != ""; then
      fcflags_opt_66_paw=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_66_paw overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_66_paw overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_66_wfs}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_66_wfs="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 66_wfs is ${fcflags_opt_66_wfs}" >&5
$as_echo "$as_me: optimization for 66_wfs is ${fcflags_opt_66_wfs}" >&6;}
      echo "fcflags_opt_66_wfs='${fcflags_opt_66_wfs}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 66_wfs"
    fi
  else
    if test "${fcflags_opt_66_wfs}" != ""; then
      fcflags_opt_66_wfs=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_66_wfs overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_66_wfs overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_67_common}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_67_common="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 67_common is ${fcflags_opt_67_common}" >&5
$as_echo "$as_me: optimization for 67_common is ${fcflags_opt_67_common}" >&6;}
      echo "fcflags_opt_67_common='${fcflags_opt_67_common}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 67_common"
    fi
  else
    if test "${fcflags_opt_67_common}" != ""; then
      fcflags_opt_67_common=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_67_common overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_67_common overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_68_dmft}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_68_dmft="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 68_dmft is ${fcflags_opt_68_dmft}" >&5
$as_echo "$as_me: optimization for 68_dmft is ${fcflags_opt_68_dmft}" >&6;}
      echo "fcflags_opt_68_dmft='${fcflags_opt_68_dmft}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 68_dmft"
    fi
  else
    if test "${fcflags_opt_68_dmft}" != ""; then
      fcflags_opt_68_dmft=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_68_dmft overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_68_dmft overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_68_gw}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_68_gw="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 68_gw is ${fcflags_opt_68_gw}" >&5
$as_echo "$as_me: optimization for 68_gw is ${fcflags_opt_68_gw}" >&6;}
      echo "fcflags_opt_68_gw='${fcflags_opt_68_gw}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 68_gw"
    fi
  else
    if test "${fcflags_opt_68_gw}" != ""; then
      fcflags_opt_68_gw=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_68_gw overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_68_gw overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_68_recursion}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_68_recursion="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 68_recursion is ${fcflags_opt_68_recursion}" >&5
$as_echo "$as_me: optimization for 68_recursion is ${fcflags_opt_68_recursion}" >&6;}
      echo "fcflags_opt_68_recursion='${fcflags_opt_68_recursion}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 68_recursion"
    fi
  else
    if test "${fcflags_opt_68_recursion}" != ""; then
      fcflags_opt_68_recursion=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_68_recursion overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_68_recursion overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_68_rsprc}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_68_rsprc="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 68_rsprc is ${fcflags_opt_68_rsprc}" >&5
$as_echo "$as_me: optimization for 68_rsprc is ${fcflags_opt_68_rsprc}" >&6;}
      echo "fcflags_opt_68_rsprc='${fcflags_opt_68_rsprc}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 68_rsprc"
    fi
  else
    if test "${fcflags_opt_68_rsprc}" != ""; then
      fcflags_opt_68_rsprc=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_68_rsprc overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_68_rsprc overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_69_bse}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_69_bse="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 69_bse is ${fcflags_opt_69_bse}" >&5
$as_echo "$as_me: optimization for 69_bse is ${fcflags_opt_69_bse}" >&6;}
      echo "fcflags_opt_69_bse='${fcflags_opt_69_bse}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 69_bse"
    fi
  else
    if test "${fcflags_opt_69_bse}" != ""; then
      fcflags_opt_69_bse=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_69_bse overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_69_bse overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_72_response}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_72_response="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 72_response is ${fcflags_opt_72_response}" >&5
$as_echo "$as_me: optimization for 72_response is ${fcflags_opt_72_response}" >&6;}
      echo "fcflags_opt_72_response='${fcflags_opt_72_response}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 72_response"
    fi
  else
    if test "${fcflags_opt_72_response}" != ""; then
      fcflags_opt_72_response=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_72_response overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_72_response overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_77_ddb}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_77_ddb="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 77_ddb is ${fcflags_opt_77_ddb}" >&5
$as_echo "$as_me: optimization for 77_ddb is ${fcflags_opt_77_ddb}" >&6;}
      echo "fcflags_opt_77_ddb='${fcflags_opt_77_ddb}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 77_ddb"
    fi
  else
    if test "${fcflags_opt_77_ddb}" != ""; then
      fcflags_opt_77_ddb=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_77_ddb overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_77_ddb overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_77_lwf}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_77_lwf="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 77_lwf is ${fcflags_opt_77_lwf}" >&5
$as_echo "$as_me: optimization for 77_lwf is ${fcflags_opt_77_lwf}" >&6;}
      echo "fcflags_opt_77_lwf='${fcflags_opt_77_lwf}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 77_lwf"
    fi
  else
    if test "${fcflags_opt_77_lwf}" != ""; then
      fcflags_opt_77_lwf=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_77_lwf overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_77_lwf overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_77_suscep}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_77_suscep="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 77_suscep is ${fcflags_opt_77_suscep}" >&5
$as_echo "$as_me: optimization for 77_suscep is ${fcflags_opt_77_suscep}" >&6;}
      echo "fcflags_opt_77_suscep='${fcflags_opt_77_suscep}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 77_suscep"
    fi
  else
    if test "${fcflags_opt_77_suscep}" != ""; then
      fcflags_opt_77_suscep=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_77_suscep overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_77_suscep overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_79_seqpar_mpi}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_79_seqpar_mpi="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 79_seqpar_mpi is ${fcflags_opt_79_seqpar_mpi}" >&5
$as_echo "$as_me: optimization for 79_seqpar_mpi is ${fcflags_opt_79_seqpar_mpi}" >&6;}
      echo "fcflags_opt_79_seqpar_mpi='${fcflags_opt_79_seqpar_mpi}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 79_seqpar_mpi"
    fi
  else
    if test "${fcflags_opt_79_seqpar_mpi}" != ""; then
      fcflags_opt_79_seqpar_mpi=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_79_seqpar_mpi overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_79_seqpar_mpi overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_83_cut3d}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_83_cut3d="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 83_cut3d is ${fcflags_opt_83_cut3d}" >&5
$as_echo "$as_me: optimization for 83_cut3d is ${fcflags_opt_83_cut3d}" >&6;}
      echo "fcflags_opt_83_cut3d='${fcflags_opt_83_cut3d}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 83_cut3d"
    fi
  else
    if test "${fcflags_opt_83_cut3d}" != ""; then
      fcflags_opt_83_cut3d=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_83_cut3d overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_83_cut3d overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_93_rdm}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_93_rdm="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 93_rdm is ${fcflags_opt_93_rdm}" >&5
$as_echo "$as_me: optimization for 93_rdm is ${fcflags_opt_93_rdm}" >&6;}
      echo "fcflags_opt_93_rdm='${fcflags_opt_93_rdm}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 93_rdm"
    fi
  else
    if test "${fcflags_opt_93_rdm}" != ""; then
      fcflags_opt_93_rdm=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_93_rdm overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_93_rdm overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_95_drive}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_95_drive="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 95_drive is ${fcflags_opt_95_drive}" >&5
$as_echo "$as_me: optimization for 95_drive is ${fcflags_opt_95_drive}" >&6;}
      echo "fcflags_opt_95_drive='${fcflags_opt_95_drive}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 95_drive"
    fi
  else
    if test "${fcflags_opt_95_drive}" != ""; then
      fcflags_opt_95_drive=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_95_drive overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_95_drive overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_linalg}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_linalg="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for linalg is ${fcflags_opt_linalg}" >&5
$as_echo "$as_me: optimization for linalg is ${fcflags_opt_linalg}" >&6;}
      echo "fcflags_opt_linalg='${fcflags_opt_linalg}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} linalg"
    fi
  else
    if test "${fcflags_opt_linalg}" != ""; then
      fcflags_opt_linalg=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_linalg overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_linalg overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_bigdft}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_bigdft="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for bigdft is ${fcflags_opt_bigdft}" >&5
$as_echo "$as_me: optimization for bigdft is ${fcflags_opt_bigdft}" >&6;}
      echo "fcflags_opt_bigdft='${fcflags_opt_bigdft}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} bigdft"
    fi
  else
    if test "${fcflags_opt_bigdft}" != ""; then
      fcflags_opt_bigdft=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_bigdft overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_bigdft overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_etsf_io}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_etsf_io="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for etsf_io is ${fcflags_opt_etsf_io}" >&5
$as_echo "$as_me: optimization for etsf_io is ${fcflags_opt_etsf_io}" >&6;}
      echo "fcflags_opt_etsf_io='${fcflags_opt_etsf_io}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} etsf_io"
    fi
  else
    if test "${fcflags_opt_etsf_io}" != ""; then
      fcflags_opt_etsf_io=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_etsf_io overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_etsf_io overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_fox}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_fox="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for fox is ${fcflags_opt_fox}" >&5
$as_echo "$as_me: optimization for fox is ${fcflags_opt_fox}" >&6;}
      echo "fcflags_opt_fox='${fcflags_opt_fox}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} fox"
    fi
  else
    if test "${fcflags_opt_fox}" != ""; then
      fcflags_opt_fox=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_fox overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_fox overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_libxc}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_libxc="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for libxc is ${fcflags_opt_libxc}" >&5
$as_echo "$as_me: optimization for libxc is ${fcflags_opt_libxc}" >&6;}
      echo "fcflags_opt_libxc='${fcflags_opt_libxc}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} libxc"
    fi
  else
    if test "${fcflags_opt_libxc}" != ""; then
      fcflags_opt_libxc=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_libxc overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_libxc overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_netcdf}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_netcdf="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for netcdf is ${fcflags_opt_netcdf}" >&5
$as_echo "$as_me: optimization for netcdf is ${fcflags_opt_netcdf}" >&6;}
      echo "fcflags_opt_netcdf='${fcflags_opt_netcdf}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} netcdf"
    fi
  else
    if test "${fcflags_opt_netcdf}" != ""; then
      fcflags_opt_netcdf=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_netcdf overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_netcdf overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_wannier90}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_wannier90="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for wannier90 is ${fcflags_opt_wannier90}" >&5
$as_echo "$as_me: optimization for wannier90 is ${fcflags_opt_wannier90}" >&6;}
      echo "fcflags_opt_wannier90='${fcflags_opt_wannier90}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} wannier90"
    fi
  else
    if test "${fcflags_opt_wannier90}" != ""; then
      fcflags_opt_wannier90=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_wannier90 overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_wannier90 overriden by FCFLAGS" >&6;}
    fi
  fi


    if test "${FCFLAGS}" = ""; then
    if test "${fcflags_opt_98_main}" = "" -o "${enable_optim}" = "no"; then
      fcflags_opt_98_main="${fcflags_opt_default}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: optimization for 98_main is ${fcflags_opt_98_main}" >&5
$as_echo "$as_me: optimization for 98_main is ${fcflags_opt_98_main}" >&6;}
      echo "fcflags_opt_98_main='${fcflags_opt_98_main}'" >>config.optim
      fcflags_opt_dirlist="${fcflags_opt_dirlist} 98_main"
    fi
  else
    if test "${fcflags_opt_98_main}" != ""; then
      fcflags_opt_98_main=""
      { $as_echo "$as_me:${as_lineno-$LINENO}: fcflags_opt_98_main overriden by FCFLAGS" >&5
$as_echo "$as_me: fcflags_opt_98_main overriden by FCFLAGS" >&6;}
    fi
  fi


  echo "fcflags_opt_dirlist='${fcflags_opt_dirlist}'" >>config.optim


# ---------------------------------------------------------------------------- #

#
# 64-bit support
#
# NOTES:
#
#   * This step requires that the hints have been looked for.
#
#   * Please do not try to set-up the *_64BITS variables manually, as they
#     will systematically be overwritten.
#



  abi_sec_title="64-bit support"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Display status
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit architecture" >&5
$as_echo_n "checking for a 64-bit architecture... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_cpu_64bits}" >&5
$as_echo "${abi_cpu_64bits}" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use 64-bit flags" >&5
$as_echo_n "checking whether to use 64-bit flags... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_64bit_flags}" >&5
$as_echo "${enable_64bit_flags}" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-defined 64-bit flags" >&5
$as_echo_n "checking for user-defined 64-bit flags... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_64bit_flags}" >&5
$as_echo "${with_64bit_flags}" >&6; }

# C preprocessing
if test "${enable_64bit_flags}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit C preprocessor flags" >&5
$as_echo_n "checking for 64-bit C preprocessor flags... " >&6; }
  if test "${CPPFLAGS_64BITS}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CPPFLAGS_64BITS}" >&5
$as_echo "${CPPFLAGS_64BITS}" >&6; }
    CPP="${CPP} ${CPPFLAGS_64BITS}"
  fi
else
  CPPFLAGS_64BITS=""
fi

# C compilation
if test "${enable_64bit_flags}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit C flags" >&5
$as_echo_n "checking for 64-bit C flags... " >&6; }
  if test "${CFLAGS_64BITS}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS_64BITS}" >&5
$as_echo "${CFLAGS_64BITS}" >&6; }
    CC="${CC} ${CFLAGS_64BITS}"
  fi
else
  CFLAGS_64BITS=""
fi

# C++ preprocessing
if test "${XPP}" != ""; then
  if test "${enable_64bit_flags}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit C++ preprocessor flags" >&5
$as_echo_n "checking for 64-bit C++ preprocessor flags... " >&6; }
    if test "${XPPFLAGS_64BITS}" = ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${XPPFLAGS_64BITS}" >&5
$as_echo "${XPPFLAGS_64BITS}" >&6; }
      XPP="${XPP} ${XPPFLAGS_64BITS}"
    fi
  else
    XPPFLAGS_64BITS=""
  fi
fi

# C++ compilation
if test "${CXX}" != ""; then
  if test "${enable_64bit_flags}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit C++ flags" >&5
$as_echo_n "checking for 64-bit C++ flags... " >&6; }
    if test "${CXXFLAGS_64BITS}" = ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CXXFLAGS_64BITS}" >&5
$as_echo "${CXXFLAGS_64BITS}" >&6; }
      CXX="${CXX} ${CXXFLAGS_64BITS}"
    fi
  else
    CXXFLAGS_64BITS=""
  fi
fi

# Fortran preprocessing
if test "${FPP}" != ""; then
  if test "${enable_64bit_flags}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit Fortran preprocessor flags" >&5
$as_echo_n "checking for 64-bit Fortran preprocessor flags... " >&6; }
    if test "${FPPFLAGS_64BITS}" = ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FPPFLAGS_64BITS}" >&5
$as_echo "${FPPFLAGS_64BITS}" >&6; }
      FPP="${FPP} ${FPPFLAGS_64BITS}"
    fi
  else
    FPPFLAGS_64BITS=""
  fi
fi

# Fortran compilation
if test "${enable_64bit_flags}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit Fortran flags" >&5
$as_echo_n "checking for 64-bit Fortran flags... " >&6; }
  if test "${FCFLAGS_64BITS}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FCFLAGS_64BITS}" >&5
$as_echo "${FCFLAGS_64BITS}" >&6; }
    FC="${FC} ${FCFLAGS_64BITS}"
  fi
else
  FCFLAGS_64BITS=""
fi

# Archiver
if test "${enable_64bit_flags}" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit archiver flags" >&5
$as_echo_n "checking for 64-bit archiver flags... " >&6; }
  if test "${ARFLAGS_64BITS}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ARFLAGS_64BITS}" >&5
$as_echo "${ARFLAGS_64BITS}" >&6; }
    AR="${AR} ${ARFLAGS_64BITS}"
  fi
else
  ARFLAGS_64BITS=""
fi

# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #

#
# Save configuration
#



  abi_sec_title="Build flags"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Set-up target and binary package names
# Note: requires knowledge of Fortran compiler

    abi_target_os=`echo ${target_os} | sed -e 's/-.*//'`

  ABINIT_TARGET="${target_cpu}_${abi_target_os}_${abi_fc_vendor}${abi_fc_version}"

cat >>confdefs.h <<_ACEOF
#define ABINIT_TARGET "${ABINIT_TARGET}"
_ACEOF



ABINIT_BINARY_PACKAGE="${PACKAGE}-${VERSION}_${ABINIT_TARGET}"


# Final adjustments for library archiver
test "${ARFLAGS}" = "" && \
  ARFLAGS="${ARFLAGS_64BITS} ${ARFLAGS_DEBUG} ${ARFLAGS_OPTIM} ${ARFLAGS_HINTS} ${ARFLAGS_EXTRA} ${ARFLAGS_CMD}"

# Final adjustments for C
test "${CFLAGS}" = "" && \
  CFLAGS="${CFLAGS_64BITS} ${CFLAGS_DEBUG} ${CFLAGS_OPTIM} ${CFLAGS_HINTS} ${CFLAGS_EXTRA}"
test "${CC_LDFLAGS}" = "" && \
  CC_LDFLAGS="${CC_LDFLAGS_64BITS} ${CC_LDFLAGS_DEBUG} ${CC_LDFLAGS_OPTIM} ${CC_LDFLAGS_HINTS} ${CC_LDFLAGS_EXTRA}"
test "${CC_LIBS}" = "" && \
  CC_LIBS="${CC_LIBS_64BITS} ${CC_LIBS_DEBUG} ${CC_LIBS_OPTIM} ${CC_LIBS_HINTS} ${CC_LIBS_EXTRA}"

# Final adjustments for C++
test "${CXXFLAGS}" = "" && \
  CXXFLAGS="${CXXFLAGS_64BITS} ${CXXFLAGS_DEBUG} ${CXXFLAGS_OPTIM} ${CXXFLAGS_HINTS} ${CXXFLAGS_EXTRA}"
test "${CXX_LDFLAGS}" = "" && \
  CXX_LDFLAGS="${CXX_LDFLAGS_64BITS} ${CXX_LDFLAGS_DEBUG} ${CXX_LDFLAGS_OPTIM} ${CXX_LDFLAGS_HINTS} ${CXX_LDFLAGS_EXTRA}"
test "${CXX_LIBS}" = "" && \
  CXX_LIBS="${CXX_LIBS_64BITS} ${CXX_LIBS_DEBUG} ${CXX_LIBS_OPTIM} ${CXX_LIBS_HINTS} ${CXX_LIBS_EXTRA}"

# Final adjustments for Fortran
# Note: FCFLAGS_OPTIM must not be included (per-directory optimizations)
test "${FCFLAGS}" = "" && \
  FCFLAGS="${FCFLAGS_64BITS} ${FCFLAGS_DEBUG} ${FCFLAGS_HINTS} ${FCFLAGS_EXTRA}"
test "${FC_LDFLAGS}" = "" && \
  FC_LDFLAGS="${FC_LDFLAGS_64BITS} ${FC_LDFLAGS_DEBUG} ${FC_LDFLAGS_OPTIM} ${FC_LDFLAGS_HINTS} ${FC_LDFLAGS_EXTRA}"
test "${FC_LIBS}" = "" && \
  FC_LIBS="${FC_LIBS_64BITS} ${FC_LIBS_DEBUG} ${FC_LIBS_OPTIM} ${FC_LIBS_HINTS} ${FC_LIBS_EXTRA}"

# FIXME: temporary workaround for Macs
if test "${abi_cpu_platform}" = "apple"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${abi_cpu_platform} is not able to handle full link information" >&5
$as_echo "$as_me: WARNING: ${abi_cpu_platform} is not able to handle full link information" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: static builds will fail" >&5
$as_echo "$as_me: WARNING: static builds will fail" >&2;}
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: static builds may be performed" >&5
$as_echo "$as_me: static builds may be performed" >&6;}
  FC_LIBS="${FC_LIBS} ${FCLIBS}"
fi

# Final adjustments for preprocessors
test "${CPPFLAGS}" = "" && \
  CPPFLAGS="${CPPFLAGS_64BITS} ${CPPFLAGS_DEBUG} ${CPPFLAGS_OPTIM} ${CPPFLAGS_HINTS} ${CPPFLAGS_EXTRA}"
test "${XPPFLAGS}" = "" && \
  XPPFLAGS="${XPPFLAGS_64BITS} ${XPPFLAGS_DEBUG} ${XPPFLAGS_OPTIM} ${XPPFLAGS_HINTS} ${XPPFLAGS_EXTRA}"
test "${FPPFLAGS}" = "" -a "${abi_fc_wrap}" = "no" && \
  FPPFLAGS="${FPPFLAGS_64BITS} ${FPPFLAGS_DEBUG} ${FPPFLAGS_OPTIM} ${FPPFLAGS_HINTS} ${FPPFLAGS_EXTRA}"

# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #

#
# Advanced compiler features
#

# Note: these tests have to be performed after the flags have been
#       saved.



  abi_sec_title="Advanced compiler features"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""





      for ac_header in stddef.h stdarg.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   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_header in stdio.h malloc.h math.h termios.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   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_header in errno.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
if test "x$ac_cv_header_errno_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ERRNO_H 1
_ACEOF

fi

done

  for ac_header in mcheck.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "mcheck.h" "ac_cv_header_mcheck_h" "$ac_includes_default"
if test "x$ac_cv_header_mcheck_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MCHECK_H 1
_ACEOF

fi

done





    for ac_func in abort
do :
  ac_fn_c_check_func "$LINENO" "abort" "ac_cv_func_abort"
if test "x$ac_cv_func_abort" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ABORT 1
_ACEOF

fi
done





  # 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:${as_lineno-$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 ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (char)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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 ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (short)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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 ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (int)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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 ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (long)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$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


  # 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:${as_lineno-$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 ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (long long)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$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


  # 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:${as_lineno-$LINENO}: checking size of unsigned int" >&5
$as_echo_n "checking size of unsigned int... " >&6; }
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_unsigned_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (unsigned int)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_unsigned_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_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:${as_lineno-$LINENO}: checking size of unsigned long" >&5
$as_echo_n "checking size of unsigned long... " >&6; }
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_unsigned_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (unsigned long)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_unsigned_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
_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:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
$as_echo_n "checking size of unsigned long long... " >&6; }
if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_unsigned_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (unsigned long long)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_unsigned_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
_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:${as_lineno-$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 ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_float" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (float)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_float=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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 ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_double" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (double)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_double=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$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 ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_double" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (long double)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_long_double=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$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


  # 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:${as_lineno-$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 ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_size_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (size_t)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_size_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$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


  # 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:${as_lineno-$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 ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_ptrdiff_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ as_fn_set_status 77
as_fn_error "cannot compute sizeof (ptrdiff_t)
See \`config.log' for more details." "$LINENO" 5; }; }
   else
     ac_cv_sizeof_ptrdiff_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$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



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if test "${ac_cv_c_const+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2];
  const charset cs;
  /* SunOS 4.1.1 cc rejects this.  */
  char const *const *pcpcc;
  char **ppc;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
  static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in
     an arm of an if-expression whose if-part is not a constant
     expression */
  const char *g = "string";
  pcpcc = &g + (g ? g-g : 0);
  /* HPUX 7.0 cc rejects these. */
  ++pcpcc;
  ppc = (char**) pcpcc;
  pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */
    char *t;
    char const *s = 0 ? (char *) 0 : (char const *) 0;

    *t++ = 0;
    if (s) return 0;
  }
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    int x[] = {25, 17};
    const int *foo = &x[0];
    ++foo;
  }
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    typedef const int *iptr;
    iptr p = 0;
    ++p;
  }
  { /* AIX XL C 1.02.0.0 rejects this saying
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };
    struct s *b; b->j = 5;
  }
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    const int foo = 10;
    if (!foo) return 0;
  }
  return !cs[0] && !zero.x;
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_const=yes
else
  ac_cv_c_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then

$as_echo "#define const /**/" >>confdefs.h

fi

  ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
if test "x$ac_cv_type_size_t" = x""yes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi






    fc_has_iso_c_binding="no"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler provides the iso_c_binding module" >&5
$as_echo_n "checking whether the Fortran compiler provides the iso_c_binding module... " >&6; }

    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

         use iso_c_binding
         implicit none
         integer(c_int) :: ii
         logical :: lbool
         type(c_ptr) :: ptr
         ptr = c_null_ptr
         lbool = c_associated(ptr)


      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_iso_c_binding="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test "${fc_has_iso_c_binding}" = "yes"; then

$as_echo "#define HAVE_FC_ISO_C_BINDING 1" >>confdefs.h

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_iso_c_binding}" >&5
$as_echo "${fc_has_iso_c_binding}" >&6; }


    fc_has_exit="no"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts exit()" >&5
$as_echo_n "checking whether the Fortran compiler accepts exit()... " >&6; }

    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

            call exit(1)

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_exit="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test "${fc_has_exit}" = "yes"; then

$as_echo "#define HAVE_FC_EXIT 1" >>confdefs.h

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_exit}" >&5
$as_echo "${fc_has_exit}" >&6; }


    fc_has_flush="no"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts flush()" >&5
$as_echo_n "checking whether the Fortran compiler accepts flush()... " >&6; }

    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

            call flush()

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_flush="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test "${fc_has_flush}" = "yes"; then

$as_echo "#define HAVE_FC_FLUSH 1" >>confdefs.h

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_flush}" >&5
$as_echo "${fc_has_flush}" >&6; }


    fc_has_flush_="no"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts flush_()" >&5
$as_echo_n "checking whether the Fortran compiler accepts flush_()... " >&6; }

    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

            call flush_()

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_flush_="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test "${fc_has_flush_}" = "yes"; then

$as_echo "#define HAVE_FC_FLUSH_ 1" >>confdefs.h

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_flush_}" >&5
$as_echo "${fc_has_flush_}" >&6; }


    fc_has_gamma="no"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts gamma()" >&5
$as_echo_n "checking whether the Fortran compiler accepts gamma()... " >&6; }

    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
            x = gamma(1.5)

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_gamma="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test "${fc_has_gamma}" = "yes"; then

$as_echo "#define HAVE_FC_GAMMA 1" >>confdefs.h

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_gamma}" >&5
$as_echo "${fc_has_gamma}" >&6; }


    fc_has_getenv="no"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts getenv()" >&5
$as_echo_n "checking whether the Fortran compiler accepts getenv()... " >&6; }

    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

      character(len=255) :: homedir
      call getenv("HOME", homedir)


      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_getenv="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test "${fc_has_getenv}" = "yes"; then

$as_echo "#define HAVE_FC_GETENV 1" >>confdefs.h

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_getenv}" >&5
$as_echo "${fc_has_getenv}" >&6; }


    fc_has_getpid="no"

    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

          call getpid()

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_getpid="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts getpid()" >&5
$as_echo_n "checking whether the Fortran compiler accepts getpid()... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_getpid}" >&5
$as_echo "${fc_has_getpid}" >&6; }
  if test "${fc_has_getpid}" = "yes"; then

$as_echo "#define HAVE_FC_GETPID 1" >>confdefs.h

  fi


    fc_has_null="no"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts the null() intrinsic" >&5
$as_echo_n "checking whether the Fortran compiler accepts the null() intrinsic... " >&6; }

    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


         type test_type
          integer,pointer :: i(:,:) => null()
         end type test_type


      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_null="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test "${fc_has_null}" = "yes"; then

$as_echo "#define HAVE_FC_NULL 1" >>confdefs.h

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_null}" >&5
$as_echo "${fc_has_null}" >&6; }


    fc_has_int_quad="no"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts quadruple integers" >&5
$as_echo_n "checking whether the Fortran compiler accepts quadruple integers... " >&6; }

      if test "${abi_fc_vendor}" != "ibm"; 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

    cat > conftest.$ac_ext <<_ACEOF
      program main

              integer*16 my_int

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_int_quad="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

  fi

  if test "${fc_has_int_quad}" = "yes"; then

$as_echo "#define HAVE_FC_INT_QUAD 1" >>confdefs.h

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_int_quad}" >&5
$as_echo "${fc_has_int_quad}" >&6; }


    fc_has_long_lines="no"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts long lines" >&5
$as_echo_n "checking whether the Fortran compiler accepts long lines... " >&6; }

    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

         write(*,*)'0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' !142

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_long_lines="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  if test "${fc_has_long_lines}" = "yes"; then

$as_echo "#define HAVE_FC_LONG_LINES 1" >>confdefs.h

  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_long_lines}" >&5
$as_echo "${fc_has_long_lines}" >&6; }


    fc_timing="standard"
  fc_has_etime="no"

    if test "${fc_timing}" = "standard"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran compiler accepts etime()" >&5
$as_echo_n "checking whether the Fortran compiler accepts etime()... " >&6; }

        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

            call etime(1)

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  fc_has_etime="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    if test "${fc_has_etime}" = "yes"; then

$as_echo "#define HAVE_FC_ETIME 1" >>confdefs.h

    fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${fc_has_etime}" >&5
$as_echo "${fc_has_etime}" >&6; }

  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C clock for timings" >&5
$as_echo_n "checking whether to use C clock for timings... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_cclock}" >&5
$as_echo "${enable_cclock}" >&6; }
  if test "${enable_cclock}" = "yes"; then

$as_echo "#define HAVE_CCLOCK 1" >>confdefs.h

    fc_timing="cclock"
  fi
   if test "${enable_cclock}" = "yes"; then
  DO_BUILD_CCLOCK_TRUE=
  DO_BUILD_CCLOCK_FALSE='#'
else
  DO_BUILD_CCLOCK_TRUE='#'
  DO_BUILD_CCLOCK_FALSE=
fi






# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #

#
# Connectors to external packages
#

# Note: the order is critical!
#       level 1 ---> MPI
#       level 2 ---> GPU (may require MPI)
#       level 3 ---> LINALG, IO, TIMER (require MPI and GPU)
#       level 4 ---> FFT, MATH (require MPI, GPU, and LINALG)
#       level 5 ---> DFT (may require MPI, GPU, LINALG, IO, FFT and MATH)
#
# Further note: MATH libraries may even depend on LINALG and FFT
#               (wait and see...)



  abi_sec_title="Connectors"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# MPI support



  lib_mpi_fcflags=""
  lib_mpi_ldflags=""
  lib_mpi_incs=""
  lib_mpi_libs=""

    if test "${abi_mpi_complete}" = "yes"; then

    abi_mpi_cc_ok="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports MPI" >&5
$as_echo_n "checking whether the C compiler supports MPI... " >&6; }



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"



    CPPFLAGS="${CPPFLAGS} ${lib_mpi_incs}"
  LDFLAGS="${CC_LDFLAGS}"
  LIBS="${CC_LIBS} ${lib_mpi_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

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include "mpi.h"
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{

      int rc;

      MPI_Init(NULL,NULL);
      rc = MPI_Finalize();

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  abi_mpi_cc_ok="yes"
else
  abi_mpi_cc_ok="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_mpi_cc_ok}" >&5
$as_echo "${abi_mpi_cc_ok}" >&6; }


    abi_mpi_cxx_ok="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports MPI" >&5
$as_echo_n "checking whether the C++ compiler supports MPI... " >&6; }



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"



    CPPFLAGS="${CPPFLAGS} ${lib_mpi_incs}"
  LDFLAGS="${CXX_LDFLAGS}"
  LIBS="${CXX_LIBS} ${lib_mpi_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

  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "mpi.h"
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{

      MPI::Init();
      MPI::Finalize();

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
  abi_mpi_cxx_ok="yes"
else
  abi_mpi_cxx_ok="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_mpi_cxx_ok}" >&5
$as_echo "${abi_mpi_cxx_ok}" >&6; }


    abi_mpi_cxx_ok="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran Compiler supports MPI" >&5
$as_echo_n "checking whether the Fortran Compiler supports MPI... " >&6; }



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"



    CPPFLAGS="${CPPFLAGS} ${lib_mpi_incs}"
  LDFLAGS="${FC_LDFLAGS}"
  LIBS="${FC_LIBS} ${lib_mpi_libs}"

  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

      include "mpif.h"
      integer :: ierr
      call mpi_init(ierr)
      call mpi_finalize(ierr)

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_mpi_fc_ok="yes"
else
  abi_mpi_fc_ok="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"



  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_mpi_fc_ok}" >&5
$as_echo "${abi_mpi_fc_ok}" >&6; }


    if test "${abi_mpi_cc_ok}" = "yes" -a \
                    "${abi_mpi_fc_ok}" = "yes"; then
      abi_mpi_usable="yes"
    fi
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MPI is usable" >&5
$as_echo_n "checking whether MPI is usable... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_mpi_usable}" >&5
$as_echo "${abi_mpi_usable}" >&6; }

    if test "${enable_mpi}" = ""; then
    if test "${abi_mpi_usable}" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: enabling MPI support" >&5
$as_echo "$as_me: enabling MPI support" >&6;}
      enable_mpi="yes"
    else
      if test "${abi_mpi_complete}" = "no"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: disabling MPI support" >&5
$as_echo "$as_me: disabling MPI support" >&6;}
      fi
      enable_mpi="no"
      enable_mpi_io="no"
      enable_mpi_io_test="no"
      enable_mpi_trace="no"
    fi
  else
    if test "${enable_mpi}" = "yes" -a "${abi_mpi_usable}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI support is broken!" >&5
$as_echo "$as_me: WARNING: MPI support is broken!" >&2;}
    fi
  fi

    if test "${enable_mpi_io}" = ""; then
    if test "${enable_mpi}" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: enabling MPI I/O support" >&5
$as_echo "$as_me: enabling MPI I/O support" >&6;}
      enable_mpi_io="yes"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: disabling MPI I/O support" >&5
$as_echo "$as_me: disabling MPI I/O support" >&6;}
      enable_mpi_io="no"
    fi
  else
    if test "${enable_mpi}" = "no" -a "${enable_mpi_io}" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling MPI I/O support since MPI is disabled" >&5
$as_echo "$as_me: WARNING: disabling MPI I/O support since MPI is disabled" >&2;}
      enable_mpi_io="no"
    fi
    if test "${enable_mpi}" = "yes" -a "${enable_mpi_io}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling MPI I/O is not recommended" >&5
$as_echo "$as_me: WARNING: disabling MPI I/O is not recommended" >&2;}
    fi
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build MPI code" >&5
$as_echo_n "checking whether to build MPI code... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_mpi}" >&5
$as_echo "${enable_mpi}" >&6; }

    if test "${enable_mpi}" = "yes"; then


$as_echo "#define HAVE_MPI 1" >>confdefs.h


        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build MPI I/O code" >&5
$as_echo_n "checking whether to build MPI I/O code... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_mpi_io}" >&5
$as_echo "${enable_mpi_io}" >&6; }
    if test "${enable_mpi_io}" = "yes"; then

$as_echo "#define HAVE_MPI_IO 1" >>confdefs.h

    fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build MPI I/O untested features" >&5
$as_echo_n "checking whether to build MPI I/O untested features... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_mpi_io_test}" >&5
$as_echo "${enable_mpi_io_test}" >&6; }
    if test "${enable_mpi_io}" = "yes" -a "${enable_mpi_io_test}" = "yes"; then

$as_echo "#define HAVE_MPI_IO_TEST 1" >>confdefs.h

    fi

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build MPI time tracing code" >&5
$as_echo_n "checking whether to build MPI time tracing code... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_mpi_trace}" >&5
$as_echo "${enable_mpi_trace}" >&6; }
    if test "${enable_mpi_trace}" = "yes"; then

$as_echo "#define HAVE_MPI_TRACE 1" >>confdefs.h

    fi


    abi_mpi_fc_level="none"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which level of MPI is supported by the Fortran compiler" >&5
$as_echo_n "checking which level of MPI is supported by the Fortran compiler... " >&6; }

  if test "${abi_mpi_fc_ok}" = "yes"; then



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"



        CPPFLAGS="${CPPFLAGS} ${lib_mpi_incs}"
    LDFLAGS="${FC_LDFLAGS}"
    LIBS="${FC_LIBS} ${lib_mpi_libs}"

    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

              use mpi
              integer :: ierr
              call mpi_init(ierr)
              call mpi_finalize(ierr)

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_mpi_fc_level="2"
else
  abi_mpi_fc_level="1"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"


  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_mpi_fc_level}" >&5
$as_echo "${abi_mpi_fc_level}" >&6; }


        if test "${abi_mpi_level}" = ""; then
      abi_mpi_level="${abi_mpi_fc_level}"
    else
      { $as_echo "$as_me:${as_lineno-$LINENO}: forcing MPI-${abi_mpi_level} standard support" >&5
$as_echo "$as_me: forcing MPI-${abi_mpi_level} standard support" >&6;}
      if test "${abi_mpi_level}" != "${abi_mpi_fc_level}"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: detected MPI-${abi_mpi_fc_level} support but using MPI-${abi_mpi_level} instructions" >&5
$as_echo "$as_me: WARNING: detected MPI-${abi_mpi_fc_level} support but using MPI-${abi_mpi_level} instructions" >&2;}
      fi
    fi

        case "${abi_mpi_level}" in
      1)

$as_echo "#define HAVE_MPI1 1" >>confdefs.h

        ;;
      2)

$as_echo "#define HAVE_MPI2 1" >>confdefs.h

        ;;
    esac

  else

    lib_mpi_incs=""
    lib_mpi_libs=""
    MPI_RUNNER=""

  fi






   if test "${enable_mpi}" = "yes"; then
  DO_TEST_MPI_TRUE=
  DO_TEST_MPI_FALSE='#'
else
  DO_TEST_MPI_TRUE='#'
  DO_TEST_MPI_FALSE=
fi



# GPU support



    abi_gpu_serial="no"
  abi_gpu_mpi="no"
  abi_gpu_precision=`echo "${with_gpu_flavor}" | cut -d- -f2`
  test "${abi_gpu_precision}" = "" && abi_gpu_precision="single"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate GPU support" >&5
$as_echo_n "checking whether to activate GPU support... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_gpu}" >&5
$as_echo "${enable_gpu}" >&6; }

    if test "${enable_gpu}" = "yes"; then

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the requested GPU support" >&5
$as_echo_n "checking for the requested GPU support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_gpu_flavor}" >&5
$as_echo "${with_gpu_flavor}" >&6; }

    case "${with_gpu_flavor}" in

      cuda*)

    abi_gpu_cuda_serial="no"
  abi_gpu_cuda_mpi="no"



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"


  abi_saved_LIBS="${LIBS}"
  LDFLAGS="${CC_LDFLAGS} ${CC_LDFLAGS_GPU}"
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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:${as_lineno-$LINENO}: checking for Cuda includes" >&5
$as_echo_n "checking for Cuda includes... " >&6; }
  if test "${abi_gpu_cuda_incs}" = ""; then
   abi_gpu_cuda_incs="${with_gpu_includes}"
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_gpu_cuda_incs}" >&5
$as_echo "${abi_gpu_cuda_incs}" >&6; }
  CPPFLAGS="${abi_gpu_cuda_incs} ${CPPFLAGS}"

  for ac_header in cuda_runtime_api.h cufft.h cublas.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   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:${as_lineno-$LINENO}: checking for Cuda link flags" >&5
$as_echo_n "checking for Cuda link flags... " >&6; }
  if test "${abi_gpu_cuda_libs}" = ""; then
   abi_gpu_cuda_libs="${with_gpu_libs}"
  fi
  if test "${abi_gpu_cuda_libs}" = ""; then
   abi_gpu_cuda_libs="-lcudart"
   LIBS="${abi_gpu_cuda_libs} ${LIBS}"
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_gpu_cuda_libs}" >&5
$as_echo "${abi_gpu_cuda_libs}" >&6; }
  LIBS="${abi_gpu_cuda_libs} ${LIBS}"

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Cuda programs can be compiled" >&5
$as_echo_n "checking whether Cuda programs can be compiled... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#if defined HAVE_CUDA_RUNTIME_API_H
#include "cuda_runtime_api.h"
#endif

#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{

      cudaError_t err;
      int *count;
      err = cudaGetDeviceCount(count);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  abi_gpu_cuda_serial="yes"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_gpu_cuda_serial}" >&5
$as_echo "${abi_gpu_cuda_serial}" >&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

  LIBS="${abi_saved_LIBS}"


    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"



        abi_gpu_serial="${abi_gpu_cuda_serial}"
        abi_gpu_mpi="${abi_gpu_cuda_mpi}"
        if test "${abi_gpu_serial}" = "yes"; then

$as_echo "#define HAVE_GPU_CUDA 1" >>confdefs.h

          case "${abi_gpu_precision}" in
            single)

$as_echo "#define HAVE_GPU_CUDA_SP 1" >>confdefs.h

              ;;
            double)

$as_echo "#define HAVE_GPU_CUDA_DP 1" >>confdefs.h

              ;;
          esac
          lib_gpu_fcflags="${abi_gpu_cuda_fcflags}"
          lib_gpu_ldflags="${abi_gpu_cuda_ldflags}"
          lib_gpu_incs="${abi_gpu_cuda_incs}"
          lib_gpu_libs="${abi_gpu_cuda_libs}"
        fi
        ;;

    esac

  fi

    if test "${abi_gpu_serial}" = "yes"; then

$as_echo "#define HAVE_GPU 1" >>confdefs.h


$as_echo "#define HAVE_GPU_SERIAL 1" >>confdefs.h

    lib_gpu_flavor="${with_gpu_flavor}"
  fi

    if test "${abi_gpu_mpi}" = "yes"; then

$as_echo "#define HAVE_GPU_MPI 1" >>confdefs.h

  fi

    if test "${enable_gpu}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the actual GPU support" >&5
$as_echo_n "checking for the actual GPU support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_gpu_flavor}" >&5
$as_echo "${lib_gpu_flavor}" >&6; }
  fi

     if test "${lib_gpu_flavor}" != "none"; then
  DO_BUILD_15_GPU_TOOLBOX_TRUE=
  DO_BUILD_15_GPU_TOOLBOX_FALSE='#'
else
  DO_BUILD_15_GPU_TOOLBOX_TRUE='#'
  DO_BUILD_15_GPU_TOOLBOX_FALSE=
fi

   if test "${lib_gpu_flavor}" = "cuda-double" -o "${lib_gpu_flavor}" = "cuda-single"; then
  DO_BUILD_51_MANAGE_CUDA_TRUE=
  DO_BUILD_51_MANAGE_CUDA_FALSE='#'
else
  DO_BUILD_51_MANAGE_CUDA_TRUE='#'
  DO_BUILD_51_MANAGE_CUDA_FALSE=
fi



# Transferable file I/O support

    lib_trio_flavor="${with_trio_flavor}"
  lib_trio_fcflags=""
  lib_trio_ldflags=""
  lib_trio_incs=""
  lib_trio_libs=""

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use transferable I/O libraries" >&5
$as_echo_n "checking whether to use transferable I/O libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_trio}" >&5
$as_echo "${enable_trio}" >&6; }



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"


  abi_saved_LIBS="${LIBS}"
  CPPFLAGS="${with_trio_includes} ${CPPFLAGS}"
  FCFLAGS="${with_trio_includes} ${FCFLAGS}"
  LDFLAGS="${FC_LDFLAGS}"
  LIBS="${with_trio_libs} ${LIBS}"
  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 "${enable_trio}" = "yes"; then

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the requested transferable I/O support" >&5
$as_echo_n "checking for the requested transferable I/O support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_trio_flavor}" >&5
$as_echo "${with_trio_flavor}" >&6; }

        abi_trio_iter=`echo "${with_trio_flavor}" | sed -e 's/+/\n/g' | sort -u | awk '{printf " %s",$1}'`
    abi_trio_tmp="${abi_trio_iter}"
    for abi_trio_flavor in ${abi_trio_iter}; do
      if test "${abi_trio_flavor}" = "etsf"; then
        abi_trio_tmp=`echo "${abi_trio_iter}" | sed -e 's/netcdf//'`
        abi_trio_tmp="netcdf ${abi_trio_tmp}"
      fi
    done
    abi_trio_iter="${abi_trio_tmp}"

    for abi_trio_flavor in ${abi_trio_iter}; do

      case "${abi_trio_flavor}" in

        etsf)
          if test "${abi_trio_netcdf_serial}" = "yes"; then

    abi_trio_etsf_has_incs="no"
  abi_trio_etsf_has_libs="no"
  abi_trio_etsf_serial="no"
  abi_trio_etsf_mpi="no"
  abi_trio_etsf_fcflags=""
  abi_trio_etsf_ldflags=""
  abi_trio_etsf_incs="${with_trio_includes}"
  abi_trio_etsf_libs="${with_trio_libs}"



    if test "${abi_trio_etsf_libs}" = ""; then
                    LIBS="-letsf_io_utils -letsf_io ${LIBS}"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a working ETSF_IO library" >&5
$as_echo_n "checking whether we have a working ETSF_IO library... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        use etsf_io_low_level
        use etsf_io
        use etsf_io_tools
        character(len=etsf_charlen),allocatable :: atoms(:)
        integer :: ncid
        logical :: lstat
        type(etsf_io_low_error) :: err
        call etsf_io_tools_get_atom_names(ncid,atoms,lstat,err)

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_trio_etsf_has_libs="yes"
else
  abi_trio_etsf_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_trio_etsf_has_libs}" >&5
$as_echo "${abi_trio_etsf_has_libs}" >&6; }
    if test "${abi_trio_etsf_has_libs}" = "yes"; then
      abi_trio_etsf_has_incs="yes"
      abi_trio_etsf_libs="-letsf_io_utils -letsf_io"
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the specified ETSF_IO library works" >&5
$as_echo_n "checking whether the specified ETSF_IO library works... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        use etsf_io_low_level
        use etsf_io
        use etsf_io_tools
        character(len=etsf_charlen),allocatable :: atoms(:)
        integer :: ncid
        logical :: lstat
        type(etsf_io_low_error) :: err
        call etsf_io_tools_get_atom_names(ncid,atoms,lstat,err)

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_trio_etsf_has_incs="yes"; abi_trio_etsf_has_libs="yes"
else
  abi_trio_etsf_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_trio_etsf_has_libs}" >&5
$as_echo "${abi_trio_etsf_has_libs}" >&6; }
  fi

    if test "${abi_trio_etsf_has_incs}" = "yes" -a \
          "${abi_trio_etsf_has_libs}" = "yes"; then
    abi_trio_etsf_serial="yes"
  fi

    if test "${enable_mpi_trio}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ETSF_IO supports MPI I/O" >&5
$as_echo_n "checking whether ETSF_IO supports MPI I/O... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        use etsf_io_low_level
        call etsf_io_low_open_create_par

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_trio_etsf_mpi="yes"
else
  abi_trio_etsf_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_trio_etsf_has_libs}" >&5
$as_echo "${abi_trio_etsf_has_libs}" >&6; }
  fi

          else
            abi_trio_etsf_serial="no"
            abi_trio_etsf_mpi="no"
          fi
          if test "${abi_trio_etsf_serial}" = "yes"; then

$as_echo "#define HAVE_TRIO_ETSF 1" >>confdefs.h

                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling ETSF_IO plugin" >&5
$as_echo "$as_me: WARNING: disabling ETSF_IO plugin" >&2;}
            enable_etsf_io="no"

$as_echo "#define HAVE_ETSF_IO 1" >>confdefs.h

          else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: falling back to ETSF_IO plugin" >&5
$as_echo "$as_me: WARNING: falling back to ETSF_IO plugin" >&2;}
            enable_etsf_io="yes"
          fi
          ;;

        fox)

    abi_trio_fox_has_incs="no"
  abi_trio_fox_has_libs="no"
  abi_trio_fox_serial="no"
  abi_trio_fox_mpi="no"
  abi_trio_fox_fcflags=""
  abi_trio_fox_ldflags=""
  abi_trio_fox_incs="${with_trio_includes}"
  abi_trio_fox_libs="${with_trio_libs}"

    if test "${abi_trio_fox_libs}" = ""; then
    LIBS="-lFoX_sax -lFoX_utils -lFoX_fsys -lFoX_common ${LIBS}"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a working FoX library" >&5
$as_echo_n "checking whether we have a working FoX library... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        use fox_sax
        type(xml_t) :: xt
        call open_xml_file(xt,"conftest.xml")

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_trio_fox_has_libs="yes"
else
  abi_trio_fox_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_trio_fox_has_libs}" >&5
$as_echo "${abi_trio_fox_has_libs}" >&6; }
    if test "${abi_trio_fox_has_libs}" = "yes"; then
      abi_trio_fox_has_incs="yes"
      abi_trio_fox_libs="-lFoX_sax -lFoX_utils -lFoX_fsys -lFoX_common"
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the specified FoX library works" >&5
$as_echo_n "checking whether the specified FoX library works... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        use fox_sax
        type(xml_t) :: xt
        call open_xml_file(xt,"conftest.xml")

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_trio_fox_has_incs="yes"; abi_trio_fox_has_libs="yes"
else
  abi_trio_fox_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_trio_fox_has_libs}" >&5
$as_echo "${abi_trio_fox_has_libs}" >&6; }
  fi

    if test "${abi_trio_fox_has_incs}" = "yes" -a \
          "${abi_trio_fox_has_libs}" = "yes"; then
    abi_trio_fox_serial="yes"
  fi

          if test "${abi_trio_fox_serial}" = "yes"; then

$as_echo "#define HAVE_TRIO_FOX 1" >>confdefs.h

                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling FoX plugin" >&5
$as_echo "$as_me: WARNING: disabling FoX plugin" >&2;}
            enable_fox="no"

$as_echo "#define HAVE_FOX 1" >>confdefs.h

          else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: falling back to FoX plugin" >&5
$as_echo "$as_me: WARNING: falling back to FoX plugin" >&2;}
            enable_fox="yes"
          fi
          ;;

        hdf)

    abi_trio_hdf_has_incs="no"
  abi_trio_hdf_has_libs="no"
  abi_trio_hdf_serial="no"
  abi_trio_hdf_mpi="no"
  abi_trio_hdf_fcflags=""
  abi_trio_hdf_ldflags=""
  abi_trio_hdf_incs="${with_trio_includes}"
  abi_trio_hdf_libs="${with_trio_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

  for ac_header in hdf5.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
if test "x$ac_cv_header_hdf5_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_HDF5_H 1
_ACEOF
 abi_trio_hdf_has_incs="yes"
else
  abi_trio_hdf_has_incs="no"
fi

done

  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 "${abi_trio_hdf_libs}" = ""; 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

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fcreate in -lhdf5" >&5
$as_echo_n "checking for H5Fcreate in -lhdf5... " >&6; }
if test "${ac_cv_lib_hdf5_H5Fcreate+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhdf5  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char H5Fcreate ();
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
return H5Fcreate ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_hdf5_H5Fcreate=yes
else
  ac_cv_lib_hdf5_H5Fcreate=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fcreate" >&5
$as_echo "$ac_cv_lib_hdf5_H5Fcreate" >&6; }
if test "x$ac_cv_lib_hdf5_H5Fcreate" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBHDF5 1
_ACEOF

  LIBS="-lhdf5 $LIBS"

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 "${ac_cv_lib_hdf5_H5Fcreate}" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h5fcreate_f in -lhdf5" >&5
$as_echo_n "checking for h5fcreate_f in -lhdf5... " >&6; }
if test "${ac_cv_lib_hdf5_h5fcreate_f+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhdf5  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call h5fcreate_f
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_hdf5_h5fcreate_f=yes
else
  ac_cv_lib_hdf5_h5fcreate_f=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_h5fcreate_f" >&5
$as_echo "$ac_cv_lib_hdf5_h5fcreate_f" >&6; }
if test "x$ac_cv_lib_hdf5_h5fcreate_f" = x""yes; then :
  abi_trio_hdf_has_libs="yes"
else
  abi_trio_hdf_has_libs="no"
fi

      if test "${abi_trio_hdf_has_libs}" = "yes"; then
        abi_trio_hdf_libs="-lhdf5"
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the specified HDF library works" >&5
$as_echo_n "checking whether the specified HDF library works... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        call h5fcreate_f

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_trio_hdf_has_libs="yes"
else
  abi_trio_hdf_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_trio_hdf_has_libs}" >&5
$as_echo "${abi_trio_hdf_has_libs}" >&6; }
  fi

    if test "${abi_trio_hdf_has_incs}" = "yes" -a \
          "${abi_trio_hdf_has_libs}" = "yes"; then
    abi_trio_hdf_serial="yes"
  fi

      if test "${enable_mpi_trio}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HDF supports MPI I/O" >&5
$as_echo_n "checking whether HDF supports MPI I/O... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        call h5fcreate_f_par

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_trio_hdf_mpi="yes"
else
  abi_trio_hdf_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_trio_hdf_has_libs}" >&5
$as_echo "${abi_trio_hdf_has_libs}" >&6; }
  fi

          if test "${abi_trio_hdf_serial}" = "yes"; then

$as_echo "#define HAVE_TRIO_HDF 1" >>confdefs.h

          fi
          ;;

        netcdf)

    abi_trio_netcdf_has_incs="no"
  abi_trio_netcdf_has_libs="no"
  abi_trio_netcdf_serial="no"
  abi_trio_netcdf_mpi="no"
  abi_trio_netcdf_fcflags=""
  abi_trio_netcdf_ldflags=""
  abi_trio_netcdf_incs="${with_trio_includes}"
  abi_trio_netcdf_libs="${with_trio_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

  for ac_header in netcdf.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "netcdf.h" "ac_cv_header_netcdf_h" "$ac_includes_default"
if test "x$ac_cv_header_netcdf_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NETCDF_H 1
_ACEOF
 abi_trio_netcdf_has_incs="yes"
else
  abi_trio_netcdf_has_incs="no"
fi

done

  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 "${abi_trio_netcdf_libs}" = ""; 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

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nc_open in -lnetcdf" >&5
$as_echo_n "checking for nc_open in -lnetcdf... " >&6; }
if test "${ac_cv_lib_netcdf_nc_open+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnetcdf  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char nc_open ();
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
return nc_open ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_netcdf_nc_open=yes
else
  ac_cv_lib_netcdf_nc_open=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netcdf_nc_open" >&5
$as_echo "$ac_cv_lib_netcdf_nc_open" >&6; }
if test "x$ac_cv_lib_netcdf_nc_open" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBNETCDF 1
_ACEOF

  LIBS="-lnetcdf $LIBS"

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 "${ac_cv_lib_netcdf_nc_open}" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nf_open in -lnetcdf" >&5
$as_echo_n "checking for nf_open in -lnetcdf... " >&6; }
if test "${ac_cv_lib_netcdf_nf_open+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnetcdf  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call nf_open
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_netcdf_nf_open=yes
else
  ac_cv_lib_netcdf_nf_open=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netcdf_nf_open" >&5
$as_echo "$ac_cv_lib_netcdf_nf_open" >&6; }
if test "x$ac_cv_lib_netcdf_nf_open" = x""yes; then :
  abi_trio_netcdf_has_libs="yes"
else
  abi_trio_netcdf_has_libs="no"
fi

      if test "${abi_trio_netcdf_has_libs}" = "yes"; then
        abi_trio_netcdf_libs="-lnetcdf"
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nf_open in -lnetcdff" >&5
$as_echo_n "checking for nf_open in -lnetcdff... " >&6; }
if test "${ac_cv_lib_netcdff_nf_open+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnetcdff  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call nf_open
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_netcdff_nf_open=yes
else
  ac_cv_lib_netcdff_nf_open=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netcdff_nf_open" >&5
$as_echo "$ac_cv_lib_netcdff_nf_open" >&6; }
if test "x$ac_cv_lib_netcdff_nf_open" = x""yes; then :
  abi_trio_netcdf_has_libs="yes"
else
  abi_trio_netcdf_has_libs="no"
fi

        if test "${abi_trio_netcdf_has_libs}" = "yes"; then
          abi_trio_netcdf_libs="-lnetcdff -lnetcdf"
        fi
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the specified NetCDF library works" >&5
$as_echo_n "checking whether the specified NetCDF library works... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        use netcdf
        call nf90_open

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_trio_netcdf_has_libs="yes"
else
  abi_trio_netcdf_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_trio_netcdf_has_libs}" >&5
$as_echo "${abi_trio_netcdf_has_libs}" >&6; }
  fi

    if test "${abi_trio_netcdf_has_incs}" = "yes" -a \
          "${abi_trio_netcdf_has_libs}" = "yes"; then
    abi_trio_netcdf_serial="yes"
  fi

    if test "${enable_mpi_trio}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NetCDF supports MPI I/O" >&5
$as_echo_n "checking whether NetCDF supports MPI I/O... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        use netcdf
        call nf90_open_par

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_trio_netcdf_mpi="yes"
else
  abi_trio_netcdf_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_trio_netcdf_has_libs}" >&5
$as_echo "${abi_trio_netcdf_has_libs}" >&6; }
  fi

    LIBS="${abi_trio_netcdf_libs} ${LIBS}"

          if test "${abi_trio_netcdf_serial}" = "yes"; then

$as_echo "#define HAVE_TRIO_NETCDF 1" >>confdefs.h

            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling NetCDF plugin" >&5
$as_echo "$as_me: WARNING: disabling NetCDF plugin" >&2;}
            enable_netcdf="no"

$as_echo "#define HAVE_NETCDF 1" >>confdefs.h

          else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: falling back to NetCDF plugin" >&5
$as_echo "$as_me: WARNING: falling back to NetCDF plugin" >&2;}
            enable_netcdf="yes"
          fi
          ;;

        *)
          as_fn_error "unknown TRIO flavor '${abi_trio_flavor}'" "$LINENO" 5
          ;;

      esac

    done

        if test "${abi_trio_hdf_serial}" = "no"; then
      abi_trio_iter=`echo "${abi_trio_iter}" | sed -e 's/hdf//'`
    fi
    lib_trio_flavor=`echo "${abi_trio_iter}" | sed -e 's/^[ ]*//;s/[ ]*$//;s/ [ ]*/+/g;'`
  fi

    lib_trio_fcflags="${abi_trio_netcdf_fcflags} ${abi_trio_etsf_fcflags} ${abi_trio_fox_fcflags} ${abi_trio_hdf_fcflags}"
  lib_trio_ldflags="${abi_trio_netcdf_ldflags} ${abi_trio_etsf_ldflags} ${abi_trio_fox_ldflags} ${abi_trio_hdf_ldflags}"
  lib_trio_incs="${abi_trio_netcdf_incs} ${abi_trio_etsf_incs} ${abi_trio_fox_incs} ${abi_trio_hdf_incs}"
  lib_trio_libs="${abi_trio_etsf_libs} ${abi_trio_netcdf_libs} ${abi_trio_fox_libs} ${abi_trio_hdf_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

  LIBS="${abi_saved_LIBS}"


    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"



    if test "${enable_trio}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the actual transferable I/O support" >&5
$as_echo_n "checking for the actual transferable I/O support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_trio_flavor}" >&5
$as_echo "${lib_trio_flavor}" >&6; }
  fi








# External timing library support

    lib_timer_flavor="${with_timer_flavor}"
  lib_timer_fcflags=""
  lib_timer_ldflags=""
  lib_timer_incs=""
  lib_timer_libs=""
  abi_timer_serial="no"
  abi_timer_mpi="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use optimized timer libraries" >&5
$as_echo_n "checking whether to use optimized timer libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_timer}" >&5
$as_echo "${enable_timer}" >&6; }



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"


  abi_saved_LIBS="${LIBS}"
  CPPFLAGS="${with_timer_includes} ${CPPFLAGS}"
  LDFLAGS="${FC_LDFLAGS}"
  LIBS="${with_timer_libs} ${LIBS}"
  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 "${enable_timer}" = "yes"; then

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the requested timer support" >&5
$as_echo_n "checking for the requested timer support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_timer_flavor}" >&5
$as_echo "${with_timer_flavor}" >&6; }

    case "${with_timer_flavor}" in

      abinit)

$as_echo "#define HAVE_TIMER_ABINIT 1" >>confdefs.h

        abi_timer_serial="yes"
        if test "${enable_mpi}" = "yes"; then
          abi_timer_mpi="yes"
        fi
        ;;

      gptl)
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not implemented" >&5
$as_echo "$as_me: WARNING: not implemented" >&2;}
        ;;

      papi)

    abi_timer_papi_has_incs="no"
  abi_timer_papi_has_libs="no"
  abi_timer_papi_serial="no"
  abi_timer_papi_mpi="no"
  abi_timer_papi_fcflags=""
  abi_timer_papi_ldflags=""
  abi_timer_papi_incs="${with_timer_includes}"
  abi_timer_papi_libs="${with_timer_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

  for ac_header in f90papi.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "f90papi.h" "ac_cv_header_f90papi_h" "$ac_includes_default"
if test "x$ac_cv_header_f90papi_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_F90PAPI_H 1
_ACEOF
 abi_timer_papi_has_incs="yes"
else
  abi_timer_papi_has_incs="no"
fi

done

  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 "${abi_timer_papi_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPIf_library_init in -lpapi" >&5
$as_echo_n "checking for PAPIf_library_init in -lpapi... " >&6; }
if test "${ac_cv_lib_papi_PAPIf_library_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpapi  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call PAPIf_library_init
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_papi_PAPIf_library_init=yes
else
  ac_cv_lib_papi_PAPIf_library_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPIf_library_init" >&5
$as_echo "$ac_cv_lib_papi_PAPIf_library_init" >&6; }
if test "x$ac_cv_lib_papi_PAPIf_library_init" = x""yes; then :
  abi_timer_papi_has_libs="yes"
else
  abi_timer_papi_has_libs="no"
fi

    if test "${abi_timer_papi_has_libs}" = "yes"; then
      abi_timer_papi_libs="-lpapi"
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the specified PAPI library works" >&5
$as_echo_n "checking whether the specified PAPI library works... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

#if defined HAVE_F90PAPI_H
#include "papi/papi_sf_gamma.h"
#endif
        call PAPIf_library_init

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_timer_papi_has_libs="yes"
else
  abi_timer_papi_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_timer_papi_has_libs}" >&5
$as_echo "${abi_timer_papi_has_libs}" >&6; }
  fi

    if test "${abi_timer_papi_has_incs}" = "yes" -a \
          "${abi_timer_papi_has_libs}" = "yes"; then
    abi_timer_papi_serial="yes"
  fi

        abi_timer_serial="${abi_timer_papi_serial}"
        abi_timer_mpi="${abi_timer_papi_mpi}"
        if test "${abi_timer_serial}" = "yes"; then

$as_echo "#define HAVE_TIMER_PAPI 1" >>confdefs.h

          lib_timer_fcflags="${abi_timer_papi_fcflags}"
          lib_timer_ldflags="${abi_timer_papi_ldflags}"
          lib_timer_incs="${abi_timer_papi_incs}"
          lib_timer_libs="${abi_timer_papi_libs}"
        fi
        ;;

    esac

  fi

    if test "${abi_timer_serial}" = "yes"; then

$as_echo "#define HAVE_TIMER 1" >>confdefs.h


$as_echo "#define HAVE_TIMER_SERIAL 1" >>confdefs.h

  else
    lib_timer_flavor="none"
  fi

    if test "${abi_timer_mpi}" = "yes"; then

$as_echo "#define HAVE_TIMER_MPI 1" >>confdefs.h

  fi

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

  LIBS="${abi_saved_LIBS}"


    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"



    if test "${enable_timer}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the actual timer support" >&5
$as_echo_n "checking for the actual timer support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_timer_flavor}" >&5
$as_echo "${lib_timer_flavor}" >&6; }
  fi








# Linear algebra support

    lib_linalg_flavor="${with_linalg_flavor}"
  lib_linalg_fcflags=""
  lib_linalg_ldflags=""
  lib_linalg_incs=""
  lib_linalg_libs=""
  abi_linalg_serial="no"
  abi_linalg_mpi="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use optimized linear algebra libraries" >&5
$as_echo_n "checking whether to use optimized linear algebra libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_linalg}" >&5
$as_echo "${enable_linalg}" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate ScaLAPACK support" >&5
$as_echo_n "checking whether to activate ScaLAPACK support... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_scalapack}" >&5
$as_echo "${enable_scalapack}" >&6; }

    if test "${enable_mpi}" = "no" -a "${enable_scalapack}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling ScaLAPACK support (MPI is disabled)" >&5
$as_echo "$as_me: WARNING: disabling ScaLAPACK support (MPI is disabled)" >&2;}
    enable_scalapack="no"
  fi

    if test -z "${CPPFLAGS_LINALG}"; then
    CPPFLAGS_LINALG="${CPPFLAGS}"
  fi

  if test -z "${CFLAGS_LINALG}"; then
    CFLAGS_LINALG="${CFLAGS}"
  fi

  if test -z "${CXXFLAGS_LINALG}"; then
    CXXFLAGS_LINALG="${CXXFLAGS}"
  fi

  if test -z "${FCFLAGS_LINALG}"; then
    FCFLAGS_LINALG="${FCFLAGS} ${fcflags_opt_linalg}"
  fi




    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"


  abi_saved_LIBS="${LIBS}"
  CPPFLAGS="${with_linalg_includes} ${CPPFLAGS}"
  LDFLAGS="${FC_LDFLAGS}"
  LIBS="${with_linalg_libs} ${LIBS}"
  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 "${enable_linalg}" = "yes"; then

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the requested linear algebra support" >&5
$as_echo_n "checking for the requested linear algebra support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_linalg_flavor}" >&5
$as_echo "${with_linalg_flavor}" >&6; }

    case "${with_linalg_flavor}" in

      asl)

    abi_linalg_asl_serial="no"
  abi_linalg_asl_mpi="no"
  abi_linalg_asl_fcflags=""
  abi_linalg_asl_ldflags=""
  abi_linalg_asl_incs=""
  abi_linalg_asl_libs=""
  abi_linalg_asl_deps=""

    if test "${with_linalg_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zgemm in -lasl" >&5
$as_echo_n "checking for zgemm in -lasl... " >&6; }
if test "${ac_cv_lib_asl_zgemm+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lasl  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zgemm
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_asl_zgemm=yes
else
  ac_cv_lib_asl_zgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asl_zgemm" >&5
$as_echo "$ac_cv_lib_asl_zgemm" >&6; }
if test "x$ac_cv_lib_asl_zgemm" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBASL 1
_ACEOF

  LIBS="-lasl $LIBS"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zhpev in -lasl" >&5
$as_echo_n "checking for zhpev in -lasl... " >&6; }
if test "${ac_cv_lib_asl_zhpev+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lasl  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zhpev
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_asl_zhpev=yes
else
  ac_cv_lib_asl_zhpev=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asl_zhpev" >&5
$as_echo "$ac_cv_lib_asl_zhpev" >&6; }
if test "x$ac_cv_lib_asl_zhpev" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBASL 1
_ACEOF

  LIBS="-lasl $LIBS"

fi

    if test "${ac_cv_lib_asl_zgemm}" = "yes" -a \
            "${ac_cv_lib_asl_zhpev}" = "yes"; then
      abi_linalg_asl_serial="yes"
      abi_linalg_asl_libs="-lasl"
    fi
  else

    abi_linalg_user_serial="no"
  abi_linalg_user_mpi="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a serial optimized linear algebra support" >&5
$as_echo_n "checking for a serial optimized linear algebra support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call zgemm
      call zhpev

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_linalg_user_serial="yes"
else
  abi_linalg_user_serial="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_linalg_user_serial}" >&5
$as_echo "${abi_linalg_user_serial}" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI optimized linear algebra support" >&5
$as_echo_n "checking for a MPI optimized linear algebra support... " >&6; }
  if test "${enable_mpi}" = "yes" -a "${enable_scalapack}" = "yes"; then
    cat > conftest.$ac_ext <<_ACEOF
      program main

        call blacs_gridinit
        call pzheevx

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_linalg_user_mpi="yes"
else
  abi_linalg_user_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_linalg_user_mpi}" >&5
$as_echo "${abi_linalg_user_mpi}" >&6; }

    abi_linalg_asl_serial="${abi_linalg_user_serial}"
    abi_linalg_asl_mpi="${abi_linalg_user_mpi}"
    if test "${abi_linalg_user_serial}" = "yes"; then
      abi_linalg_asl_incs="${with_linalg_includes}"
      abi_linalg_asl_libs="${with_linalg_libs}"
    fi
  fi

        abi_linalg_serial="${abi_linalg_asl_serial}"
        abi_linalg_mpi="${abi_linalg_asl_mpi}"
        if test "${abi_linalg_serial}" = "yes"; then

$as_echo "#define HAVE_LINALG_ASL 1" >>confdefs.h

          lib_linalg_fcflags="${abi_linalg_asl_fcflags}"
          lib_linalg_ldflags="${abi_linalg_asl_ldflags}"
          lib_linalg_incs="${abi_linalg_asl_incs}"
          lib_linalg_libs="${abi_linalg_asl_libs}"
        fi
        ;;

      atlas)

    abi_linalg_atlas_serial="no"
  abi_linalg_atlas_mpi="no"
  abi_linalg_atlas_fcflags=""
  abi_linalg_atlas_ldflags=""
  abi_linalg_atlas_incs=""
  abi_linalg_atlas_libs=""
  abi_linalg_atlas_deps=""

    if test "${with_linalg_libs}" = ""; 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

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_buildinfo in -latlas" >&5
$as_echo_n "checking for ATL_buildinfo in -latlas... " >&6; }
if test "${ac_cv_lib_atlas_ATL_buildinfo+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-latlas  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ATL_buildinfo ();
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
return ATL_buildinfo ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_atlas_ATL_buildinfo=yes
else
  ac_cv_lib_atlas_ATL_buildinfo=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_buildinfo" >&5
$as_echo "$ac_cv_lib_atlas_ATL_buildinfo" >&6; }
if test "x$ac_cv_lib_atlas_ATL_buildinfo" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBATLAS 1
_ACEOF

  LIBS="-latlas $LIBS"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_zgemm in -lcblas" >&5
$as_echo_n "checking for cblas_zgemm in -lcblas... " >&6; }
if test "${ac_cv_lib_cblas_cblas_zgemm+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cblas_zgemm ();
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
return cblas_zgemm ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_cblas_cblas_zgemm=yes
else
  ac_cv_lib_cblas_cblas_zgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_zgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_zgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_zgemm" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF

  LIBS="-lcblas $LIBS"

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

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zgemm in -lf77blas" >&5
$as_echo_n "checking for zgemm in -lf77blas... " >&6; }
if test "${ac_cv_lib_f77blas_zgemm+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lf77blas  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zgemm
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_f77blas_zgemm=yes
else
  ac_cv_lib_f77blas_zgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_f77blas_zgemm" >&5
$as_echo "$ac_cv_lib_f77blas_zgemm" >&6; }
if test "x$ac_cv_lib_f77blas_zgemm" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBF77BLAS 1
_ACEOF

  LIBS="-lf77blas $LIBS"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zhpev in -llapack" >&5
$as_echo_n "checking for zhpev in -llapack... " >&6; }
if test "${ac_cv_lib_lapack_zhpev+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zhpev
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_lapack_zhpev=yes
else
  ac_cv_lib_lapack_zhpev=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_zhpev" >&5
$as_echo "$ac_cv_lib_lapack_zhpev" >&6; }
if test "x$ac_cv_lib_lapack_zhpev" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

fi

    if test "${ac_cv_lib_atlas_ATL_buildinfo}" = "yes" -a \
            "${ac_cv_lib_cblas_cblas_zgemm}" = "yes" -a \
            "${ac_cv_lib_f77blas_zgemm}" = "yes" -a \
            "${ac_cv_lib_lapack_zhpev}" = "yes"; then
      abi_linalg_atlas_serial="yes"
      abi_linalg_atlas_libs="-llapack -lf77blas -lcblas -latlas"
    fi
  else

    abi_linalg_user_serial="no"
  abi_linalg_user_mpi="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a serial optimized linear algebra support" >&5
$as_echo_n "checking for a serial optimized linear algebra support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call zgemm
      call zhpev

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_linalg_user_serial="yes"
else
  abi_linalg_user_serial="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_linalg_user_serial}" >&5
$as_echo "${abi_linalg_user_serial}" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI optimized linear algebra support" >&5
$as_echo_n "checking for a MPI optimized linear algebra support... " >&6; }
  if test "${enable_mpi}" = "yes" -a "${enable_scalapack}" = "yes"; then
    cat > conftest.$ac_ext <<_ACEOF
      program main

        call blacs_gridinit
        call pzheevx

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_linalg_user_mpi="yes"
else
  abi_linalg_user_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_linalg_user_mpi}" >&5
$as_echo "${abi_linalg_user_mpi}" >&6; }

    abi_linalg_atlas_serial="${abi_linalg_user_serial}"
    abi_linalg_atlas_mpi="${abi_linalg_user_mpi}"
    if test "${abi_linalg_user_serial}" = "yes"; then
      abi_linalg_atlas_incs="${with_linalg_includes}"
      abi_linalg_atlas_libs="${with_linalg_libs}"
    fi
  fi

        abi_linalg_serial="${abi_linalg_atlas_serial}"
        abi_linalg_mpi="${abi_linalg_atlas_mpi}"
        if test "${abi_linalg_serial}" = "yes"; then

$as_echo "#define HAVE_LINALG_ATLAS 1" >>confdefs.h

          lib_linalg_fcflags="${abi_linalg_atlas_fcflags}"
          lib_linalg_ldflags="${abi_linalg_atlas_ldflags}"
          lib_linalg_incs="${abi_linalg_atlas_incs}"
          lib_linalg_libs="${abi_linalg_atlas_libs}"
        fi
        ;;

      essl)

    abi_linalg_essl_serial="no"
  abi_linalg_essl_mpi="no"
  abi_linalg_essl_fcflags=""
  abi_linalg_essl_ldflags=""
  abi_linalg_essl_incs=""
  abi_linalg_essl_libs=""

    if test "${abi_fc_vendor}" = "ibm"; then
    abi_linalg_essl_fcflags="-qessl"
    abi_linalg_essl_ldflags="-qessl"
  fi
  FCFLAGS="${abi_linalg_essl_fcflags} ${FCFLAGS}"
  LDFLAGS="${abi_linalg_essl_ldflags} ${LDFLAGS}"

    if test "${with_linalg_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zgemm in -lessl" >&5
$as_echo_n "checking for zgemm in -lessl... " >&6; }
if test "${ac_cv_lib_essl_zgemm+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lessl  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zgemm
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_essl_zgemm=yes
else
  ac_cv_lib_essl_zgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_essl_zgemm" >&5
$as_echo "$ac_cv_lib_essl_zgemm" >&6; }
if test "x$ac_cv_lib_essl_zgemm" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBESSL 1
_ACEOF

  LIBS="-lessl $LIBS"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zhpev in -lessl" >&5
$as_echo_n "checking for zhpev in -lessl... " >&6; }
if test "${ac_cv_lib_essl_zhpev+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lessl  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zhpev
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_essl_zhpev=yes
else
  ac_cv_lib_essl_zhpev=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_essl_zhpev" >&5
$as_echo "$ac_cv_lib_essl_zhpev" >&6; }
if test "x$ac_cv_lib_essl_zhpev" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBESSL 1
_ACEOF

  LIBS="-lessl $LIBS"

fi

    if test "${ac_cv_lib_essl_zgemm}" = "yes" -a \
            "${ac_cv_lib_essl_zhpev}" = "yes"; then
      abi_linalg_essl_serial="yes"
      abi_linalg_essl_libs="-lessl"
    fi
    if test "${enable_mpi}" = "yes" -a "${enable_scalapack}" = "yes" -a \
            "${abi_linalg_essl_serial}" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blacs_gridinit in -lessl" >&5
$as_echo_n "checking for blacs_gridinit in -lessl... " >&6; }
if test "${ac_cv_lib_essl_blacs_gridinit+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lessl  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call blacs_gridinit
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_essl_blacs_gridinit=yes
else
  ac_cv_lib_essl_blacs_gridinit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_essl_blacs_gridinit" >&5
$as_echo "$ac_cv_lib_essl_blacs_gridinit" >&6; }
if test "x$ac_cv_lib_essl_blacs_gridinit" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBESSL 1
_ACEOF

  LIBS="-lessl $LIBS"

fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pzheevx in -lessl" >&5
$as_echo_n "checking for pzheevx in -lessl... " >&6; }
if test "${ac_cv_lib_essl_pzheevx+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lessl  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call pzheevx
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_essl_pzheevx=yes
else
  ac_cv_lib_essl_pzheevx=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_essl_pzheevx" >&5
$as_echo "$ac_cv_lib_essl_pzheevx" >&6; }
if test "x$ac_cv_lib_essl_pzheevx" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBESSL 1
_ACEOF

  LIBS="-lessl $LIBS"

fi

      if test "${ac_cv_lib_essl_blacs_gridinit}" = "yes" -a \
              "${ac_cv_lib_essl_pzheevx}" = "yes"; then
        abi_linalg_essl_mpi="yes"
      fi
    fi
  else

    abi_linalg_user_serial="no"
  abi_linalg_user_mpi="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a serial optimized linear algebra support" >&5
$as_echo_n "checking for a serial optimized linear algebra support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call zgemm
      call zhpev

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_linalg_user_serial="yes"
else
  abi_linalg_user_serial="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_linalg_user_serial}" >&5
$as_echo "${abi_linalg_user_serial}" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI optimized linear algebra support" >&5
$as_echo_n "checking for a MPI optimized linear algebra support... " >&6; }
  if test "${enable_mpi}" = "yes" -a "${enable_scalapack}" = "yes"; then
    cat > conftest.$ac_ext <<_ACEOF
      program main

        call blacs_gridinit
        call pzheevx

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_linalg_user_mpi="yes"
else
  abi_linalg_user_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_linalg_user_mpi}" >&5
$as_echo "${abi_linalg_user_mpi}" >&6; }

    abi_linalg_essl_serial="${abi_linalg_user_serial}"
    abi_linalg_essl_mpi="${abi_linalg_user_mpi}"
    if test "${abi_linalg_user_serial}" = "yes"; then
      abi_linalg_essl_incs="${with_linalg_includes}"
      abi_linalg_essl_libs="${with_linalg_libs}"
    fi
  fi

        abi_linalg_serial="${abi_linalg_essl_serial}"
        abi_linalg_mpi="${abi_linalg_essl_mpi}"
        if test "${abi_linalg_serial}" = "yes"; then

$as_echo "#define HAVE_LINALG_ESSL 1" >>confdefs.h

          lib_linalg_fcflags="${abi_linalg_essl_fcflags}"
          lib_linalg_ldflags="${abi_linalg_essl_ldflags}"
          lib_linalg_incs="${abi_linalg_essl_incs}"
          lib_linalg_libs="${abi_linalg_essl_libs}"
        fi
        ;;

      mkl)

    abi_linalg_mkl_serial="no"
  abi_linalg_mkl_mpi="no"
  abi_linalg_mkl_fcflags=""
  abi_linalg_mkl_ldflags=""
  abi_linalg_mkl_incs=""
  abi_linalg_mkl_libs=""
  abi_linalg_mkl_deps=""

    if test "${with_linalg_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmp_alloc in -lguide" >&5
$as_echo_n "checking for kmp_alloc in -lguide... " >&6; }
if test "${ac_cv_lib_guide_kmp_alloc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lguide  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call kmp_alloc
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_guide_kmp_alloc=yes
else
  ac_cv_lib_guide_kmp_alloc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_guide_kmp_alloc" >&5
$as_echo "$ac_cv_lib_guide_kmp_alloc" >&6; }
if test "x$ac_cv_lib_guide_kmp_alloc" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGUIDE 1
_ACEOF

  LIBS="-lguide $LIBS"

fi

    if test "${ac_cv_lib_guide_kmp_alloc}" = "no"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpthread  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call pthread_create
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_pthread_pthread_create=yes
else
  ac_cv_lib_pthread_pthread_create=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPTHREAD 1
_ACEOF

  LIBS="-lpthread $LIBS"

fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmp_alloc in -lguide" >&5
$as_echo_n "checking for kmp_alloc in -lguide... " >&6; }
if test "${ac_cv_lib_guide_kmp_alloc+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lguide  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call kmp_alloc
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_guide_kmp_alloc=yes
else
  ac_cv_lib_guide_kmp_alloc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_guide_kmp_alloc" >&5
$as_echo "$ac_cv_lib_guide_kmp_alloc" >&6; }
if test "x$ac_cv_lib_guide_kmp_alloc" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGUIDE 1
_ACEOF

  LIBS="-lguide $LIBS"

fi

    fi
    if test "${ac_cv_lib_guide_kmp_alloc}" = "yes"; then
      abi_linlag_mkl_deps="-lpthread"
    fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zgemm in -lmkl" >&5
$as_echo_n "checking for zgemm in -lmkl... " >&6; }
if test "${ac_cv_lib_mkl_zgemm+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmkl  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zgemm
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_mkl_zgemm=yes
else
  ac_cv_lib_mkl_zgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mkl_zgemm" >&5
$as_echo "$ac_cv_lib_mkl_zgemm" >&6; }
if test "x$ac_cv_lib_mkl_zgemm" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMKL 1
_ACEOF

  LIBS="-lmkl $LIBS"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zhpev in -lmkl_lapack" >&5
$as_echo_n "checking for zhpev in -lmkl_lapack... " >&6; }
if test "${ac_cv_lib_mkl_lapack_zhpev+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmkl_lapack  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zhpev
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_mkl_lapack_zhpev=yes
else
  ac_cv_lib_mkl_lapack_zhpev=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mkl_lapack_zhpev" >&5
$as_echo "$ac_cv_lib_mkl_lapack_zhpev" >&6; }
if test "x$ac_cv_lib_mkl_lapack_zhpev" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMKL_LAPACK 1
_ACEOF

  LIBS="-lmkl_lapack $LIBS"

fi

    if test "${ac_cv_lib_mkl_zgemm}" = "yes" -a \
            "${ac_cv_lib_mkl_lapack_zhpev}" = "yes"; then
      abi_linalg_mkl_serial="yes"
      abi_linalg_mkl_libs="-lmkl_lapack -lmkl -lguide ${abi_linalg_mkl_deps}"
    fi
    if test "${enable_mpi}" = "yes" -a "${enable_scalapack}" = "yes" -a \
            "${abi_linalg_mkl_serial}" = "yes"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blacs_gridinit in -lmkl_blacs" >&5
$as_echo_n "checking for blacs_gridinit in -lmkl_blacs... " >&6; }
if test "${ac_cv_lib_mkl_blacs_blacs_gridinit+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmkl_blacs  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call blacs_gridinit
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_mkl_blacs_blacs_gridinit=yes
else
  ac_cv_lib_mkl_blacs_blacs_gridinit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mkl_blacs_blacs_gridinit" >&5
$as_echo "$ac_cv_lib_mkl_blacs_blacs_gridinit" >&6; }
if test "x$ac_cv_lib_mkl_blacs_blacs_gridinit" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMKL_BLACS 1
_ACEOF

  LIBS="-lmkl_blacs $LIBS"

fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pzheevx in -lmkl_scalapack" >&5
$as_echo_n "checking for pzheevx in -lmkl_scalapack... " >&6; }
if test "${ac_cv_lib_mkl_scalapack_pzheevx+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmkl_scalapack  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call pzheevx
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_mkl_scalapack_pzheevx=yes
else
  ac_cv_lib_mkl_scalapack_pzheevx=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mkl_scalapack_pzheevx" >&5
$as_echo "$ac_cv_lib_mkl_scalapack_pzheevx" >&6; }
if test "x$ac_cv_lib_mkl_scalapack_pzheevx" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMKL_SCALAPACK 1
_ACEOF

  LIBS="-lmkl_scalapack $LIBS"

fi

      if test "${ac_cv_lib_mkl_blacs_blacs_gridinit}" = "yes" -a \
              "${ac_cv_lib_mkl_scalapack_pzheevx}" = "yes"; then
        abi_linalg_mkl_mpi="yes"
        abi_linalg_mkl_libs="-lmkl_scalapack -lmkl_blacs ${abi_linalg_mkl_libs}"
      fi
    fi
  else

    abi_linalg_user_serial="no"
  abi_linalg_user_mpi="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a serial optimized linear algebra support" >&5
$as_echo_n "checking for a serial optimized linear algebra support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call zgemm
      call zhpev

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_linalg_user_serial="yes"
else
  abi_linalg_user_serial="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_linalg_user_serial}" >&5
$as_echo "${abi_linalg_user_serial}" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI optimized linear algebra support" >&5
$as_echo_n "checking for a MPI optimized linear algebra support... " >&6; }
  if test "${enable_mpi}" = "yes" -a "${enable_scalapack}" = "yes"; then
    cat > conftest.$ac_ext <<_ACEOF
      program main

        call blacs_gridinit
        call pzheevx

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_linalg_user_mpi="yes"
else
  abi_linalg_user_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_linalg_user_mpi}" >&5
$as_echo "${abi_linalg_user_mpi}" >&6; }

    abi_linalg_mkl_serial="${abi_linalg_user_serial}"
    abi_linalg_mkl_mpi="${abi_linalg_user_mpi}"
    if test "${abi_linalg_user_serial}" = "yes"; then
      abi_linalg_mkl_incs="${with_linalg_includes}"
      abi_linalg_mkl_libs="${with_linalg_libs}"
    fi
  fi

        abi_linalg_serial="${abi_linalg_mkl_serial}"
        abi_linalg_mpi="${abi_linalg_mkl_mpi}"
        if test "${abi_linalg_serial}" = "yes"; then

$as_echo "#define HAVE_LINALG_MKL 1" >>confdefs.h

          lib_linalg_fcflags="${abi_linalg_mkl_fcflags}"
          lib_linalg_ldflags="${abi_linalg_mkl_ldflags}"
          lib_linalg_incs="${abi_linalg_mkl_incs}"
          lib_linalg_libs="${abi_linalg_mkl_libs}"
        fi
        ;;

      netlib)

    abi_linalg_netlib_serial="no"
  abi_linalg_netlib_mpi="no"
  abi_linalg_netlib_fcflags=""
  abi_linalg_netlib_ldflags=""
  abi_linalg_netlib_incs=""
  abi_linalg_netlib_libs=""

    if test "${with_linalg_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zgemm in -lblas" >&5
$as_echo_n "checking for zgemm in -lblas... " >&6; }
if test "${ac_cv_lib_blas_zgemm+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lblas  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zgemm
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_blas_zgemm=yes
else
  ac_cv_lib_blas_zgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_zgemm" >&5
$as_echo "$ac_cv_lib_blas_zgemm" >&6; }
if test "x$ac_cv_lib_blas_zgemm" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBBLAS 1
_ACEOF

  LIBS="-lblas $LIBS"

fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zhpev in -llapack" >&5
$as_echo_n "checking for zhpev in -llapack... " >&6; }
if test "${ac_cv_lib_lapack_zhpev+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zhpev
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_lapack_zhpev=yes
else
  ac_cv_lib_lapack_zhpev=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_zhpev" >&5
$as_echo "$ac_cv_lib_lapack_zhpev" >&6; }
if test "x$ac_cv_lib_lapack_zhpev" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

fi

    if test "${ac_cv_lib_blas_zgemm}" = "yes" -a \
            "${ac_cv_lib_lapack_zhpev}" = "yes"; then
      abi_linalg_netlib_serial="yes"
      abi_linalg_netlib_libs="-llapack -lblas"
    fi
    if test "${enable_mpi}" = "yes" -a "${enable_scalapack}" = "yes" -a \
            "${abi_linalg_netlib_serial}" = "yes"; then
      LIBS="-lblacsCinit -lblacsF77init ${LIBS}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blacs_gridinit in -lblacs" >&5
$as_echo_n "checking for blacs_gridinit in -lblacs... " >&6; }
if test "${ac_cv_lib_blacs_blacs_gridinit+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lblacs  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call blacs_gridinit
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_blacs_blacs_gridinit=yes
else
  ac_cv_lib_blacs_blacs_gridinit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blacs_blacs_gridinit" >&5
$as_echo "$ac_cv_lib_blacs_blacs_gridinit" >&6; }
if test "x$ac_cv_lib_blacs_blacs_gridinit" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBBLACS 1
_ACEOF

  LIBS="-lblacs $LIBS"

fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pzheevx in -lscalapack" >&5
$as_echo_n "checking for pzheevx in -lscalapack... " >&6; }
if test "${ac_cv_lib_scalapack_pzheevx+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lscalapack  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call pzheevx
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_scalapack_pzheevx=yes
else
  ac_cv_lib_scalapack_pzheevx=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scalapack_pzheevx" >&5
$as_echo "$ac_cv_lib_scalapack_pzheevx" >&6; }
if test "x$ac_cv_lib_scalapack_pzheevx" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSCALAPACK 1
_ACEOF

  LIBS="-lscalapack $LIBS"

fi

      if test "${ac_cv_lib_blacs_blacs_gridinit}" = "yes" -a \
              "${ac_cv_lib_scalapack_pzheevx}" = "yes"; then
        abi_linalg_netlib_mpi="yes"
        abi_linalg_netlib_libs="-lscalapack -lblacs -lblacsCinit -lblacsF77init ${abi_linalg_netlib_libs}"
      fi
    fi
  else

    abi_linalg_user_serial="no"
  abi_linalg_user_mpi="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a serial optimized linear algebra support" >&5
$as_echo_n "checking for a serial optimized linear algebra support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call zgemm
      call zhpev

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_linalg_user_serial="yes"
else
  abi_linalg_user_serial="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_linalg_user_serial}" >&5
$as_echo "${abi_linalg_user_serial}" >&6; }

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI optimized linear algebra support" >&5
$as_echo_n "checking for a MPI optimized linear algebra support... " >&6; }
  if test "${enable_mpi}" = "yes" -a "${enable_scalapack}" = "yes"; then
    cat > conftest.$ac_ext <<_ACEOF
      program main

        call blacs_gridinit
        call pzheevx

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_linalg_user_mpi="yes"
else
  abi_linalg_user_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_linalg_user_mpi}" >&5
$as_echo "${abi_linalg_user_mpi}" >&6; }

    abi_linalg_netlib_serial="${abi_linalg_user_serial}"
    abi_linalg_netlib_mpi="${abi_linalg_user_mpi}"
    if test "${abi_linalg_netlib_serial}" = "yes"; then
      abi_linalg_netlib_incs="${with_linalg_includes}"
      abi_linalg_netlib_libs="${with_linalg_libs}"
    fi
  fi

        abi_linalg_serial="${abi_linalg_netlib_serial}"
        abi_linalg_mpi="${abi_linalg_netlib_mpi}"
        if test "${abi_linalg_serial}" = "yes"; then

$as_echo "#define HAVE_LINALG_NETLIB 1" >>confdefs.h

          lib_linalg_fcflags="${abi_linalg_netlib_fcflags}"
          lib_linalg_ldflags="${abi_linalg_netlib_ldflags}"
          lib_linalg_incs="${abi_linalg_netlib_incs}"
          lib_linalg_libs="${abi_linalg_netlib_libs}"
        fi
        ;;

    esac

  fi

    if test "${abi_linalg_serial}" = "yes"; then

$as_echo "#define HAVE_LINALG 1" >>confdefs.h


$as_echo "#define HAVE_LINALG_SERIAL 1" >>confdefs.h

  else
    lib_linalg_libs="-L\$(abinit_builddir)/prereqs/linalg -llapack -lblas"
    lib_linalg_flavor="none"
  fi

    if test "${abi_linalg_mpi}" = "yes"; then
    if test "${enable_scalapack}" = "yes"; then

$as_echo "#define HAVE_LINALG_MPI 1" >>confdefs.h

    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

  LIBS="${abi_saved_LIBS}"


    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"



    if test "${enable_linalg}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the actual linear algebra support" >&5
$as_echo_n "checking for the actual linear algebra support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_linalg_flavor}" >&5
$as_echo "${lib_linalg_flavor}" >&6; }
  fi







     if test "${lib_linalg_flavor}" = "none"; then
  DO_BUILD_LINALG_TRUE=
  DO_BUILD_LINALG_FALSE='#'
else
  DO_BUILD_LINALG_TRUE='#'
  DO_BUILD_LINALG_FALSE=
fi



# External math library support

    lib_math_flavor="${with_math_flavor}"
  lib_math_fcflags=""
  lib_math_ldflags=""
  lib_math_incs=""
  lib_math_libs=""
  abi_math_serial="no"
  abi_math_mpi="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use optimized math libraries" >&5
$as_echo_n "checking whether to use optimized math libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_math}" >&5
$as_echo "${enable_math}" >&6; }



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"


  abi_saved_LIBS="${LIBS}"
  CPPFLAGS="${with_math_includes} ${CPPFLAGS}"
  LDFLAGS="${FC_LDFLAGS}"
  LIBS="${with_math_libs} ${LIBS}"
  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 "${enable_math}" = "yes"; then

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the requested math support" >&5
$as_echo_n "checking for the requested math support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_math_flavor}" >&5
$as_echo "${with_math_flavor}" >&6; }

    case "${with_math_flavor}" in

      gsl)

    abi_math_gsl_has_incs="no"
  abi_math_gsl_has_libs="no"
  abi_math_gsl_serial="no"
  abi_math_gsl_mpi="no"
  abi_math_gsl_fcflags=""
  abi_math_gsl_ldflags=""
  abi_math_gsl_incs="${with_math_includes}"
  abi_math_gsl_libs="${with_math_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


    for ac_prog in gsl-config
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_GSL_CONFIG+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$GSL_CONFIG"; then
  ac_cv_prog_GSL_CONFIG="$GSL_CONFIG" # 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_GSL_CONFIG="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
GSL_CONFIG=$ac_cv_prog_GSL_CONFIG
if test -n "$GSL_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSL_CONFIG" >&5
$as_echo "$GSL_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$GSL_CONFIG" && break
done

  if test "${GSL_CONFIG}" != ""; then
    if test "${abi_math_gsl_incs}" = ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSL include flags" >&5
$as_echo_n "checking for GSL include flags... " >&6; }
      abi_math_gsl_incs=`${GSL_CONFIG} --cflags`
      CPPFLAGS="${abi_math_gsl_incs} ${CPPFLAGS}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_math_gsl_incs}" >&5
$as_echo "${abi_math_gsl_incs}" >&6; }
    fi
    if test "${abi_math_gsl_libs}" = ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSL link flags" >&5
$as_echo_n "checking for GSL link flags... " >&6; }
      abi_math_gsl_libs=`${GSL_CONFIG} --libs`
      LIBS="${abi_math_gsl_libs} ${LIBS}"
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_math_gsl_libs}" >&5
$as_echo "${abi_math_gsl_libs}" >&6; }
    fi
  fi

    for ac_header in gsl/gsl_sf_gamma.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "gsl/gsl_sf_gamma.h" "ac_cv_header_gsl_gsl_sf_gamma_h" "$ac_includes_default"
if test "x$ac_cv_header_gsl_gsl_sf_gamma_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_GSL_GSL_SF_GAMMA_H 1
_ACEOF
 abi_math_gsl_has_incs="yes"
else
  abi_math_gsl_has_incs="no"
fi

done


    if test "${abi_math_gsl_libs}" = ""; then
    LIBS="-lgslcblas -lm ${LIBS}"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsl_sf_gamma in -lgsl" >&5
$as_echo_n "checking for gsl_sf_gamma in -lgsl... " >&6; }
if test "${ac_cv_lib_gsl_gsl_sf_gamma+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgsl  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gsl_sf_gamma ();
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
return gsl_sf_gamma ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_gsl_gsl_sf_gamma=yes
else
  ac_cv_lib_gsl_gsl_sf_gamma=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_sf_gamma" >&5
$as_echo "$ac_cv_lib_gsl_gsl_sf_gamma" >&6; }
if test "x$ac_cv_lib_gsl_gsl_sf_gamma" = x""yes; then :
  abi_math_gsl_has_libs="yes"
else
  abi_math_gsl_has_libs="no"
fi

    if test "${abi_math_gsl_has_libs}" = "yes"; then
      abi_math_gsl_libs="-lgsl -lgslcblas -lm"
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the specified GSL library works" >&5
$as_echo_n "checking whether the specified GSL library works... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include "gsl/gsl_sf_gamma.h"

#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{

        double x,y;
        x = 1.0;
        y = gsl_sf_gamma(x);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  abi_math_gsl_has_libs="yes"
else
  abi_math_gsl_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_math_gsl_has_libs}" >&5
$as_echo "${abi_math_gsl_has_libs}" >&6; }
  fi

    if test "${abi_math_gsl_has_incs}" = "yes" -a \
          "${abi_math_gsl_has_libs}" = "yes"; then
    abi_math_gsl_serial="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


        abi_math_serial="${abi_math_gsl_serial}"
        abi_math_mpi="${abi_math_gsl_mpi}"
        if test "${abi_math_serial}" = "yes"; then

$as_echo "#define HAVE_MATH_GSL 1" >>confdefs.h

          lib_math_fcflags="${abi_math_gsl_fcflags}"
          lib_math_ldflags="${abi_math_gsl_ldflags}"
          lib_math_incs="${abi_math_gsl_incs}"
          lib_math_libs="${abi_math_gsl_libs}"
        fi
        ;;

      mlib)

    abi_math_mlib_serial="no"
  abi_math_mlib_mpi="no"
  abi_math_mlib_fcflags=""
  abi_math_mlib_ldflags=""
  abi_math_mlib_incs=""
  abi_math_mlib_libs=""

    if test "${with_math_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vrpbrmrb in -lveclib" >&5
$as_echo_n "checking for vrpbrmrb in -lveclib... " >&6; }
if test "${ac_cv_lib_veclib_vrpbrmrb+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lveclib  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call vrpbrmrb
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_veclib_vrpbrmrb=yes
else
  ac_cv_lib_veclib_vrpbrmrb=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_veclib_vrpbrmrb" >&5
$as_echo "$ac_cv_lib_veclib_vrpbrmrb" >&6; }
if test "x$ac_cv_lib_veclib_vrpbrmrb" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBVECLIB 1
_ACEOF

  LIBS="-lveclib $LIBS"

fi

    if test "${ac_cv_lib_veclib_vrpbrmrb}" = "yes"; then
      abi_math_mlib_serial="yes"
      abi_math_mlib_libs="-lveclib"
    fi
    if test "${enable_mpi}" = "yes" -a \
            "${abi_math_mlib_serial}" = "yes"; then
      abi_math_mlib_mpi="no"
    fi
  else
                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library check not implemented" >&5
$as_echo "$as_me: WARNING: library check not implemented" >&2;}
    abi_math_mlib_serial="yes"
    if test "${enable_mpi}" = "yes"; then
      abi_math_mlib_mpi="yes"
    fi
    if test "${abi_math_mlib_serial}" = "yes"; then
      abi_math_mlib_incs="${with_math_includes}"
      abi_math_mlib_libs="${with_math_libs}"
    fi
  fi

        abi_math_serial="${abi_math_mlib_serial}"
        abi_math_mpi="${abi_math_mlib_mpi}"
        if test "${abi_math_serial}" = "yes"; then

$as_echo "#define HAVE_MATH_MLIB 1" >>confdefs.h

          lib_math_fcflags="${abi_math_mlib_fcflags}"
          lib_math_ldflags="${abi_math_mlib_ldflags}"
          lib_math_incs="${abi_math_mlib_incs}"
          lib_math_libs="${abi_math_mlib_libs}"
        fi
        ;;

    esac

  fi

    if test "${abi_math_serial}" = "yes"; then

$as_echo "#define HAVE_MATH 1" >>confdefs.h


$as_echo "#define HAVE_MATH_SERIAL 1" >>confdefs.h

  else
    lib_math_flavor="none"
  fi

    if test "${abi_math_mpi}" = "yes"; then

$as_echo "#define HAVE_MATH_MPI 1" >>confdefs.h

  fi

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

  LIBS="${abi_saved_LIBS}"


    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"



    if test "${enable_math}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the actual math support" >&5
$as_echo_n "checking for the actual math support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_math_flavor}" >&5
$as_echo "${lib_math_flavor}" >&6; }
  fi







     if test "${lib_math_flavor}" = "gsl"; then
  DO_BUILD_01_GSL_EXT_TRUE=
  DO_BUILD_01_GSL_EXT_FALSE='#'
else
  DO_BUILD_01_GSL_EXT_TRUE='#'
  DO_BUILD_01_GSL_EXT_FALSE=
fi



# External FFT support

    lib_fft_flavor="${with_fft_flavor}"
  lib_fft_fcflags=""
  lib_fft_ldflags=""
  lib_fft_incs=""
  lib_fft_libs=""
  abi_fft_serial="no"
  abi_fft_mpi="no"

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use optimized FFT libraries" >&5
$as_echo_n "checking whether to use optimized FFT libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_fft}" >&5
$as_echo "${enable_fft}" >&6; }



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"


  abi_saved_LIBS="${LIBS}"
  CPPFLAGS="${with_fft_includes} ${CPPFLAGS}"
  LDFLAGS="${FC_LDFLAGS}"
  LIBS="${with_fft_libs} ${LIBS}"
  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 "${enable_fft}" = "yes"; then

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the requested FFT support" >&5
$as_echo_n "checking for the requested FFT support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_fft_flavor}" >&5
$as_echo "${with_fft_flavor}" >&6; }

    case "${with_fft_flavor}" in

      asl)

    abi_fft_asl_serial="no"
  abi_fft_asl_mpi="no"
  abi_fft_asl_fcflags=""
  abi_fft_asl_ldflags=""
  abi_fft_asl_incs=""
  abi_fft_asl_libs=""

    if test "${with_fft_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zfc3fb in -lasl" >&5
$as_echo_n "checking for zfc3fb in -lasl... " >&6; }
if test "${ac_cv_lib_asl_zfc3fb+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lasl  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call zfc3fb
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_asl_zfc3fb=yes
else
  ac_cv_lib_asl_zfc3fb=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asl_zfc3fb" >&5
$as_echo "$ac_cv_lib_asl_zfc3fb" >&6; }
if test "x$ac_cv_lib_asl_zfc3fb" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBASL 1
_ACEOF

  LIBS="-lasl $LIBS"

fi

    if test "${ac_cv_lib_asl_zfc3fb}" = "yes"; then
      abi_fft_asl_serial="yes"
      abi_fft_asl_libs="-lasl"
    fi
    if test "${enable_mpi}" = "yes" -a \
            "${abi_fft_asl_serial}" = "yes"; then
      abi_fft_asl_mpi="no"
    fi
  else

    abi_fft_user_serial="no"
  abi_fft_user_mpi="no"
  abi_fft_user_threads="no"

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a serial optimized FFT support" >&5
$as_echo_n "checking for a serial optimized FFT support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call dfftw_execute

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_serial="yes"
else
  abi_fft_user_serial="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_serial}" >&5
$as_echo "${abi_fft_user_serial}" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI optimized FFT support" >&5
$as_echo_n "checking for a MPI optimized FFT support... " >&6; }
  if test "${enable_mpi}" = "yes"; then
    cat > conftest.$ac_ext <<_ACEOF
      program main

        choke me

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_mpi="yes"
else
  abi_fft_user_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_mpi}" >&5
$as_echo "${abi_fft_user_mpi}" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a threaded optimized FFT support" >&5
$as_echo_n "checking for a threaded optimized FFT support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call dfftw_init_threads

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_threads="yes"
else
  abi_fft_user_threads="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_threads}" >&5
$as_echo "${abi_fft_user_threads}" >&6; }

    abi_fft_asl_serial="${abi_fft_user_serial}"
    abi_fft_asl_mpi="${abi_fft_user_mpi}"
    if test "${abi_fft_asl_serial}" = "yes"; then
      abi_fft_asl_incs="${with_fft_includes}"
      abi_fft_asl_libs="${with_fft_libs}"
    fi
  fi

        abi_fft_serial="${abi_fft_asl_serial}"
        abi_fft_mpi="${abi_fft_asl_mpi}"
        if test "${abi_fft_serial}" = "yes"; then

$as_echo "#define HAVE_FFT_ASL 1" >>confdefs.h

          lib_fft_fcflags="${abi_fft_asl_fcflags}"
          lib_fft_ldflags="${abi_fft_asl_ldflags}"
          lib_fft_incs="${abi_fft_asl_incs}"
          lib_fft_libs="${abi_fft_asl_libs}"
        fi
        ;;

      fftw2*)

    abi_fft_fftw2_serial="no"
  abi_fft_fftw2_mpi="no"
  abi_fft_fftw2_fcflags=""
  abi_fft_fftw2_ldflags=""
  abi_fft_fftw2_incs=""
  abi_fft_fftw2_libs=""

    if test "${with_fft_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw2" >&5
$as_echo_n "checking for fftw_execute in -lfftw2... " >&6; }
if test "${ac_cv_lib_fftw2_fftw_execute+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw2  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call fftw_execute
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_fftw2_fftw_execute=yes
else
  ac_cv_lib_fftw2_fftw_execute=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw2_fftw_execute" >&5
$as_echo "$ac_cv_lib_fftw2_fftw_execute" >&6; }
if test "x$ac_cv_lib_fftw2_fftw_execute" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBFFTW2 1
_ACEOF

  LIBS="-lfftw2 $LIBS"

fi

    if test "${ac_cv_lib_fftw2_fftw_execute}" = "yes"; then
      abi_fft_fftw2_serial="yes"
      abi_fft_fftw2_libs="-lfftw2"
    fi
    if test "${enable_mpi}" = "yes" -a \
            "${abi_fft_fftw2_serial}" = "yes"; then
      abi_fft_fftw2_mpi="no"
    fi
  else

    abi_fft_user_serial="no"
  abi_fft_user_mpi="no"
  abi_fft_user_threads="no"

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a serial optimized FFT support" >&5
$as_echo_n "checking for a serial optimized FFT support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call dfftw_execute

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_serial="yes"
else
  abi_fft_user_serial="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_serial}" >&5
$as_echo "${abi_fft_user_serial}" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI optimized FFT support" >&5
$as_echo_n "checking for a MPI optimized FFT support... " >&6; }
  if test "${enable_mpi}" = "yes"; then
    cat > conftest.$ac_ext <<_ACEOF
      program main

        choke me

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_mpi="yes"
else
  abi_fft_user_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_mpi}" >&5
$as_echo "${abi_fft_user_mpi}" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a threaded optimized FFT support" >&5
$as_echo_n "checking for a threaded optimized FFT support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call dfftw_init_threads

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_threads="yes"
else
  abi_fft_user_threads="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_threads}" >&5
$as_echo "${abi_fft_user_threads}" >&6; }

    abi_fft_fftw2_serial="${abi_fft_user_serial}"
    abi_fft_fftw2_mpi="${abi_fft_user_mpi}"
    if test "${abi_fft_fftw2_serial}" = "yes"; then
      abi_fft_fftw2_incs="${with_fft_includes}"
      abi_fft_fftw2_libs="${with_fft_libs}"
    fi
  fi

        abi_fft_serial="${abi_fft_fftw2_serial}"
        abi_fft_mpi="${abi_fft_fftw2_mpi}"
        if test "${abi_fft_serial}" = "yes"; then

$as_echo "#define HAVE_FFT_FFTW2 1" >>confdefs.h

          if test "${with_fft_flavor}" = "fftw2-threads"; then

$as_echo "#define HAVE_FFT_FFTW2_THREADS 1" >>confdefs.h

          fi
          lib_fft_fcflags="${abi_fft_fftw2_fcflags}"
          lib_fft_ldflags="${abi_fft_fftw2_ldflags}"
          lib_fft_incs="${abi_fft_fftw2_incs}"
          lib_fft_libs="${abi_fft_fftw2_libs}"
        fi
        ;;

      fftw3*)

    abi_fft_fftw3_serial="no"
  abi_fft_fftw3_mpi="no"
  abi_fft_fftw3_threads="no"
  abi_fft_fftw3_fcflags=""
  abi_fft_fftw3_ldflags=""
  abi_fft_fftw3_incs=""
  abi_fft_fftw3_libs=""

    if test "${with_fft_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dfftw_execute in -lfftw3" >&5
$as_echo_n "checking for dfftw_execute in -lfftw3... " >&6; }
if test "${ac_cv_lib_fftw3_dfftw_execute+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call dfftw_execute
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_fftw3_dfftw_execute=yes
else
  ac_cv_lib_fftw3_dfftw_execute=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_dfftw_execute" >&5
$as_echo "$ac_cv_lib_fftw3_dfftw_execute" >&6; }
if test "x$ac_cv_lib_fftw3_dfftw_execute" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBFFTW3 1
_ACEOF

  LIBS="-lfftw3 $LIBS"

fi

    if test "${ac_cv_lib_fftw3_dfftw_execute}" = "yes"; then
      abi_fft_fftw3_serial="yes"
      abi_fft_fftw3_libs="-lfftw3"
    fi
    if test "${enable_mpi}" = "yes" -a \
            "${abi_fft_fftw3_serial}" = "yes"; then
      abi_fft_fftw3_mpi="no"
    fi
  else

    abi_fft_user_serial="no"
  abi_fft_user_mpi="no"
  abi_fft_user_threads="no"

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a serial optimized FFT support" >&5
$as_echo_n "checking for a serial optimized FFT support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call dfftw_execute

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_serial="yes"
else
  abi_fft_user_serial="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_serial}" >&5
$as_echo "${abi_fft_user_serial}" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI optimized FFT support" >&5
$as_echo_n "checking for a MPI optimized FFT support... " >&6; }
  if test "${enable_mpi}" = "yes"; then
    cat > conftest.$ac_ext <<_ACEOF
      program main

        choke me

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_mpi="yes"
else
  abi_fft_user_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_mpi}" >&5
$as_echo "${abi_fft_user_mpi}" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a threaded optimized FFT support" >&5
$as_echo_n "checking for a threaded optimized FFT support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call dfftw_init_threads

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_threads="yes"
else
  abi_fft_user_threads="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_threads}" >&5
$as_echo "${abi_fft_user_threads}" >&6; }

    abi_fft_fftw3_serial="${abi_fft_user_serial}"
    abi_fft_fftw3_mpi="${abi_fft_user_mpi}"
    if test "${abi_fft_fftw3_serial}" = "yes"; then
      abi_fft_fftw3_incs="${with_fft_includes}"
      abi_fft_fftw3_libs="${with_fft_libs}"
    fi
  fi

    if test "${abi_fft_fftw3_serial}" = "yes"; then
    if test "${with_fft_libs}" = ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dfftw_init_threads in -lfftw3_threads" >&5
$as_echo_n "checking for dfftw_init_threads in -lfftw3_threads... " >&6; }
if test "${ac_cv_lib_fftw3_threads_dfftw_init_threads+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3_threads  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call dfftw_init_threads
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_fftw3_threads_dfftw_init_threads=yes
else
  ac_cv_lib_fftw3_threads_dfftw_init_threads=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_threads_dfftw_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3_threads_dfftw_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3_threads_dfftw_init_threads" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBFFTW3_THREADS 1
_ACEOF

  LIBS="-lfftw3_threads $LIBS"

fi

      if test "${ac_cv_lib_fftw3_threads_dfftw_init_threads}" = "yes"; then
        abi_fft_fftw3_threads="yes"
        abi_fft_fftw3_libs="-lfftw3_threads ${abi_fft_fftw3_libs}"
      fi
    else
      abi_fft_fftw3_threads="${abi_fft_user_threads}"
    fi
  fi

        abi_fft_serial="${abi_fft_fftw3_serial}"
        abi_fft_mpi="${abi_fft_fftw3_mpi}"
        abi_fft_threads="${abi_fft_fftw3_threads}"
        if test "${abi_fft_serial}" = "yes"; then

$as_echo "#define HAVE_FFT_FFTW3 1" >>confdefs.h

          if test "${abi_fft_threads}" = "yes"; then

$as_echo "#define HAVE_FFT_FFTW3_THREADS 1" >>confdefs.h

            lib_fft_flavor="fftw3-threads"
          else
            lib_fft_flavor="fftw3"
          fi
          if test "${with_fft_flavor}" = "fftw3-mkl"; then

$as_echo "#define HAVE_FFT_FFTW3_MKL 1" >>confdefs.h

          fi
          lib_fft_fcflags="${abi_fft_fftw3_fcflags}"
          lib_fft_ldflags="${abi_fft_fftw3_ldflags}"
          lib_fft_incs="${abi_fft_fftw3_incs}"
          lib_fft_libs="${abi_fft_fftw3_libs}"
        fi
        ;;

      mlib)

    abi_fft_mlib_serial="no"
  abi_fft_mlib_mpi="no"
  abi_fft_mlib_fcflags=""
  abi_fft_mlib_ldflags=""
  abi_fft_mlib_incs=""
  abi_fft_mlib_libs=""

    if test "${with_fft_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c1dfft in -lveclib" >&5
$as_echo_n "checking for c1dfft in -lveclib... " >&6; }
if test "${ac_cv_lib_veclib_c1dfft+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lveclib  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call c1dfft
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_veclib_c1dfft=yes
else
  ac_cv_lib_veclib_c1dfft=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_veclib_c1dfft" >&5
$as_echo "$ac_cv_lib_veclib_c1dfft" >&6; }
if test "x$ac_cv_lib_veclib_c1dfft" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBVECLIB 1
_ACEOF

  LIBS="-lveclib $LIBS"

fi

    if test "${ac_cv_lib_veclib_c1dfft}" = "yes"; then
      abi_fft_mlib_serial="yes"
      abi_fft_mlib_libs="-lveclib"
    fi
    if test "${enable_mpi}" = "yes" -a \
            "${abi_fft_mlib_serial}" = "yes"; then
      abi_fft_mlib_mpi="no"
    fi
  else

    abi_fft_user_serial="no"
  abi_fft_user_mpi="no"
  abi_fft_user_threads="no"

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a serial optimized FFT support" >&5
$as_echo_n "checking for a serial optimized FFT support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call dfftw_execute

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_serial="yes"
else
  abi_fft_user_serial="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_serial}" >&5
$as_echo "${abi_fft_user_serial}" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI optimized FFT support" >&5
$as_echo_n "checking for a MPI optimized FFT support... " >&6; }
  if test "${enable_mpi}" = "yes"; then
    cat > conftest.$ac_ext <<_ACEOF
      program main

        choke me

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_mpi="yes"
else
  abi_fft_user_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_mpi}" >&5
$as_echo "${abi_fft_user_mpi}" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a threaded optimized FFT support" >&5
$as_echo_n "checking for a threaded optimized FFT support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call dfftw_init_threads

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_threads="yes"
else
  abi_fft_user_threads="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_threads}" >&5
$as_echo "${abi_fft_user_threads}" >&6; }

    abi_fft_mlib_serial="${abi_fft_user_serial}"
    abi_fft_mlib_mpi="${abi_fft_user_mpi}"
    if test "${abi_fft_mlib_serial}" = "yes"; then
      abi_fft_mlib_incs="${with_fft_includes}"
      abi_fft_mlib_libs="${with_fft_libs}"
    fi
  fi

        abi_fft_serial="${abi_fft_mlib_serial}"
        abi_fft_mpi="${abi_fft_mlib_mpi}"
        if test "${abi_fft_serial}" = "yes"; then

$as_echo "#define HAVE_FFT_MLIB 1" >>confdefs.h

          lib_fft_fcflags="${abi_fft_mlib_fcflags}"
          lib_fft_ldflags="${abi_fft_mlib_ldflags}"
          lib_fft_incs="${abi_fft_mlib_incs}"
          lib_fft_libs="${abi_fft_mlib_libs}"
        fi
        ;;

      sgimath)

    abi_fft_sgimath_serial="no"
  abi_fft_sgimath_mpi="no"
  abi_fft_sgimath_fcflags=""
  abi_fft_sgimath_ldflags=""
  abi_fft_sgimath_incs=""
  abi_fft_sgimath_libs=""

    if test "${with_fft_libs}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dfft1du in -lcomplib.sgimath" >&5
$as_echo_n "checking for dfft1du in -lcomplib.sgimath... " >&6; }
if test "${ac_cv_lib_complib_sgimath_dfft1du+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcomplib.sgimath  $LIBS"
cat > conftest.$ac_ext <<_ACEOF
      program main
      call dfft1du
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  ac_cv_lib_complib_sgimath_dfft1du=yes
else
  ac_cv_lib_complib_sgimath_dfft1du=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_complib_sgimath_dfft1du" >&5
$as_echo "$ac_cv_lib_complib_sgimath_dfft1du" >&6; }
if test "x$ac_cv_lib_complib_sgimath_dfft1du" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCOMPLIB_SGIMATH 1
_ACEOF

  LIBS="-lcomplib.sgimath $LIBS"

fi

    if test "${ac_cv_lib_complib_sgimath_dfft1du}" = "yes"; then
      abi_fft_sgimath_serial="yes"
      abi_fft_sgimath_libs="-lcomplib.sgimath"
    fi
    if test "${enable_mpi}" = "yes" -a \
            "${abi_fft_sgimath_serial}" = "yes"; then
      abi_fft_sgimath_mpi="no"
    fi
  else

    abi_fft_user_serial="no"
  abi_fft_user_mpi="no"
  abi_fft_user_threads="no"

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a serial optimized FFT support" >&5
$as_echo_n "checking for a serial optimized FFT support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call dfftw_execute

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_serial="yes"
else
  abi_fft_user_serial="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_serial}" >&5
$as_echo "${abi_fft_user_serial}" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a MPI optimized FFT support" >&5
$as_echo_n "checking for a MPI optimized FFT support... " >&6; }
  if test "${enable_mpi}" = "yes"; then
    cat > conftest.$ac_ext <<_ACEOF
      program main

        choke me

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_mpi="yes"
else
  abi_fft_user_mpi="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_mpi}" >&5
$as_echo "${abi_fft_user_mpi}" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a threaded optimized FFT support" >&5
$as_echo_n "checking for a threaded optimized FFT support... " >&6; }
  cat > conftest.$ac_ext <<_ACEOF
      program main

      call dfftw_init_threads

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_fft_user_threads="yes"
else
  abi_fft_user_threads="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fft_user_threads}" >&5
$as_echo "${abi_fft_user_threads}" >&6; }

    abi_fft_sgimath_serial="${abi_fft_user_serial}"
    abi_fft_sgimath_mpi="${abi_fft_user_mpi}"
    if test "${abi_fft_sgimath_serial}" = "yes"; then
      abi_fft_sgimath_incs="${with_fft_includes}"
      abi_fft_sgimath_libs="${with_fft_libs}"
    fi
  fi

        abi_fft_serial="${abi_fft_sgimath_serial}"
        abi_fft_mpi="${abi_fft_sgimath_mpi}"
        if test "${abi_fft_serial}" = "yes"; then

$as_echo "#define HAVE_FFT_SGIMATH 1" >>confdefs.h

          lib_fft_fcflags="${abi_fft_sgimath_fcflags}"
          lib_fft_ldflags="${abi_fft_sgimath_ldflags}"
          lib_fft_incs="${abi_fft_sgimath_incs}"
          lib_fft_libs="${abi_fft_sgimath_libs}"
        fi
        ;;

    esac

  fi

    if test "${abi_fft_serial}" = "yes"; then

$as_echo "#define HAVE_FFT 1" >>confdefs.h


$as_echo "#define HAVE_FFT_SERIAL 1" >>confdefs.h

  else
    lib_fft_flavor="none"
  fi

    if test "${abi_fft_mpi}" = "yes"; then

$as_echo "#define HAVE_FFT_MPI 1" >>confdefs.h

  fi

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

  LIBS="${abi_saved_LIBS}"


    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"



    if test "${enable_fft}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the actual FFT support" >&5
$as_echo_n "checking for the actual FFT support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_fft_flavor}" >&5
$as_echo "${lib_fft_flavor}" >&6; }
  fi








# External DFT support

    lib_dft_flavor="${with_dft_flavor}"
  lib_dft_fcflags=""
  lib_dft_ldflags=""
  lib_dft_incs=""
  lib_dft_libs=""

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use DFT libraries" >&5
$as_echo_n "checking whether to use DFT libraries... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_dft}" >&5
$as_echo "${enable_dft}" >&6; }



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"


  abi_saved_LIBS="${LIBS}"
  CPPFLAGS="${with_dft_includes} ${CPPFLAGS}"
  FCFLAGS="${with_dft_includes} ${FCFLAGS}"
  LDFLAGS="${FC_LDFLAGS}"
  LIBS="${with_dft_libs} ${LIBS}"
  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 "${enable_dft}" = "yes"; then

        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the requested DFT support" >&5
$as_echo_n "checking for the requested DFT support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_dft_flavor}" >&5
$as_echo "${with_dft_flavor}" >&6; }

        abi_dft_iter=`echo "${with_dft_flavor}" | sed -e 's/+/\n/g' | sort -u | awk '{printf " %s",$1}'`
    abi_dft_tmp="${abi_dft_iter}"
    for abi_dft_flavor in ${abi_dft_iter}; do
      if test "${abi_dft_flavor}" != "libxc"; then
        abi_dft_tmp=`echo "${abi_dft_iter}" | sed -e 's/libxc//'`
        abi_dft_tmp="libxc ${abi_dft_tmp}"
      fi
    done
    abi_dft_iter="${abi_dft_tmp}"

    for abi_dft_flavor in ${abi_dft_iter}; do

      case "${abi_dft_flavor}" in

        bigdft)
          if test "${abi_dft_libxc_serial}" = "yes"; then

    abi_dft_bigdft_has_incs="no"
  abi_dft_bigdft_has_libs="no"
  abi_dft_bigdft_serial="no"
  abi_dft_bigdft_mpi="no"
  abi_dft_bigdft_fcflags=""
  abi_dft_bigdft_ldflags=""
  abi_dft_bigdft_incs="${with_dft_includes}"
  abi_dft_bigdft_libs="${with_dft_libs}"

    if test "${abi_dft_bigdft_libs}" = ""; then
    LIBS="-lbigdft -lpoissonsolver ${LIBS}"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a working BigDFT library" >&5
$as_echo_n "checking whether we have a working BigDFT library... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        use bigdft_api
        type(atoms_data) :: atoms
        type(restart_objects) :: rst
        character(len=*),parameter :: routine = "conftest"
        call init_restart_objects(atoms,rst,routine)

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_dft_bigdft_has_libs="yes"
else
  abi_dft_bigdft_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_dft_bigdft_has_libs}" >&5
$as_echo "${abi_dft_bigdft_has_libs}" >&6; }
    if test "${abi_dft_bigdft_has_libs}" = "yes"; then
      abi_dft_bigdft_has_incs="yes"
      abi_dft_bigdft_libs="-lbigdft -lpoissonsolver"
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the specified BigDFT library works" >&5
$as_echo_n "checking whether the specified BigDFT library works... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        use bigdft_api
        type(atoms_data) :: atoms
        type(restart_objects) :: rst
        character(len=*),parameter :: routine = "conftest"
        call init_restart_objects(atoms,rst,routine)

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_dft_bigdft_has_incs="yes"; abi_dft_bigdft_has_libs="yes"
else
  abi_dft_bigdft_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_dft_bigdft_has_libs}" >&5
$as_echo "${abi_dft_bigdft_has_libs}" >&6; }
  fi

    if test "${abi_dft_bigdft_has_incs}" = "yes" -a \
          "${abi_dft_bigdft_has_libs}" = "yes"; then
    abi_dft_bigdft_serial="yes"
  fi

    if test "${enable_mpi}" = "yes"; then
                            abi_dft_bigdft_mpi="yes"
  fi

          else
            abi_dft_bigdft_serial="no"
            abi_dft_bigdft_mpi="no"
          fi
          if test "${abi_dft_bigdft_serial}" = "yes"; then

$as_echo "#define HAVE_DFT_BIGDFT 1" >>confdefs.h

                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling BigDFT plugin" >&5
$as_echo "$as_me: WARNING: disabling BigDFT plugin" >&2;}
            enable_bigdft_io="no"

$as_echo "#define HAVE_BIGDFT 1" >>confdefs.h

          else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: falling back to BigDFT plugin" >&5
$as_echo "$as_me: WARNING: falling back to BigDFT plugin" >&2;}
            enable_bigdft="yes"
          fi
          ;;

        libxc)

    abi_dft_libxc_has_incs="no"
  abi_dft_libxc_has_libs="no"
  abi_dft_libxc_serial="no"
  abi_dft_libxc_mpi="no"
  abi_dft_libxc_fcflags=""
  abi_dft_libxc_ldflags=""
  abi_dft_libxc_incs="${with_dft_includes}"
  abi_dft_libxc_libs="${with_dft_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

  for ac_header in xc.h xc_funcs.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
eval as_val=\$$as_ac_Header
   if test "x$as_val" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 abi_dft_libxc_has_incs="yes"
else
  abi_dft_libxc_has_incs="no"
fi

done

  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 "${abi_dft_libxc_libs}" = ""; 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

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xc_func_init in -llibxc" >&5
$as_echo_n "checking for xc_func_init in -llibxc... " >&6; }
if test "${ac_cv_lib_libxc_xc_func_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llibxc  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char xc_func_init ();
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
return xc_func_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_libxc_xc_func_init=yes
else
  ac_cv_lib_libxc_xc_func_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_libxc_xc_func_init" >&5
$as_echo "$ac_cv_lib_libxc_xc_func_init" >&6; }
if test "x$ac_cv_lib_libxc_xc_func_init" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLIBXC 1
_ACEOF

  LIBS="-llibxc $LIBS"

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 "${ac_cv_lib_libxc_xc_func_init}" = "yes"; then
                  if test "${abi_dft_libxc_has_libs}" = "yes"; then
        abi_dft_libxc_libs="-llibxc"
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the specified LibXC library works" >&5
$as_echo_n "checking whether the specified LibXC library works... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        use xc_f90_lib_m
        integer :: i
        type(xc_f90_pointer_t) :: info
        i = xc_f90_info_number(info)

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_dft_libxc_has_libs="yes"
else
  abi_dft_libxc_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_dft_libxc_has_libs}" >&5
$as_echo "${abi_dft_libxc_has_libs}" >&6; }
  fi

    if test "${abi_dft_libxc_has_incs}" = "yes" -a \
          "${abi_dft_libxc_has_libs}" = "yes"; then
    abi_dft_libxc_serial="yes"
  fi

    if test "${enable_mpi}" = "yes"; then
                                    abi_dft_libxc_mpi="yes"
  fi

    LIBS="${abi_dft_libxc_libs} ${LIBS}"

          if test "${abi_dft_libxc_serial}" = "yes"; then

$as_echo "#define HAVE_DFT_LIBXC 1" >>confdefs.h

                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling LibXC plugin" >&5
$as_echo "$as_me: WARNING: disabling LibXC plugin" >&2;}
            enable_libxc="no"

$as_echo "#define HAVE_LIBXC 1" >>confdefs.h

          else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: falling back to LibXC plugin" >&5
$as_echo "$as_me: WARNING: falling back to LibXC plugin" >&2;}
            enable_libxc="yes"
          fi
          ;;

        wannier90)

    abi_dft_wannier90_has_incs="no"
  abi_dft_wannier90_has_libs="no"
  abi_dft_wannier90_serial="no"
  abi_dft_wannier90_mpi="no"
  abi_dft_wannier90_fcflags=""
  abi_dft_wannier90_ldflags=""
  abi_dft_wannier90_incs="${with_dft_includes}"
  abi_dft_wannier90_libs="${with_dft_libs}"

    if test "${abi_dft_wannier90_libs}" = ""; then
    LIBS="-lwannier ${LIBS}"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a working Wannier90 library" >&5
$as_echo_n "checking whether we have a working Wannier90 library... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        call wannier_run

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_dft_wannier90_has_libs="yes"
else
  abi_dft_wannier90_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_dft_wannier90_has_libs}" >&5
$as_echo "${abi_dft_wannier90_has_libs}" >&6; }
    if test "${abi_dft_wannier90_has_libs}" = "yes"; then
      abi_dft_wannier90_has_incs="yes"
      abi_dft_wannier90_libs="-lwannier"
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the specified Wannier90 library works" >&5
$as_echo_n "checking whether the specified Wannier90 library works... " >&6; }
    cat > conftest.$ac_ext <<_ACEOF
      program main

        call wannier_run

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  abi_dft_wannier90_has_incs="yes"; abi_dft_wannier90_has_libs="yes"
else
  abi_dft_wannier90_has_libs="no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_dft_wannier90_has_libs}" >&5
$as_echo "${abi_dft_wannier90_has_libs}" >&6; }
  fi

    if test "${abi_dft_wannier90_has_incs}" = "yes" -a \
          "${abi_dft_wannier90_has_libs}" = "yes"; then
    abi_dft_wannier90_serial="yes"
  fi

          if test "${abi_dft_wannier90_serial}" = "yes"; then

$as_echo "#define HAVE_DFT_WANNIER90 1" >>confdefs.h

                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling Wannier90 plugin" >&5
$as_echo "$as_me: WARNING: disabling Wannier90 plugin" >&2;}
            enable_wannier90="no"

$as_echo "#define HAVE_WANNIER90 1" >>confdefs.h

          else
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: falling back to Wannier90 plugin" >&5
$as_echo "$as_me: WARNING: falling back to Wannier90 plugin" >&2;}
            enable_wannier90="yes"
          fi
          ;;

        *)
          as_fn_error "unknown DFT flavor '${abi_dft_flavor}'" "$LINENO" 5
          ;;

      esac

    done

        lib_dft_flavor=`echo "${abi_dft_iter}" | sed -e 's/^[ ]*//;s/[ ]*$//;s/ [ ]*/+/g;'`
  fi

    lib_dft_fcflags="${abi_dft_libxc_fcflags} ${abi_dft_bigdft_fcflags} ${abi_dft_wannier90_fcflags}"
  lib_dft_ldflags="${abi_dft_libxc_ldflags} ${abi_dft_bigdft_ldflags} ${abi_dft_wannier90_ldflags}"
  lib_dft_incs="${abi_dft_libxc_incs} ${abi_dft_bigdft_incs} ${abi_dft_wannier90_incs}"
  lib_dft_libs="${abi_dft_bigdft_libs} ${abi_dft_wannier90_libs} ${abi_dft_libxc_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

  LIBS="${abi_saved_LIBS}"


    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"



    if test "${enable_dft}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the actual DFT support" >&5
$as_echo_n "checking for the actual DFT support... " >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lib_dft_flavor}" >&5
$as_echo "${lib_dft_flavor}" >&6; }
  fi








# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #

#
# Plug-ins
#

# NOTE: the configuration has to be saved already, in order to transmit the
#       right build parameters to the embedded packages



  abi_sec_title="Plug-ins"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Warn if neither wget nor curl have been found
if test "${WGET}" = "" -a "${CURL}" = ""; then


    abi_msg_file="${abinit_srcdir}/config/messages/download.msg"
  abi_msg_title="No downloader found"
  test "${abi_msg_title}" = "" && abi_msg_title="IMPORTANT NOTE"

    abi_msg_spacer="                                                            "
  abi_msg_tmp1=`echo "${abi_msg_title}" | sed -e 's/./ /g'`
  abi_msg_tmp2=`echo "${abi_msg_tmp1}" | grep "${abi_msg_spacer}"`
  abi_msg_spacer=`echo "${abi_msg_spacer}" | sed -e "s/${abi_msg_tmp1}//"`
  test "${abi_msg_tmp2}" = "" || abi_msg_spacer=""
  abi_msg_title="${abi_msg_title}${abi_msg_spacer}"

  if test -s "${abi_msg_file}"; then

    echo ""
  echo "        +--------------------------------------------------------------+"
  echo "        | ${abi_msg_title} |"
  echo "        +--------------------------------------------------------------+"

    while read abi_msg_line; do
    abi_msg_line=`eval echo ${abi_msg_line}`
    abi_msg_spacer="                                                            "
    abi_msg_tmp1=`echo "${abi_msg_line}" | sed -e 's/./ /g'`
    abi_msg_tmp2=`echo "${abi_msg_tmp1}" | grep "${abi_msg_spacer}"`
    test "${abi_msg_tmp1}" = "" || \
      abi_msg_spacer=`echo "${abi_msg_spacer}" | sed -e "s/${abi_msg_tmp1}//"`
    test "${abi_msg_tmp2}" = "" || abi_msg_spacer=""
    echo "        | ${abi_msg_line}${abi_msg_spacer} |"
  done <"${abi_msg_file}"

    echo "        +--------------------------------------------------------------+"
  echo ""

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: message file ${abi_msg_file} not found" >&5
$as_echo "$as_me: WARNING: message file ${abi_msg_file} not found" >&2;}
  fi

fi

# Make sure ~/.abinit/tarballs exists
if test "${with_plugins_tardir}" != ""; then
  abinit_tardir="${with_plugins_tardir}"
fi
if test "${abinit_tardir}" = ""; then
  abinit_tardir="${HOME}/.abinit/tarballs"
  if test ! -e "${abinit_tardir}"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: creating ${abinit_tardir}" >&5
$as_echo "$as_me: creating ${abinit_tardir}" >&6;}
    ${INSTALL} -d -m 755 "${abinit_tardir}"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: using tarball repository ${abinit_tardir}" >&5
$as_echo "$as_me: using tarball repository ${abinit_tardir}" >&6;}


# Display prefix for for already installed plug-ins
if test "${with_plugins_prefix}" != ""; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: using prefix ${with_plugins_prefix}" >&5
$as_echo "$as_me: using prefix ${with_plugins_prefix}" >&6;}
fi

# Check consistency
if test "${enable_etsf_io}" = "yes"; then
  if test "${enable_netcdf}" != "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: enabling NetCDF support (for ETSF I/O)" >&5
$as_echo "$as_me: enabling NetCDF support (for ETSF I/O)" >&6;}
    enable_netcdf="yes"
  fi
fi

# Deactivate some plugins if patch is not available
if test "${PATCH}" = ""; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no 'patch' command available" >&5
$as_echo "$as_me: WARNING: no 'patch' command available" >&2;}
  if test "${enable_bigdft}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling BigDFT (requires patch)" >&5
$as_echo "$as_me: WARNING: disabling BigDFT (requires patch)" >&2;}
    enable_bigdft="no"
  fi
  if test "${enable_wannier90}" = "yes"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling Wannier90 (requires patch)" >&5
$as_echo "$as_me: WARNING: disabling Wannier90 (requires patch)" >&2;}
    enable_wannier90="no"
  fi
fi

# ---------------------------------------------------------------------------- #

#
# XML file I/O support
#

#if test "${enable_fox}" = "yes" -a \( "${enable_debug}" = "no" -o \
#        "${enable_debug}" = "yes" \); then
#  enable_fox="no"
#  AC_MSG_WARN([FoX support is not yet operational - volunteers welcome])
#fi

    lib_fox_incs=""
  lib_fox_libs=""
  build_fox="no"
  abi_plug_download="no"
  abi_plug_ready="no"
  abi_plug_tarball="no"
  abi_plug_bins=""
  abi_plug_incs=""
  abi_plug_libs=""

    if test "${WGET}" != ""; then
    abi_plug_downloader="${WGET}"
    abi_plug_dlopts="--timeout=15 --tries=1 -q -O"
  elif test "${CURL}" != ""; then
    abi_plug_downloader="${CURL}"
    abi_plug_dlopts="--connect-time 15 --retry 1 -s -S -o"
  fi

    fox_pkg_name="FoX-4.0.4"

  fox_pkg_string="FoX Fortran XML library 4.0.4 (upstream release)"


  if test -z "${CFGFLAGS_FOX}"; then
    CFGFLAGS_FOX=""
  fi

  if test -z "${CPPFLAGS_FOX}"; then
    CPPFLAGS_FOX=""
  fi

  if test -z "${CFLAGS_FOX}"; then
    CFLAGS_FOX="${CFLAGS}"
  fi

  if test -z "${CXXFLAGS_FOX}"; then
    CXXFLAGS_FOX="${CXXFLAGS}"
  fi

  if test -z "${FCFLAGS_FOX}"; then
    FCFLAGS_FOX="${FCFLAGS}"
  fi


    FCFLAGS_FOX="${FCFLAGS_FOX} ${fcflags_opt_fox}"

    if test "${enable_fox}" = "yes"; then

        if test "${with_plugins_prefix}" != ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FOX is ready for use" >&5
$as_echo_n "checking whether FOX is ready for use... " >&6; }
      abi_plug_ready="yes"
      abi_plug_bins="${with_plugins_prefix}/bin"
      abi_plug_incs="-I${with_plugins_prefix}/include"
      abi_plug_libs="-L${with_plugins_prefix}/lib"

      if test ! -x "${with_plugins_prefix}/bin/FoX-config"; then
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibFoX_common.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibFoX_common.a"
      else
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibFoX_fsys.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibFoX_fsys.a"
      else
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibFoX_utils.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibFoX_utils.a"
      else
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibFoX_sax.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibFoX_sax.a"
      else
        abi_plug_ready="no"
      fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_ready}" >&5
$as_echo "${abi_plug_ready}" >&6; }
    fi

    if test "${abi_plug_ready}" = "yes"; then
      with_fox_bins="${abi_plug_bins}"
      with_fox_includes="${abi_plug_incs}"
      with_fox_libs="${abi_plug_libs}"
    fi

        if test "${with_fox_includes}" = "" -o "${with_fox_libs}" = ""; then

                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a source tarball of FOX" >&5
$as_echo_n "checking for a source tarball of FOX... " >&6; }
      if test -s "${abinit_tardir}/FoX-4.0.4.tar.gz"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/FoX-4.0.4.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="b7f5ae84f8811f1d60212be25cdbed40"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

        case "${abi_md5_ok}" in
          yes)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
            ;;
          unknown)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
            ;;
          no)
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
            ;;
        esac
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi

            if test "${abi_plug_ready}" = "no"; then
        if test "${abi_plug_tarball}" = "no"; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: downloading FOX - this may take a while" >&5
$as_echo "$as_me: downloading FOX - this may take a while" >&6;}

          if test ! -s "${abinit_tardir}/FoX-4.0.4.tar.gz"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of FOX from URL 1" >&5
$as_echo_n "checking availability of FOX from URL 1... " >&6; }
            ${abi_plug_downloader} ${abi_plug_dlopts} \
              "${abinit_tardir}/FoX-4.0.4.tar.gz" \
              'http://source.uszla.me.uk/FoX/FoX-4.0.4.tar.gz'
            test -s "${abinit_tardir}/FoX-4.0.4.tar.gz" && abi_plug_download="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_download}" >&5
$as_echo "${abi_plug_download}" >&6; }
          fi
          if test ! -s "${abinit_tardir}/FoX-4.0.4.tar.gz"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of FOX from URL 2" >&5
$as_echo_n "checking availability of FOX from URL 2... " >&6; }
            ${abi_plug_downloader} ${abi_plug_dlopts} \
              "${abinit_tardir}/FoX-4.0.4.tar.gz" \
              'http://archives.abinit.org/plugins/FoX-4.0.4.tar.gz'
            test -s "${abinit_tardir}/FoX-4.0.4.tar.gz" && abi_plug_download="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_download}" >&5
$as_echo "${abi_plug_download}" >&6; }
          fi


                    if test -s "${abinit_tardir}/FoX-4.0.4.tar.gz"; then

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/FoX-4.0.4.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="b7f5ae84f8811f1d60212be25cdbed40"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

            case "${abi_md5_ok}" in
              yes)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
                ;;
              unknown)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
                ;;
              no)
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
                ;;
            esac
          fi
        fi

                if test "${abi_plug_tarball}" = "yes"; then
          lib_fox_incs="-I\$(abinit_builddir)/plugins/fox"
          lib_fox_libs="-L\$(abinit_builddir)/plugins/fox -lFoX_sax -lFoX_utils -lFoX_fsys -lFoX_common"
          build_fox="yes"
        else
          lib_fox_incs=""
          lib_fox_libs=""
          enable_fox="no"
          build_fox="no"
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not download FOX plug-in tarball" >&5
$as_echo "$as_me: WARNING: could not download FOX plug-in tarball" >&2;}
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for FOX plug-in has been disabled" >&5
$as_echo "$as_me: WARNING: support for FOX plug-in has been disabled" >&2;}
        fi
      fi
    else
      lib_fox_incs="${with_fox_includes}"
      lib_fox_libs="${with_fox_libs}"
      build_fox="no"
    fi

        if test "${lib_fox_incs}" != ""; then
      if test "${abi_fc_vendor}" = "sun"; then
        tmp_fox_incs=`echo "${lib_fox_incs}" | sed -e 's/-I/-M/g'`
        lib_fox_incs="${lib_fox_incs} ${tmp_fox_incs}"
      fi
    fi
  else
    enable_fox="no"
    build_fox="no"
  fi

    FCLIBS_FOX=''


    if test "${build_fox}" = "yes"; then


  if test "${abi_fc_vendor}" != "unknown"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: applying FOX tricks (vendor: ${abi_fc_vendor}, version: ${abi_fc_version})" >&5
$as_echo "$as_me: applying FOX tricks (vendor: ${abi_fc_vendor}, version: ${abi_fc_version})" >&6;}
  fi

  CFGFLAGS_FOX="${CFGFLAGS_FOX} --enable-sax"

    if test "${fox_tricks_bypass}" = "yes"; then
      build_fox="no"
    fi
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the FOX plug-in" >&5
$as_echo_n "checking whether to enable the FOX plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_fox}" >&5
$as_echo "${enable_fox}" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the FOX plug-in" >&5
$as_echo_n "checking whether to build the FOX plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_fox}" >&5
$as_echo "${build_fox}" >&6; }

    if test "${enable_fox}" = "yes"; then

$as_echo "#define HAVE_FOX 1" >>confdefs.h

  fi





     if test "${enable_fox}" = "yes"; then
  DO_TEST_FOX_TRUE=
  DO_TEST_FOX_FALSE='#'
else
  DO_TEST_FOX_TRUE='#'
  DO_TEST_FOX_FALSE=
fi

   if test "${build_fox}" = "yes"; then
  DO_BUILD_FOX_TRUE=
  DO_BUILD_FOX_FALSE='#'
else
  DO_BUILD_FOX_TRUE='#'
  DO_BUILD_FOX_FALSE=
fi



# ---------------------------------------------------------------------------- #

#
# NetCDF support
#


    lib_netcdf_incs=""
  lib_netcdf_libs=""
  build_netcdf="no"
  abi_plug_download="no"
  abi_plug_ready="no"
  abi_plug_tarball="no"
  abi_plug_bins=""
  abi_plug_incs=""
  abi_plug_libs=""

    if test "${WGET}" != ""; then
    abi_plug_downloader="${WGET}"
    abi_plug_dlopts="--timeout=15 --tries=1 -q -O"
  elif test "${CURL}" != ""; then
    abi_plug_downloader="${CURL}"
    abi_plug_dlopts="--connect-time 15 --retry 1 -s -S -o"
  fi

    netcdf_pkg_name="netcdf-3.6.3"

  netcdf_pkg_string="NetCDF library 3.6.3 (upstream release)"


  if test -z "${CFGFLAGS_NETCDF}"; then
    CFGFLAGS_NETCDF=""
  fi

  if test -z "${CPPFLAGS_NETCDF}"; then
    CPPFLAGS_NETCDF=""
  fi

  if test -z "${CFLAGS_NETCDF}"; then
    CFLAGS_NETCDF="${CFLAGS}"
  fi

  if test -z "${CXXFLAGS_NETCDF}"; then
    CXXFLAGS_NETCDF="${CXXFLAGS}"
  fi

  if test -z "${FCFLAGS_NETCDF}"; then
    FCFLAGS_NETCDF="${FCFLAGS}"
  fi


    FCFLAGS_NETCDF="${FCFLAGS_NETCDF} ${fcflags_opt_netcdf}"

    if test "${enable_netcdf}" = "yes"; then

        if test "${with_plugins_prefix}" != ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NETCDF is ready for use" >&5
$as_echo_n "checking whether NETCDF is ready for use... " >&6; }
      abi_plug_ready="yes"
      abi_plug_bins="${with_plugins_prefix}/bin"
      abi_plug_incs="-I${with_plugins_prefix}/include"
      abi_plug_libs="-L${with_plugins_prefix}/lib"

      if test ! -x "${with_plugins_prefix}/bin/ncdump"; then
        abi_plug_ready="no"
      fi

      if test ! -x "${with_plugins_prefix}/bin/ncgen"; then
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibnetcdf.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibnetcdf.a"
      else
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibnetcdf.la.a"; then
        abi_plug_libs="${abi_plug_libs} -llibnetcdf.la"
      else
        abi_plug_ready="no"
      fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_ready}" >&5
$as_echo "${abi_plug_ready}" >&6; }
    fi

    if test "${abi_plug_ready}" = "yes"; then
      with_netcdf_bins="${abi_plug_bins}"
      with_netcdf_includes="${abi_plug_incs}"
      with_netcdf_libs="${abi_plug_libs}"
    fi

        if test "${with_netcdf_includes}" = "" -o "${with_netcdf_libs}" = ""; then

                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a source tarball of NETCDF" >&5
$as_echo_n "checking for a source tarball of NETCDF... " >&6; }
      if test -s "${abinit_tardir}/netcdf-3.6.3.tar.gz"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/netcdf-3.6.3.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="334e9bdc010b6cd03fd6531a45fe50ad"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

        case "${abi_md5_ok}" in
          yes)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
            ;;
          unknown)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
            ;;
          no)
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
            ;;
        esac
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi

            if test "${abi_plug_ready}" = "no"; then
        if test "${abi_plug_tarball}" = "no"; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: downloading NETCDF - this may take a while" >&5
$as_echo "$as_me: downloading NETCDF - this may take a while" >&6;}

          if test ! -s "${abinit_tardir}/netcdf-3.6.3.tar.gz"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of NETCDF from URL 1" >&5
$as_echo_n "checking availability of NETCDF from URL 1... " >&6; }
            ${abi_plug_downloader} ${abi_plug_dlopts} \
              "${abinit_tardir}/netcdf-3.6.3.tar.gz" \
              'http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-3.6.3.tar.gz'
            test -s "${abinit_tardir}/netcdf-3.6.3.tar.gz" && abi_plug_download="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_download}" >&5
$as_echo "${abi_plug_download}" >&6; }
          fi
          if test ! -s "${abinit_tardir}/netcdf-3.6.3.tar.gz"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of NETCDF from URL 2" >&5
$as_echo_n "checking availability of NETCDF from URL 2... " >&6; }
            ${abi_plug_downloader} ${abi_plug_dlopts} \
              "${abinit_tardir}/netcdf-3.6.3.tar.gz" \
              'http://archives.abinit.org/plugins/netcdf-3.6.3.tar.gz'
            test -s "${abinit_tardir}/netcdf-3.6.3.tar.gz" && abi_plug_download="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_download}" >&5
$as_echo "${abi_plug_download}" >&6; }
          fi


                    if test -s "${abinit_tardir}/netcdf-3.6.3.tar.gz"; then

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/netcdf-3.6.3.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="334e9bdc010b6cd03fd6531a45fe50ad"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

            case "${abi_md5_ok}" in
              yes)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
                ;;
              unknown)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
                ;;
              no)
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
                ;;
            esac
          fi
        fi

                if test "${abi_plug_tarball}" = "yes"; then
          lib_netcdf_incs="-I\$(abinit_builddir)/plugins/netcdf"
          lib_netcdf_libs="-L\$(abinit_builddir)/plugins/netcdf -lnetcdf"
          build_netcdf="yes"
        else
          lib_netcdf_incs=""
          lib_netcdf_libs=""
          enable_netcdf="no"
          build_netcdf="no"
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not download NETCDF plug-in tarball" >&5
$as_echo "$as_me: WARNING: could not download NETCDF plug-in tarball" >&2;}
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for NETCDF plug-in has been disabled" >&5
$as_echo "$as_me: WARNING: support for NETCDF plug-in has been disabled" >&2;}
        fi
      fi
    else
      lib_netcdf_incs="${with_netcdf_includes}"
      lib_netcdf_libs="${with_netcdf_libs}"
      build_netcdf="no"
    fi

        if test "${lib_netcdf_incs}" != ""; then
      if test "${abi_fc_vendor}" = "sun"; then
        tmp_netcdf_incs=`echo "${lib_netcdf_incs}" | sed -e 's/-I/-M/g'`
        lib_netcdf_incs="${lib_netcdf_incs} ${tmp_netcdf_incs}"
      fi
    fi
  else
    enable_netcdf="no"
    build_netcdf="no"
  fi

    FCLIBS_NETCDF=''


    if test "${build_netcdf}" = "yes"; then


  if test "${abi_fc_vendor}" != "unknown"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: applying NetCDF tricks (vendor: ${abi_fc_vendor}, version: ${abi_fc_version})" >&5
$as_echo "$as_me: applying NetCDF tricks (vendor: ${abi_fc_vendor}, version: ${abi_fc_version})" >&6;}
  fi

  CFGFLAGS_NETCDF="${CFGFLAGS_NETCDF} --disable-cxx"
  CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -DNDEBUG"

  case "${abi_fc_vendor}" in

    g95)
      CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -Df2cFortran"
      ;;

    gnu)
      CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -DpgiFortran"
      ;;

    ibm)
      CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -DIBMR2Fortran"
      FCFLAGS_NETCDF="${FCFLAGS_NETCDF} -WF,-DIBMR2Fortran,-DNDEBUG"
      ;;

    intel)
      CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -DpgiFortran"
      case "${abi_fc_version}" in
        9.0|9.1)
          FCFLAGS_NETCDF="${FCFLAGS_NETCDF} -mp"
          ;;
        *)
          FCFLAGS_NETCDF="${FCFLAGS_NETCDF} -ip -no-prec-div"
          ;;
      esac
      ;;

    pathscale)
      CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -Df2cFortran"
      ;;

    pgi)
      CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -DpgiFortran"
      ;;

    sun)
      CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -DsunFortran"
      ;;

  esac

    if test "${netcdf_tricks_bypass}" = "yes"; then
      build_netcdf="no"
    fi
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the NETCDF plug-in" >&5
$as_echo_n "checking whether to enable the NETCDF plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_netcdf}" >&5
$as_echo "${enable_netcdf}" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the NETCDF plug-in" >&5
$as_echo_n "checking whether to build the NETCDF plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_netcdf}" >&5
$as_echo "${build_netcdf}" >&6; }

    if test "${enable_netcdf}" = "yes"; then

$as_echo "#define HAVE_NETCDF 1" >>confdefs.h

  fi





     if test "${enable_netcdf}" = "yes"; then
  DO_TEST_NETCDF_TRUE=
  DO_TEST_NETCDF_FALSE='#'
else
  DO_TEST_NETCDF_TRUE='#'
  DO_TEST_NETCDF_FALSE=
fi

   if test "${build_netcdf}" = "yes"; then
  DO_BUILD_NETCDF_TRUE=
  DO_BUILD_NETCDF_FALSE='#'
else
  DO_BUILD_NETCDF_TRUE='#'
  DO_BUILD_NETCDF_FALSE=
fi



# ---------------------------------------------------------------------------- #

#
# ETSF I/O library support
#

if test "${abi_fc_vendor}" = "sun" -a \( "${enable_debug}" = "no" -o \
        "${enable_debug}" = "yes" \); then
  enable_etsf_io="no"
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ETSF I/O cannot be built by Sun compilers => disabled" >&5
$as_echo "$as_me: WARNING: ETSF I/O cannot be built by Sun compilers => disabled" >&2;}
fi

    lib_etsf_io_incs=""
  lib_etsf_io_libs=""
  build_etsf_io="no"
  abi_plug_download="no"
  abi_plug_ready="no"
  abi_plug_tarball="no"
  abi_plug_bins=""
  abi_plug_incs=""
  abi_plug_libs=""

    if test "${WGET}" != ""; then
    abi_plug_downloader="${WGET}"
    abi_plug_dlopts="--timeout=15 --tries=1 -q -O"
  elif test "${CURL}" != ""; then
    abi_plug_downloader="${CURL}"
    abi_plug_dlopts="--connect-time 15 --retry 1 -s -S -o"
  fi

    etsf_io_pkg_name="etsf_io-1.0.3"

  etsf_io_pkg_string="ETSF I/O library 1.0.3 (upstream release)"


  if test -z "${CFGFLAGS_ETSF_IO}"; then
    CFGFLAGS_ETSF_IO=""
  fi

  if test -z "${CPPFLAGS_ETSF_IO}"; then
    CPPFLAGS_ETSF_IO=""
  fi

  if test -z "${CFLAGS_ETSF_IO}"; then
    CFLAGS_ETSF_IO="${CFLAGS}"
  fi

  if test -z "${CXXFLAGS_ETSF_IO}"; then
    CXXFLAGS_ETSF_IO="${CXXFLAGS}"
  fi

  if test -z "${FCFLAGS_ETSF_IO}"; then
    FCFLAGS_ETSF_IO="${FCFLAGS}"
  fi


    FCFLAGS_ETSF_IO="${FCFLAGS_ETSF_IO} ${fcflags_opt_etsf_io}"

    if test "${enable_etsf_io}" = "yes"; then

        if test "${with_plugins_prefix}" != ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ETSF_IO is ready for use" >&5
$as_echo_n "checking whether ETSF_IO is ready for use... " >&6; }
      abi_plug_ready="yes"
      abi_plug_bins="${with_plugins_prefix}/bin"
      abi_plug_incs="-I${with_plugins_prefix}/include"
      abi_plug_libs="-L${with_plugins_prefix}/lib"

      if test ! -x "${with_plugins_prefix}/bin/etsf_io"; then
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibetsf_io.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibetsf_io.a"
      else
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibetsf_io_utils.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibetsf_io_utils.a"
      else
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibetsf_io_low_level.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibetsf_io_low_level.a"
      else
        abi_plug_ready="no"
      fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_ready}" >&5
$as_echo "${abi_plug_ready}" >&6; }
    fi

    if test "${abi_plug_ready}" = "yes"; then
      with_etsf_io_bins="${abi_plug_bins}"
      with_etsf_io_includes="${abi_plug_incs}"
      with_etsf_io_libs="${abi_plug_libs}"
    fi

        if test "${with_etsf_io_includes}" = "" -o "${with_etsf_io_libs}" = ""; then

                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a source tarball of ETSF_IO" >&5
$as_echo_n "checking for a source tarball of ETSF_IO... " >&6; }
      if test -s "${abinit_tardir}/etsf_io-1.0.3.tar.gz"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/etsf_io-1.0.3.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="b813aaf5d451e67d42dbb58c167f8d5a"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

        case "${abi_md5_ok}" in
          yes)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
            ;;
          unknown)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
            ;;
          no)
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
            ;;
        esac
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi

            if test "${abi_plug_ready}" = "no"; then
        if test "${abi_plug_tarball}" = "no"; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: downloading ETSF_IO - this may take a while" >&5
$as_echo "$as_me: downloading ETSF_IO - this may take a while" >&6;}

          if test ! -s "${abinit_tardir}/etsf_io-1.0.3.tar.gz"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ETSF_IO from URL 1" >&5
$as_echo_n "checking availability of ETSF_IO from URL 1... " >&6; }
            ${abi_plug_downloader} ${abi_plug_dlopts} \
              "${abinit_tardir}/etsf_io-1.0.3.tar.gz" \
              'http://archives.abinit.org/plugins/etsf_io-1.0.3.tar.gz'
            test -s "${abinit_tardir}/etsf_io-1.0.3.tar.gz" && abi_plug_download="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_download}" >&5
$as_echo "${abi_plug_download}" >&6; }
          fi


                    if test -s "${abinit_tardir}/etsf_io-1.0.3.tar.gz"; then

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/etsf_io-1.0.3.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="b813aaf5d451e67d42dbb58c167f8d5a"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

            case "${abi_md5_ok}" in
              yes)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
                ;;
              unknown)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
                ;;
              no)
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
                ;;
            esac
          fi
        fi

                if test "${abi_plug_tarball}" = "yes"; then
          lib_etsf_io_incs="-I\$(abinit_builddir)/plugins/etsf_io"
          lib_etsf_io_libs="-L\$(abinit_builddir)/plugins/etsf_io -letsf_io_low_level -letsf_io_utils -letsf_io"
          build_etsf_io="yes"
        else
          lib_etsf_io_incs=""
          lib_etsf_io_libs=""
          enable_etsf_io="no"
          build_etsf_io="no"
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not download ETSF_IO plug-in tarball" >&5
$as_echo "$as_me: WARNING: could not download ETSF_IO plug-in tarball" >&2;}
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for ETSF_IO plug-in has been disabled" >&5
$as_echo "$as_me: WARNING: support for ETSF_IO plug-in has been disabled" >&2;}
        fi
      fi
    else
      lib_etsf_io_incs="${with_etsf_io_includes}"
      lib_etsf_io_libs="${with_etsf_io_libs}"
      build_etsf_io="no"
    fi

        if test "${lib_etsf_io_incs}" != ""; then
      if test "${abi_fc_vendor}" = "sun"; then
        tmp_etsf_io_incs=`echo "${lib_etsf_io_incs}" | sed -e 's/-I/-M/g'`
        lib_etsf_io_incs="${lib_etsf_io_incs} ${tmp_etsf_io_incs}"
      fi
    fi
  else
    enable_etsf_io="no"
    build_etsf_io="no"
  fi

    FCLIBS_ETSF_IO=''


    if test "${build_etsf_io}" = "yes"; then


  if test "${abi_fc_vendor}" != "unknown"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: applying ETSF_IO tricks (vendor: ${abi_fc_vendor}, version: ${abi_fc_version})" >&5
$as_echo "$as_me: applying ETSF_IO tricks (vendor: ${abi_fc_vendor}, version: ${abi_fc_version})" >&6;}
  fi

  case "${abi_fc_vendor}" in

    ibm)
      FCFLAGS_ETSF_IO="${FCFLAGS_ETSF_IO} -qsuffix=cpp=f90:f=f"
      ;;

  esac

    if test "${etsf_io_tricks_bypass}" = "yes"; then
      build_etsf_io="no"
    fi
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ETSF_IO plug-in" >&5
$as_echo_n "checking whether to enable the ETSF_IO plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_etsf_io}" >&5
$as_echo "${enable_etsf_io}" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the ETSF_IO plug-in" >&5
$as_echo_n "checking whether to build the ETSF_IO plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_etsf_io}" >&5
$as_echo "${build_etsf_io}" >&6; }

    if test "${enable_etsf_io}" = "yes"; then

$as_echo "#define HAVE_ETSF_IO 1" >>confdefs.h

  fi





     if test "${enable_etsf_io}" = "yes"; then
  DO_TEST_ETSF_IO_TRUE=
  DO_TEST_ETSF_IO_FALSE='#'
else
  DO_TEST_ETSF_IO_TRUE='#'
  DO_TEST_ETSF_IO_FALSE=
fi

   if test "${build_etsf_io}" = "yes"; then
  DO_BUILD_ETSF_IO_TRUE=
  DO_BUILD_ETSF_IO_FALSE='#'
else
  DO_BUILD_ETSF_IO_TRUE='#'
  DO_BUILD_ETSF_IO_FALSE=
fi



# ---------------------------------------------------------------------------- #

#
# Octopus exchange-correlation library support
#

if test "${abi_fc_vendor}" = "sun" -a \( "${enable_debug}" = "no" -o \
        "${enable_debug}" = "yes" \); then
  enable_libxc="no"
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LibXC cannot be built by Sun compilers => disabled" >&5
$as_echo "$as_me: WARNING: LibXC cannot be built by Sun compilers => disabled" >&2;}
fi

    lib_libxc_incs=""
  lib_libxc_libs=""
  build_libxc="no"
  abi_plug_download="no"
  abi_plug_ready="no"
  abi_plug_tarball="no"
  abi_plug_bins=""
  abi_plug_incs=""
  abi_plug_libs=""

    if test "${WGET}" != ""; then
    abi_plug_downloader="${WGET}"
    abi_plug_dlopts="--timeout=15 --tries=1 -q -O"
  elif test "${CURL}" != ""; then
    abi_plug_downloader="${CURL}"
    abi_plug_dlopts="--connect-time 15 --retry 1 -s -S -o"
  fi

    libxc_pkg_name="libxc-svn-r6071-fixed"

  libxc_pkg_string="LibXC library SVN revision 6071 (fixed for Abinit by YP)"


  if test -z "${CFGFLAGS_LIBXC}"; then
    CFGFLAGS_LIBXC=""
  fi

  if test -z "${CPPFLAGS_LIBXC}"; then
    CPPFLAGS_LIBXC=""
  fi

  if test -z "${CFLAGS_LIBXC}"; then
    CFLAGS_LIBXC="${CFLAGS}"
  fi

  if test -z "${CXXFLAGS_LIBXC}"; then
    CXXFLAGS_LIBXC="${CXXFLAGS}"
  fi

  if test -z "${FCFLAGS_LIBXC}"; then
    FCFLAGS_LIBXC="${FCFLAGS}"
  fi


    FCFLAGS_LIBXC="${FCFLAGS_LIBXC} ${fcflags_opt_libxc}"

    if test "${enable_libxc}" = "yes"; then

        if test "${with_plugins_prefix}" != ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LIBXC is ready for use" >&5
$as_echo_n "checking whether LIBXC is ready for use... " >&6; }
      abi_plug_ready="yes"
      abi_plug_bins="${with_plugins_prefix}/bin"
      abi_plug_incs="-I${with_plugins_prefix}/include"
      abi_plug_libs="-L${with_plugins_prefix}/lib"

      if test -s "${with_plugins_prefix}/lib/liblibxc.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibxc.a"
      else
        abi_plug_ready="no"
      fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_ready}" >&5
$as_echo "${abi_plug_ready}" >&6; }
    fi

    if test "${abi_plug_ready}" = "yes"; then
      with_libxc_bins="${abi_plug_bins}"
      with_libxc_includes="${abi_plug_incs}"
      with_libxc_libs="${abi_plug_libs}"
    fi

        if test "${with_libxc_includes}" = "" -o "${with_libxc_libs}" = ""; then

                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a source tarball of LIBXC" >&5
$as_echo_n "checking for a source tarball of LIBXC... " >&6; }
      if test -s "${abinit_tardir}/libxc-svn-r6071-fixed.tar.gz"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/libxc-svn-r6071-fixed.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="c6760254a71a6c9f3690f5554642e9e6"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

        case "${abi_md5_ok}" in
          yes)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
            ;;
          unknown)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
            ;;
          no)
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
            ;;
        esac
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi

            if test "${abi_plug_ready}" = "no"; then
        if test "${abi_plug_tarball}" = "no"; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: downloading LIBXC - this may take a while" >&5
$as_echo "$as_me: downloading LIBXC - this may take a while" >&6;}

          if test ! -s "${abinit_tardir}/libxc-svn-r6071-fixed.tar.gz"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of LIBXC from URL 1" >&5
$as_echo_n "checking availability of LIBXC from URL 1... " >&6; }
            ${abi_plug_downloader} ${abi_plug_dlopts} \
              "${abinit_tardir}/libxc-svn-r6071-fixed.tar.gz" \
              'http://archives.abinit.org/plugins/libxc-svn-r6071-fixed.tar.gz'
            test -s "${abinit_tardir}/libxc-svn-r6071-fixed.tar.gz" && abi_plug_download="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_download}" >&5
$as_echo "${abi_plug_download}" >&6; }
          fi


                    if test -s "${abinit_tardir}/libxc-svn-r6071-fixed.tar.gz"; then

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/libxc-svn-r6071-fixed.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="c6760254a71a6c9f3690f5554642e9e6"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

            case "${abi_md5_ok}" in
              yes)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
                ;;
              unknown)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
                ;;
              no)
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
                ;;
            esac
          fi
        fi

                if test "${abi_plug_tarball}" = "yes"; then
          lib_libxc_incs="-I\$(abinit_builddir)/plugins/libxc"
          lib_libxc_libs="-L\$(abinit_builddir)/plugins/libxc -lxc"
          build_libxc="yes"
        else
          lib_libxc_incs=""
          lib_libxc_libs=""
          enable_libxc="no"
          build_libxc="no"
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not download LIBXC plug-in tarball" >&5
$as_echo "$as_me: WARNING: could not download LIBXC plug-in tarball" >&2;}
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for LIBXC plug-in has been disabled" >&5
$as_echo "$as_me: WARNING: support for LIBXC plug-in has been disabled" >&2;}
        fi
      fi
    else
      lib_libxc_incs="${with_libxc_includes}"
      lib_libxc_libs="${with_libxc_libs}"
      build_libxc="no"
    fi

        if test "${lib_libxc_incs}" != ""; then
      if test "${abi_fc_vendor}" = "sun"; then
        tmp_libxc_incs=`echo "${lib_libxc_incs}" | sed -e 's/-I/-M/g'`
        lib_libxc_incs="${lib_libxc_incs} ${tmp_libxc_incs}"
      fi
    fi
  else
    enable_libxc="no"
    build_libxc="no"
  fi


    if test "${build_libxc}" = "yes"; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: applying LIBXC tricks" >&5
$as_echo "$as_me: applying LIBXC tricks" >&6;}

    CFGFLAGS_LIBXC="--enable-fortran"

    case "${abi_fc_vendor}" in

    ibm)
      if test "${ac_cv_prog_cc_c99}" != "no"; then
        CFLAGS_LIBXC="${CFLAGS_LIBXC} ${ac_cv_prog_cc_c99}"
      fi
      ;;

  esac

    if test "${libxc_tricks_bypass}" = "yes"; then
      build_libxc="no"
    fi
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the LIBXC plug-in" >&5
$as_echo_n "checking whether to enable the LIBXC plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_libxc}" >&5
$as_echo "${enable_libxc}" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the LIBXC plug-in" >&5
$as_echo_n "checking whether to build the LIBXC plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_libxc}" >&5
$as_echo "${build_libxc}" >&6; }

    if test "${enable_libxc}" = "yes"; then

$as_echo "#define HAVE_LIBXC 1" >>confdefs.h

  fi





     if test "${enable_libxc}" = "yes"; then
  DO_TEST_LIBXC_TRUE=
  DO_TEST_LIBXC_FALSE='#'
else
  DO_TEST_LIBXC_TRUE='#'
  DO_TEST_LIBXC_FALSE=
fi

   if test "${build_libxc}" = "yes"; then
  DO_BUILD_LIBXC_TRUE=
  DO_BUILD_LIBXC_FALSE='#'
else
  DO_BUILD_LIBXC_TRUE='#'
  DO_BUILD_LIBXC_FALSE=
fi



# ---------------------------------------------------------------------------- #

#
# Wavelets support - BigDFT project
#


    lib_bigdft_incs=""
  lib_bigdft_libs=""
  build_bigdft="no"
  abi_plug_download="no"
  abi_plug_ready="no"
  abi_plug_tarball="no"
  abi_plug_bins=""
  abi_plug_incs=""
  abi_plug_libs=""

    if test "${WGET}" != ""; then
    abi_plug_downloader="${WGET}"
    abi_plug_dlopts="--timeout=15 --tries=1 -q -O"
  elif test "${CURL}" != ""; then
    abi_plug_downloader="${CURL}"
    abi_plug_dlopts="--connect-time 15 --retry 1 -s -S -o"
  fi

    bigdft_pkg_name="bigdft-1.2.0.2"

  bigdft_pkg_string="BigDFT library 1.2.0.2 (upstream release)"


  if test -z "${CFGFLAGS_BIGDFT}"; then
    CFGFLAGS_BIGDFT=""
  fi

  if test -z "${CPPFLAGS_BIGDFT}"; then
    CPPFLAGS_BIGDFT=""
  fi

  if test -z "${CFLAGS_BIGDFT}"; then
    CFLAGS_BIGDFT="${CFLAGS}"
  fi

  if test -z "${CXXFLAGS_BIGDFT}"; then
    CXXFLAGS_BIGDFT="${CXXFLAGS}"
  fi

  if test -z "${FCFLAGS_BIGDFT}"; then
    FCFLAGS_BIGDFT="${FCFLAGS}"
  fi


    FCFLAGS_BIGDFT="${FCFLAGS_BIGDFT} ${fcflags_opt_bigdft}"

    if test "${enable_bigdft}" = "yes"; then

        if test "${with_plugins_prefix}" != ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIGDFT is ready for use" >&5
$as_echo_n "checking whether BIGDFT is ready for use... " >&6; }
      abi_plug_ready="yes"
      abi_plug_bins="${with_plugins_prefix}/bin"
      abi_plug_incs="-I${with_plugins_prefix}/include"
      abi_plug_libs="-L${with_plugins_prefix}/lib"

      if test -s "${with_plugins_prefix}/lib/liblibpoissonsolver.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibpoissonsolver.a"
      else
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibbigdft.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibbigdft.a"
      else
        abi_plug_ready="no"
      fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_ready}" >&5
$as_echo "${abi_plug_ready}" >&6; }
    fi

    if test "${abi_plug_ready}" = "yes"; then
      with_bigdft_bins="${abi_plug_bins}"
      with_bigdft_includes="${abi_plug_incs}"
      with_bigdft_libs="${abi_plug_libs}"
    fi

        if test "${with_bigdft_includes}" = "" -o "${with_bigdft_libs}" = ""; then

                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a source tarball of BIGDFT" >&5
$as_echo_n "checking for a source tarball of BIGDFT... " >&6; }
      if test -s "${abinit_tardir}/bigdft-1.2.0.2.tar.gz"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/bigdft-1.2.0.2.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="d827ae34c29d75c8310b2dad40c6e50c"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

        case "${abi_md5_ok}" in
          yes)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
            ;;
          unknown)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
            ;;
          no)
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
            ;;
        esac
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi

            if test "${abi_plug_ready}" = "no"; then
        if test "${abi_plug_tarball}" = "no"; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: downloading BIGDFT - this may take a while" >&5
$as_echo "$as_me: downloading BIGDFT - this may take a while" >&6;}

          if test ! -s "${abinit_tardir}/bigdft-1.2.0.2.tar.gz"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of BIGDFT from URL 1" >&5
$as_echo_n "checking availability of BIGDFT from URL 1... " >&6; }
            ${abi_plug_downloader} ${abi_plug_dlopts} \
              "${abinit_tardir}/bigdft-1.2.0.2.tar.gz" \
              'http://inac.cea.fr/L_Sim/BigDFT/bigdft-1.2.0.2.tar.gz'
            test -s "${abinit_tardir}/bigdft-1.2.0.2.tar.gz" && abi_plug_download="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_download}" >&5
$as_echo "${abi_plug_download}" >&6; }
          fi
          if test ! -s "${abinit_tardir}/bigdft-1.2.0.2.tar.gz"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of BIGDFT from URL 2" >&5
$as_echo_n "checking availability of BIGDFT from URL 2... " >&6; }
            ${abi_plug_downloader} ${abi_plug_dlopts} \
              "${abinit_tardir}/bigdft-1.2.0.2.tar.gz" \
              'http://archives.abinit.org/plugins/bigdft-1.2.0.2.tar.gz'
            test -s "${abinit_tardir}/bigdft-1.2.0.2.tar.gz" && abi_plug_download="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_download}" >&5
$as_echo "${abi_plug_download}" >&6; }
          fi


                    if test -s "${abinit_tardir}/bigdft-1.2.0.2.tar.gz"; then

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/bigdft-1.2.0.2.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="d827ae34c29d75c8310b2dad40c6e50c"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

            case "${abi_md5_ok}" in
              yes)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
                ;;
              unknown)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
                ;;
              no)
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
                ;;
            esac
          fi
        fi

                if test "${abi_plug_tarball}" = "yes"; then
          lib_bigdft_incs="-I\$(abinit_builddir)/plugins/bigdft"
          lib_bigdft_libs="-L\$(abinit_builddir)/plugins/bigdft -lbigdft -lpoissonsolver"
          build_bigdft="yes"
        else
          lib_bigdft_incs=""
          lib_bigdft_libs=""
          enable_bigdft="no"
          build_bigdft="no"
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not download BIGDFT plug-in tarball" >&5
$as_echo "$as_me: WARNING: could not download BIGDFT plug-in tarball" >&2;}
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for BIGDFT plug-in has been disabled" >&5
$as_echo "$as_me: WARNING: support for BIGDFT plug-in has been disabled" >&2;}
        fi
      fi
    else
      lib_bigdft_incs="${with_bigdft_includes}"
      lib_bigdft_libs="${with_bigdft_libs}"
      build_bigdft="no"
    fi

        if test "${lib_bigdft_incs}" != ""; then
      if test "${abi_fc_vendor}" = "sun"; then
        tmp_bigdft_incs=`echo "${lib_bigdft_incs}" | sed -e 's/-I/-M/g'`
        lib_bigdft_incs="${lib_bigdft_incs} ${tmp_bigdft_incs}"
      fi
    fi
  else
    enable_bigdft="no"
    build_bigdft="no"
  fi


    if test "${build_bigdft}" = "yes"; then


  if test "${abi_fc_vendor}" != "unknown"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: applying BigDFT tricks (vendor: ${abi_fc_vendor}, version: ${abi_fc_version})" >&5
$as_echo "$as_me: applying BigDFT tricks (vendor: ${abi_fc_vendor}, version: ${abi_fc_version})" >&6;}
  fi

  CFGFLAGS_BIGDFT="${CFGFLAGS_BIGDFT} --disable-binaries --disable-libabinit --enable-libpoissonsolver"

    if test "${bigdft_tricks_bypass}" = "yes"; then
      build_bigdft="no"
    fi
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BIGDFT plug-in" >&5
$as_echo_n "checking whether to enable the BIGDFT plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_bigdft}" >&5
$as_echo "${enable_bigdft}" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the BIGDFT plug-in" >&5
$as_echo_n "checking whether to build the BIGDFT plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_bigdft}" >&5
$as_echo "${build_bigdft}" >&6; }

    if test "${enable_bigdft}" = "yes"; then

$as_echo "#define HAVE_BIGDFT 1" >>confdefs.h

  fi





     if test "${enable_bigdft}" = "yes"; then
  DO_TEST_BIGDFT_TRUE=
  DO_TEST_BIGDFT_FALSE='#'
else
  DO_TEST_BIGDFT_TRUE='#'
  DO_TEST_BIGDFT_FALSE=
fi

   if test "${build_bigdft}" = "yes"; then
  DO_BUILD_BIGDFT_TRUE=
  DO_BUILD_BIGDFT_FALSE='#'
else
  DO_BUILD_BIGDFT_TRUE='#'
  DO_BUILD_BIGDFT_FALSE=
fi



# ---------------------------------------------------------------------------- #

#
# Wannier90 support
#


    lib_wannier90_incs=""
  lib_wannier90_libs=""
  build_wannier90="no"
  abi_plug_download="no"
  abi_plug_ready="no"
  abi_plug_tarball="no"
  abi_plug_bins=""
  abi_plug_incs=""
  abi_plug_libs=""

    if test "${WGET}" != ""; then
    abi_plug_downloader="${WGET}"
    abi_plug_dlopts="--timeout=15 --tries=1 -q -O"
  elif test "${CURL}" != ""; then
    abi_plug_downloader="${CURL}"
    abi_plug_dlopts="--connect-time 15 --retry 1 -s -S -o"
  fi

    wannier90_pkg_name="wannier90-1.2"

  wannier90_pkg_string="Wannier90 program 1.2 (upstream release)"


  if test -z "${CFGFLAGS_WANNIER90}"; then
    CFGFLAGS_WANNIER90=""
  fi

  if test -z "${CPPFLAGS_WANNIER90}"; then
    CPPFLAGS_WANNIER90=""
  fi

  if test -z "${CFLAGS_WANNIER90}"; then
    CFLAGS_WANNIER90="${CFLAGS}"
  fi

  if test -z "${CXXFLAGS_WANNIER90}"; then
    CXXFLAGS_WANNIER90="${CXXFLAGS}"
  fi

  if test -z "${FCFLAGS_WANNIER90}"; then
    FCFLAGS_WANNIER90="${FCFLAGS}"
  fi


    FCFLAGS_WANNIER90="${FCFLAGS_WANNIER90} ${fcflags_opt_wannier90}"

    if test "${enable_wannier90}" = "yes"; then

        if test "${with_plugins_prefix}" != ""; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WANNIER90 is ready for use" >&5
$as_echo_n "checking whether WANNIER90 is ready for use... " >&6; }
      abi_plug_ready="yes"
      abi_plug_bins="${with_plugins_prefix}/bin"
      abi_plug_incs="-I${with_plugins_prefix}/include"
      abi_plug_libs="-L${with_plugins_prefix}/lib"

      if test ! -x "${with_plugins_prefix}/bin/wannier90.x"; then
        abi_plug_ready="no"
      fi

      if test -s "${with_plugins_prefix}/lib/liblibwannier.a.a"; then
        abi_plug_libs="${abi_plug_libs} -llibwannier.a"
      else
        abi_plug_ready="no"
      fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_ready}" >&5
$as_echo "${abi_plug_ready}" >&6; }
    fi

    if test "${abi_plug_ready}" = "yes"; then
      with_wannier90_bins="${abi_plug_bins}"
      with_wannier90_includes="${abi_plug_incs}"
      with_wannier90_libs="${abi_plug_libs}"
    fi

        if test "${with_wannier90_libs}" = ""; then

                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a source tarball of WANNIER90" >&5
$as_echo_n "checking for a source tarball of WANNIER90... " >&6; }
      if test -s "${abinit_tardir}/wannier90-1.2.tar.gz"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/wannier90-1.2.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="764165971f0ee35ff16041320c2cbc29"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

        case "${abi_md5_ok}" in
          yes)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
            ;;
          unknown)
            abi_plug_tarball="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
            ;;
          no)
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
            ;;
        esac
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
      fi

            if test "${abi_plug_ready}" = "no"; then
        if test "${abi_plug_tarball}" = "no"; then
          { $as_echo "$as_me:${as_lineno-$LINENO}: downloading WANNIER90 - this may take a while" >&5
$as_echo "$as_me: downloading WANNIER90 - this may take a while" >&6;}

          if test ! -s "${abinit_tardir}/wannier90-1.2.tar.gz"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of WANNIER90 from URL 1" >&5
$as_echo_n "checking availability of WANNIER90 from URL 1... " >&6; }
            ${abi_plug_downloader} ${abi_plug_dlopts} \
              "${abinit_tardir}/wannier90-1.2.tar.gz" \
              'http://www.wannier.org/code/wannier90-1.2.tar.gz'
            test -s "${abinit_tardir}/wannier90-1.2.tar.gz" && abi_plug_download="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_download}" >&5
$as_echo "${abi_plug_download}" >&6; }
          fi
          if test ! -s "${abinit_tardir}/wannier90-1.2.tar.gz"; then
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of WANNIER90 from URL 2" >&5
$as_echo_n "checking availability of WANNIER90 from URL 2... " >&6; }
            ${abi_plug_downloader} ${abi_plug_dlopts} \
              "${abinit_tardir}/wannier90-1.2.tar.gz" \
              'http://archives.abinit.org/plugins/wannier90-1.2.tar.gz'
            test -s "${abinit_tardir}/wannier90-1.2.tar.gz" && abi_plug_download="yes"
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_plug_download}" >&5
$as_echo "${abi_plug_download}" >&6; }
          fi


                    if test -s "${abinit_tardir}/wannier90-1.2.tar.gz"; then

    if test "${MD5SUM}" = ""; then
    for ac_prog in md5sum
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:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MD5SUM+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$MD5SUM"; then
  ac_cv_prog_MD5SUM="$MD5SUM" # 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_MD5SUM="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
MD5SUM=$ac_cv_prog_MD5SUM
if test -n "$MD5SUM"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
$as_echo "$MD5SUM" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MD5SUM" && break
done

  fi
  abi_md5_ok="unknown"

    if test "${MD5SUM}" = ""; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no MD5 sum checker available" >&5
$as_echo "$as_me: WARNING: no MD5 sum checker available" >&2;}
    tmp_md5_file=""
  else
    tmp_md5_file=`${MD5SUM} ${abinit_tardir}/wannier90-1.2.tar.gz | awk '{print $1}'`
  fi
  tmp_md5_ref="764165971f0ee35ff16041320c2cbc29"

  if test "${tmp_md5_file}" = "${tmp_md5_ref}"; then
    abi_md5_ok="yes"
  else
    if test "${tmp_md5_file}" != ""; then
      abi_md5_ok="no"
    fi
  fi

            case "${abi_md5_ok}" in
              yes)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: tarball MD5 check succeeded" >&5
$as_echo "$as_me: tarball MD5 check succeeded" >&6;}
                ;;
              unknown)
                abi_plug_tarball="yes"
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not check integrity of tarball" >&5
$as_echo "$as_me: WARNING: could not check integrity of tarball" >&2;}
                ;;
              no)
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tarball MD5 check failed" >&5
$as_echo "$as_me: WARNING: tarball MD5 check failed" >&2;}
                ;;
            esac
          fi
        fi

                if test "${abi_plug_tarball}" = "yes"; then
          lib_wannier90_incs=""
          lib_wannier90_libs="-L\$(abinit_builddir)/plugins/wannier90 -lwannier"
          build_wannier90="yes"
        else
          lib_wannier90_incs=""
          lib_wannier90_libs=""
          enable_wannier90="no"
          build_wannier90="no"
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not download WANNIER90 plug-in tarball" >&5
$as_echo "$as_me: WARNING: could not download WANNIER90 plug-in tarball" >&2;}
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for WANNIER90 plug-in has been disabled" >&5
$as_echo "$as_me: WARNING: support for WANNIER90 plug-in has been disabled" >&2;}
        fi
      fi
    else
      lib_wannier90_incs="${with_wannier90_includes}"
      lib_wannier90_libs="${with_wannier90_libs}"
      build_wannier90="no"
    fi

        if test "${lib_wannier90_incs}" != ""; then
      if test "${abi_fc_vendor}" = "sun"; then
        tmp_wannier90_incs=`echo "${lib_wannier90_incs}" | sed -e 's/-I/-M/g'`
        lib_wannier90_incs="${lib_wannier90_incs} ${tmp_wannier90_incs}"
      fi
    fi
  else
    enable_wannier90="no"
    build_wannier90="no"
  fi

    FCLIBS_WANNIER90=''


    if test "${build_wannier90}" = "yes"; then


  if test "${abi_fc_vendor}" != "unknown"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: applying Wannier90 tricks (vendor: ${abi_fc_vendor}, version: ${abi_fc_version})" >&5
$as_echo "$as_me: applying Wannier90 tricks (vendor: ${abi_fc_vendor}, version: ${abi_fc_version})" >&6;}
  fi

  CPPFLAGS_WANNIER90="${lib_linalg_incs} ${CPPFLAGS_WANNIER90}"
  FCLIBS_WANNIER90="${lib_linalg_libs} ${FCLIBS_WANNIER90}"

  case "${abi_fc_vendor}" in

    intel)
      case "${target_cpu}" in
        ia64)
          # Do nothing
          ;;
        *)
          FCLIBS_WANNIER90="${FCLIBS_WANNIER90} -lsvml"
          ;;
      esac
      ;;

  esac

    if test "${wannier90_tricks_bypass}" = "yes"; then
      build_wannier90="no"
    fi
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the WANNIER90 plug-in" >&5
$as_echo_n "checking whether to enable the WANNIER90 plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_wannier90}" >&5
$as_echo "${enable_wannier90}" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the WANNIER90 plug-in" >&5
$as_echo_n "checking whether to build the WANNIER90 plug-in... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_wannier90}" >&5
$as_echo "${build_wannier90}" >&6; }

    if test "${enable_wannier90}" = "yes"; then

$as_echo "#define HAVE_WANNIER90 1" >>confdefs.h

  fi





     if test "${enable_wannier90}" = "yes"; then
  DO_TEST_WANNIER90_TRUE=
  DO_TEST_WANNIER90_FALSE='#'
else
  DO_TEST_WANNIER90_TRUE='#'
  DO_TEST_WANNIER90_FALSE=
fi

   if test "${build_wannier90}" = "yes"; then
  DO_BUILD_WANNIER90_TRUE=
  DO_BUILD_WANNIER90_FALSE='#'
else
  DO_BUILD_WANNIER90_TRUE='#'
  DO_BUILD_WANNIER90_FALSE=
fi



# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #

#
# Buggy Fortran compilers
#

# NOTE: must be done at the end because the wrapper is built by configure

# Wrap buggy Fortran compilers
FC_NOWRAP="${FC}"
if test "${abi_fc_wrap}" = "yes"; then
  FC="${abinit_builddir}/config/wrappers/wrap-fc"
fi


# Force F77 and F90 environment variables (keep always last)
F77="${FC}"
FFLAGS="${FCFLAGS}"
F90="${FC}"
F90FLAGS="${FCFLAGS}"

# The following is required for oldish fixed-form Fortran libraries



# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #

#
# Nightly builds
#



  abi_sec_title="Nightly builds"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build test timeout code" >&5
$as_echo_n "checking whether to build test timeout code... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_test_timeout}" >&5
$as_echo "${enable_test_timeout}" >&6; }

# Check for headers (required for Nigthly)
if test "${enable_test_timeout}" = "yes"; 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

  { $as_echo "$as_me:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* 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
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

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

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

  ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
if test "x$ac_cv_header_stdio_h" = x""yes; then :

$as_echo "#define HAVE_STDIO_H 1" >>confdefs.h

else
  enable_test_timeout="no"
fi


  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
if test "x$ac_cv_header_signal_h" = x""yes; then :

$as_echo "#define HAVE_SIGNAL_H 1" >>confdefs.h

else
  enable_test_timeout="no"
fi


  if test "${enable_test_timeout}" = "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test timeout support has been disabled" >&5
$as_echo "$as_me: WARNING: test timeout support has been disabled" >&2;}
  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

# Set timeout for tests
if test "${enable_test_timeout}" = "yes"; then
  nightly_timeout="${with_test_timeout}"
else
  nightly_timeout="0"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking timeout for automatic tests" >&5
$as_echo_n "checking timeout for automatic tests... " >&6; }
if test "${nightly_timeout}" = "0"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
$as_echo "none" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nightly_timeout} seconds" >&5
$as_echo "${nightly_timeout} seconds" >&6; }
fi


 if test "${enable_test_timeout}" = "yes"; then
  DO_BUILD_NIGHTLY_TRUE=
  DO_BUILD_NIGHTLY_FALSE='#'
else
  DO_BUILD_NIGHTLY_TRUE='#'
  DO_BUILD_NIGHTLY_FALSE=
fi


# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #

#
# Experimental developments
#



  abi_sec_title="Experimental developments"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Bindings
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable bindings" >&5
$as_echo_n "checking whether to enable bindings... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_bindings}" >&5
$as_echo "${enable_bindings}" >&6; }
if test "${enable_bindings}" = "yes"; then

    abi_fc_module_ok="no"



    abi_env_ABI_CPPFLAGS="${ABI_CPPFLAGS}"

    abi_env_AR="${AR}"

    abi_env_ARFLAGS="${ARFLAGS}"

    abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

    abi_env_ARFLAGS_CMD="${ARFLAGS_CMD}"

    abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

    abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

    abi_env_ARFLAGS_HINTS="${ARFLAGS_HINTS}"

    abi_env_ARFLAGS_OPTIM="${ARFLAGS_OPTIM}"

    abi_env_CC="${CC}"

    abi_env_CC_LDFLAGS="${CC_LDFLAGS}"

    abi_env_CC_LDFLAGS_64BITS="${CC_LDFLAGS_64BITS}"

    abi_env_CC_LDFLAGS_DEBUG="${CC_LDFLAGS_DEBUG}"

    abi_env_CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA}"

    abi_env_CC_LDFLAGS_GPU="${CC_LDFLAGS_GPU}"

    abi_env_CC_LDFLAGS_HINTS="${CC_LDFLAGS_HINTS}"

    abi_env_CC_LDFLAGS_OPTIM="${CC_LDFLAGS_OPTIM}"

    abi_env_CC_LIBS="${CC_LIBS}"

    abi_env_CC_LIBS_64BITS="${CC_LIBS_64BITS}"

    abi_env_CC_LIBS_DEBUG="${CC_LIBS_DEBUG}"

    abi_env_CC_LIBS_EXTRA="${CC_LIBS_EXTRA}"

    abi_env_CC_LIBS_GPU="${CC_LIBS_GPU}"

    abi_env_CC_LIBS_HINTS="${CC_LIBS_HINTS}"

    abi_env_CC_LIBS_OPTIM="${CC_LIBS_OPTIM}"

    abi_env_CFLAGS="${CFLAGS}"

    abi_env_CFLAGS_64BITS="${CFLAGS_64BITS}"

    abi_env_CFLAGS_DEBUG="${CFLAGS_DEBUG}"

    abi_env_CFLAGS_EXTRA="${CFLAGS_EXTRA}"

    abi_env_CFLAGS_GPU="${CFLAGS_GPU}"

    abi_env_CFLAGS_HINTS="${CFLAGS_HINTS}"

    abi_env_CFLAGS_OPTIM="${CFLAGS_OPTIM}"

    abi_env_CPP="${CPP}"

    abi_env_CPPFLAGS="${CPPFLAGS}"

    abi_env_CPPFLAGS_64BITS="${CPPFLAGS_64BITS}"

    abi_env_CPPFLAGS_DEBUG="${CPPFLAGS_DEBUG}"

    abi_env_CPPFLAGS_EXTRA="${CPPFLAGS_EXTRA}"

    abi_env_CPPFLAGS_GPU="${CPPFLAGS_GPU}"

    abi_env_CPPFLAGS_HINTS="${CPPFLAGS_HINTS}"

    abi_env_CPPFLAGS_OPTIM="${CPPFLAGS_OPTIM}"

    abi_env_CXX="${CXX}"

    abi_env_CXXFLAGS="${CXXFLAGS}"

    abi_env_CXXFLAGS_64BITS="${CXXFLAGS_64BITS}"

    abi_env_CXXFLAGS_DEBUG="${CXXFLAGS_DEBUG}"

    abi_env_CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA}"

    abi_env_CXXFLAGS_GPU="${CXXFLAGS_GPU}"

    abi_env_CXXFLAGS_HINTS="${CXXFLAGS_HINTS}"

    abi_env_CXXFLAGS_OPTIM="${CXXFLAGS_OPTIM}"

    abi_env_CXX_LDFLAGS="${CXX_LDFLAGS}"

    abi_env_CXX_LDFLAGS_64BITS="${CXX_LDFLAGS_64BITS}"

    abi_env_CXX_LDFLAGS_DEBUG="${CXX_LDFLAGS_DEBUG}"

    abi_env_CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA}"

    abi_env_CXX_LDFLAGS_GPU="${CXX_LDFLAGS_GPU}"

    abi_env_CXX_LDFLAGS_HINTS="${CXX_LDFLAGS_HINTS}"

    abi_env_CXX_LDFLAGS_OPTIM="${CXX_LDFLAGS_OPTIM}"

    abi_env_CXX_LIBS="${CXX_LIBS}"

    abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

    abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

    abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

    abi_env_CXX_LIBS_GPU="${CXX_LIBS_GPU}"

    abi_env_CXX_LIBS_HINTS="${CXX_LIBS_HINTS}"

    abi_env_CXX_LIBS_OPTIM="${CXX_LIBS_OPTIM}"

    abi_env_DEFS="${DEFS}"

    abi_env_F77="${F77}"

    abi_env_FC="${FC}"

    abi_env_FCFLAGS="${FCFLAGS}"

    abi_env_FCFLAGS_64BITS="${FCFLAGS_64BITS}"

    abi_env_FCFLAGS_DEBUG="${FCFLAGS_DEBUG}"

    abi_env_FCFLAGS_EXTRA="${FCFLAGS_EXTRA}"

    abi_env_FCFLAGS_FIXEDFORM="${FCFLAGS_FIXEDFORM}"

    abi_env_FCFLAGS_FREEFORM="${FCFLAGS_FREEFORM}"

    abi_env_FCFLAGS_HINTS="${FCFLAGS_HINTS}"

    abi_env_FCFLAGS_MODDIR="${FCFLAGS_MODDIR}"

    abi_env_FCFLAGS_OPTIM="${FCFLAGS_OPTIM}"

    abi_env_FC_LDFLAGS="${FC_LDFLAGS}"

    abi_env_FC_LDFLAGS_64BITS="${FC_LDFLAGS_64BITS}"

    abi_env_FC_LDFLAGS_DEBUG="${FC_LDFLAGS_DEBUG}"

    abi_env_FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA}"

    abi_env_FC_LDFLAGS_HINTS="${FC_LDFLAGS_HINTS}"

    abi_env_FC_LDFLAGS_OPTIM="${FC_LDFLAGS_OPTIM}"

    abi_env_FC_LIBS="${FC_LIBS}"

    abi_env_FC_LIBS_64BITS="${FC_LIBS_64BITS}"

    abi_env_FC_LIBS_DEBUG="${FC_LIBS_DEBUG}"

    abi_env_FC_LIBS_EXTRA="${FC_LIBS_EXTRA}"

    abi_env_FC_LIBS_HINTS="${FC_LIBS_HINTS}"

    abi_env_FC_LIBS_OPTIM="${FC_LIBS_OPTIM}"

    abi_env_FPP="${FPP}"

    abi_env_FPPFLAGS="${FPPFLAGS}"

    abi_env_FPPFLAGS_DEBUG="${FPPFLAGS_DEBUG}"

    abi_env_FPPFLAGS_EXTRA="${FPPFLAGS_EXTRA}"

    abi_env_FPPFLAGS_HINTS="${FPPFLAGS_HINTS}"

    abi_env_FPPFLAGS_OPTIM="${FPPFLAGS_OPTIM}"

    abi_env_LD="${LD}"

    abi_env_LTXFLAGS="${LTXFLAGS}"

    abi_env_MDFLAGS="${MDFLAGS}"

    abi_env_MPI_RUNNER="${MPI_RUNNER}"

    abi_env_NM="${NM}"

    abi_env_NVCC="${NVCC}"

    abi_env_NVCC_CFLAGS="${NVCC_CFLAGS}"

    abi_env_NVCC_CPPFLAGS="${NVCC_CPPFLAGS}"

    abi_env_NVCC_LDFLAGS="${NVCC_LDFLAGS}"

    abi_env_NVCC_LIBS="${NVCC_LIBS}"

    abi_env_PDFFLAGS="${PDFFLAGS}"

    abi_env_RANLIB="${RANLIB}"

    abi_env_SERIAL_RUNNER="${SERIAL_RUNNER}"

    abi_env_XPP="${XPP}"

    abi_env_XPPFLAGS="${XPPFLAGS}"

    abi_env_XPPFLAGS_DEBUG="${XPPFLAGS_DEBUG}"

    abi_env_XPPFLAGS_EXTRA="${XPPFLAGS_EXTRA}"

    abi_env_XPPFLAGS_OPTIM="${XPPFLAGS_OPTIM}"


  abi_saved_LIBS="${LIBS}"
  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

      module conftest
      contains
      subroutine foobar()
      return
      end subroutine foobar
      end module conftest

_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  abi_fc_module_ok="yes"; mv conftest.${ac_objext} cfortran_test.${ac_objext}
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

    if test "${abi_fc_module_ok}" = "no"; then
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot compile a simple Fortran program
See \`config.log' for more details." "$LINENO" 5; }
  fi

    LIBS="cfortran_test.${ac_objext} ${LIBS} $FCLIBS"

    tmp_success="no"
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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
case $ac_cv_fc_mangling in
  upper*) ac_val="FOOBAR" ;;
  lower*) ac_val="foobar" ;;
  *)      ac_val="unknown" ;;
esac
case $ac_cv_fc_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac

foobar="$ac_val"

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

  for tmp_mod in "conftest" "CONFTEST" "foobar" "FOOBAR" "${foobar}" ; do
    for tmp_sub in "foobar" "FOOBAR" "${foobar}" "conftest" "CONFTEST" ; do
      for tmp_begin in "__" "" ; do
        for tmp_middle in "__" "_MOD_" "_MP_" "_mp_" ".in." "." "_" ; do
          tmp_func="${tmp_begin}${tmp_mod}${tmp_middle}${tmp_sub}"
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ${tmp_func} ();
#ifdef FC_DUMMY_MAIN
#ifndef FC_DUMMY_MAIN_EQ_F77
#  ifdef __cplusplus
     extern "C"
#  endif
   int FC_DUMMY_MAIN() { return 1; }
#endif
#endif
int
main ()
{
return ${tmp_func} ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tmp_success="yes"; break 4
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
        done
      done
    done
  done
  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 "${tmp_begin}" = ""; then
    tmp_bc=""
  else
    tmp_bc="##"
  fi

    if test "${tmp_success}" = "yes"; then

    case "${tmp_mod}x${tmp_sub}" in
      conftestxfoobar)
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} mod ## ${tmp_middle} ## sub
_ACEOF

        ;;
      conftestxFOOBAR)
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} mod ## ${tmp_middle} ## SUB
_ACEOF

        ;;
      conftestx${foobar})
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} mod ## ${tmp_middle} ## FC_FUNC(sub,SUB)
_ACEOF

        ;;
      CONFTESTxfoobar)
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} MOD ## ${tmp_middle} ## sub
_ACEOF

        ;;
      CONFTESTxFOOBAR)
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} MOD ## ${tmp_middle} ## SUB
_ACEOF

        ;;
      CONFTESTx${foobar})
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} MOD ## ${tmp_middle} ## FC_FUNC(sub,SUB)
_ACEOF

        ;;
      foobarxconftest)
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} sub ## ${tmp_middle} ## mod
_ACEOF

        ;;
      foobarxCONFTEST)
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} sub ## ${tmp_middle} ## MOD
_ACEOF

        ;;
      ${foobar}xconftest)
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} FC_FUNC(sub,SUB) ## ${tmp_middle} ## mod
_ACEOF

        ;;
      ${foobar}xCONFTEST)
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} FC_FUNC(sub,SUB) ## ${tmp_middle} ## MOD
_ACEOF

        ;;
      FOOBARxconftest)
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} SUB ## ${tmp_middle} ## mod
_ACEOF

        ;;
      FOOBARxCONFTEST)
        cat >>confdefs.h <<_ACEOF
#define ABI_FC_MOD(mod,MOD,sub,SUB) ${tmp_begin} ${tmp_bc} SUB ## ${tmp_middle} ## MOD
_ACEOF

        ;;
     esac
     abi_fc_mod_name="${tmp_begin}module${tmp_middle}subroutine"
  else
     abi_fc_mod_name="unknown"
  fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Fortran module name-mangling scheme" >&5
$as_echo_n "checking for the Fortran module name-mangling scheme... " >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${abi_fc_mod_name}" >&5
$as_echo "${abi_fc_mod_name}" >&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



    ABI_CPPFLAGS="${abi_env_ABI_CPPFLAGS}"

    AR="${abi_env_AR}"

    ARFLAGS="${abi_env_ARFLAGS}"

    ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

    ARFLAGS_CMD="${abi_env_ARFLAGS_CMD}"

    ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

    ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

    ARFLAGS_HINTS="${abi_env_ARFLAGS_HINTS}"

    ARFLAGS_OPTIM="${abi_env_ARFLAGS_OPTIM}"

    CC="${abi_env_CC}"

    CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

    CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

    CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

    CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

    CC_LDFLAGS_GPU="${abi_env_CC_LDFLAGS_GPU}"

    CC_LDFLAGS_HINTS="${abi_env_CC_LDFLAGS_HINTS}"

    CC_LDFLAGS_OPTIM="${abi_env_CC_LDFLAGS_OPTIM}"

    CC_LIBS="${abi_env_CC_LIBS}"

    CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

    CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

    CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

    CC_LIBS_GPU="${abi_env_CC_LIBS_GPU}"

    CC_LIBS_HINTS="${abi_env_CC_LIBS_HINTS}"

    CC_LIBS_OPTIM="${abi_env_CC_LIBS_OPTIM}"

    CFLAGS="${abi_env_CFLAGS}"

    CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

    CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

    CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

    CFLAGS_GPU="${abi_env_CFLAGS_GPU}"

    CFLAGS_HINTS="${abi_env_CFLAGS_HINTS}"

    CFLAGS_OPTIM="${abi_env_CFLAGS_OPTIM}"

    CPP="${abi_env_CPP}"

    CPPFLAGS="${abi_env_CPPFLAGS}"

    CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

    CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

    CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

    CPPFLAGS_GPU="${abi_env_CPPFLAGS_GPU}"

    CPPFLAGS_HINTS="${abi_env_CPPFLAGS_HINTS}"

    CPPFLAGS_OPTIM="${abi_env_CPPFLAGS_OPTIM}"

    CXX="${abi_env_CXX}"

    CXXFLAGS="${abi_env_CXXFLAGS}"

    CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

    CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

    CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

    CXXFLAGS_GPU="${abi_env_CXXFLAGS_GPU}"

    CXXFLAGS_HINTS="${abi_env_CXXFLAGS_HINTS}"

    CXXFLAGS_OPTIM="${abi_env_CXXFLAGS_OPTIM}"

    CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

    CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

    CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

    CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

    CXX_LDFLAGS_GPU="${abi_env_CXX_LDFLAGS_GPU}"

    CXX_LDFLAGS_HINTS="${abi_env_CXX_LDFLAGS_HINTS}"

    CXX_LDFLAGS_OPTIM="${abi_env_CXX_LDFLAGS_OPTIM}"

    CXX_LIBS="${abi_env_CXX_LIBS}"

    CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

    CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

    CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

    CXX_LIBS_GPU="${abi_env_CXX_LIBS_GPU}"

    CXX_LIBS_HINTS="${abi_env_CXX_LIBS_HINTS}"

    CXX_LIBS_OPTIM="${abi_env_CXX_LIBS_OPTIM}"

    DEFS="${abi_env_DEFS}"

    F77="${abi_env_F77}"

    FC="${abi_env_FC}"

    FCFLAGS="${abi_env_FCFLAGS}"

    FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

    FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

    FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

    FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

    FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

    FCFLAGS_HINTS="${abi_env_FCFLAGS_HINTS}"

    FCFLAGS_MODDIR="${abi_env_FCFLAGS_MODDIR}"

    FCFLAGS_OPTIM="${abi_env_FCFLAGS_OPTIM}"

    FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

    FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

    FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

    FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

    FC_LDFLAGS_HINTS="${abi_env_FC_LDFLAGS_HINTS}"

    FC_LDFLAGS_OPTIM="${abi_env_FC_LDFLAGS_OPTIM}"

    FC_LIBS="${abi_env_FC_LIBS}"

    FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

    FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

    FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

    FC_LIBS_HINTS="${abi_env_FC_LIBS_HINTS}"

    FC_LIBS_OPTIM="${abi_env_FC_LIBS_OPTIM}"

    FPP="${abi_env_FPP}"

    FPPFLAGS="${abi_env_FPPFLAGS}"

    FPPFLAGS_DEBUG="${abi_env_FPPFLAGS_DEBUG}"

    FPPFLAGS_EXTRA="${abi_env_FPPFLAGS_EXTRA}"

    FPPFLAGS_HINTS="${abi_env_FPPFLAGS_HINTS}"

    FPPFLAGS_OPTIM="${abi_env_FPPFLAGS_OPTIM}"

    LD="${abi_env_LD}"

    LTXFLAGS="${abi_env_LTXFLAGS}"

    MDFLAGS="${abi_env_MDFLAGS}"

    MPI_RUNNER="${abi_env_MPI_RUNNER}"

    NM="${abi_env_NM}"

    NVCC="${abi_env_NVCC}"

    NVCC_CFLAGS="${abi_env_NVCC_CFLAGS}"

    NVCC_CPPFLAGS="${abi_env_NVCC_CPPFLAGS}"

    NVCC_LDFLAGS="${abi_env_NVCC_LDFLAGS}"

    NVCC_LIBS="${abi_env_NVCC_LIBS}"

    PDFFLAGS="${abi_env_PDFFLAGS}"

    RANLIB="${abi_env_RANLIB}"

    SERIAL_RUNNER="${abi_env_SERIAL_RUNNER}"

    XPP="${abi_env_XPP}"

    XPPFLAGS="${abi_env_XPPFLAGS}"

    XPPFLAGS_DEBUG="${abi_env_XPPFLAGS_DEBUG}"

    XPPFLAGS_EXTRA="${abi_env_XPPFLAGS_EXTRA}"

    XPPFLAGS_OPTIM="${abi_env_XPPFLAGS_OPTIM}"


  LIBS="${abi_saved_LIBS}"
  rm -f cfortran_test* conftest*


$as_echo "#define HAVE_BINDINGS 1" >>confdefs.h

fi
 if test "${enable_bindings}" = "yes"; then
  DO_BUILD_BINDINGS_TRUE=
  DO_BUILD_BINDINGS_FALSE='#'
else
  DO_BUILD_BINDINGS_TRUE='#'
  DO_BUILD_BINDINGS_FALSE=
fi


# BSE unpacked
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable BSE unpacking" >&5
$as_echo_n "checking whether to enable BSE unpacking... " >&6; }
if test "${enable_bse_unpacked}" = "yes"; then

$as_echo "#define HAVE_BSE_UNPACKED 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_bse_unpacked}" >&5
$as_echo "${enable_bse_unpacked}" >&6; }

# CLib
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable CLib" >&5
$as_echo_n "checking whether to enable CLib... " >&6; }
if test "${enable_clib}" = "yes"; then

$as_echo "#define HAVE_CLIB 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_clib}" >&5
$as_echo "${enable_clib}" >&6; }
 if test "${enable_clib}" = "yes"; then
  DO_BUILD_02_CLIB_TRUE=
  DO_BUILD_02_CLIB_FALSE='#'
else
  DO_BUILD_02_CLIB_TRUE='#'
  DO_BUILD_02_CLIB_FALSE=
fi


# Exports
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build exports" >&5
$as_echo_n "checking whether to build exports... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_exports}" >&5
$as_echo "${enable_exports}" >&6; }
 if test "${enable_exports}" = "yes"; then
  DO_BUILD_EXPORTS_TRUE=
  DO_BUILD_EXPORTS_FALSE='#'
else
  DO_BUILD_EXPORTS_TRUE='#'
  DO_BUILD_EXPORTS_FALSE=
fi


# Fast checking
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to accelerate 'make check'" >&5
$as_echo_n "checking whether to accelerate 'make check'... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_fast_check}" >&5
$as_echo "${enable_fast_check}" >&6; }
 if test "${enable_fast_check}" = "yes"; then
  DO_CHECK_FAST_TRUE=
  DO_CHECK_FAST_FALSE='#'
else
  DO_CHECK_FAST_TRUE='#'
  DO_CHECK_FAST_FALSE=
fi


# Cut-off in GW
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GW cut-off" >&5
$as_echo_n "checking whether to enable GW cut-off... " >&6; }
if test "${enable_gw_cutoff}" = "yes"; then

$as_echo "#define HAVE_GW_CUTOFF 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_gw_cutoff}" >&5
$as_echo "${enable_gw_cutoff}" >&6; }

# Double precision in GW
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GW double-precision calculations" >&5
$as_echo_n "checking whether to enable GW double-precision calculations... " >&6; }
if test "${enable_gw_dpc}" = "yes"; then

$as_echo "#define HAVE_GW_DPC 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_gw_dpc}" >&5
$as_echo "${enable_gw_dpc}" >&6; }
 if test "${enable_gw_dpc}" = "yes"; then
  DO_TEST_GWDP_TRUE=
  DO_TEST_GWDP_FALSE='#'
else
  DO_TEST_GWDP_TRUE='#'
  DO_TEST_GWDP_FALSE=
fi


# Optimal GW
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable optimal GW" >&5
$as_echo_n "checking whether to enable optimal GW... " >&6; }
if test "${enable_gw_optimal}" = "yes"; then

$as_echo "#define HAVE_GW_OPTIMAL 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_gw_optimal}" >&5
$as_echo "${enable_gw_optimal}" >&6; }

# GW wrapper
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GW wrapper" >&5
$as_echo_n "checking whether to enable GW wrapper... " >&6; }
if test "${enable_gw_wrapper}" = "yes"; then

$as_echo "#define HAVE_GW_WRAPPER 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_gw_wrapper}" >&5
$as_echo "${enable_gw_wrapper}" >&6; }

# Maintainer checks
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate maintainer checks" >&5
$as_echo_n "checking whether to activate maintainer checks... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_maintainer_checks}" >&5
$as_echo "${enable_maintainer_checks}" >&6; }
 if test "${enable_maintainer_checks}" = "yes"; then
  DO_TEST_ABIRULES_TRUE=
  DO_TEST_ABIRULES_FALSE='#'
else
  DO_TEST_ABIRULES_TRUE='#'
  DO_TEST_ABIRULES_FALSE=
fi

 if test "${enable_maintainer_checks}" = "yes"; then
  DO_TEST_BUILDSYS_TRUE=
  DO_TEST_BUILDSYS_FALSE='#'
else
  DO_TEST_BUILDSYS_TRUE='#'
  DO_TEST_BUILDSYS_FALSE=
fi


# Build of macroave
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use macroave" >&5
$as_echo_n "checking whether to use macroave... " >&6; }
if test "${enable_macroave}" = "yes"; then

$as_echo "#define USE_MACROAVE 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_macroave}" >&5
$as_echo "${enable_macroave}" >&6; }
 if test "${enable_macroave}" = "yes"; then
  DO_BUILD_01_MACROAVNEW_EXT_TRUE=
  DO_BUILD_01_MACROAVNEW_EXT_FALSE='#'
else
  DO_BUILD_01_MACROAVNEW_EXT_TRUE='#'
  DO_BUILD_01_MACROAVNEW_EXT_FALSE=
fi

 if test "${enable_macroave}" = "yes"; then
  DO_BUILD_MACROAVE_TRUE=
  DO_BUILD_MACROAVE_FALSE='#'
else
  DO_BUILD_MACROAVE_TRUE='#'
  DO_BUILD_MACROAVE_FALSE=
fi


# Check whether to read file list from standard input
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to read input from stdin" >&5
$as_echo_n "checking whether to read input from stdin... " >&6; }
if test "${enable_stdin}" = "no"; then

$as_echo "#define READ_FROM_FILE 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_stdin}" >&5
$as_echo "${enable_stdin}" >&6; }

# SMP architectures
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate Symmetric Multi-Processing" >&5
$as_echo_n "checking whether to activate Symmetric Multi-Processing... " >&6; }
if test "${enable_smp}" = "yes"; then

$as_echo "#define HAVE_OPENMP 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_smp}" >&5
$as_echo "${enable_smp}" >&6; }

# van der Waals exchange-correlation
 if test "${enable_vdwxc}" = " yes"; then
  DO_TEST_VDWXC_TRUE=
  DO_TEST_VDWXC_FALSE='#'
else
  DO_TEST_VDWXC_TRUE='#'
  DO_TEST_VDWXC_FALSE=
fi


# ZDOTc and ZDOTU bugfix
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate ZDOTC and ZDOTU workaround" >&5
$as_echo_n "checking whether to activate ZDOTC and ZDOTU workaround... " >&6; }
if test "${enable_zdot_bugfix}" = "yes"; then

$as_echo "#define HAVE_LINALG_ZDOTC_BUG 1" >>confdefs.h


$as_echo "#define HAVE_LINALG_ZDOTU_BUG 1" >>confdefs.h

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zdot_bugfix}" >&5
$as_echo "${enable_zdot_bugfix}" >&6; }

# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #

# Void CPPFLAGS to allow for C/Fortran mixing
ABI_CPPFLAGS="${CPPFLAGS}"
CPPFLAGS=""

# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #

#
# Output configuration
#



  abi_sec_title="Output"

    abi_sec_spaces="                                                                      "
  abi_sec_tmp="${abi_sec_title}"
  while test "${abi_sec_tmp}" != ""; do
    abi_sec_spaces=`echo "${abi_sec_spaces}" | sed -e 's/^.//'`
    abi_sec_tmp=`echo "${abi_sec_tmp}" | sed -e 's/^.//'`
  done

  echo ""
  echo " =============================================================================="
  echo " === ${abi_sec_title}${abi_sec_spaces} ==="
  echo " =============================================================================="
  echo ""


# Output files
# Note: later, add tests/atconfig and tests/atlocal for test suite

    ac_config_files="$ac_config_files config.dump config.mk config.pc config.sh config/wrappers/wrap-fc src/incs/Makefile src/mods/Makefile src/16_hideleave/m_build_info.F90 tests/tests.env tests/tests-install.env Makefile src/Makefile src/01_gsl_ext/Makefile src/01_interfaces_ext/Makefile src/01_macroavnew_ext/Makefile src/01_qespresso_ext/Makefile src/02_clib/Makefile src/10_defs/Makefile src/12_hide_mpi/Makefile src/14_hidewrite/Makefile src/15_gpu_toolbox/Makefile src/16_hideleave/Makefile src/18_timing/Makefile src/27_toolbox_oop/Makefile src/28_numeric_noabirule/Makefile src/32_contract/Makefile src/32_util/Makefile src/42_geometry/Makefile src/42_geomoptim/Makefile src/42_nlstrain/Makefile src/42_parser/Makefile src/43_ptgroups/Makefile src/45_psp_parser/Makefile src/47_xml/Makefile src/49_gw_toolbox_oop/Makefile src/50_abitypes_defs/Makefile src/51_manage_cuda/Makefile src/51_manage_mpi/Makefile src/52_fft_mpi_noabirule/Makefile src/53_abiutil/Makefile src/53_ffts/Makefile src/53_spacepar/Makefile src/56_recipspace/Makefile src/56_xc/Makefile src/57_iovars/Makefile src/59_io_mpi/Makefile src/61_ionetcdf/Makefile src/62_cg_noabirule/Makefile src/62_iowfdenpot/Makefile src/62_occeig/Makefile src/62_poisson/Makefile src/62_wvl_wfs/Makefile src/63_bader/Makefile src/64_atompaw/Makefile src/65_nonlocal/Makefile src/65_psp/Makefile src/66_paw/Makefile src/66_wfs/Makefile src/67_common/Makefile src/68_dmft/Makefile src/68_gw/Makefile src/68_recursion/Makefile src/68_rsprc/Makefile src/69_bse/Makefile src/72_response/Makefile src/77_ddb/Makefile src/77_lwf/Makefile src/77_suscep/Makefile src/79_seqpar_mpi/Makefile src/83_cut3d/Makefile src/93_rdm/Makefile src/95_drive/Makefile src/98_main/Makefile src/libs/Makefile tests/Nightly/Makefile prereqs/Makefile prereqs/linalg/Makefile plugins/Makefile plugins/bigdft/Makefile plugins/etsf_io/Makefile plugins/fox/Makefile plugins/libxc/Makefile plugins/netcdf/Makefile plugins/wannier90/Makefile bindings/Makefile bindings/parser/Makefile doc/Makefile tests/Makefile"


    ac_config_commands="$ac_config_commands dump-optim"

  ac_config_commands="$ac_config_commands script-perms"

  ac_config_commands="$ac_config_commands long-lines"


    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:${as_lineno-$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= ;; #(
      *) { eval $ac_var=; 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:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:${as_lineno-$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.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_32_CONTRACT_TRUE}" && test -z "${DO_BUILD_32_CONTRACT_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_32_CONTRACT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_CCLOCK_TRUE}" && test -z "${DO_BUILD_CCLOCK_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_CCLOCK\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_MPI_TRUE}" && test -z "${DO_TEST_MPI_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_MPI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_15_GPU_TOOLBOX_TRUE}" && test -z "${DO_BUILD_15_GPU_TOOLBOX_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_15_GPU_TOOLBOX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_51_MANAGE_CUDA_TRUE}" && test -z "${DO_BUILD_51_MANAGE_CUDA_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_51_MANAGE_CUDA\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_LINALG_TRUE}" && test -z "${DO_BUILD_LINALG_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_LINALG\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_01_GSL_EXT_TRUE}" && test -z "${DO_BUILD_01_GSL_EXT_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_01_GSL_EXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_FOX_TRUE}" && test -z "${DO_TEST_FOX_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_FOX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_FOX_TRUE}" && test -z "${DO_BUILD_FOX_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_FOX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_NETCDF_TRUE}" && test -z "${DO_TEST_NETCDF_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_NETCDF\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_NETCDF_TRUE}" && test -z "${DO_BUILD_NETCDF_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_NETCDF\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_ETSF_IO_TRUE}" && test -z "${DO_TEST_ETSF_IO_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_ETSF_IO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_ETSF_IO_TRUE}" && test -z "${DO_BUILD_ETSF_IO_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_ETSF_IO\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_LIBXC_TRUE}" && test -z "${DO_TEST_LIBXC_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_LIBXC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_LIBXC_TRUE}" && test -z "${DO_BUILD_LIBXC_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_LIBXC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_BIGDFT_TRUE}" && test -z "${DO_TEST_BIGDFT_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_BIGDFT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_BIGDFT_TRUE}" && test -z "${DO_BUILD_BIGDFT_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_BIGDFT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_WANNIER90_TRUE}" && test -z "${DO_TEST_WANNIER90_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_WANNIER90\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_WANNIER90_TRUE}" && test -z "${DO_BUILD_WANNIER90_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_WANNIER90\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_NIGHTLY_TRUE}" && test -z "${DO_BUILD_NIGHTLY_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_NIGHTLY\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_BINDINGS_TRUE}" && test -z "${DO_BUILD_BINDINGS_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_02_CLIB_TRUE}" && test -z "${DO_BUILD_02_CLIB_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_02_CLIB\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_EXPORTS_TRUE}" && test -z "${DO_BUILD_EXPORTS_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_EXPORTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_CHECK_FAST_TRUE}" && test -z "${DO_CHECK_FAST_FALSE}"; then
  as_fn_error "conditional \"DO_CHECK_FAST\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_GWDP_TRUE}" && test -z "${DO_TEST_GWDP_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_GWDP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_ABIRULES_TRUE}" && test -z "${DO_TEST_ABIRULES_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_ABIRULES\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_BUILDSYS_TRUE}" && test -z "${DO_TEST_BUILDSYS_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_BUILDSYS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_01_MACROAVNEW_EXT_TRUE}" && test -z "${DO_BUILD_01_MACROAVNEW_EXT_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_01_MACROAVNEW_EXT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_BUILD_MACROAVE_TRUE}" && test -z "${DO_BUILD_MACROAVE_FALSE}"; then
  as_fn_error "conditional \"DO_BUILD_MACROAVE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DO_TEST_VDWXC_TRUE}" && test -z "${DO_TEST_VDWXC_FALSE}"; then
  as_fn_error "conditional \"DO_TEST_VDWXC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
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:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_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}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_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


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
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (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


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

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error ERROR [LINENO LOG_FD]
# ---------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with status $?, using 1 if that was 0.
as_fn_error ()
{
  as_status=$?; test $as_status -eq 0 && as_status=1
  if test "$3"; then
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  fi
  $as_echo "$as_me: error: $1" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


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

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

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

# 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

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

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


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    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_fn_error "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
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
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=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 ABINIT $as_me 6.4.3, which was
generated by GNU Autoconf 2.65.  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 and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, 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 <https://bugs.launchpad.net/abinit/>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
ABINIT config.status 6.4.3
configured by $0, generated by GNU Autoconf 2.65,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2009 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 ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; 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
    as_fn_append 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
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --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_fn_error "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append 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"

_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
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "config.dump") CONFIG_FILES="$CONFIG_FILES config.dump" ;;
    "config.mk") CONFIG_FILES="$CONFIG_FILES config.mk" ;;
    "config.pc") CONFIG_FILES="$CONFIG_FILES config.pc" ;;
    "config.sh") CONFIG_FILES="$CONFIG_FILES config.sh" ;;
    "config/wrappers/wrap-fc") CONFIG_FILES="$CONFIG_FILES config/wrappers/wrap-fc" ;;
    "src/incs/Makefile") CONFIG_FILES="$CONFIG_FILES src/incs/Makefile" ;;
    "src/mods/Makefile") CONFIG_FILES="$CONFIG_FILES src/mods/Makefile" ;;
    "src/16_hideleave/m_build_info.F90") CONFIG_FILES="$CONFIG_FILES src/16_hideleave/m_build_info.F90" ;;
    "tests/tests.env") CONFIG_FILES="$CONFIG_FILES tests/tests.env" ;;
    "tests/tests-install.env") CONFIG_FILES="$CONFIG_FILES tests/tests-install.env" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    "src/01_gsl_ext/Makefile") CONFIG_FILES="$CONFIG_FILES src/01_gsl_ext/Makefile" ;;
    "src/01_interfaces_ext/Makefile") CONFIG_FILES="$CONFIG_FILES src/01_interfaces_ext/Makefile" ;;
    "src/01_macroavnew_ext/Makefile") CONFIG_FILES="$CONFIG_FILES src/01_macroavnew_ext/Makefile" ;;
    "src/01_qespresso_ext/Makefile") CONFIG_FILES="$CONFIG_FILES src/01_qespresso_ext/Makefile" ;;
    "src/02_clib/Makefile") CONFIG_FILES="$CONFIG_FILES src/02_clib/Makefile" ;;
    "src/10_defs/Makefile") CONFIG_FILES="$CONFIG_FILES src/10_defs/Makefile" ;;
    "src/12_hide_mpi/Makefile") CONFIG_FILES="$CONFIG_FILES src/12_hide_mpi/Makefile" ;;
    "src/14_hidewrite/Makefile") CONFIG_FILES="$CONFIG_FILES src/14_hidewrite/Makefile" ;;
    "src/15_gpu_toolbox/Makefile") CONFIG_FILES="$CONFIG_FILES src/15_gpu_toolbox/Makefile" ;;
    "src/16_hideleave/Makefile") CONFIG_FILES="$CONFIG_FILES src/16_hideleave/Makefile" ;;
    "src/18_timing/Makefile") CONFIG_FILES="$CONFIG_FILES src/18_timing/Makefile" ;;
    "src/27_toolbox_oop/Makefile") CONFIG_FILES="$CONFIG_FILES src/27_toolbox_oop/Makefile" ;;
    "src/28_numeric_noabirule/Makefile") CONFIG_FILES="$CONFIG_FILES src/28_numeric_noabirule/Makefile" ;;
    "src/32_contract/Makefile") CONFIG_FILES="$CONFIG_FILES src/32_contract/Makefile" ;;
    "src/32_util/Makefile") CONFIG_FILES="$CONFIG_FILES src/32_util/Makefile" ;;
    "src/42_geometry/Makefile") CONFIG_FILES="$CONFIG_FILES src/42_geometry/Makefile" ;;
    "src/42_geomoptim/Makefile") CONFIG_FILES="$CONFIG_FILES src/42_geomoptim/Makefile" ;;
    "src/42_nlstrain/Makefile") CONFIG_FILES="$CONFIG_FILES src/42_nlstrain/Makefile" ;;
    "src/42_parser/Makefile") CONFIG_FILES="$CONFIG_FILES src/42_parser/Makefile" ;;
    "src/43_ptgroups/Makefile") CONFIG_FILES="$CONFIG_FILES src/43_ptgroups/Makefile" ;;
    "src/45_psp_parser/Makefile") CONFIG_FILES="$CONFIG_FILES src/45_psp_parser/Makefile" ;;
    "src/47_xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/47_xml/Makefile" ;;
    "src/49_gw_toolbox_oop/Makefile") CONFIG_FILES="$CONFIG_FILES src/49_gw_toolbox_oop/Makefile" ;;
    "src/50_abitypes_defs/Makefile") CONFIG_FILES="$CONFIG_FILES src/50_abitypes_defs/Makefile" ;;
    "src/51_manage_cuda/Makefile") CONFIG_FILES="$CONFIG_FILES src/51_manage_cuda/Makefile" ;;
    "src/51_manage_mpi/Makefile") CONFIG_FILES="$CONFIG_FILES src/51_manage_mpi/Makefile" ;;
    "src/52_fft_mpi_noabirule/Makefile") CONFIG_FILES="$CONFIG_FILES src/52_fft_mpi_noabirule/Makefile" ;;
    "src/53_abiutil/Makefile") CONFIG_FILES="$CONFIG_FILES src/53_abiutil/Makefile" ;;
    "src/53_ffts/Makefile") CONFIG_FILES="$CONFIG_FILES src/53_ffts/Makefile" ;;
    "src/53_spacepar/Makefile") CONFIG_FILES="$CONFIG_FILES src/53_spacepar/Makefile" ;;
    "src/56_recipspace/Makefile") CONFIG_FILES="$CONFIG_FILES src/56_recipspace/Makefile" ;;
    "src/56_xc/Makefile") CONFIG_FILES="$CONFIG_FILES src/56_xc/Makefile" ;;
    "src/57_iovars/Makefile") CONFIG_FILES="$CONFIG_FILES src/57_iovars/Makefile" ;;
    "src/59_io_mpi/Makefile") CONFIG_FILES="$CONFIG_FILES src/59_io_mpi/Makefile" ;;
    "src/61_ionetcdf/Makefile") CONFIG_FILES="$CONFIG_FILES src/61_ionetcdf/Makefile" ;;
    "src/62_cg_noabirule/Makefile") CONFIG_FILES="$CONFIG_FILES src/62_cg_noabirule/Makefile" ;;
    "src/62_iowfdenpot/Makefile") CONFIG_FILES="$CONFIG_FILES src/62_iowfdenpot/Makefile" ;;
    "src/62_occeig/Makefile") CONFIG_FILES="$CONFIG_FILES src/62_occeig/Makefile" ;;
    "src/62_poisson/Makefile") CONFIG_FILES="$CONFIG_FILES src/62_poisson/Makefile" ;;
    "src/62_wvl_wfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/62_wvl_wfs/Makefile" ;;
    "src/63_bader/Makefile") CONFIG_FILES="$CONFIG_FILES src/63_bader/Makefile" ;;
    "src/64_atompaw/Makefile") CONFIG_FILES="$CONFIG_FILES src/64_atompaw/Makefile" ;;
    "src/65_nonlocal/Makefile") CONFIG_FILES="$CONFIG_FILES src/65_nonlocal/Makefile" ;;
    "src/65_psp/Makefile") CONFIG_FILES="$CONFIG_FILES src/65_psp/Makefile" ;;
    "src/66_paw/Makefile") CONFIG_FILES="$CONFIG_FILES src/66_paw/Makefile" ;;
    "src/66_wfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/66_wfs/Makefile" ;;
    "src/67_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/67_common/Makefile" ;;
    "src/68_dmft/Makefile") CONFIG_FILES="$CONFIG_FILES src/68_dmft/Makefile" ;;
    "src/68_gw/Makefile") CONFIG_FILES="$CONFIG_FILES src/68_gw/Makefile" ;;
    "src/68_recursion/Makefile") CONFIG_FILES="$CONFIG_FILES src/68_recursion/Makefile" ;;
    "src/68_rsprc/Makefile") CONFIG_FILES="$CONFIG_FILES src/68_rsprc/Makefile" ;;
    "src/69_bse/Makefile") CONFIG_FILES="$CONFIG_FILES src/69_bse/Makefile" ;;
    "src/72_response/Makefile") CONFIG_FILES="$CONFIG_FILES src/72_response/Makefile" ;;
    "src/77_ddb/Makefile") CONFIG_FILES="$CONFIG_FILES src/77_ddb/Makefile" ;;
    "src/77_lwf/Makefile") CONFIG_FILES="$CONFIG_FILES src/77_lwf/Makefile" ;;
    "src/77_suscep/Makefile") CONFIG_FILES="$CONFIG_FILES src/77_suscep/Makefile" ;;
    "src/79_seqpar_mpi/Makefile") CONFIG_FILES="$CONFIG_FILES src/79_seqpar_mpi/Makefile" ;;
    "src/83_cut3d/Makefile") CONFIG_FILES="$CONFIG_FILES src/83_cut3d/Makefile" ;;
    "src/93_rdm/Makefile") CONFIG_FILES="$CONFIG_FILES src/93_rdm/Makefile" ;;
    "src/95_drive/Makefile") CONFIG_FILES="$CONFIG_FILES src/95_drive/Makefile" ;;
    "src/98_main/Makefile") CONFIG_FILES="$CONFIG_FILES src/98_main/Makefile" ;;
    "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
    "tests/Nightly/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Nightly/Makefile" ;;
    "prereqs/Makefile") CONFIG_FILES="$CONFIG_FILES prereqs/Makefile" ;;
    "prereqs/linalg/Makefile") CONFIG_FILES="$CONFIG_FILES prereqs/linalg/Makefile" ;;
    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
    "plugins/bigdft/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/bigdft/Makefile" ;;
    "plugins/etsf_io/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/etsf_io/Makefile" ;;
    "plugins/fox/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fox/Makefile" ;;
    "plugins/libxc/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/libxc/Makefile" ;;
    "plugins/netcdf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/netcdf/Makefile" ;;
    "plugins/wannier90/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/wannier90/Makefile" ;;
    "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
    "bindings/parser/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/parser/Makefile" ;;
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "dump-optim") CONFIG_COMMANDS="$CONFIG_COMMANDS dump-optim" ;;
    "script-perms") CONFIG_COMMANDS="$CONFIG_COMMANDS script-perms" ;;
    "long-lines") CONFIG_COMMANDS="$CONFIG_COMMANDS long-lines" ;;

  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  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 'as_fn_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_fn_error "cannot create a temporary directory in ." "$LINENO" 5

# 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=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
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_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
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_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5

  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_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  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_fn_error "could not setup config files machinery" "$LINENO" 5
_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_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  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_fn_error "could not setup config headers machinery" "$LINENO" 5
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_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[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_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append 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:${as_lineno-$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_fn_error "could not create $ac_file" "$LINENO" 5 ;;
    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"; as_fn_mkdir_p
  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:${as_lineno-$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_fn_error "could not create $ac_file" "$LINENO" 5

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:${as_lineno-$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_fn_error "could not create $ac_file" "$LINENO" 5
 ;;
  :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_fn_error "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$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_fn_error "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error "could not create -" "$LINENO" 5
  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:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  case $CONFIG_FILES in
  *\'*) eval set x "$CONFIG_FILES" ;;
  *)   set x $CONFIG_FILES ;;
  esac
  shift
  for mf
  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; as_fn_mkdir_p
      # echo "creating $dirpart/$file"
      echo '# dummy' > "$dirpart/$file"
    done
  done
}
 ;;
    "dump-optim":C) /bin/sh ${abinit_srcdir}/config/scripts/make-optim-dumper ;;
    "script-perms":C) chmod a+x config/wrappers/wrap-fc ;;
    "long-lines":C) /bin/sh ${abinit_srcdir}/config/scripts/shrink-src-files ${abinit_srcdir} ${abinit_builddir} ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5


# 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 || as_fn_exit $?
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi



# The end


  case "${abi_fc_vendor}" in

    absoft)


    abi_msg_file="${abinit_srcdir}/config/messages/fc-absoft.msg"
  abi_msg_title="About the ABSoft Fortran compiler"
  test "${abi_msg_title}" = "" && abi_msg_title="IMPORTANT NOTE"

    abi_msg_spacer="                                                            "
  abi_msg_tmp1=`echo "${abi_msg_title}" | sed -e 's/./ /g'`
  abi_msg_tmp2=`echo "${abi_msg_tmp1}" | grep "${abi_msg_spacer}"`
  abi_msg_spacer=`echo "${abi_msg_spacer}" | sed -e "s/${abi_msg_tmp1}//"`
  test "${abi_msg_tmp2}" = "" || abi_msg_spacer=""
  abi_msg_title="${abi_msg_title}${abi_msg_spacer}"

  if test -s "${abi_msg_file}"; then

    echo ""
  echo "        +--------------------------------------------------------------+"
  echo "        | ${abi_msg_title} |"
  echo "        +--------------------------------------------------------------+"

    while read abi_msg_line; do
    abi_msg_line=`eval echo ${abi_msg_line}`
    abi_msg_spacer="                                                            "
    abi_msg_tmp1=`echo "${abi_msg_line}" | sed -e 's/./ /g'`
    abi_msg_tmp2=`echo "${abi_msg_tmp1}" | grep "${abi_msg_spacer}"`
    test "${abi_msg_tmp1}" = "" || \
      abi_msg_spacer=`echo "${abi_msg_spacer}" | sed -e "s/${abi_msg_tmp1}//"`
    test "${abi_msg_tmp2}" = "" || abi_msg_spacer=""
    echo "        | ${abi_msg_line}${abi_msg_spacer} |"
  done <"${abi_msg_file}"

    echo "        +--------------------------------------------------------------+"
  echo ""

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: message file ${abi_msg_file} not found" >&5
$as_echo "$as_me: WARNING: message file ${abi_msg_file} not found" >&2;}
  fi

      ;;

    ibm)


    abi_msg_file="${abinit_srcdir}/config/messages/fc-ibm.msg"
  abi_msg_title="About the IBM XL Fortran compiler"
  test "${abi_msg_title}" = "" && abi_msg_title="IMPORTANT NOTE"

    abi_msg_spacer="                                                            "
  abi_msg_tmp1=`echo "${abi_msg_title}" | sed -e 's/./ /g'`
  abi_msg_tmp2=`echo "${abi_msg_tmp1}" | grep "${abi_msg_spacer}"`
  abi_msg_spacer=`echo "${abi_msg_spacer}" | sed -e "s/${abi_msg_tmp1}//"`
  test "${abi_msg_tmp2}" = "" || abi_msg_spacer=""
  abi_msg_title="${abi_msg_title}${abi_msg_spacer}"

  if test -s "${abi_msg_file}"; then

    echo ""
  echo "        +--------------------------------------------------------------+"
  echo "        | ${abi_msg_title} |"
  echo "        +--------------------------------------------------------------+"

    while read abi_msg_line; do
    abi_msg_line=`eval echo ${abi_msg_line}`
    abi_msg_spacer="                                                            "
    abi_msg_tmp1=`echo "${abi_msg_line}" | sed -e 's/./ /g'`
    abi_msg_tmp2=`echo "${abi_msg_tmp1}" | grep "${abi_msg_spacer}"`
    test "${abi_msg_tmp1}" = "" || \
      abi_msg_spacer=`echo "${abi_msg_spacer}" | sed -e "s/${abi_msg_tmp1}//"`
    test "${abi_msg_tmp2}" = "" || abi_msg_spacer=""
    echo "        | ${abi_msg_line}${abi_msg_spacer} |"
  done <"${abi_msg_file}"

    echo "        +--------------------------------------------------------------+"
  echo ""

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: message file ${abi_msg_file} not found" >&5
$as_echo "$as_me: WARNING: message file ${abi_msg_file} not found" >&2;}
  fi

      ;;

    intel)


    abi_msg_file="${abinit_srcdir}/config/messages/fc-intel.msg"
  abi_msg_title="About the Intel Fortran compiler"
  test "${abi_msg_title}" = "" && abi_msg_title="IMPORTANT NOTE"

    abi_msg_spacer="                                                            "
  abi_msg_tmp1=`echo "${abi_msg_title}" | sed -e 's/./ /g'`
  abi_msg_tmp2=`echo "${abi_msg_tmp1}" | grep "${abi_msg_spacer}"`
  abi_msg_spacer=`echo "${abi_msg_spacer}" | sed -e "s/${abi_msg_tmp1}//"`
  test "${abi_msg_tmp2}" = "" || abi_msg_spacer=""
  abi_msg_title="${abi_msg_title}${abi_msg_spacer}"

  if test -s "${abi_msg_file}"; then

    echo ""
  echo "        +--------------------------------------------------------------+"
  echo "        | ${abi_msg_title} |"
  echo "        +--------------------------------------------------------------+"

    while read abi_msg_line; do
    abi_msg_line=`eval echo ${abi_msg_line}`
    abi_msg_spacer="                                                            "
    abi_msg_tmp1=`echo "${abi_msg_line}" | sed -e 's/./ /g'`
    abi_msg_tmp2=`echo "${abi_msg_tmp1}" | grep "${abi_msg_spacer}"`
    test "${abi_msg_tmp1}" = "" || \
      abi_msg_spacer=`echo "${abi_msg_spacer}" | sed -e "s/${abi_msg_tmp1}//"`
    test "${abi_msg_tmp2}" = "" || abi_msg_spacer=""
    echo "        | ${abi_msg_line}${abi_msg_spacer} |"
  done <"${abi_msg_file}"

    echo "        +--------------------------------------------------------------+"
  echo ""

  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: message file ${abi_msg_file} not found" >&5
$as_echo "$as_me: WARNING: message file ${abi_msg_file} not found" >&2;}
  fi

      ;;

  esac


# Check whether environment variables have been loaded
if test "${abi_cfg_env}" != ""; then

cat <<EOF

Environment variables have been loaded from a file:

    ${abi_cfg_env}

Please make sure that they are available in the current context as well
by sourcing this file if needed.
EOF

fi

# Display ending message
cat <<EOF

Configuration complete.
You may now type "make" to build ABINIT.
(or, on a SMP machine, "make mj4", or "make multi multi_nprocs=<n>")

EOF

