#! /bin/sh
# From configure.ac Autotools support for ABINIT 5.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.62 for ABINIT 5.7.4.
#
# 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 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

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

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi

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


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

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
PS1='$ '
PS2='> '
PS4='+ '

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

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

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# CDPATH.
$as_unset CDPATH


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

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

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

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

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

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

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

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

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


      for as_shell in $as_candidate_shells $SHELL; do
	 # Try only shells that exist, to save several forks.
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi


:
_ASEOF
}; then
  CONFIG_SHELL=$as_shell
	       as_have_required=yes
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi


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

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

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

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

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

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

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

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

_ASEOF
}; then
  break
fi

fi

      done

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


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


fi

fi



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

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

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

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

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

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

test \$exitcode = 0") || {
  echo No shell found that supports shell functions.
  echo Please tell bug-autoconf@gnu.org about your system,
  echo including any error possibly output before this message.
  echo This can help us improve future autoconf versions.
  echo Configuration will now proceed without shell functions.
}



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

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


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

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

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

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

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

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"



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

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

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

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

ac_unique_file="src/main/abinit.F90"
ac_default_prefix=/opt/etsf
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars='SHELL
PATH_SEPARATOR
PACKAGE_NAME
PACKAGE_TARNAME
PACKAGE_VERSION
PACKAGE_STRING
PACKAGE_BUGREPORT
exec_prefix
prefix
program_transform_name
bindir
sbindir
libexecdir
datarootdir
datadir
sysconfdir
sharedstatedir
localstatedir
includedir
oldincludedir
docdir
infodir
htmldir
dvidir
pdfdir
psdir
libdir
localedir
mandir
DEFS
ECHO_C
ECHO_N
ECHO_T
LIBS
build_alias
host_alias
target_alias
build
build_cpu
build_vendor
build_os
host
host_cpu
host_vendor
host_os
target
target_cpu
target_vendor
target_os
INSTALL_PROGRAM
INSTALL_SCRIPT
INSTALL_DATA
am__isrc
CYGPATH_W
PACKAGE
VERSION
ACLOCAL
AUTOCONF
AUTOMAKE
AUTOHEADER
MAKEINFO
install_sh
STRIP
INSTALL_STRIP_PROGRAM
MKDIR_P
mkdir_p
AWK
SET_MAKE
am__leading_dot
AMTAR
am__tar
am__untar
abinit_srcdir
abinit_builddir
ABINIT_VERSION
ABINIT_VERSION_MAJOR
ABINIT_VERSION_MINOR
ABINIT_VERSION_MICRO
ABINIT_VERSION_BUILD
ABINIT_VERSION_BASE
abi_cpu_vendor
abi_cpu_model
abi_cpu_64bits
abi_cpu_bits
LN_S
SED
GREP
EGREP
linalg_supported_types
linalg_pkg_name
linalg_pkg_string
ARFLAGS_64BITS
ARFLAGS_DEBUG
ARFLAGS_EXTRA
ARFLAGS_OPT
CC_LDFLAGS_64BITS
CC_LDFLAGS_DEBUG
CC_LDFLAGS_EXTRA
CC_LDFLAGS_OPT
CC_LIBS_64BITS
CC_LIBS_DEBUG
CC_LIBS_EXTRA
CC_LIBS_OPT
CFLAGS_64BITS
CFLAGS_DEBUG
CFLAGS_EXTRA
CFLAGS_OPT
CPPFLAGS_64BITS
CPPFLAGS_DEBUG
CPPFLAGS_EXTRA
CPPFLAGS_OPT
CXX_LDFLAGS_64BITS
CXX_LDFLAGS_DEBUG
CXX_LDFLAGS_EXTRA
CXX_LDFLAGS_OPT
CXX_LIBS_DEBUG
CXX_LIBS_64BITS
CXX_LIBS_OPT
CXX_LIBS_EXTRA
CXXFLAGS_64BITS
CXXFLAGS_DEBUG
CXXFLAGS_EXTRA
CXXFLAGS_OPT
FC_LDFLAGS_64BITS
FC_LDFLAGS_DEBUG
FC_LDFLAGS_EXTRA
FC_LDFLAGS_OPT
FC_LIBS_64BITS
FC_LIBS_DEBUG
FC_LIBS_EXTRA
FC_LIBS_OPT
FCFLAGS_64BITS
FCFLAGS_DEBUG
FCFLAGS_EXTRA
FCFLAGS_FIXEDFORM
FCFLAGS_FREEFORM
FCFLAGS_OPT
LTXFLAGS
MDFLAGS
MPI_CC_LDFLAGS
MPI_CC_LIBS
MPI_CXX_LIBS
MPI_FC_LIBS
MPI_CFLAGS
MPI_CPPFLAGS
MPI_CXX_LDFLAGS
MPI_CXXFLAGS
MPI_FC_LDFLAGS
MPI_FCFLAGS
MPI_RUNNER
PDFFLAGS
enable_64bit_flags
enable_all_plugins
enable_bigdft
enable_bindings
enable_cclock
enable_config_file
enable_debug
enable_env_file
enable_error_handlers
enable_etsf_io
enable_etsf_xc
enable_exports
enable_fc_wrapper
enable_fftw
enable_fftw_threads
enable_fox
enable_gsl
enable_gw_dpc
enable_macroave
enable_mpi
enable_mpi_io
enable_mpi_io_buggy
enable_mpi_trace
enable_netcdf
enable_nightly
enable_optlevel
enable_papi
enable_scalapack
enable_stdin
enable_tricks
enable_wannier90
enable_xmlf90
with_64bit_flags
with_ar_dbgflags
with_ar_optflags
with_bigdft_includes
with_bigdft_libs
with_config_file
with_cc_dbgflags
with_cc_ld_dbgflags
with_cc_ld_dbglibs
with_cc_ld_optflags
with_cc_ld_optlibs
with_cc_optflags
with_cpp_dbgflags
with_cpp_optflags
with_cxx_dbgflags
with_cxx_ld_dbgflags
with_cxx_ld_dbglibs
with_cxx_ld_optflags
with_cxx_ld_optlibs
with_cxx_optflags
with_etsf_io_includes
with_etsf_io_libs
with_etsf_xc_includes
with_etsf_xc_libs
with_fc_dbgflags
with_fc_ld_dbgflags
with_fc_ld_dbglibs
with_fc_ld_optflags
with_fc_ld_optlibs
with_fc_optflags
with_fc_vendor
with_fc_version
with_fftw_includes
with_fftw_libs
with_fox_includes
with_fox_libs
with_gsl_includes
with_gsl_libs
with_linalg_includes
with_linalg_libs
with_linalg_type
with_mpi_cppflags
with_mpi_cflags
with_mpi_cc_ldflags
with_mpi_cc_libs
with_mpi_cxxflags
with_mpi_cxx_ldflags
with_mpi_cxx_libs
with_mpi_fcflags
with_mpi_fc_ldflags
with_mpi_fc_libs
with_mpi_level
with_mpi_prefix
with_mpi_runner
with_netcdf_includes
with_netcdf_libs
with_papi_includes
with_papi_libs
with_plugins_prefix
with_plugins_tardir
with_scalapack_includes
with_scalapack_libs
with_timeout
with_wannier90
with_wannier90_includes
with_wannier90_libs
with_xmlf90_includes
with_xmlf90_libs
CC_LDFLAGS
CC_LIBS
CXX_LDFLAGS
CXX_LIBS
FC_LDFLAGS
FC_LIBS
abinit_prefix
abinit_bindir
abinit_chkdir
abinit_datdir
abinit_docdir
abinit_incdir
abinit_libdir
abinit_mandir
abinit_rundir
abinit_wwwdir
src_defs_includes
src_interfaces_includes
src_00basis_includes
src_lib00gsl_includes
src_lib00macroav_includes
src_lib01hidempi_includes
src_01manage_mpi_includes
src_02toolbox_includes
src_lib02fftnew_includes
src_lib03numeric_includes
src_11util_includes
src_11contract_includes
src_12spacepar_includes
src_12parser_includes
src_12geometry_includes
src_12ffts_includes
src_12nlstrain_includes
src_13xml_includes
src_13xc_includes
src_13recipspace_includes
src_13iovars_includes
src_13io_mpi_includes
src_13ionetcdf_includes
src_13papi_counters_includes
src_lib14cg_includes
src_14poisson_includes
src_14wvl_wfs_includes
src_14iowfdenpot_includes
src_14bader_includes
src_14occeig_includes
src_15nonlocal_includes
src_15wfs_includes
src_15psp_includes
src_15paw_includes
src_15recursion_includes
src_15common_includes
src_15rsprc_includes
src_15gw_includes
src_16response_includes
src_16geomoptim_includes
src_17suscep_includes
src_17lwf_includes
src_17ddb_includes
src_18seqpar_includes
src_19cut3d_includes
src_21rdm_includes
src_21drive_includes
abi_m4_version
abi_ac_version
abi_am_version
abi_lt_version
mpi_usable
mpi_type
mpi_level
BOURNE_SHELL
PERL
RM
MV
TAR
LATEX
DVI2PS
DVI2PDF
PS2PDF
MARKDOWN
WGET
CC
CFLAGS
LDFLAGS
CPPFLAGS
ac_ct_CC
EXEEXT
OBJEXT
DEPDIR
am__include
am__quote
AMDEP_TRUE
AMDEP_FALSE
AMDEPBACKSLASH
CCDEPMODE
am__fastdepCC_TRUE
am__fastdepCC_FALSE
CPP
TRUE_CPP
TRUE_CPPFLAGS
abi_cc_vendor
abi_cc_version
CXX
CXXFLAGS
ac_ct_CXX
CXXDEPMODE
am__fastdepCXX_TRUE
am__fastdepCXX_FALSE
abi_cxx_vendor
abi_cxx_version
FC
FCFLAGS
ac_ct_FC
abi_fc_vendor
abi_fc_version
abi_fc_wrap
DO_BUILD_CCLOCK_TRUE
DO_BUILD_CCLOCK_FALSE
MODEXT
FCLIBS
PYTHON
PYTHON_CONFIG
BAZAAR
PYTHON_CPPFLAGS
bzr_branch
bzr_revno
bzr_clean
AR
RANLIB
ARFLAGS_CMD
ARFLAGS
enable_shared
enable_static
with_gnu_ld
fcflags_opt_defs
fcflags_opt_interfaces
fcflags_opt_00basis
fcflags_opt_lib00gsl
fcflags_opt_lib00macroav
fcflags_opt_lib01hidempi
fcflags_opt_01manage_mpi
fcflags_opt_02toolbox
fcflags_opt_lib02fftnew
fcflags_opt_lib03numeric
fcflags_opt_11util
fcflags_opt_11contract
fcflags_opt_12spacepar
fcflags_opt_12parser
fcflags_opt_12geometry
fcflags_opt_12ffts
fcflags_opt_12nlstrain
fcflags_opt_13xml
fcflags_opt_13xc
fcflags_opt_13recipspace
fcflags_opt_13iovars
fcflags_opt_13io_mpi
fcflags_opt_13ionetcdf
fcflags_opt_13papi_counters
fcflags_opt_lib14cg
fcflags_opt_14poisson
fcflags_opt_14wvl_wfs
fcflags_opt_14iowfdenpot
fcflags_opt_14bader
fcflags_opt_14occeig
fcflags_opt_15nonlocal
fcflags_opt_15wfs
fcflags_opt_15psp
fcflags_opt_15paw
fcflags_opt_15recursion
fcflags_opt_15common
fcflags_opt_15rsprc
fcflags_opt_15gw
fcflags_opt_16response
fcflags_opt_16geomoptim
fcflags_opt_17suscep
fcflags_opt_17lwf
fcflags_opt_17ddb
fcflags_opt_18seqpar
fcflags_opt_19cut3d
fcflags_opt_21rdm
fcflags_opt_21drive
fcflags_opt_linalg
fcflags_opt_netcdf
fcflags_opt_etsf_io
fcflags_opt_etsf_xc
fcflags_opt_fox
fcflags_opt_bigdft
fcflags_opt_wannier90
fcflags_opt_xmlf90
fcflags_opt_main
ABINIT_TARGET
ABINIT_BINARY_PACKAGE
mpi_native_runner
DO_BUILD_PARALLEL_TRUE
DO_BUILD_PARALLEL_FALSE
FC_NOWRAP
F77
FFLAGS
lib_fft_includes
lib_fft_libs
lib_gsl_includes
lib_gsl_libs
DO_BUILD_LIB00GSL_TRUE
DO_BUILD_LIB00GSL_FALSE
CPPFLAGS_LINALG
CFLAGS_LINALG
CXXFLAGS_LINALG
FCFLAGS_LINALG
linalg_tricks_bypass
lib_linalg_includes
lib_linalg_libs
build_linalg
linalg_type
DO_BUILD_LINALG_TRUE
DO_BUILD_LINALG_FALSE
lib_papi_includes
lib_papi_libs
abinit_tardir
bigdft_pkg_name
bigdft_pkg_string
CPPFLAGS_BIGDFT
CFLAGS_BIGDFT
CXXFLAGS_BIGDFT
FCFLAGS_BIGDFT
lib_bigdft_includes
lib_bigdft_libs
build_bigdft
DO_ENABLE_BIGDFT_TRUE
DO_ENABLE_BIGDFT_FALSE
DO_BUILD_BIGDFT_TRUE
DO_BUILD_BIGDFT_FALSE
CONFIGOPT_NETCDF
netcdf_pkg_name
netcdf_pkg_string
CPPFLAGS_NETCDF
CFLAGS_NETCDF
CXXFLAGS_NETCDF
FCFLAGS_NETCDF
FCLIBS_NETCDF
lib_netcdf_includes
lib_netcdf_libs
build_netcdf
DO_ENABLE_NETCDF_TRUE
DO_ENABLE_NETCDF_FALSE
DO_BUILD_NETCDF_TRUE
DO_BUILD_NETCDF_FALSE
etsf_io_pkg_name
etsf_io_pkg_string
CPPFLAGS_ETSF_IO
CFLAGS_ETSF_IO
CXXFLAGS_ETSF_IO
FCFLAGS_ETSF_IO
FCLIBS_ETSF_IO
lib_etsf_io_includes
lib_etsf_io_libs
build_etsf_io
DO_ENABLE_ETSF_IO_TRUE
DO_ENABLE_ETSF_IO_FALSE
DO_BUILD_ETSF_IO_TRUE
DO_BUILD_ETSF_IO_FALSE
etsf_xc_pkg_name
etsf_xc_pkg_string
CPPFLAGS_ETSF_XC
CFLAGS_ETSF_XC
CXXFLAGS_ETSF_XC
FCFLAGS_ETSF_XC
lib_etsf_xc_includes
lib_etsf_xc_libs
build_etsf_xc
DO_ENABLE_ETSF_XC_TRUE
DO_ENABLE_ETSF_XC_FALSE
DO_BUILD_ETSF_XC_TRUE
DO_BUILD_ETSF_XC_FALSE
fox_pkg_name
fox_pkg_string
CPPFLAGS_FOX
CFLAGS_FOX
CXXFLAGS_FOX
FCFLAGS_FOX
FCLIBS_FOX
lib_fox_includes
lib_fox_libs
build_fox
DO_ENABLE_FOX_TRUE
DO_ENABLE_FOX_FALSE
DO_BUILD_FOX_TRUE
DO_BUILD_FOX_FALSE
xmlf90_pkg_name
xmlf90_pkg_string
CPPFLAGS_XMLF90
CFLAGS_XMLF90
CXXFLAGS_XMLF90
FCFLAGS_XMLF90
lib_xmlf90_includes
lib_xmlf90_libs
build_xmlf90
DO_ENABLE_XMLF90_TRUE
DO_ENABLE_XMLF90_FALSE
DO_BUILD_XMLF90_TRUE
DO_BUILD_XMLF90_FALSE
wannier90_pkg_name
wannier90_pkg_string
CPPFLAGS_WANNIER90
CFLAGS_WANNIER90
CXXFLAGS_WANNIER90
FCFLAGS_WANNIER90
FCLIBS_WANNIER90
lib_wannier90_includes
lib_wannier90_libs
build_wannier90
DO_ENABLE_WANNIER90_TRUE
DO_ENABLE_WANNIER90_FALSE
DO_BUILD_WANNIER90_TRUE
DO_BUILD_WANNIER90_FALSE
nightly_timeout
DO_BUILD_NIGHTLY_TRUE
DO_BUILD_NIGHTLY_FALSE
DO_BUILD_BINDINGS_TRUE
DO_BUILD_BINDINGS_FALSE
DO_BUILD_ERROR_HANDLERS_TRUE
DO_BUILD_ERROR_HANDLERS_FALSE
DO_BUILD_EXPORTS_TRUE
DO_BUILD_EXPORTS_FALSE
DO_BUILD_LIB00MACROAV_TRUE
DO_BUILD_LIB00MACROAV_FALSE
DO_BUILD_MACROAVE_TRUE
DO_BUILD_MACROAVE_FALSE
LIBOBJS
LTLIBOBJS'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_64bit_flags
enable_all_plugins
enable_bigdft
enable_bindings
enable_cclock
enable_config_file
enable_debug
enable_env_file
enable_error_handlers
enable_etsf_io
enable_etsf_xc
enable_exports
enable_fc_wrapper
enable_fftw
enable_fftw_threads
enable_fox
enable_gsl
enable_gw_dpc
enable_macroave
enable_mpi
enable_mpi_io
enable_mpi_io_buggy
enable_mpi_trace
enable_netcdf
enable_nightly
enable_optlevel
enable_papi
enable_scalapack
enable_stdin
enable_tricks
enable_wannier90
enable_xmlf90
with_64bit_flags
with_ar_dbgflags
with_ar_optflags
with_bigdft_includes
with_bigdft_libs
with_config_file
with_cc_dbgflags
with_cc_ld_dbgflags
with_cc_ld_dbglibs
with_cc_ld_optflags
with_cc_ld_optlibs
with_cc_optflags
with_cpp_dbgflags
with_cpp_optflags
with_cxx_dbgflags
with_cxx_ld_dbgflags
with_cxx_ld_dbglibs
with_cxx_ld_optflags
with_cxx_ld_optlibs
with_cxx_optflags
with_etsf_io_includes
with_etsf_io_libs
with_etsf_xc_includes
with_etsf_xc_libs
with_fc_dbgflags
with_fc_ld_dbgflags
with_fc_ld_dbglibs
with_fc_ld_optflags
with_fc_ld_optlibs
with_fc_optflags
with_fc_vendor
with_fc_version
with_fftw_includes
with_fftw_libs
with_fox_includes
with_fox_libs
with_gsl_includes
with_gsl_libs
with_linalg_includes
with_linalg_libs
with_linalg_type
with_mpi_cppflags
with_mpi_cflags
with_mpi_cc_ldflags
with_mpi_cc_libs
with_mpi_cxxflags
with_mpi_cxx_ldflags
with_mpi_cxx_libs
with_mpi_fcflags
with_mpi_fc_ldflags
with_mpi_fc_libs
with_mpi_level
with_mpi_prefix
with_mpi_runner
with_netcdf_includes
with_netcdf_libs
with_papi_includes
with_papi_libs
with_plugins_prefix
with_plugins_tardir
with_scalapack_includes
with_scalapack_libs
with_timeout
with_wannier90
with_wannier90_includes
with_wannier90_libs
with_xmlf90_includes
with_xmlf90_libs
enable_dependency_tracking
'
      ac_precious_vars='build_alias
host_alias
target_alias
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_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   { (exit 1); exit 1; }; }
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

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

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

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

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

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

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

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

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

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

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

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
fi

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

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; }
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


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


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
   { (exit 1); exit 1; }; }
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures ABINIT 5.7.4 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 5.7.4:";;
   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: )
  --enable-bigdft         Activate internal support for BigDFT (default: yes)
  --enable-bindings       Activate support for bindings (EXPERIMENTAL)
                          (default: no)
  --enable-cclock         Use C clock for timings (default: no)
  --enable-config-file    Read options from config file (default: yes)
  --enable-debug          Turn-on debug mode (default: symbols)
  --enable-env-file       Read environment from file (EXPERIMENTAL) (default:
                          no)
  --enable-error-handlers Activate error handlers (default: no)
  --enable-etsf-io        Activate support for ETSF I/O (default: yes)
  --enable-etsf-xc        Activate support for ETSF XC (default: yes)
  --enable-exports        Activate build of exported libraries (EXPERIMENTAL)
                          (default: no)
  --enable-fc-wrapper     Wrap Fortran compiler calls (default: no)
  --enable-fftw           Enable use of the FFTW library (EXPERIMENTAL)
                          (default: no)
  --enable-fftw-threads   Enable use of the threaded FFTW library
                          (EXPERIMENTAL) (default: no)
  --enable-fox            Activate support for FoX (under development)
                          (default: no)
  --enable-gsl            Enable use of the GNU Scientific Library
                          (EXPERIMENTAL) (default: no)
  --enable-gw-dpc         Enable double-precision GW calculations
                          (EXPERIMENTAL) (default: no)
  --enable-macroave       Enable build of macroave (EXPERIMENTAL) (default:
                          yes)
  --enable-mpi            Enable MPI support (default: None)
  --enable-mpi-io         Enable MPI I/O (EXPERIMENTAL) (default: no)
  --enable-mpi-io-buggy   Workaround buggy MPI I/O (EXPERIMENTAL) (default:
                          no)
  --enable-mpi-trace      Enable MPI time tracing (EXPERIMENTAL) (default: no)
  --enable-netcdf         Activate support for NetCDF (default: yes)
  --enable-nightly        Activate nightly build support (default: no)
  --enable-optlevel       Set optimization level (default: standard)
  --enable-papi           Use the PAPI library for timings (default: no)
  --enable-scalapack      Use ScaLAPACK for parallel linear algebra operations
                          (default: no)
  --enable-stdin          Tell ABINIT to read file lists from standard input
                          (default: yes)
  --enable-tricks         See ~abinit/doc/config/build-config.ac for
                          information (default: yes)
  --enable-wannier90      Activate support for Wannier90 (default: yes)
  --enable-xmlf90         Activate support for XMLF90 (OBSOLETE) (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-64bit-flags      Specify 64-bit flags (see documentation) (default:
                          None)
  --with-ar-dbgflags      Set debug flags for archives (default: None)
  --with-ar-optflags      Set optimization of archives (default: None)
  --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-cc-dbgflags      Set debug flags for C routines (default: None)
  --with-cc-ld-dbgflags   Prepend debug flags when calling the C linker
                          (default: None)
  --with-cc-ld-dbglibs    Append debug libraries when calling the C linker
                          (default: None)
  --with-cc-ld-optflags   Prepend optflags when calling the C linker (default:
                          None)
  --with-cc-ld-optlibs    Append optimization libraries when calling the C
                          linker (default: None)
  --with-cc-optflags      Set optimization of C routines (default: None)
  --with-cpp-dbgflags     Set preprocessing options for debugging (default:
                          None)
  --with-cpp-optflags     Set preprocessing options for optimization (default:
                          None)
  --with-cxx-dbgflags     Set debug flags for C++ routines (default: None)
  --with-cxx-ld-dbgflags  Prepend debug flags when calling the C++ linker
                          (default: None)
  --with-cxx-ld-dbglibs   Append debug libraries when calling the C++ linker
                          (default: None)
  --with-cxx-ld-optflags  Prepend optflags when calling the C++ linker
                          (default: None)
  --with-cxx-ld-optlibs   Append optimization libraries when calling the C++
                          linker (default: None)
  --with-cxx-optflags     Set optimization of C++ routines (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-etsf-xc-includes Include parameters for ETSF XC support (default:
                          None)
  --with-etsf-xc-libs     ETSF XC libraries to link ABINIT binaries with
                          (default: None)
  --with-fc-dbgflags      Set debug flags for Fortran routines (default: None)
  --with-fc-ld-dbgflags   Prepend debug flags when calling the Fortran linker
                          (default: None)
  --with-fc-ld-dbglibs    Append debug libraries when calling the Fortran
                          linker (default: None)
  --with-fc-ld-optflags   Prepend optflags when calling the Fortran linker
                          (default: None)
  --with-fc-ld-optlibs    Append optimization libraries when calling the
                          Fortran linker (default: None)
  --with-fc-optflags      Set optimization of Fortran routines (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-fftw-includes    Include parameters for the FFTW libraries (default:
                          None)
  --with-fftw-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-gsl-includes     Include parameters for the GNU Scientific Library
                          (default: None)
  --with-gsl-libs         GSL libraries to link ABINIT binaries with (default:
                          None)
  --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-linalg-type      See ~abinit/doc/config/build-config.ac for
                          information (default: None)
  --with-mpi-cppflags     MPI preprocessing options for parallel code
                          (default: None)
  --with-mpi-cflags       MPI compile options for C parallel code (default:
                          None)
  --with-mpi-cc-ldflags   MPI link options for C parallel code (default: None)
  --with-mpi-cc-libs      MPI libraries required to link C parallel code
                          (default: None)
  --with-mpi-cxxflags     MPI compile options for C++ parallel code (default:
                          None)
  --with-mpi-cxx-ldflags  MPI link options for C++ parallel code (default:
                          None)
  --with-mpi-cxx-libs     MPI libraries required to link C++ parallel code
                          (default: None)
  --with-mpi-fcflags      MPI compile options for Fortran parallel code
                          (default: None)
  --with-mpi-fc-ldflags   MPI link options for Fortran parallel code (default:
                          None)
  --with-mpi-fc-libs      MPI libraries required to link Fortran parallel code
                          (default: None)
  --with-mpi-level        MPI standard level to use (1 or 2) (default: None)
  --with-mpi-prefix       Prefix for the MPI installation (default: None)
  --with-mpi-runner       Full path to the MPI runner program (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-papi-includes    Include parameters for the PAPI library (default:
                          None)
  --with-papi-libs        PAPI 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-scalapack-includes
                          Include parameters for ScaLAPACK support (default:
                          None)
  --with-scalapack-libs   ScaLAPACK libraries to link ABINIT binaries with
                          (default: None)
  --with-timeout          Automatic test timeout (Nightly feature) (default:
                          1200)
  --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)
  --with-xmlf90-includes  Include parameters for XML Fortran 90 support
                          (default: None)
  --with-xmlf90-libs      XML Fortran 90 libraries to link ABINIT binaries
                          with (default: None)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  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 5.7.4
generated by GNU Autoconf 2.62

Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ABINIT $as_me 5.7.4, which was
generated by GNU Autoconf 2.62.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  $as_echo "PATH: $as_dir"
done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    2)
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    esac
  done
done
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

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

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

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

# Predefined preprocessor variables.

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


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


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


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


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


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  ac_site_file1=$CONFIG_SITE
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test -r "$ac_site_file"; then
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
fi

























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



ac_aux_dir=
for ac_dir in config/gnu "$srcdir"/config/gnu; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config/gnu \"$srcdir\"/config/gnu" >&5
$as_echo "$as_me: error: cannot find install-sh or install.sh in config/gnu \"$srcdir\"/config/gnu" >&2;}
   { (exit 1); exit 1; }; }
fi

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





# 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_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   { (exit 1); exit 1; }; }

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

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


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

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


{ $as_echo "$as_me:$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_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
   { (exit 1); exit 1; }; }
fi

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
$as_echo "$ac_cv_target" >&6; }
case $ac_cv_target in
*-*-*) ;;
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
   { (exit 1); exit 1; }; };;
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.10'

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

done
IFS=$as_save_IFS

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

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

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
# Just in case
sleep 1
echo timestamp > conftest.file
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&5
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&2;}
   { (exit 1); exit 1; }; }
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Check your system clock" >&5
$as_echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
fi
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

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

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

fi

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

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

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


  test -n "$AWK" && break
done

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

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   { (exit 1); exit 1; }; }
  fi
fi

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


# Define the identity of the package.
 PACKAGE='abinit'
 VERSION='5.7.4'


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

install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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

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

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

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

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

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





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_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_vendor=""
 abi_cpu_model=""
 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_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_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) 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













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

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

done
IFS=$as_save_IFS

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

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

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

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

fi

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

{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
$as_echo_n "checking whether ln -s works... " >&6; }
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
$as_echo "no, using $LN_S" >&6; }
fi

{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if test "${ac_cv_path_SED+set}" = set; then
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     $as_unset ac_script || ac_script=
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
  fi
else
  ac_cv_path_SED=$SED
fi

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

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


  test -n "$AWK" && break
done

{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
  fi
else
  ac_cv_path_GREP=$GREP
fi

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



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

      $ac_path_EGREP_found && break 3
    done
  done
done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

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



# Initialization of prerequisite libraries
# (must be performed before option parsing)
 linalg_supported_types="abinit acml asl atlas cxml essl external mkl mlib sgimath sunperf"
 linalg_pkg_name="lapack-abinit_5.7"
 linalg_pkg_string="An old, robust, version of the Lapack library (hacked by Yann Pouillon)"






# Define ABINIT environment variables


  ARFLAGS_64BITS=""


  ARFLAGS_DEBUG=""


  ARFLAGS_EXTRA=""


  ARFLAGS_OPT=""


  CC_LDFLAGS_64BITS=""


  CC_LDFLAGS_DEBUG=""


  CC_LDFLAGS_EXTRA=""


  CC_LDFLAGS_OPT=""


  CC_LIBS_64BITS=""


  CC_LIBS_DEBUG=""


  CC_LIBS_EXTRA=""


  CC_LIBS_OPT=""


  CFLAGS_64BITS=""


  CFLAGS_DEBUG=""


  CFLAGS_EXTRA=""


  CFLAGS_OPT=""


  CPPFLAGS_64BITS=""


  CPPFLAGS_DEBUG=""


  CPPFLAGS_EXTRA=""


  CPPFLAGS_OPT=""


  CXX_LDFLAGS_64BITS=""


  CXX_LDFLAGS_DEBUG=""


  CXX_LDFLAGS_EXTRA=""


  CXX_LDFLAGS_OPT=""


  CXX_LIBS_DEBUG=""


  CXX_LIBS_64BITS=""


  CXX_LIBS_OPT=""


  CXX_LIBS_EXTRA=""


  CXXFLAGS_64BITS=""


  CXXFLAGS_DEBUG=""


  CXXFLAGS_EXTRA=""


  CXXFLAGS_OPT=""


  FC_LDFLAGS_64BITS=""


  FC_LDFLAGS_DEBUG=""


  FC_LDFLAGS_EXTRA=""


  FC_LDFLAGS_OPT=""


  FC_LIBS_64BITS=""


  FC_LIBS_DEBUG=""


  FC_LIBS_EXTRA=""


  FC_LIBS_OPT=""


  FCFLAGS_64BITS=""


  FCFLAGS_DEBUG=""


  FCFLAGS_EXTRA=""


  FCFLAGS_FIXEDFORM=""


  FCFLAGS_FREEFORM=""


  FCFLAGS_OPT=""


  LTXFLAGS=""


  MDFLAGS=""


  MPI_CC_LDFLAGS=""


  MPI_CC_LIBS=""


  MPI_CXX_LIBS=""


  MPI_FC_LIBS=""


  MPI_CFLAGS=""


  MPI_CPPFLAGS=""


  MPI_CXX_LDFLAGS=""


  MPI_CXXFLAGS=""


  MPI_FC_LDFLAGS=""


  MPI_FCFLAGS=""


  MPI_RUNNER=""


  PDFFLAGS=""




# 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-cclock was given.
if test "${enable_cclock+set}" = set; then
  enableval=$enable_cclock;
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-env-file was given.
if test "${enable_env_file+set}" = set; then
  enableval=$enable_env_file;
fi



 # Check whether --enable-error-handlers was given.
if test "${enable_error_handlers+set}" = set; then
  enableval=$enable_error_handlers;
fi



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



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



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



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



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



 # Check whether --enable-fftw-threads was given.
if test "${enable_fftw_threads+set}" = set; then
  enableval=$enable_fftw_threads;
fi



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



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



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



 # Check whether --enable-macroave was given.
if test "${enable_macroave+set}" = set; then
  enableval=$enable_macroave;
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-buggy was given.
if test "${enable_mpi_io_buggy+set}" = set; then
  enableval=$enable_mpi_io_buggy;
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-nightly was given.
if test "${enable_nightly+set}" = set; then
  enableval=$enable_nightly;
fi



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



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



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



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



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



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



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





# Check whether --with-64bit-flags was given.
if test "${with_64bit_flags+set}" = set; then
  withval=$with_64bit_flags;
fi




# Check whether --with-ar-dbgflags was given.
if test "${with_ar_dbgflags+set}" = set; then
  withval=$with_ar_dbgflags;
fi




# Check whether --with-ar-optflags was given.
if test "${with_ar_optflags+set}" = set; then
  withval=$with_ar_optflags;
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-cc-dbgflags was given.
if test "${with_cc_dbgflags+set}" = set; then
  withval=$with_cc_dbgflags;
fi




# Check whether --with-cc-ld-dbgflags was given.
if test "${with_cc_ld_dbgflags+set}" = set; then
  withval=$with_cc_ld_dbgflags;
fi




# Check whether --with-cc-ld-dbglibs was given.
if test "${with_cc_ld_dbglibs+set}" = set; then
  withval=$with_cc_ld_dbglibs;
fi




# Check whether --with-cc-ld-optflags was given.
if test "${with_cc_ld_optflags+set}" = set; then
  withval=$with_cc_ld_optflags;
fi




# Check whether --with-cc-ld-optlibs was given.
if test "${with_cc_ld_optlibs+set}" = set; then
  withval=$with_cc_ld_optlibs;
fi




# Check whether --with-cc-optflags was given.
if test "${with_cc_optflags+set}" = set; then
  withval=$with_cc_optflags;
fi




# Check whether --with-cpp-dbgflags was given.
if test "${with_cpp_dbgflags+set}" = set; then
  withval=$with_cpp_dbgflags;
fi




# Check whether --with-cpp-optflags was given.
if test "${with_cpp_optflags+set}" = set; then
  withval=$with_cpp_optflags;
fi




# Check whether --with-cxx-dbgflags was given.
if test "${with_cxx_dbgflags+set}" = set; then
  withval=$with_cxx_dbgflags;
fi




# Check whether --with-cxx-ld-dbgflags was given.
if test "${with_cxx_ld_dbgflags+set}" = set; then
  withval=$with_cxx_ld_dbgflags;
fi




# Check whether --with-cxx-ld-dbglibs was given.
if test "${with_cxx_ld_dbglibs+set}" = set; then
  withval=$with_cxx_ld_dbglibs;
fi




# Check whether --with-cxx-ld-optflags was given.
if test "${with_cxx_ld_optflags+set}" = set; then
  withval=$with_cxx_ld_optflags;
fi




# Check whether --with-cxx-ld-optlibs was given.
if test "${with_cxx_ld_optlibs+set}" = set; then
  withval=$with_cxx_ld_optlibs;
fi




# Check whether --with-cxx-optflags was given.
if test "${with_cxx_optflags+set}" = set; then
  withval=$with_cxx_optflags;
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-etsf-xc-includes was given.
if test "${with_etsf_xc_includes+set}" = set; then
  withval=$with_etsf_xc_includes;
fi




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




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




# Check whether --with-fc-ld-dbgflags was given.
if test "${with_fc_ld_dbgflags+set}" = set; then
  withval=$with_fc_ld_dbgflags;
fi




# Check whether --with-fc-ld-dbglibs was given.
if test "${with_fc_ld_dbglibs+set}" = set; then
  withval=$with_fc_ld_dbglibs;
fi




# Check whether --with-fc-ld-optflags was given.
if test "${with_fc_ld_optflags+set}" = set; then
  withval=$with_fc_ld_optflags;
fi




# Check whether --with-fc-ld-optlibs was given.
if test "${with_fc_ld_optlibs+set}" = set; then
  withval=$with_fc_ld_optlibs;
fi




# Check whether --with-fc-optflags was given.
if test "${with_fc_optflags+set}" = set; then
  withval=$with_fc_optflags;
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-fftw-includes was given.
if test "${with_fftw_includes+set}" = set; then
  withval=$with_fftw_includes;
fi




# Check whether --with-fftw-libs was given.
if test "${with_fftw_libs+set}" = set; then
  withval=$with_fftw_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-gsl-includes was given.
if test "${with_gsl_includes+set}" = set; then
  withval=$with_gsl_includes;
fi




# Check whether --with-gsl-libs was given.
if test "${with_gsl_libs+set}" = set; then
  withval=$with_gsl_libs;
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-linalg-type was given.
if test "${with_linalg_type+set}" = set; then
  withval=$with_linalg_type;
fi




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




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




# Check whether --with-mpi-cc-ldflags was given.
if test "${with_mpi_cc_ldflags+set}" = set; then
  withval=$with_mpi_cc_ldflags;
fi




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




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




# Check whether --with-mpi-cxx-ldflags was given.
if test "${with_mpi_cxx_ldflags+set}" = set; then
  withval=$with_mpi_cxx_ldflags;
fi




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




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




# Check whether --with-mpi-fc-ldflags was given.
if test "${with_mpi_fc_ldflags+set}" = set; then
  withval=$with_mpi_fc_ldflags;
fi




# Check whether --with-mpi-fc-libs was given.
if test "${with_mpi_fc_libs+set}" = set; then
  withval=$with_mpi_fc_libs;
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-prefix was given.
if test "${with_mpi_prefix+set}" = set; then
  withval=$with_mpi_prefix;
fi




# Check whether --with-mpi-runner was given.
if test "${with_mpi_runner+set}" = set; then
  withval=$with_mpi_runner;
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-papi-includes was given.
if test "${with_papi_includes+set}" = set; then
  withval=$with_papi_includes;
fi




# Check whether --with-papi-libs was given.
if test "${with_papi_libs+set}" = set; then
  withval=$with_papi_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-scalapack-includes was given.
if test "${with_scalapack_includes+set}" = set; then
  withval=$with_scalapack_includes;
fi




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




# Check whether --with-timeout was given.
if test "${with_timeout+set}" = set; then
  withval=$with_timeout;
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




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




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




# Read config file and ensure that priorities are respected

  abi_env_AR="${AR}"

  abi_env_ARFLAGS="${ARFLAGS}"

  abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

  abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

  abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

  abi_env_ARFLAGS_OPT="${ARFLAGS_OPT}"

  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_OPT="${CC_LDFLAGS_OPT}"

  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_OPT="${CC_LIBS_OPT}"

  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_OPT="${CFLAGS_OPT}"

  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_OPT="${CPPFLAGS_OPT}"

  abi_env_CXX="${CXX}"

  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_OPT="${CXX_LDFLAGS_OPT}"

  abi_env_CXX_LIBS="${CXX_LIBS}"

  abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

  abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

  abi_env_CXX_LIBS_OPT="${CXX_LIBS_OPT}"

  abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

  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_OPT="${CXXFLAGS_OPT}"

  abi_env_DEFS="${DEFS}"

  abi_env_FC="${FC}"

  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_OPT="${FC_LDFLAGS_OPT}"

  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_OPT="${FC_LIBS_OPT}"

  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_OPT="${FCFLAGS_OPT}"

  abi_env_LTXFLAGS="${LTXFLAGS}"

  abi_env_MDFLAGS="${MDFLAGS}"

  abi_env_MPI_CC_LDFLAGS="${MPI_CC_LDFLAGS}"

  abi_env_MPI_CC_LIBS="${MPI_CC_LIBS}"

  abi_env_MPI_CXX_LIBS="${MPI_CXX_LIBS}"

  abi_env_MPI_FC_LIBS="${MPI_FC_LIBS}"

  abi_env_MPI_CFLAGS="${MPI_CFLAGS}"

  abi_env_MPI_CPPFLAGS="${MPI_CPPFLAGS}"

  abi_env_MPI_CXX_LDFLAGS="${MPI_CXX_LDFLAGS}"

  abi_env_MPI_CXXFLAGS="${MPI_CXXFLAGS}"

  abi_env_MPI_FC_LDFLAGS="${MPI_FC_LDFLAGS}"

  abi_env_MPI_FCFLAGS="${MPI_FCFLAGS}"

  abi_env_MPI_RUNNER="${MPI_RUNNER}"

  abi_env_PDFFLAGS="${PDFFLAGS}"




    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_cclock="${enable_cclock}"
 cmd_enable_config_file="${enable_config_file}"
 cmd_enable_debug="${enable_debug}"
 cmd_enable_env_file="${enable_env_file}"
 cmd_enable_error_handlers="${enable_error_handlers}"
 cmd_enable_etsf_io="${enable_etsf_io}"
 cmd_enable_etsf_xc="${enable_etsf_xc}"
 cmd_enable_exports="${enable_exports}"
 cmd_enable_fc_wrapper="${enable_fc_wrapper}"
 cmd_enable_fftw="${enable_fftw}"
 cmd_enable_fftw_threads="${enable_fftw_threads}"
 cmd_enable_fox="${enable_fox}"
 cmd_enable_gsl="${enable_gsl}"
 cmd_enable_gw_dpc="${enable_gw_dpc}"
 cmd_enable_macroave="${enable_macroave}"
 cmd_enable_mpi="${enable_mpi}"
 cmd_enable_mpi_io="${enable_mpi_io}"
 cmd_enable_mpi_io_buggy="${enable_mpi_io_buggy}"
 cmd_enable_mpi_trace="${enable_mpi_trace}"
 cmd_enable_netcdf="${enable_netcdf}"
 cmd_enable_nightly="${enable_nightly}"
 cmd_enable_optlevel="${enable_optlevel}"
 cmd_enable_papi="${enable_papi}"
 cmd_enable_scalapack="${enable_scalapack}"
 cmd_enable_stdin="${enable_stdin}"
 cmd_enable_tricks="${enable_tricks}"
 cmd_enable_wannier90="${enable_wannier90}"
 cmd_enable_xmlf90="${enable_xmlf90}"

    cmd_with_64bit_flags="${with_64bit_flags}"
 cmd_with_ar_dbgflags="${with_ar_dbgflags}"
 cmd_with_ar_optflags="${with_ar_optflags}"
 cmd_with_bigdft_includes="${with_bigdft_includes}"
 cmd_with_bigdft_libs="${with_bigdft_libs}"
 cmd_with_config_file="${with_config_file}"
 cmd_with_cc_dbgflags="${with_cc_dbgflags}"
 cmd_with_cc_ld_dbgflags="${with_cc_ld_dbgflags}"
 cmd_with_cc_ld_dbglibs="${with_cc_ld_dbglibs}"
 cmd_with_cc_ld_optflags="${with_cc_ld_optflags}"
 cmd_with_cc_ld_optlibs="${with_cc_ld_optlibs}"
 cmd_with_cc_optflags="${with_cc_optflags}"
 cmd_with_cpp_dbgflags="${with_cpp_dbgflags}"
 cmd_with_cpp_optflags="${with_cpp_optflags}"
 cmd_with_cxx_dbgflags="${with_cxx_dbgflags}"
 cmd_with_cxx_ld_dbgflags="${with_cxx_ld_dbgflags}"
 cmd_with_cxx_ld_dbglibs="${with_cxx_ld_dbglibs}"
 cmd_with_cxx_ld_optflags="${with_cxx_ld_optflags}"
 cmd_with_cxx_ld_optlibs="${with_cxx_ld_optlibs}"
 cmd_with_cxx_optflags="${with_cxx_optflags}"
 cmd_with_etsf_io_includes="${with_etsf_io_includes}"
 cmd_with_etsf_io_libs="${with_etsf_io_libs}"
 cmd_with_etsf_xc_includes="${with_etsf_xc_includes}"
 cmd_with_etsf_xc_libs="${with_etsf_xc_libs}"
 cmd_with_fc_dbgflags="${with_fc_dbgflags}"
 cmd_with_fc_ld_dbgflags="${with_fc_ld_dbgflags}"
 cmd_with_fc_ld_dbglibs="${with_fc_ld_dbglibs}"
 cmd_with_fc_ld_optflags="${with_fc_ld_optflags}"
 cmd_with_fc_ld_optlibs="${with_fc_ld_optlibs}"
 cmd_with_fc_optflags="${with_fc_optflags}"
 cmd_with_fc_vendor="${with_fc_vendor}"
 cmd_with_fc_version="${with_fc_version}"
 cmd_with_fftw_includes="${with_fftw_includes}"
 cmd_with_fftw_libs="${with_fftw_libs}"
 cmd_with_fox_includes="${with_fox_includes}"
 cmd_with_fox_libs="${with_fox_libs}"
 cmd_with_gsl_includes="${with_gsl_includes}"
 cmd_with_gsl_libs="${with_gsl_libs}"
 cmd_with_linalg_includes="${with_linalg_includes}"
 cmd_with_linalg_libs="${with_linalg_libs}"
 cmd_with_linalg_type="${with_linalg_type}"
 cmd_with_mpi_cppflags="${with_mpi_cppflags}"
 cmd_with_mpi_cflags="${with_mpi_cflags}"
 cmd_with_mpi_cc_ldflags="${with_mpi_cc_ldflags}"
 cmd_with_mpi_cc_libs="${with_mpi_cc_libs}"
 cmd_with_mpi_cxxflags="${with_mpi_cxxflags}"
 cmd_with_mpi_cxx_ldflags="${with_mpi_cxx_ldflags}"
 cmd_with_mpi_cxx_libs="${with_mpi_cxx_libs}"
 cmd_with_mpi_fcflags="${with_mpi_fcflags}"
 cmd_with_mpi_fc_ldflags="${with_mpi_fc_ldflags}"
 cmd_with_mpi_fc_libs="${with_mpi_fc_libs}"
 cmd_with_mpi_level="${with_mpi_level}"
 cmd_with_mpi_prefix="${with_mpi_prefix}"
 cmd_with_mpi_runner="${with_mpi_runner}"
 cmd_with_netcdf_includes="${with_netcdf_includes}"
 cmd_with_netcdf_libs="${with_netcdf_libs}"
 cmd_with_papi_includes="${with_papi_includes}"
 cmd_with_papi_libs="${with_papi_libs}"
 cmd_with_plugins_prefix="${with_plugins_prefix}"
 cmd_with_plugins_tardir="${with_plugins_tardir}"
 cmd_with_scalapack_includes="${with_scalapack_includes}"
 cmd_with_scalapack_libs="${with_scalapack_libs}"
 cmd_with_timeout="${with_timeout}"
 cmd_with_wannier90="${with_wannier90}"
 cmd_with_wannier90_includes="${with_wannier90_includes}"
 cmd_with_wannier90_libs="${with_wannier90_libs}"
 cmd_with_xmlf90_includes="${with_xmlf90_includes}"
 cmd_with_xmlf90_libs="${with_xmlf90_libs}"

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

test "${enable_config_file}" = "" && enable_config_file="yes"
test "${enable_env_file}" = "" && enable_env_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="${with_config_file}"
 abi_cfg_options=""

  if test "${enable_config_file}" = "yes"; then
  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:$LINENO: reading options from ${abi_cfg_options}" >&5
$as_echo "$as_me: reading options from ${abi_cfg_options}" >&6;}
   . ${abi_cfg_options}
  fi
 fi

  if test "${enable_env_file}" = "yes"; then
  abi_cfg_env=`echo "${abi_cfg_options}" | sed -e 's/\.ac$/.env/'`
  if test -s "${abi_cfg_env}"; then
   { $as_echo "$as_me:$LINENO: reading environment from ${abi_cfg_env}" >&5
$as_echo "$as_me: reading environment from ${abi_cfg_env}" >&6;}
   . ${abi_cfg_env}
  else
   abi_cfg_env=""
  fi
 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_cclock}" != ""; then
  enable_cclock="${cmd_enable_cclock}"
 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_env_file}" != ""; then
  enable_env_file="${cmd_enable_env_file}"
 fi

 if test "${cmd_enable_error_handlers}" != ""; then
  enable_error_handlers="${cmd_enable_error_handlers}"
 fi

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

 if test "${cmd_enable_etsf_xc}" != ""; then
  enable_etsf_xc="${cmd_enable_etsf_xc}"
 fi

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

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

 if test "${cmd_enable_fftw}" != ""; then
  enable_fftw="${cmd_enable_fftw}"
 fi

 if test "${cmd_enable_fftw_threads}" != ""; then
  enable_fftw_threads="${cmd_enable_fftw_threads}"
 fi

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

 if test "${cmd_enable_gsl}" != ""; then
  enable_gsl="${cmd_enable_gsl}"
 fi

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

 if test "${cmd_enable_macroave}" != ""; then
  enable_macroave="${cmd_enable_macroave}"
 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_buggy}" != ""; then
  enable_mpi_io_buggy="${cmd_enable_mpi_io_buggy}"
 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_nightly}" != ""; then
  enable_nightly="${cmd_enable_nightly}"
 fi

 if test "${cmd_enable_optlevel}" != ""; then
  enable_optlevel="${cmd_enable_optlevel}"
 fi

 if test "${cmd_enable_papi}" != ""; then
  enable_papi="${cmd_enable_papi}"
 fi

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

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

 if test "${cmd_enable_tricks}" != ""; then
  enable_tricks="${cmd_enable_tricks}"
 fi

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

 if test "${cmd_enable_xmlf90}" != ""; then
  enable_xmlf90="${cmd_enable_xmlf90}"
 fi


 if test "${cmd_with_64bit_flags}" != ""; then
  with_64bit_flags="${cmd_with_64bit_flags}"
 fi

 if test "${cmd_with_ar_dbgflags}" != ""; then
  with_ar_dbgflags="${cmd_with_ar_dbgflags}"
 fi

 if test "${cmd_with_ar_optflags}" != ""; then
  with_ar_optflags="${cmd_with_ar_optflags}"
 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_cc_dbgflags}" != ""; then
  with_cc_dbgflags="${cmd_with_cc_dbgflags}"
 fi

 if test "${cmd_with_cc_ld_dbgflags}" != ""; then
  with_cc_ld_dbgflags="${cmd_with_cc_ld_dbgflags}"
 fi

 if test "${cmd_with_cc_ld_dbglibs}" != ""; then
  with_cc_ld_dbglibs="${cmd_with_cc_ld_dbglibs}"
 fi

 if test "${cmd_with_cc_ld_optflags}" != ""; then
  with_cc_ld_optflags="${cmd_with_cc_ld_optflags}"
 fi

 if test "${cmd_with_cc_ld_optlibs}" != ""; then
  with_cc_ld_optlibs="${cmd_with_cc_ld_optlibs}"
 fi

 if test "${cmd_with_cc_optflags}" != ""; then
  with_cc_optflags="${cmd_with_cc_optflags}"
 fi

 if test "${cmd_with_cpp_dbgflags}" != ""; then
  with_cpp_dbgflags="${cmd_with_cpp_dbgflags}"
 fi

 if test "${cmd_with_cpp_optflags}" != ""; then
  with_cpp_optflags="${cmd_with_cpp_optflags}"
 fi

 if test "${cmd_with_cxx_dbgflags}" != ""; then
  with_cxx_dbgflags="${cmd_with_cxx_dbgflags}"
 fi

 if test "${cmd_with_cxx_ld_dbgflags}" != ""; then
  with_cxx_ld_dbgflags="${cmd_with_cxx_ld_dbgflags}"
 fi

 if test "${cmd_with_cxx_ld_dbglibs}" != ""; then
  with_cxx_ld_dbglibs="${cmd_with_cxx_ld_dbglibs}"
 fi

 if test "${cmd_with_cxx_ld_optflags}" != ""; then
  with_cxx_ld_optflags="${cmd_with_cxx_ld_optflags}"
 fi

 if test "${cmd_with_cxx_ld_optlibs}" != ""; then
  with_cxx_ld_optlibs="${cmd_with_cxx_ld_optlibs}"
 fi

 if test "${cmd_with_cxx_optflags}" != ""; then
  with_cxx_optflags="${cmd_with_cxx_optflags}"
 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_etsf_xc_includes}" != ""; then
  with_etsf_xc_includes="${cmd_with_etsf_xc_includes}"
 fi

 if test "${cmd_with_etsf_xc_libs}" != ""; then
  with_etsf_xc_libs="${cmd_with_etsf_xc_libs}"
 fi

 if test "${cmd_with_fc_dbgflags}" != ""; then
  with_fc_dbgflags="${cmd_with_fc_dbgflags}"
 fi

 if test "${cmd_with_fc_ld_dbgflags}" != ""; then
  with_fc_ld_dbgflags="${cmd_with_fc_ld_dbgflags}"
 fi

 if test "${cmd_with_fc_ld_dbglibs}" != ""; then
  with_fc_ld_dbglibs="${cmd_with_fc_ld_dbglibs}"
 fi

 if test "${cmd_with_fc_ld_optflags}" != ""; then
  with_fc_ld_optflags="${cmd_with_fc_ld_optflags}"
 fi

 if test "${cmd_with_fc_ld_optlibs}" != ""; then
  with_fc_ld_optlibs="${cmd_with_fc_ld_optlibs}"
 fi

 if test "${cmd_with_fc_optflags}" != ""; then
  with_fc_optflags="${cmd_with_fc_optflags}"
 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_fftw_includes}" != ""; then
  with_fftw_includes="${cmd_with_fftw_includes}"
 fi

 if test "${cmd_with_fftw_libs}" != ""; then
  with_fftw_libs="${cmd_with_fftw_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_gsl_includes}" != ""; then
  with_gsl_includes="${cmd_with_gsl_includes}"
 fi

 if test "${cmd_with_gsl_libs}" != ""; then
  with_gsl_libs="${cmd_with_gsl_libs}"
 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_linalg_type}" != ""; then
  with_linalg_type="${cmd_with_linalg_type}"
 fi

 if test "${cmd_with_mpi_cppflags}" != ""; then
  with_mpi_cppflags="${cmd_with_mpi_cppflags}"
 fi

 if test "${cmd_with_mpi_cflags}" != ""; then
  with_mpi_cflags="${cmd_with_mpi_cflags}"
 fi

 if test "${cmd_with_mpi_cc_ldflags}" != ""; then
  with_mpi_cc_ldflags="${cmd_with_mpi_cc_ldflags}"
 fi

 if test "${cmd_with_mpi_cc_libs}" != ""; then
  with_mpi_cc_libs="${cmd_with_mpi_cc_libs}"
 fi

 if test "${cmd_with_mpi_cxxflags}" != ""; then
  with_mpi_cxxflags="${cmd_with_mpi_cxxflags}"
 fi

 if test "${cmd_with_mpi_cxx_ldflags}" != ""; then
  with_mpi_cxx_ldflags="${cmd_with_mpi_cxx_ldflags}"
 fi

 if test "${cmd_with_mpi_cxx_libs}" != ""; then
  with_mpi_cxx_libs="${cmd_with_mpi_cxx_libs}"
 fi

 if test "${cmd_with_mpi_fcflags}" != ""; then
  with_mpi_fcflags="${cmd_with_mpi_fcflags}"
 fi

 if test "${cmd_with_mpi_fc_ldflags}" != ""; then
  with_mpi_fc_ldflags="${cmd_with_mpi_fc_ldflags}"
 fi

 if test "${cmd_with_mpi_fc_libs}" != ""; then
  with_mpi_fc_libs="${cmd_with_mpi_fc_libs}"
 fi

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

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

 if test "${cmd_with_mpi_runner}" != ""; then
  with_mpi_runner="${cmd_with_mpi_runner}"
 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_papi_includes}" != ""; then
  with_papi_includes="${cmd_with_papi_includes}"
 fi

 if test "${cmd_with_papi_libs}" != ""; then
  with_papi_libs="${cmd_with_papi_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_scalapack_includes}" != ""; then
  with_scalapack_includes="${cmd_with_scalapack_includes}"
 fi

 if test "${cmd_with_scalapack_libs}" != ""; then
  with_scalapack_libs="${cmd_with_scalapack_libs}"
 fi

 if test "${cmd_with_timeout}" != ""; then
  with_timeout="${cmd_with_timeout}"
 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_with_xmlf90_includes}" != ""; then
  with_xmlf90_includes="${cmd_with_xmlf90_includes}"
 fi

 if test "${cmd_with_xmlf90_libs}" != ""; then
  with_xmlf90_libs="${cmd_with_xmlf90_libs}"
 fi

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


  test "${abi_env_AR}" != "" && \
  AR="${abi_env_AR}"

  test "${abi_env_ARFLAGS}" != "" && \
  ARFLAGS="${abi_env_ARFLAGS}"

  test "${abi_env_ARFLAGS_64BITS}" != "" && \
  ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

  test "${abi_env_ARFLAGS_DEBUG}" != "" && \
  ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

  test "${abi_env_ARFLAGS_EXTRA}" != "" && \
  ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

  test "${abi_env_ARFLAGS_OPT}" != "" && \
  ARFLAGS_OPT="${abi_env_ARFLAGS_OPT}"

  test "${abi_env_CC}" != "" && \
  CC="${abi_env_CC}"

  test "${abi_env_CC_LDFLAGS}" != "" && \
  CC_LDFLAGS="${abi_env_CC_LDFLAGS}"

  test "${abi_env_CC_LDFLAGS_64BITS}" != "" && \
  CC_LDFLAGS_64BITS="${abi_env_CC_LDFLAGS_64BITS}"

  test "${abi_env_CC_LDFLAGS_DEBUG}" != "" && \
  CC_LDFLAGS_DEBUG="${abi_env_CC_LDFLAGS_DEBUG}"

  test "${abi_env_CC_LDFLAGS_EXTRA}" != "" && \
  CC_LDFLAGS_EXTRA="${abi_env_CC_LDFLAGS_EXTRA}"

  test "${abi_env_CC_LDFLAGS_OPT}" != "" && \
  CC_LDFLAGS_OPT="${abi_env_CC_LDFLAGS_OPT}"

  test "${abi_env_CC_LIBS}" != "" && \
  CC_LIBS="${abi_env_CC_LIBS}"

  test "${abi_env_CC_LIBS_64BITS}" != "" && \
  CC_LIBS_64BITS="${abi_env_CC_LIBS_64BITS}"

  test "${abi_env_CC_LIBS_DEBUG}" != "" && \
  CC_LIBS_DEBUG="${abi_env_CC_LIBS_DEBUG}"

  test "${abi_env_CC_LIBS_EXTRA}" != "" && \
  CC_LIBS_EXTRA="${abi_env_CC_LIBS_EXTRA}"

  test "${abi_env_CC_LIBS_OPT}" != "" && \
  CC_LIBS_OPT="${abi_env_CC_LIBS_OPT}"

  test "${abi_env_CFLAGS}" != "" && \
  CFLAGS="${abi_env_CFLAGS}"

  test "${abi_env_CFLAGS_64BITS}" != "" && \
  CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

  test "${abi_env_CFLAGS_DEBUG}" != "" && \
  CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

  test "${abi_env_CFLAGS_EXTRA}" != "" && \
  CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

  test "${abi_env_CFLAGS_OPT}" != "" && \
  CFLAGS_OPT="${abi_env_CFLAGS_OPT}"

  test "${abi_env_CPP}" != "" && \
  CPP="${abi_env_CPP}"

  test "${abi_env_CPPFLAGS}" != "" && \
  CPPFLAGS="${abi_env_CPPFLAGS}"

  test "${abi_env_CPPFLAGS_64BITS}" != "" && \
  CPPFLAGS_64BITS="${abi_env_CPPFLAGS_64BITS}"

  test "${abi_env_CPPFLAGS_DEBUG}" != "" && \
  CPPFLAGS_DEBUG="${abi_env_CPPFLAGS_DEBUG}"

  test "${abi_env_CPPFLAGS_EXTRA}" != "" && \
  CPPFLAGS_EXTRA="${abi_env_CPPFLAGS_EXTRA}"

  test "${abi_env_CPPFLAGS_OPT}" != "" && \
  CPPFLAGS_OPT="${abi_env_CPPFLAGS_OPT}"

  test "${abi_env_CXX}" != "" && \
  CXX="${abi_env_CXX}"

  test "${abi_env_CXX_LDFLAGS}" != "" && \
  CXX_LDFLAGS="${abi_env_CXX_LDFLAGS}"

  test "${abi_env_CXX_LDFLAGS_64BITS}" != "" && \
  CXX_LDFLAGS_64BITS="${abi_env_CXX_LDFLAGS_64BITS}"

  test "${abi_env_CXX_LDFLAGS_DEBUG}" != "" && \
  CXX_LDFLAGS_DEBUG="${abi_env_CXX_LDFLAGS_DEBUG}"

  test "${abi_env_CXX_LDFLAGS_EXTRA}" != "" && \
  CXX_LDFLAGS_EXTRA="${abi_env_CXX_LDFLAGS_EXTRA}"

  test "${abi_env_CXX_LDFLAGS_OPT}" != "" && \
  CXX_LDFLAGS_OPT="${abi_env_CXX_LDFLAGS_OPT}"

  test "${abi_env_CXX_LIBS}" != "" && \
  CXX_LIBS="${abi_env_CXX_LIBS}"

  test "${abi_env_CXX_LIBS_DEBUG}" != "" && \
  CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

  test "${abi_env_CXX_LIBS_64BITS}" != "" && \
  CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

  test "${abi_env_CXX_LIBS_OPT}" != "" && \
  CXX_LIBS_OPT="${abi_env_CXX_LIBS_OPT}"

  test "${abi_env_CXX_LIBS_EXTRA}" != "" && \
  CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

  test "${abi_env_CXXFLAGS}" != "" && \
  CXXFLAGS="${abi_env_CXXFLAGS}"

  test "${abi_env_CXXFLAGS_64BITS}" != "" && \
  CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

  test "${abi_env_CXXFLAGS_DEBUG}" != "" && \
  CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

  test "${abi_env_CXXFLAGS_EXTRA}" != "" && \
  CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

  test "${abi_env_CXXFLAGS_OPT}" != "" && \
  CXXFLAGS_OPT="${abi_env_CXXFLAGS_OPT}"

  test "${abi_env_DEFS}" != "" && \
  DEFS="${abi_env_DEFS}"

  test "${abi_env_FC}" != "" && \
  FC="${abi_env_FC}"

  test "${abi_env_FC_LDFLAGS}" != "" && \
  FC_LDFLAGS="${abi_env_FC_LDFLAGS}"

  test "${abi_env_FC_LDFLAGS_64BITS}" != "" && \
  FC_LDFLAGS_64BITS="${abi_env_FC_LDFLAGS_64BITS}"

  test "${abi_env_FC_LDFLAGS_DEBUG}" != "" && \
  FC_LDFLAGS_DEBUG="${abi_env_FC_LDFLAGS_DEBUG}"

  test "${abi_env_FC_LDFLAGS_EXTRA}" != "" && \
  FC_LDFLAGS_EXTRA="${abi_env_FC_LDFLAGS_EXTRA}"

  test "${abi_env_FC_LDFLAGS_OPT}" != "" && \
  FC_LDFLAGS_OPT="${abi_env_FC_LDFLAGS_OPT}"

  test "${abi_env_FC_LIBS}" != "" && \
  FC_LIBS="${abi_env_FC_LIBS}"

  test "${abi_env_FC_LIBS_64BITS}" != "" && \
  FC_LIBS_64BITS="${abi_env_FC_LIBS_64BITS}"

  test "${abi_env_FC_LIBS_DEBUG}" != "" && \
  FC_LIBS_DEBUG="${abi_env_FC_LIBS_DEBUG}"

  test "${abi_env_FC_LIBS_EXTRA}" != "" && \
  FC_LIBS_EXTRA="${abi_env_FC_LIBS_EXTRA}"

  test "${abi_env_FC_LIBS_OPT}" != "" && \
  FC_LIBS_OPT="${abi_env_FC_LIBS_OPT}"

  test "${abi_env_FCFLAGS}" != "" && \
  FCFLAGS="${abi_env_FCFLAGS}"

  test "${abi_env_FCFLAGS_64BITS}" != "" && \
  FCFLAGS_64BITS="${abi_env_FCFLAGS_64BITS}"

  test "${abi_env_FCFLAGS_DEBUG}" != "" && \
  FCFLAGS_DEBUG="${abi_env_FCFLAGS_DEBUG}"

  test "${abi_env_FCFLAGS_EXTRA}" != "" && \
  FCFLAGS_EXTRA="${abi_env_FCFLAGS_EXTRA}"

  test "${abi_env_FCFLAGS_FIXEDFORM}" != "" && \
  FCFLAGS_FIXEDFORM="${abi_env_FCFLAGS_FIXEDFORM}"

  test "${abi_env_FCFLAGS_FREEFORM}" != "" && \
  FCFLAGS_FREEFORM="${abi_env_FCFLAGS_FREEFORM}"

  test "${abi_env_FCFLAGS_OPT}" != "" && \
  FCFLAGS_OPT="${abi_env_FCFLAGS_OPT}"

  test "${abi_env_LTXFLAGS}" != "" && \
  LTXFLAGS="${abi_env_LTXFLAGS}"

  test "${abi_env_MDFLAGS}" != "" && \
  MDFLAGS="${abi_env_MDFLAGS}"

  test "${abi_env_MPI_CC_LDFLAGS}" != "" && \
  MPI_CC_LDFLAGS="${abi_env_MPI_CC_LDFLAGS}"

  test "${abi_env_MPI_CC_LIBS}" != "" && \
  MPI_CC_LIBS="${abi_env_MPI_CC_LIBS}"

  test "${abi_env_MPI_CXX_LIBS}" != "" && \
  MPI_CXX_LIBS="${abi_env_MPI_CXX_LIBS}"

  test "${abi_env_MPI_FC_LIBS}" != "" && \
  MPI_FC_LIBS="${abi_env_MPI_FC_LIBS}"

  test "${abi_env_MPI_CFLAGS}" != "" && \
  MPI_CFLAGS="${abi_env_MPI_CFLAGS}"

  test "${abi_env_MPI_CPPFLAGS}" != "" && \
  MPI_CPPFLAGS="${abi_env_MPI_CPPFLAGS}"

  test "${abi_env_MPI_CXX_LDFLAGS}" != "" && \
  MPI_CXX_LDFLAGS="${abi_env_MPI_CXX_LDFLAGS}"

  test "${abi_env_MPI_CXXFLAGS}" != "" && \
  MPI_CXXFLAGS="${abi_env_MPI_CXXFLAGS}"

  test "${abi_env_MPI_FC_LDFLAGS}" != "" && \
  MPI_FC_LDFLAGS="${abi_env_MPI_FC_LDFLAGS}"

  test "${abi_env_MPI_FCFLAGS}" != "" && \
  MPI_FCFLAGS="${abi_env_MPI_FCFLAGS}"

  test "${abi_env_MPI_RUNNER}" != "" && \
  MPI_RUNNER="${abi_env_MPI_RUNNER}"

  test "${abi_env_PDFFLAGS}" != "" && \
  PDFFLAGS="${abi_env_PDFFLAGS}"



# Set still undefined options



 if test "${enable_64bit_flags}" = ""; then
  enable_64bit_flags="no"
 fi
 if test "${enable_all_plugins}" = ""; then
  enable_all_plugins=""
 fi
 if test "${enable_bigdft}" = ""; then
  enable_bigdft="yes"
 fi
 if test "${enable_bindings}" = ""; then
  enable_bindings="no"
 fi
 if test "${enable_cclock}" = ""; then
  enable_cclock="no"
 fi
 if test "${enable_config_file}" = ""; then
  enable_config_file="yes"
 fi
 if test "${enable_debug}" = ""; then
  enable_debug="symbols"
 fi
 if test "${enable_env_file}" = ""; then
  enable_env_file="no"
 fi
 if test "${enable_error_handlers}" = ""; then
  enable_error_handlers="no"
 fi
 if test "${enable_etsf_io}" = ""; then
  enable_etsf_io="yes"
 fi
 if test "${enable_etsf_xc}" = ""; then
  enable_etsf_xc="yes"
 fi
 if test "${enable_exports}" = ""; then
  enable_exports="no"
 fi
 if test "${enable_fc_wrapper}" = ""; then
  enable_fc_wrapper="no"
 fi
 if test "${enable_fftw}" = ""; then
  enable_fftw="no"
 fi
 if test "${enable_fftw_threads}" = ""; then
  enable_fftw_threads="no"
 fi
 if test "${enable_fox}" = ""; then
  enable_fox="no"
 fi
 if test "${enable_gsl}" = ""; then
  enable_gsl="no"
 fi
 if test "${enable_gw_dpc}" = ""; then
  enable_gw_dpc="no"
 fi
 if test "${enable_macroave}" = ""; then
  enable_macroave="yes"
 fi
 if test "${enable_mpi_io}" = ""; then
  enable_mpi_io="no"
 fi
 if test "${enable_mpi_io_buggy}" = ""; then
  enable_mpi_io_buggy="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_nightly}" = ""; then
  enable_nightly="no"
 fi
 if test "${enable_optlevel}" = ""; then
  enable_optlevel="standard"
 fi
 if test "${enable_papi}" = ""; then
  enable_papi="no"
 fi
 if test "${enable_scalapack}" = ""; then
  enable_scalapack="no"
 fi
 if test "${enable_stdin}" = ""; then
  enable_stdin="yes"
 fi
 if test "${enable_tricks}" = ""; then
  enable_tricks="yes"
 fi
 if test "${enable_wannier90}" = ""; then
  enable_wannier90="yes"
 fi
 if test "${enable_xmlf90}" = ""; then
  enable_xmlf90="no"
 fi


 if test "${with_timeout}" = ""; then
  with_timeout="1200"
 fi


# Initialize environment, taking options into account


  ARFLAGS_64BITS=""

  ARFLAGS_DEBUG="${with_ar_dbgflags}"

  ARFLAGS_EXTRA=""

  ARFLAGS_OPT="${with_ar_optflags}"

  CC_LDFLAGS_64BITS=""

  CC_LDFLAGS_DEBUG="${with_cc_ld_dbgflags}"

  CC_LDFLAGS_EXTRA=""

  CC_LDFLAGS_OPT="${with_cc_ld_optflags}"

  CC_LIBS_64BITS=""

  CC_LIBS_DEBUG="${with_cc_ld_dbglibs}"

  CC_LIBS_EXTRA=""

  CC_LIBS_OPT="${with_cc_ld_optlibs}"

  CFLAGS_64BITS=""

  CFLAGS_DEBUG="${with_cc_dbgflags}"

  CFLAGS_EXTRA=""

  CFLAGS_OPT="${with_cc_optflags}"

  CPPFLAGS_64BITS=""

  CPPFLAGS_DEBUG="${with_cpp_dbgflags}"

  CPPFLAGS_EXTRA=""

  CPPFLAGS_OPT="${with_cpp_optflags}"

  CXX_LDFLAGS_64BITS=""

  CXX_LDFLAGS_DEBUG="${with_cxx_ld_dbgflags}"

  CXX_LDFLAGS_EXTRA=""

  CXX_LDFLAGS_OPT="${with_cxx_ld_optflags}"

  CXX_LIBS_DEBUG="${with_cxx_ld_dbglibs}"

  CXX_LIBS_64BITS=""

  CXX_LIBS_OPT="${with_cxx_ld_optlibs}"

  CXX_LIBS_EXTRA=""

  CXXFLAGS_64BITS=""

  CXXFLAGS_DEBUG="${with_cxx_dbgflags}"

  CXXFLAGS_EXTRA=""

  CXXFLAGS_OPT="${with_cxx_optflags}"

  FC_LDFLAGS_64BITS=""

  FC_LDFLAGS_DEBUG="${with_fc_ld_dbgflags}"

  FC_LDFLAGS_EXTRA=""

  FC_LDFLAGS_OPT="${with_fc_ld_optflags}"

  FC_LIBS_64BITS=""

  FC_LIBS_DEBUG="${with_fc_ld_dbglibs}"

  FC_LIBS_EXTRA=""

  FC_LIBS_OPT="${with_fc_ld_optlibs}"

  FCFLAGS_64BITS=""

  FCFLAGS_DEBUG="${with_fc_dbgflags}"

  FCFLAGS_EXTRA=""

  FCFLAGS_FIXEDFORM=""

  FCFLAGS_FREEFORM=""

  FCFLAGS_OPT="${with_fc_optflags}"

  LTXFLAGS=""

  MDFLAGS=""

  MPI_CC_LDFLAGS="${with_mpi_cc_ldflags}"

  MPI_CC_LIBS="${with_mpi_cc_libs}"

  MPI_CXX_LIBS="${with_mpi_cxx_libs}"

  MPI_FC_LIBS="${with_mpi_fc_libs}"

  MPI_CFLAGS="${with_mpi_cflags}"

  MPI_CPPFLAGS="${with_mpi_cppflags}"

  MPI_CXX_LDFLAGS="${with_mpi_cc_ldflags}"

  MPI_CXXFLAGS="${with_mpi_cxxflags}"

  MPI_FC_LDFLAGS="${with_mpi_fc_ldflags}"

  MPI_FCFLAGS="${with_mpi_fcflags}"

  MPI_RUNNER="${with_mpi_runner}"

  PDFFLAGS=""










# 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}/abinit/${ABINIT_VERSION_BASE}/bin"
 abinit_chkdir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/tests"
 abinit_datdir="${abinit_prefix}/abinit"
 abinit_docdir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/doc"
 abinit_incdir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/include"
 abinit_libdir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/lib"
 abinit_mandir="${abinit_prefix}/abinit/man"
 abinit_rundir="${abinit_prefix}/abinit/bin"
 abinit_wwwdir="${abinit_prefix}/abinit/${ABINIT_VERSION_BASE}/www"













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

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

# Init Fortran-C wrappers usage
abi_fc_wrappers="no"

# Set-up required information for core libraries
 src_defs_includes='-I$(top_builddir)/src/defs -I$(top_srcdir)/src/defs'
 src_interfaces_includes='-I$(top_builddir)/src/interfaces -I$(top_srcdir)/src/interfaces'
 src_00basis_includes='-I$(top_builddir)/src/00basis -I$(top_srcdir)/src/00basis'
 src_lib00gsl_includes='-I$(top_builddir)/src/lib00gsl -I$(top_srcdir)/src/lib00gsl'
 src_lib00macroav_includes='-I$(top_builddir)/src/lib00macroav -I$(top_srcdir)/src/lib00macroav'
 src_lib01hidempi_includes='-I$(top_builddir)/src/lib01hidempi -I$(top_srcdir)/src/lib01hidempi'
 src_01manage_mpi_includes='-I$(top_builddir)/src/01manage_mpi -I$(top_srcdir)/src/01manage_mpi'
 src_02toolbox_includes='-I$(top_builddir)/src/02toolbox -I$(top_srcdir)/src/02toolbox'
 src_lib02fftnew_includes='-I$(top_builddir)/src/lib02fftnew -I$(top_srcdir)/src/lib02fftnew'
 src_lib03numeric_includes='-I$(top_builddir)/src/lib03numeric -I$(top_srcdir)/src/lib03numeric'
 src_11util_includes='-I$(top_builddir)/src/11util -I$(top_srcdir)/src/11util'
 src_11contract_includes='-I$(top_builddir)/src/11contract -I$(top_srcdir)/src/11contract'
 src_12spacepar_includes='-I$(top_builddir)/src/12spacepar -I$(top_srcdir)/src/12spacepar'
 src_12parser_includes='-I$(top_builddir)/src/12parser -I$(top_srcdir)/src/12parser'
 src_12geometry_includes='-I$(top_builddir)/src/12geometry -I$(top_srcdir)/src/12geometry'
 src_12ffts_includes='-I$(top_builddir)/src/12ffts -I$(top_srcdir)/src/12ffts'
 src_12nlstrain_includes='-I$(top_builddir)/src/12nlstrain -I$(top_srcdir)/src/12nlstrain'
 src_13xml_includes='-I$(top_builddir)/src/13xml -I$(top_srcdir)/src/13xml'
 src_13xc_includes='-I$(top_builddir)/src/13xc -I$(top_srcdir)/src/13xc'
 src_13recipspace_includes='-I$(top_builddir)/src/13recipspace -I$(top_srcdir)/src/13recipspace'
 src_13iovars_includes='-I$(top_builddir)/src/13iovars -I$(top_srcdir)/src/13iovars'
 src_13io_mpi_includes='-I$(top_builddir)/src/13io_mpi -I$(top_srcdir)/src/13io_mpi'
 src_13ionetcdf_includes='-I$(top_builddir)/src/13ionetcdf -I$(top_srcdir)/src/13ionetcdf'
 src_13papi_counters_includes='-I$(top_builddir)/src/13papi_counters -I$(top_srcdir)/src/13papi_counters'
 src_lib14cg_includes='-I$(top_builddir)/src/lib14cg -I$(top_srcdir)/src/lib14cg'
 src_14poisson_includes='-I$(top_builddir)/src/14poisson -I$(top_srcdir)/src/14poisson'
 src_14wvl_wfs_includes='-I$(top_builddir)/src/14wvl_wfs -I$(top_srcdir)/src/14wvl_wfs'
 src_14iowfdenpot_includes='-I$(top_builddir)/src/14iowfdenpot -I$(top_srcdir)/src/14iowfdenpot'
 src_14bader_includes='-I$(top_builddir)/src/14bader -I$(top_srcdir)/src/14bader'
 src_14occeig_includes='-I$(top_builddir)/src/14occeig -I$(top_srcdir)/src/14occeig'
 src_15nonlocal_includes='-I$(top_builddir)/src/15nonlocal -I$(top_srcdir)/src/15nonlocal'
 src_15wfs_includes='-I$(top_builddir)/src/15wfs -I$(top_srcdir)/src/15wfs'
 src_15psp_includes='-I$(top_builddir)/src/15psp -I$(top_srcdir)/src/15psp'
 src_15paw_includes='-I$(top_builddir)/src/15paw -I$(top_srcdir)/src/15paw'
 src_15recursion_includes='-I$(top_builddir)/src/15recursion -I$(top_srcdir)/src/15recursion'
 src_15common_includes='-I$(top_builddir)/src/15common -I$(top_srcdir)/src/15common'
 src_15rsprc_includes='-I$(top_builddir)/src/15rsprc -I$(top_srcdir)/src/15rsprc'
 src_15gw_includes='-I$(top_builddir)/src/15gw -I$(top_srcdir)/src/15gw'
 src_16response_includes='-I$(top_builddir)/src/16response -I$(top_srcdir)/src/16response'
 src_16geomoptim_includes='-I$(top_builddir)/src/16geomoptim -I$(top_srcdir)/src/16geomoptim'
 src_17suscep_includes='-I$(top_builddir)/src/17suscep -I$(top_srcdir)/src/17suscep'
 src_17lwf_includes='-I$(top_builddir)/src/17lwf -I$(top_srcdir)/src/17lwf'
 src_17ddb_includes='-I$(top_builddir)/src/17ddb -I$(top_srcdir)/src/17ddb'
 src_18seqpar_includes='-I$(top_builddir)/src/18seqpar -I$(top_srcdir)/src/18seqpar'
 src_19cut3d_includes='-I$(top_builddir)/src/19cut3d -I$(top_srcdir)/src/19cut3d'
 src_21rdm_includes='-I$(top_builddir)/src/21rdm -I$(top_srcdir)/src/21rdm'
 src_21drive_includes='-I$(top_builddir)/src/21drive -I$(top_srcdir)/src/21drive'



















































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

#
# 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:$LINENO: ABINIT version: ${ABINIT_VERSION}" >&5
$as_echo "$as_me: ABINIT version: ${ABINIT_VERSION}" >&6;}

# Display Autotools version information
 abi_m4_version="010411"
 abi_ac_version="026200"
 abi_am_version="011001"
 abi_lt_version="020204"

  { $as_echo "$as_me:$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:$LINENO: reporting user interface changes:" >&5
$as_echo "$as_me: reporting user interface changes:" >&6;}

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

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

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

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

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

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

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

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

  { $as_echo "$as_me:$LINENO:  * new option --with-cc-ld-dbgflags is available" >&5
$as_echo "$as_me:  * new option --with-cc-ld-dbgflags is available" >&6;}

  { $as_echo "$as_me:$LINENO:  * new option --with-cc-ld-dbglibs is available" >&5
$as_echo "$as_me:  * new option --with-cc-ld-dbglibs is available" >&6;}

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

  { $as_echo "$as_me:$LINENO:  * new option --with-cxx-ld-dbgflags is available" >&5
$as_echo "$as_me:  * new option --with-cxx-ld-dbgflags is available" >&6;}

  { $as_echo "$as_me:$LINENO:  * new option --with-cxx-ld-dbglibs is available" >&5
$as_echo "$as_me:  * new option --with-cxx-ld-dbglibs is available" >&6;}

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

  { $as_echo "$as_me:$LINENO:  * new option --with-fc-ld-dbgflags is available" >&5
$as_echo "$as_me:  * new option --with-fc-ld-dbgflags is available" >&6;}

  { $as_echo "$as_me:$LINENO:  * new option --with-fc-ld-dbglibs is available" >&5
$as_echo "$as_me:  * new option --with-fc-ld-dbglibs is available" >&6;}

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

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

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

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

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

  { $as_echo "$as_me:$LINENO:  * --with-fc-vendor has a new meaning" >&5
$as_echo "$as_me:  * --with-fc-vendor has a new meaning" >&6;}
 { $as_echo "$as_me:$LINENO:    please check that with-fc-vendor=\"${with_fc_vendor}\" is OK for you" >&5
$as_echo "$as_me:    please check that with-fc-vendor=\"${with_fc_vendor}\" is OK for you" >&6;}

  { $as_echo "$as_me:$LINENO:  * new option --with-fc-version is available" >&5
$as_echo "$as_me:  * new option --with-fc-version 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 ""


# ----------- #
# MPI options #
# ----------- #

abi_optchk_ok="yes"

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

# Enable MPI I/O when its workaround is activated
if test "${enable_mpi_io_buggy}" = "yes"; then
 if test "${enable_mpi_io}" != "yes"; then
  enable_mpi_io="yes"
  { $as_echo "$as_me:$LINENO:  |---> enabling MPI I/O support" >&5
$as_echo "$as_me:  |---> enabling MPI I/O support" >&6;}
  abi_optchk_ok="no"
 fi
fi

# Enable MPI when its sub-options are activated
if test "${enable_mpi_io}" = "yes" -o "${enable_mpi_trace}" = "yes"; then
 if test "${enable_mpi}" = ""; then
  enable_mpi="yes"
  { $as_echo "$as_me:$LINENO:  |---> enabling MPI support" >&5
$as_echo "$as_me:  |---> enabling MPI support" >&6;}
  abi_optchk_ok="no"
 fi
fi

# Enable MPI when a search prefix is provided
if test "${enable_mpi}" = "" -a "${with_mpi_prefix}" != ""; then
 if test -d "${with_mpi_prefix}"; then
  enable_mpi="yes"
  { $as_echo "$as_me:$LINENO:  |---> enabling MPI support" >&5
$as_echo "$as_me:  |---> enabling MPI support" >&6;}
  abi_optchk_ok="no"
 fi
fi

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

# ---------------------- #
# External prerequisites #
# ---------------------- #

abi_optchk_ok="yes"

{ $as_echo "$as_me:$LINENO: checking consistency of external prerequisite options" >&5
$as_echo "$as_me: checking consistency of external prerequisite options" >&6;}

# Threaded FFTW support requires basic FFTW support
if test "${enable_fftw_threads}" = "yes" -a "${enable_fftw}" != "yes"; then
 enable_fftw="yes"
 { $as_echo "$as_me:$LINENO:  |---> enabling FFTW support for FFTW_THREADS" >&5
$as_echo "$as_me:  |---> enabling FFTW support for FFTW_THREADS" >&6;}
 abi_optchk_ok="no"
fi

# Require FFTW link flags to be set
if test "${enable_fftw}" = "yes" -o "${enable_fftw_threads}" = "yes"; then
 if test "${with_fftw_libs}" = "" -o "${with_fftw_libs}" = "no" -o \
         "${with_fftw_libs}" = "yes"; then
  enable_fftw="no"
  enable_fftw_threads="no"
  with_fftw_libs=""
  { $as_echo "$as_me:$LINENO:  |---> disabling FFTW support (missing link flags)" >&5
$as_echo "$as_me:  |---> disabling FFTW support (missing link flags)" >&6;}
  abi_optchk_ok="no"
 fi
fi

# GSL support requires FC wrappers
if test "${enable_gsl}" = "yes"; then
 { $as_echo "$as_me:$LINENO:  |---> enabling Fortran-C wrappers for GSL" >&5
$as_echo "$as_me:  |---> enabling Fortran-C wrappers for GSL" >&6;}
 abi_fc_wrappers="yes"
 abi_optchk_ok="no"
fi

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

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

abi_optchk_ok="yes"

{ $as_echo "$as_me:$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:$LINENO:  |---> disabling ETSF I/O support (as you don't want NetCDF)" >&5
$as_echo "$as_me:  |---> disabling ETSF I/O support (as you don't want NetCDF)" >&6;}
 abi_optchk_ok="no"
fi

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

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

abi_optchk_ok="yes"

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

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



 { $as_echo "$as_me:$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 yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_64bit_flags = (${r})" >&5
$as_echo "$as_me: WARNING: enable_64bit_flags = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_64bit_flags = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_64bit_flags = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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 yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_all_plugins = (${r})" >&5
$as_echo "$as_me: WARNING: enable_all_plugins = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_all_plugins = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_all_plugins = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

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

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

  if test "${enable_cclock}" != ""; then
  for v in `echo "${enable_cclock}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_cclock = (${r})" >&5
$as_echo "$as_me: WARNING: enable_cclock = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_cclock = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_cclock = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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 yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_config_file = (${r})" >&5
$as_echo "$as_me: WARNING: enable_config_file = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_config_file = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_config_file = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${enable_debug}" != ""; then
  for v in `echo "${enable_debug}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no symbols; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no symbols" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_debug = (${r})" >&5
$as_echo "$as_me: WARNING: enable_debug = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_debug = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_debug = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${enable_env_file}" != ""; then
  for v in `echo "${enable_env_file}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_env_file = (${r})" >&5
$as_echo "$as_me: WARNING: enable_env_file = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_env_file = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_env_file = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${enable_error_handlers}" != ""; then
  for v in `echo "${enable_error_handlers}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_error_handlers = (${r})" >&5
$as_echo "$as_me: WARNING: enable_error_handlers = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_error_handlers = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_error_handlers = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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 yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_etsf_io = (${r})" >&5
$as_echo "$as_me: WARNING: enable_etsf_io = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_etsf_io = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_etsf_io = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${enable_etsf_xc}" != ""; then
  for v in `echo "${enable_etsf_xc}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_etsf_xc = (${r})" >&5
$as_echo "$as_me: WARNING: enable_etsf_xc = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_etsf_xc = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_etsf_xc = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${enable_exports}" != ""; then
  for v in `echo "${enable_exports}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_exports = (${r})" >&5
$as_echo "$as_me: WARNING: enable_exports = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_exports = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_exports = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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 yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_fc_wrapper = (${r})" >&5
$as_echo "$as_me: WARNING: enable_fc_wrapper = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_fc_wrapper = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_fc_wrapper = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${enable_fftw}" != ""; then
  for v in `echo "${enable_fftw}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_fftw = (${r})" >&5
$as_echo "$as_me: WARNING: enable_fftw = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_fftw = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_fftw = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${enable_fftw_threads}" != ""; then
  for v in `echo "${enable_fftw_threads}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_fftw_threads = (${r})" >&5
$as_echo "$as_me: WARNING: enable_fftw_threads = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_fftw_threads = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_fftw_threads = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

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

  if test "${enable_gsl}" != ""; then
  for v in `echo "${enable_gsl}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_gsl = (${r})" >&5
$as_echo "$as_me: WARNING: enable_gsl = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_gsl = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_gsl = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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 yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_gw_dpc = (${r})" >&5
$as_echo "$as_me: WARNING: enable_gw_dpc = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_gw_dpc = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_gw_dpc = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

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

  if test "${enable_mpi}" != ""; then
  for v in `echo "${enable_mpi}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no manual native; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no manual native" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_mpi = (${r})" >&5
$as_echo "$as_me: WARNING: enable_mpi = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_mpi = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_mpi = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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 yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_mpi_io = (${r})" >&5
$as_echo "$as_me: WARNING: enable_mpi_io = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_mpi_io = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_mpi_io = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${enable_mpi_io_buggy}" != ""; then
  for v in `echo "${enable_mpi_io_buggy}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_mpi_io_buggy = (${r})" >&5
$as_echo "$as_me: WARNING: enable_mpi_io_buggy = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_mpi_io_buggy = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_mpi_io_buggy = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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 yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_mpi_trace = (${r})" >&5
$as_echo "$as_me: WARNING: enable_mpi_trace = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_mpi_trace = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_mpi_trace = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

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

  if test "${enable_nightly}" != ""; then
  for v in `echo "${enable_nightly}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_nightly = (${r})" >&5
$as_echo "$as_me: WARNING: enable_nightly = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_nightly = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_nightly = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${enable_optlevel}" != ""; then
  for v in `echo "${enable_optlevel}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in 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
   r=`echo "safe standard aggressive" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_optlevel = (${r})" >&5
$as_echo "$as_me: WARNING: enable_optlevel = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_optlevel = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_optlevel = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${enable_papi}" != ""; then
  for v in `echo "${enable_papi}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_papi = (${r})" >&5
$as_echo "$as_me: WARNING: enable_papi = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_papi = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_papi = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

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

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

  if test "${enable_tricks}" != ""; then
  for v in `echo "${enable_tricks}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no fc-only no-ar opt-only; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no fc-only no-ar opt-only" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_tricks = (${r})" >&5
$as_echo "$as_me: WARNING: enable_tricks = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_tricks = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_tricks = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

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

  if test "${enable_xmlf90}" != ""; then
  for v in `echo "${enable_xmlf90}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in yes no; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "yes no" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: enable_xmlf90 = (${r})" >&5
$as_echo "$as_me: WARNING: enable_xmlf90 = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: enable_xmlf90 = ${v}" >&5
$as_echo "$as_me: error: invalid option: enable_xmlf90 = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_64bit_flags}" != ""; then
  for v in `echo "${with_64bit_flags}" | sed -e 's/,/ /g'`; do
   opt_ok="no"
   for r in ar cpp cc cxx fc; do
    if test "${v}" = "${r}";then
     opt_ok="yes"
     break
    fi
   done
   test "${opt_ok}" = "no" && break
  done
  if test "${opt_ok}" = "no"; then
   r=`echo "ar cpp cc cxx fc" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: with_64bit_flags = (${r})" >&5
$as_echo "$as_me: WARNING: with_64bit_flags = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: with_64bit_flags = ${v}" >&5
$as_echo "$as_me: error: invalid option: with_64bit_flags = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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_echo "$as_me:$LINENO: error: invalid include statement in with_bigdft_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_bigdft_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_bigdft_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_bigdft_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_bigdft_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_bigdft_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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_echo "$as_me:$LINENO: error: invalid include statement in with_etsf_io_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_etsf_io_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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 '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_etsf_io_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_etsf_io_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_etsf_xc_includes}" != ""; then
  opt_ok="yes"
  for v in ${with_etsf_xc_includes}; do
   if test "`echo "${v}" | grep '^-I'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid include statement in with_etsf_xc_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_etsf_xc_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_etsf_xc_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_etsf_xc_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_etsf_xc_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_etsf_xc_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_fftw_includes}" != ""; then
  opt_ok="yes"
  for v in ${with_fftw_includes}; do
   if test "`echo "${v}" | grep '^-I'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid include statement in with_fftw_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_fftw_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_fftw_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_fftw_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_fftw_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_fftw_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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_echo "$as_me:$LINENO: error: invalid include statement in with_fox_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_fox_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_fox_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_fox_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_fox_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_fox_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_gsl_includes}" != ""; then
  opt_ok="yes"
  for v in ${with_gsl_includes}; do
   if test "`echo "${v}" | grep '^-I'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid include statement in with_gsl_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_gsl_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_gsl_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_gsl_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_gsl_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_gsl_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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_echo "$as_me:$LINENO: error: invalid include statement in with_linalg_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_linalg_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_linalg_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_linalg_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_linalg_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_linalg_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_linalg_type}" != ""; then
  opt_ok="no"
  for v in ${linalg_supported_types}; do
   if test "${with_linalg_type}" = "${v}"; then
    opt_ok="yes"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: unsupported linear algebra implementation: ${with_linalg_type}" >&5
$as_echo "$as_me: error: unsupported linear algebra implementation: ${with_linalg_type}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_mpi_cc_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_mpi_cc_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_mpi_cc_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_mpi_cc_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_mpi_cxx_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_mpi_cxx_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_mpi_cxx_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_mpi_cxx_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_mpi_fc_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_mpi_fc_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_mpi_fc_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_mpi_fc_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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
   r=`echo "1 2" | sed -e 's/^[ ]*//; s/[ ]*$//; s/[ ][ ]*/ /g; s/ /|/g'`
   { $as_echo "$as_me:$LINENO: WARNING: with_mpi_level = (${r})" >&5
$as_echo "$as_me: WARNING: with_mpi_level = (${r})" >&2;}
   { { $as_echo "$as_me:$LINENO: error: invalid option: with_mpi_level = ${v}" >&5
$as_echo "$as_me: error: invalid option: with_mpi_level = ${v}" >&2;}
   { (exit 1); exit 1; }; }
  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_echo "$as_me:$LINENO: error: invalid include statement in with_netcdf_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_netcdf_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_netcdf_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_netcdf_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_netcdf_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_netcdf_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_papi_includes}" != ""; then
  opt_ok="yes"
  for v in ${with_papi_includes}; do
   if test "`echo "${v}" | grep '^-I'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid include statement in with_papi_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_papi_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_papi_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_papi_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_papi_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_papi_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_scalapack_includes}" != ""; then
  opt_ok="yes"
  for v in ${with_scalapack_includes}; do
   if test "`echo "${v}" | grep '^-I'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid include statement in with_scalapack_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_scalapack_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_scalapack_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_scalapack_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_scalapack_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_scalapack_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_timeout}" != ""; then
  opt_ok="yes"
  test "`echo "${with_timeout}" | ${EGREP} -e '^-?[0-9]+$'`" = "" && opt_ok="no"
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid integer: with_timeout = ${with_timeout}" >&5
$as_echo "$as_me: error: invalid integer: with_timeout = ${with_timeout}" >&2;}
   { (exit 1); exit 1; }; }
  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_echo "$as_me:$LINENO: error: invalid include statement in with_wannier90_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_wannier90_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_wannier90_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_wannier90_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_wannier90_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_wannier90_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_xmlf90_includes}" != ""; then
  opt_ok="yes"
  for v in ${with_xmlf90_includes}; do
   if test "`echo "${v}" | grep '^-I'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid include statement in with_xmlf90_includes: ${v}" >&5
$as_echo "$as_me: error: invalid include statement in with_xmlf90_includes: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi

  if test "${with_xmlf90_libs}" != ""; then
  opt_ok="yes"
  for v in ${with_xmlf90_libs}; do
   if test "`echo "${v}" | grep '^-[Ll]'`" = ""; then
    opt_ok="no"
    break
   fi
  done
  if test "${opt_ok}" = "no"; then
   { { $as_echo "$as_me:$LINENO: error: invalid library statement in with_xmlf90_libs: ${v}" >&5
$as_echo "$as_me: error: invalid library statement in with_xmlf90_libs: ${v}" >&2;}
   { (exit 1); exit 1; }; }
  fi
 fi



# Set-up tricks
enable_tricks_cpp="yes"
enable_tricks_cc="yes"
enable_tricks_cxx="yes"
enable_tricks_fc="yes"
enable_tricks_ar="yes"
enable_tricks_opt="yes"
if test "${enable_tricks}" = "no"; then
 enable_tricks_cpp="no"
 enable_tricks_cc="no"
 enable_tricks_cxx="no"
 enable_tricks_fc="no"
 enable_tricks_ar="no"
 enable_tricks_opt="no"
fi
if test "${enable_tricks}" = "fc-only"; then
 enable_tricks_cpp="no"
 enable_tricks_cc="no"
 enable_tricks_cxx="no"
 enable_tricks_ar="no"
 enable_tricks_opt="no"
fi
if test "${enable_tricks}" = "no-ar"; then
 enable_tricks_ar="no"
fi
if test "${enable_tricks}" = "fc-only"; then
 enable_tricks_cpp="no"
 enable_tricks_cc="no"
 enable_tricks_cxx="no"
 enable_tricks_fc="no"
 enable_tricks_ar="no"
fi

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

#
# MPI startup
#

# NOTE: This section must be found before the first call to AC_PROG_CC.


 abi_sec_title="MPI 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 ""


# Disable MPI if unset
if test "${enable_mpi}" = ""; then
 enable_mpi="no"
fi

# Set MPI environment and check for a generic implementation

  abi_env_AR="${AR}"

  abi_env_ARFLAGS="${ARFLAGS}"

  abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

  abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

  abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

  abi_env_ARFLAGS_OPT="${ARFLAGS_OPT}"

  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_OPT="${CC_LDFLAGS_OPT}"

  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_OPT="${CC_LIBS_OPT}"

  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_OPT="${CFLAGS_OPT}"

  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_OPT="${CPPFLAGS_OPT}"

  abi_env_CXX="${CXX}"

  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_OPT="${CXX_LDFLAGS_OPT}"

  abi_env_CXX_LIBS="${CXX_LIBS}"

  abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

  abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

  abi_env_CXX_LIBS_OPT="${CXX_LIBS_OPT}"

  abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

  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_OPT="${CXXFLAGS_OPT}"

  abi_env_DEFS="${DEFS}"

  abi_env_FC="${FC}"

  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_OPT="${FC_LDFLAGS_OPT}"

  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_OPT="${FC_LIBS_OPT}"

  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_OPT="${FCFLAGS_OPT}"

  abi_env_LTXFLAGS="${LTXFLAGS}"

  abi_env_MDFLAGS="${MDFLAGS}"

  abi_env_MPI_CC_LDFLAGS="${MPI_CC_LDFLAGS}"

  abi_env_MPI_CC_LIBS="${MPI_CC_LIBS}"

  abi_env_MPI_CXX_LIBS="${MPI_CXX_LIBS}"

  abi_env_MPI_FC_LIBS="${MPI_FC_LIBS}"

  abi_env_MPI_CFLAGS="${MPI_CFLAGS}"

  abi_env_MPI_CPPFLAGS="${MPI_CPPFLAGS}"

  abi_env_MPI_CXX_LDFLAGS="${MPI_CXX_LDFLAGS}"

  abi_env_MPI_CXXFLAGS="${MPI_CXXFLAGS}"

  abi_env_MPI_FC_LDFLAGS="${MPI_FC_LDFLAGS}"

  abi_env_MPI_FCFLAGS="${MPI_FCFLAGS}"

  abi_env_MPI_RUNNER="${MPI_RUNNER}"

  abi_env_PDFFLAGS="${PDFFLAGS}"


 mpi_usable="no"
 mpi_type="unknown"
 mpi_level="1"

  if test "${with_mpi_prefix}" != "" -a ! -d "${with_mpi_prefix}"; then
  with_mpi_prefix=""
 fi
 if test "${with_mpi_prefix}" = "yes" -o "${with_mpi_prefix}" = "no"; then
  mpi_prefix=""
 else
  mpi_prefix="${with_mpi_prefix}"
 fi

  if test "${with_mpi_cppflags}" = "yes" -o "${with_mpi_cppflags}" = "no"; then
  MPI_CPPFLAGS=""
 else
  MPI_CPPFLAGS="${with_mpi_cppflags}"
 fi

  if test "${with_mpi_cflags}" = "yes" -o "${with_mpi_cflags}" = "no"; then
  MPI_CFLAGS=""
 else
  MPI_CFLAGS="${with_mpi_cflags}"
 fi
 if test "${with_mpi_cc_ldflags}" = "yes" -o "${with_mpi_cc_ldflags}" = "no"; then
  MPI_CC_LDFLAGS=""
 else
  MPI_CC_LDFLAGS="${with_mpi_cc_ldflags}"
 fi
 if test "${with_mpi_cc_libs}" = "yes" -o "${with_mpi_cc_libs}" = "no"; then
  MPI_CC_LIBS=""
 else
  MPI_CC_LIBS="${with_mpi_cc_libs}"
 fi

  if test "${with_mpi_cxxflags}" = "yes" -o "${with_mpi_cxxflags}" = "no"; then
  MPI_CXXFLAGS=""
 else
  MPI_CXXFLAGS="${with_mpi_cxxflags}"
 fi
 if test "${with_mpi_cxx_ldflags}" = "yes" -o \
         "${with_mpi_cxx_ldflags}" = "no"; then
  MPI_CXX_LDFLAGS=""
 else
  MPI_CXX_LDFLAGS="${with_mpi_cxx_ldflags}"
 fi
 if test "${with_mpi_cxx_libs}" = "yes" -o "${with_mpi_cxx_libs}" = "no"; then
  MPI_CXX_LIBS=""
 else
  MPI_CXX_LIBS="${with_mpi_cxx_libs}"
 fi

  if test "${with_mpi_fcflags}" = "yes" -o "${with_mpi_fcflags}" = "no"; then
  MPI_FCFLAGS=""
 else
  MPI_FCFLAGS="${with_mpi_fcflags}"
 fi
 if test "${with_mpi_fc_ldflags}" = "yes" -o \
         "${with_mpi_fc_ldflags}" = "no"; then
  MPI_FC_LDFLAGS=""
 else
  MPI_FC_LDFLAGS="${with_mpi_fc_ldflags}"
 fi
 if test "${with_mpi_fc_libs}" = "yes" -o "${with_mpi_fc_libs}" = "no"; then
  MPI_FC_LIBS=""
 else
  MPI_FC_LIBS="${with_mpi_fc_libs}"
 fi

  if test "${with_mpi_runner}" = "yes" -o "${with_mpi_runner}" = "no"; then
  MPI_RUNNER=""
 else
  MPI_RUNNER="${with_mpi_runner}"
 fi

  if test "${with_mpi_prefix}" != "" -a "${enable_mpi}" = ""; then
  { $as_echo "$as_me:$LINENO: enabling MPI support" >&5
$as_echo "$as_me: enabling MPI support" >&6;}
  enable_mpi="yes"
 fi

  if test "${enable_mpi}" = ""; then
  { $as_echo "$as_me:$LINENO: disabling MPI support" >&5
$as_echo "$as_me: disabling MPI support" >&6;}
  enable_mpi="no"
 fi

  { $as_echo "$as_me:$LINENO: checking for MPI support requested" >&5
$as_echo_n "checking for MPI support requested... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${enable_mpi}" >&5
$as_echo "${enable_mpi}" >&6; }

  if test "${enable_mpi}" = "yes" -a "${mpi_usable}" != "yes"; then

    if test "${mpi_prefix}" != ""; then
   { $as_echo "$as_me:$LINENO: using MPI prefix ${mpi_prefix}" >&5
$as_echo "$as_me: using MPI prefix ${mpi_prefix}" >&6;}
    mpi_generic_prefix="${mpi_prefix}"
 mpi_generic_usable="no"
 mpi_generic_cc=""
 mpi_generic_cxx=""
 mpi_generic_fc=""
 mpi_generic_runner=""
 mpi_generic_cppflags=""
 mpi_generic_cflags=""
 mpi_generic_cxxflags=""
 mpi_generic_fcflags=""
 mpi_generic_ldflags=""

 { $as_echo "$as_me:$LINENO: checking for a usable MPI implementation" >&5
$as_echo_n "checking for a usable MPI implementation... " >&6; }

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

    if test -s "${mpi_generic_prefix}/lib/libmpi.a"; then
   mpi_generic_ldflags="-L${mpi_generic_prefix}/lib"
  fi

    if test -s "${mpi_generic_prefix}/include/mpif.h"; then
   mpi_generic_cppflags="-I${mpi_generic_prefix}/include"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpicc"; then
   mpi_generic_cc="${mpi_generic_prefix}/bin/mpicc"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpic++"; then
   mpi_generic_cxx="${mpi_generic_prefix}/bin/mpic++"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpif90"; then
   mpi_generic_fc="${mpi_generic_prefix}/bin/mpif90"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpirun"; then
   mpi_generic_runner="${mpi_generic_prefix}/bin/mpirun"
  fi
  if test "${mpi_generic_runner}" = ""; then
   if test -x "${mpi_generic_prefix}/bin/mpiexec"; then
    mpi_generic_runner="${mpi_generic_prefix}/bin/mpiexec"
   fi
  fi
  if test "${mpi_generic_runner}" = ""; then
   if test -x "${mpi_generic_prefix}/bin/dmpirun"; then
    mpi_generic_runner="${mpi_generic_prefix}/bin/dmpirun"
   fi
  fi
  if test "${mpi_generic_runner}" = ""; then
   if test -x "${mpi_generic_prefix}/bin/srun"; then
    mpi_generic_runner="${mpi_generic_prefix}/bin/srun"
   fi
  fi

 fi

  if test "${mpi_generic_fc}" != "" -a "${mpi_generic_runner}" != ""; then
  mpi_generic_usable="yes"
 fi
 if test "${mpi_generic_cppflags}" != "" -a "${mpi_generic_ldflags}" != ""; then
  mpi_generic_usable="yes"
 fi


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

  fi

    if test "${mpi_generic_usable}" != "yes"; then
   { $as_echo "$as_me:$LINENO: looking for MPI in /usr" >&5
$as_echo "$as_me: looking for MPI in /usr" >&6;}
    mpi_generic_prefix="/usr"
 mpi_generic_usable="no"
 mpi_generic_cc=""
 mpi_generic_cxx=""
 mpi_generic_fc=""
 mpi_generic_runner=""
 mpi_generic_cppflags=""
 mpi_generic_cflags=""
 mpi_generic_cxxflags=""
 mpi_generic_fcflags=""
 mpi_generic_ldflags=""

 { $as_echo "$as_me:$LINENO: checking for a usable MPI implementation" >&5
$as_echo_n "checking for a usable MPI implementation... " >&6; }

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

    if test -s "${mpi_generic_prefix}/lib/libmpi.a"; then
   mpi_generic_ldflags="-L${mpi_generic_prefix}/lib"
  fi

    if test -s "${mpi_generic_prefix}/include/mpif.h"; then
   mpi_generic_cppflags="-I${mpi_generic_prefix}/include"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpicc"; then
   mpi_generic_cc="${mpi_generic_prefix}/bin/mpicc"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpic++"; then
   mpi_generic_cxx="${mpi_generic_prefix}/bin/mpic++"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpif90"; then
   mpi_generic_fc="${mpi_generic_prefix}/bin/mpif90"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpirun"; then
   mpi_generic_runner="${mpi_generic_prefix}/bin/mpirun"
  fi
  if test "${mpi_generic_runner}" = ""; then
   if test -x "${mpi_generic_prefix}/bin/mpiexec"; then
    mpi_generic_runner="${mpi_generic_prefix}/bin/mpiexec"
   fi
  fi
  if test "${mpi_generic_runner}" = ""; then
   if test -x "${mpi_generic_prefix}/bin/dmpirun"; then
    mpi_generic_runner="${mpi_generic_prefix}/bin/dmpirun"
   fi
  fi
  if test "${mpi_generic_runner}" = ""; then
   if test -x "${mpi_generic_prefix}/bin/srun"; then
    mpi_generic_runner="${mpi_generic_prefix}/bin/srun"
   fi
  fi

 fi

  if test "${mpi_generic_fc}" != "" -a "${mpi_generic_runner}" != ""; then
  mpi_generic_usable="yes"
 fi
 if test "${mpi_generic_cppflags}" != "" -a "${mpi_generic_ldflags}" != ""; then
  mpi_generic_usable="yes"
 fi


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

   test "${mpi_generic_usable}" = "yes" && mpi_prefix="/usr"
  fi

    if test "${mpi_generic_usable}" != "yes"; then
   { $as_echo "$as_me:$LINENO: looking for MPI in /usr/local" >&5
$as_echo "$as_me: looking for MPI in /usr/local" >&6;}
    mpi_generic_prefix="/usr/local"
 mpi_generic_usable="no"
 mpi_generic_cc=""
 mpi_generic_cxx=""
 mpi_generic_fc=""
 mpi_generic_runner=""
 mpi_generic_cppflags=""
 mpi_generic_cflags=""
 mpi_generic_cxxflags=""
 mpi_generic_fcflags=""
 mpi_generic_ldflags=""

 { $as_echo "$as_me:$LINENO: checking for a usable MPI implementation" >&5
$as_echo_n "checking for a usable MPI implementation... " >&6; }

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

    if test -s "${mpi_generic_prefix}/lib/libmpi.a"; then
   mpi_generic_ldflags="-L${mpi_generic_prefix}/lib"
  fi

    if test -s "${mpi_generic_prefix}/include/mpif.h"; then
   mpi_generic_cppflags="-I${mpi_generic_prefix}/include"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpicc"; then
   mpi_generic_cc="${mpi_generic_prefix}/bin/mpicc"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpic++"; then
   mpi_generic_cxx="${mpi_generic_prefix}/bin/mpic++"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpif90"; then
   mpi_generic_fc="${mpi_generic_prefix}/bin/mpif90"
  fi

    if test -x "${mpi_generic_prefix}/bin/mpirun"; then
   mpi_generic_runner="${mpi_generic_prefix}/bin/mpirun"
  fi
  if test "${mpi_generic_runner}" = ""; then
   if test -x "${mpi_generic_prefix}/bin/mpiexec"; then
    mpi_generic_runner="${mpi_generic_prefix}/bin/mpiexec"
   fi
  fi
  if test "${mpi_generic_runner}" = ""; then
   if test -x "${mpi_generic_prefix}/bin/dmpirun"; then
    mpi_generic_runner="${mpi_generic_prefix}/bin/dmpirun"
   fi
  fi
  if test "${mpi_generic_runner}" = ""; then
   if test -x "${mpi_generic_prefix}/bin/srun"; then
    mpi_generic_runner="${mpi_generic_prefix}/bin/srun"
   fi
  fi

 fi

  if test "${mpi_generic_fc}" != "" -a "${mpi_generic_runner}" != ""; then
  mpi_generic_usable="yes"
 fi
 if test "${mpi_generic_cppflags}" != "" -a "${mpi_generic_ldflags}" != ""; then
  mpi_generic_usable="yes"
 fi


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

   test "${mpi_generic_usable}" = "yes" && mpi_prefix="/usr/local"
  fi

    if test "${mpi_generic_usable}" = "yes"; then
   mpi_usable="${mpi_generic_usable}"
   mpi_type="generic"
   test "${mpi_generic_cc}" != "" && CC="${mpi_generic_cc}"
   test "${mpi_generic_cxx}" != "" && CXX="${mpi_generic_cxx}"
   test "${mpi_generic_fc}" != "" && FC="${mpi_generic_fc}"
   test "${mpi_generic_runner}" != "" && MPI_RUNNER="${mpi_generic_runner}"

   { $as_echo "$as_me:$LINENO: checking the type of MPI implementation we have" >&5
$as_echo_n "checking the type of MPI implementation we have... " >&6; }

      if test "${mpi_type}" = "generic"; then
    if test -s "${mpi_prefix}/lib/liblam.a"; then
     mpi_type="lam"
     mpi_level="1"
    fi
   fi

      if test "${mpi_type}" = "generic"; then
    if test -s "${mpi_prefix}/lib/libmpich.a" -a \
            -s "${mpi_prefix}/lib/libfmpich.a"; then
     mpi_type="mpich"
     mpi_level="1"
    fi
   fi

      if test "${mpi_type}" = "generic"; then
    if test -x "${mpi_prefix}/bin/opal_wrapper" -a \
            -x "${mpi_prefix}/bin/orted" -a \
            -x "${mpi_prefix}/bin/orterun"; then
     mpi_type="openmpi"
     mpi_level="2"
    fi
   fi

   { $as_echo "$as_me:$LINENO: result: ${mpi_type}" >&5
$as_echo "${mpi_type}" >&6; }
  else
   if test "${enable_mpi}" != "no"; then
    { $as_echo "$as_me:$LINENO: check for a native MPI compiler support deferred" >&5
$as_echo "$as_me: check for a native MPI compiler support deferred" >&6;}
   fi
  fi
 fi














# Report changes in compiler names
if test "${abi_env_CC}" != "" -a "${CC}" != "${abi_env_CC}"; then
 { $as_echo "$as_me:$LINENO: CC  = ${CC}" >&5
$as_echo "$as_me: CC  = ${CC}" >&6;}
fi
if test "${abi_env_CXX}" != "" -a "${CXX}" != "${abi_env_CXX}"; then
 { $as_echo "$as_me:$LINENO: CXX = ${CXX}" >&5
$as_echo "$as_me: CXX = ${CXX}" >&6;}
fi
if test "${abi_env_FC}" != "" -a "${FC}" != "${abi_env_FC}"; then
 { $as_echo "$as_me:$LINENO: FC  = ${FC}" >&5
$as_echo "$as_me: FC  = ${FC}" >&6;}
fi

# EXPERIMENTAL: set LD_LIBRARY_PATH
abi_llp_set=""
abi_llp_fixed=""
if test "${mpi_usable}" = "yes"; then
 abi_llp_set=`echo "${LD_LIBRARY_PATH}" | grep "${with_mpi_prefix}/lib"`
 if test "${abi_llp_set}" = ""; then
  if test -d "${with_mpi_prefix}/lib"; then
   { $as_echo "$as_me:$LINENO: setting LD_LIBRARY_PATH" >&5
$as_echo "$as_me: setting LD_LIBRARY_PATH" >&6;}
   abi_env_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}"
   LD_LIBRARY_PATH="${with_mpi_prefix}/lib:${LD_LIBRARY_PATH}"
   export LD_LIBRARY_PATH
   abi_llp_fixed="yes"
  fi
 fi
else

  abi_msg_file="${abinit_srcdir}/config/messages/mpi-support.msg"
 abi_msg_title=""
 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:$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

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

#
# 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:$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:$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:$LINENO: result: $BOURNE_SHELL" >&5
$as_echo "$BOURNE_SHELL" >&6; }
else
  { $as_echo "$as_me:$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:$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:$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:$LINENO: result: $PERL" >&5
$as_echo "$PERL" >&6; }
else
  { $as_echo "$as_me:$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:$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:$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:$LINENO: result: $RM" >&5
$as_echo "$RM" >&6; }
else
  { $as_echo "$as_me:$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:$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:$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:$LINENO: result: $MV" >&5
$as_echo "$MV" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


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

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


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

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


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

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


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

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


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

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


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

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


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

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



# Make sure we can use markdown
if test ! -x "${MARKDOWN}"; then
 { $as_echo "$as_me:$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

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

#
# Preprocessing
#


 abi_sec_title="Preprocessing"

  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_AR="${AR}"

  abi_env_ARFLAGS="${ARFLAGS}"

  abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

  abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

  abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

  abi_env_ARFLAGS_OPT="${ARFLAGS_OPT}"

  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_OPT="${CC_LDFLAGS_OPT}"

  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_OPT="${CC_LIBS_OPT}"

  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_OPT="${CFLAGS_OPT}"

  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_OPT="${CPPFLAGS_OPT}"

  abi_env_CXX="${CXX}"

  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_OPT="${CXX_LDFLAGS_OPT}"

  abi_env_CXX_LIBS="${CXX_LIBS}"

  abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

  abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

  abi_env_CXX_LIBS_OPT="${CXX_LIBS_OPT}"

  abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

  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_OPT="${CXXFLAGS_OPT}"

  abi_env_DEFS="${DEFS}"

  abi_env_FC="${FC}"

  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_OPT="${FC_LDFLAGS_OPT}"

  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_OPT="${FC_LIBS_OPT}"

  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_OPT="${FCFLAGS_OPT}"

  abi_env_LTXFLAGS="${LTXFLAGS}"

  abi_env_MDFLAGS="${MDFLAGS}"

  abi_env_MPI_CC_LDFLAGS="${MPI_CC_LDFLAGS}"

  abi_env_MPI_CC_LIBS="${MPI_CC_LIBS}"

  abi_env_MPI_CXX_LIBS="${MPI_CXX_LIBS}"

  abi_env_MPI_FC_LIBS="${MPI_FC_LIBS}"

  abi_env_MPI_CFLAGS="${MPI_CFLAGS}"

  abi_env_MPI_CPPFLAGS="${MPI_CPPFLAGS}"

  abi_env_MPI_CXX_LDFLAGS="${MPI_CXX_LDFLAGS}"

  abi_env_MPI_CXXFLAGS="${MPI_CXXFLAGS}"

  abi_env_MPI_FC_LDFLAGS="${MPI_FC_LDFLAGS}"

  abi_env_MPI_FCFLAGS="${MPI_FCFLAGS}"

  abi_env_MPI_RUNNER="${MPI_RUNNER}"

  abi_env_PDFFLAGS="${PDFFLAGS}"



# Look for the default C preprocessor
DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@echo done
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
$as_echo_n "checking for style of include used by $am_make... " >&6; }
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
   am__include=include
   am__quote=
   _am_result=GNU
fi
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
      am__include=.include
      am__quote="\""
      _am_result=BSD
   fi
fi


{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
$as_echo "$_am_result" >&6; }
rm -f confinc confmf

# Check whether --enable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then
  enableval=$enable_dependency_tracking;
fi

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
 if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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

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

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


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

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


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

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


  test -n "$ac_ct_CC" && break
done

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

fi


test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }

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

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

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

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

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

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

else
  ac_file=''
fi

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

{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
$as_echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext

# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest$ac_cv_exeext
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if test "${ac_cv_objext+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

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

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

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

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

int
main ()
{

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

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

int
main ()
{

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


fi

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

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

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_c89=$ac_arg
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

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

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


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

depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    case $depmode in
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    none) break ;;
    esac
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.
    if depmode=$depmode \
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

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

fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

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

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

if test "${CPP}" = ""; then
 { { $as_echo "$as_me:$LINENO: error: no C preprocessor found" >&5
$as_echo "$as_me: error: no C preprocessor found" >&2;}
   { (exit 1); exit 1; }; }
fi

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

# Apply tricks
if test "${enable_tricks_cpp}" = "yes"; then

  { $as_echo "$as_me:$LINENO: checking for the true C preprocessor" >&5
$as_echo_n "checking for the true C preprocessor... " >&6; }
 TRUE_CPP=""
 TRUE_CPPFLAGS=""
 if test -x "/lib/cpp"; then
  TRUE_CPP="/lib/cpp"
 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:$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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_TRUE_CPP" && ac_cv_path_TRUE_CPP="/usr/bin/cpp"
  ;;
esac
fi
TRUE_CPP=$ac_cv_path_TRUE_CPP
if test -n "$TRUE_CPP"; then
  { $as_echo "$as_me:$LINENO: result: $TRUE_CPP" >&5
$as_echo "$TRUE_CPP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


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

  { $as_echo "$as_me:$LINENO: checking for C preprocessor options" >&5
$as_echo_n "checking for C preprocessor options... " >&6; }
 case "${target_os}" in

  aix*)
   TRUE_CPPFLAGS="-P"
   ;;

  *)
   TRUE_CPPFLAGS="-P -std=c89"
   ;;

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

 if test "${enable_64bit_flags}" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for 64-bit preprocessor flags" >&5
$as_echo_n "checking for 64-bit preprocessor flags... " >&6; }
  if test "${CPPFLAGS_64BITS}" = ""; then
   { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
  else
   { $as_echo "$as_me:$LINENO: result: ${CPPFLAGS_64BITS}" >&5
$as_echo "${CPPFLAGS_64BITS}" >&6; }
   CPP="${CPP} ${CPPFLAGS_64BITS}"
  fi
 else
  CPPFLAGS_64BITS=""
 fi
else
 TRUE_CPP="${CPP}"
 TRUE_CPPFLAGS=""
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_AR="${AR}"

  abi_env_ARFLAGS="${ARFLAGS}"

  abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

  abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

  abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

  abi_env_ARFLAGS_OPT="${ARFLAGS_OPT}"

  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_OPT="${CC_LDFLAGS_OPT}"

  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_OPT="${CC_LIBS_OPT}"

  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_OPT="${CFLAGS_OPT}"

  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_OPT="${CPPFLAGS_OPT}"

  abi_env_CXX="${CXX}"

  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_OPT="${CXX_LDFLAGS_OPT}"

  abi_env_CXX_LIBS="${CXX_LIBS}"

  abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

  abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

  abi_env_CXX_LIBS_OPT="${CXX_LIBS_OPT}"

  abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

  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_OPT="${CXXFLAGS_OPT}"

  abi_env_DEFS="${DEFS}"

  abi_env_FC="${FC}"

  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_OPT="${FC_LDFLAGS_OPT}"

  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_OPT="${FC_LIBS_OPT}"

  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_OPT="${FCFLAGS_OPT}"

  abi_env_LTXFLAGS="${LTXFLAGS}"

  abi_env_MDFLAGS="${MDFLAGS}"

  abi_env_MPI_CC_LDFLAGS="${MPI_CC_LDFLAGS}"

  abi_env_MPI_CC_LIBS="${MPI_CC_LIBS}"

  abi_env_MPI_CXX_LIBS="${MPI_CXX_LIBS}"

  abi_env_MPI_FC_LIBS="${MPI_FC_LIBS}"

  abi_env_MPI_CFLAGS="${MPI_CFLAGS}"

  abi_env_MPI_CPPFLAGS="${MPI_CPPFLAGS}"

  abi_env_MPI_CXX_LDFLAGS="${MPI_CXX_LDFLAGS}"

  abi_env_MPI_CXXFLAGS="${MPI_CXXFLAGS}"

  abi_env_MPI_FC_LDFLAGS="${MPI_FC_LDFLAGS}"

  abi_env_MPI_FCFLAGS="${MPI_FCFLAGS}"

  abi_env_MPI_RUNNER="${MPI_RUNNER}"

  abi_env_PDFFLAGS="${PDFFLAGS}"



# Look for the C compiler
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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

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

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


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

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


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

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


  test -n "$ac_ct_CC" && break
done

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

fi


test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }

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

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

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

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

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

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

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

int
main ()
{

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

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

int
main ()
{

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


fi

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

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

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_c89=$ac_arg
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

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

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


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

depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    case $depmode in
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    none) break ;;
    esac
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.
    if depmode=$depmode \
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

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

fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


if test "${CC}" = ""; then
 { { $as_echo "$as_me:$LINENO: error: no C compiler found" >&5
$as_echo "$as_me: error: no C compiler found" >&2;}
   { (exit 1); exit 1; }; }
fi
 if test "${abi_cc_vendor}" = ""; then
  abi_cc_vendor="unknown"
 fi

  { $as_echo "$as_me:$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} -V 2>&1`
 abi_result=`echo "${cc_info_string}" | head -n 1 | grep 'Intel(R) C Compiler'`
 if test "${abi_result}" = ""; then
  abi_result=`echo "${cc_info_string}" | head -n 1 | grep 'Intel(R) C++ Compiler'`
 fi
 if test "${abi_result}" = ""; then
  abi_result="no"
  cc_info_string=""
  abi_cc_vendor="unknown"
  abi_cc_version="unknown"
 else

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

  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 | grep '^gcc' | head -n 1`
 if test "${ac_cv_c_compiler_gnu}" != "yes"; then
  abi_cc_vendor="unknown"
  abi_cc_version="unknown"
  abi_result="no"
 else

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

  abi_cc_vendor="gnu"
  abi_cc_version=`echo ${cc_info_string} | sed -e 's/.*(GCC) //; 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

  cc_info_string=`${CC} -V 2>&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

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

  abi_cc_vendor="compaq"
  cc_info_string=`${CC} -V 2>&1 | grep '^Compiler Driver'`
  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} --version 2>&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

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

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

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

  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

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

  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} -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(R) XL C/C++'`
 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

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

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

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

  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
  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:$LINENO: result: ${abi_cc_vendor} ${abi_cc_version}" >&5
$as_echo "${abi_cc_vendor} ${abi_cc_version}" >&6; }





# Restore back CFLAGS
CFLAGS="${abi_env_CFLAGS}"

# Fail if no C compiler is available
if test "${CC}" = ""; then
 { { $as_echo "$as_me:$LINENO: error: no C compiler available" >&5
$as_echo "$as_me: error: no C compiler available" >&2;}
   { (exit 1); exit 1; }; }
fi

# Apply tricks
if test "${enable_tricks_cc}" = "yes"; then

 if test "${abi_cc_vendor}" != "UNKNOWN"; then
  { $as_echo "$as_me:$LINENO: applying C compiler tricks (type: ${abi_cc_vendor}, version: ${abi_cc_version})" >&5
$as_echo "$as_me: applying C compiler tricks (type: ${abi_cc_vendor}, version: ${abi_cc_version})" >&6;}
 fi

 case "${abi_cc_vendor}" in

  compaq)
   if test "${ac_cv_c_bigendian}" = "yes"; then
    CFLAGS_EXTRA="${CFLAGS_EXTRA} -convert big_endian"
   fi
   ;;

  gnu)
   case "${target}" in
    mips*)
     CFLAGS_64BITS="-mabi=64"
     ;;
    *)
     CFLAGS_64BITS="-m64"
     ;;
   esac
   ;;

  ibm)
   CFLAGS_64BITS="-q64"
   ;;

  intel)
   CC_LDFLAGS_EXTRA="${CC_LDFLAGS_EXTRA} -static-libcxa -i-static"
   case "${abi_cc_version}" in
    9.0|9.1|10.0|10.1)
     CFLAGS_EXTRA="${CFLAGS_EXTRA} -vec-report0"
     ;;
   esac
   ;;

  pathscale)
    CFLAGS_64BITS="-m64"
   ;;

 esac

 if test "${enable_64bit_flags}" = "yes"; then
  { $as_echo "$as_me:$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:$LINENO: result: none" >&5
$as_echo "none" >&6; }
  else
   { $as_echo "$as_me:$LINENO: result: ${CFLAGS_64BITS}" >&5
$as_echo "${CFLAGS_64BITS}" >&6; }
   CC="${CC} ${CFLAGS_64BITS}"
  fi
 else
  CFLAGS_64BITS=""
 fi
fi

# Check for system peculiarities


{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

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

	ac_cv_header_stdc=no
fi

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

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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


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

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

fi

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









for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default

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

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if test `eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



 { $as_echo "$as_me:$LINENO: checking 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 __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined.
       cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__)
	       neither is defined;
	     #endif
	     typedef int dummy;

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


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

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

	ac_cv_c_bigendian=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <limits.h>

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

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <limits.h>

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

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

	ac_cv_c_bigendian=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then
  # Try to guess by grepping values from an object file.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

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

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


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


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

#
# 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_AR="${AR}"

  abi_env_ARFLAGS="${ARFLAGS}"

  abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

  abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

  abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

  abi_env_ARFLAGS_OPT="${ARFLAGS_OPT}"

  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_OPT="${CC_LDFLAGS_OPT}"

  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_OPT="${CC_LIBS_OPT}"

  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_OPT="${CFLAGS_OPT}"

  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_OPT="${CPPFLAGS_OPT}"

  abi_env_CXX="${CXX}"

  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_OPT="${CXX_LDFLAGS_OPT}"

  abi_env_CXX_LIBS="${CXX_LIBS}"

  abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

  abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

  abi_env_CXX_LIBS_OPT="${CXX_LIBS_OPT}"

  abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

  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_OPT="${CXXFLAGS_OPT}"

  abi_env_DEFS="${DEFS}"

  abi_env_FC="${FC}"

  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_OPT="${FC_LDFLAGS_OPT}"

  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_OPT="${FC_LIBS_OPT}"

  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_OPT="${FCFLAGS_OPT}"

  abi_env_LTXFLAGS="${LTXFLAGS}"

  abi_env_MDFLAGS="${MDFLAGS}"

  abi_env_MPI_CC_LDFLAGS="${MPI_CC_LDFLAGS}"

  abi_env_MPI_CC_LIBS="${MPI_CC_LIBS}"

  abi_env_MPI_CXX_LIBS="${MPI_CXX_LIBS}"

  abi_env_MPI_FC_LIBS="${MPI_FC_LIBS}"

  abi_env_MPI_CFLAGS="${MPI_CFLAGS}"

  abi_env_MPI_CPPFLAGS="${MPI_CPPFLAGS}"

  abi_env_MPI_CXX_LDFLAGS="${MPI_CXX_LDFLAGS}"

  abi_env_MPI_CXXFLAGS="${MPI_CXXFLAGS}"

  abi_env_MPI_FC_LDFLAGS="${MPI_FC_LDFLAGS}"

  abi_env_MPI_FCFLAGS="${MPI_FCFLAGS}"

  abi_env_MPI_RUNNER="${MPI_RUNNER}"

  abi_env_PDFFLAGS="${PDFFLAGS}"



# Look for the C++ compiler
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


  test -n "$ac_ct_CXX" && break
done

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

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

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

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

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

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

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

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

int
main ()
{

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

	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

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


fi

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

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

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CXX"  am_compiler_list=

{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    case $depmode in
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    none) break ;;
    esac
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.
    if depmode=$depmode \
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

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

fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
fi


if test "${CXX}" = ""; then
 { $as_echo "$as_me:$LINENO: WARNING: no C++ compiler found" >&5
$as_echo "$as_me: WARNING: no C++ compiler found" >&2;}
fi
 if test "${abi_cxx_vendor}" = ""; then
  abi_cxx_vendor="unknown"
 fi

  { $as_echo "$as_me:$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} -v -V 2>&1`
 abi_result=`echo "${cxx_info_string}" | head -n 1 | grep 'Intel(R) C++ Compiler'`
 if test "${abi_result}" = ""; then
  abi_result="no"
  cxx_info_string=""
  abi_cxx_vendor="unknown"
  abi_cxx_version="unknown"
 else

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

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

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

  abi_cxx_vendor="gnu"
  abi_cxx_version=`echo ${cxx_info_string} | sed -e 's/.*(GCC) //; 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

  cxx_info_string=`${CXX} -V 2>&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

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

  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} --version 2>&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

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

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

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

  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

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

  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} -qversion 2>&1 | head -1`
 cxx_garbage=`${CXX} -qversion 2>&1 | wc -l | sed -e 's/ //g'`
 abi_result=`echo "${cxx_info_string}" | grep 'IBM(R) XL C/C++'`
 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

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

   abi_cxx_vendor="ibm"
   abi_cxx_version="unknown"
   abi_result="yes"
  fi
 else

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

  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
  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:$LINENO: result: ${abi_cxx_vendor} ${abi_cxx_version}" >&5
$as_echo "${abi_cxx_vendor} ${abi_cxx_version}" >&6; }





# Restore back CXXFLAGS
CXXFLAGS="${abi_env_CXXFLAGS}"

# Warn if no C compiler is available
if test "${CXX}" = ""; then
 { $as_echo "$as_me:$LINENO: WARNING: no C++ compiler available" >&5
$as_echo "$as_me: WARNING: no C++ compiler available" >&2;}
fi

# Apply tricks
if test "${enable_tricks_cxx}" = "yes"; then

 if test "${abi_cxx_vendor}" != "UNKNOWN"; then
  { $as_echo "$as_me:$LINENO: applying C++ compiler tricks (type: ${abi_cxx_vendor}, version: ${abi_cxx_version})" >&5
$as_echo "$as_me: applying C++ compiler tricks (type: ${abi_cxx_vendor}, version: ${abi_cxx_version})" >&6;}
 fi

 case "${abi_cxx_vendor}" in

  compaq)
   if test "${ac_cv_c_bigendian}" = "yes"; then
    CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA} -convert big_endian"
   fi
   ;;

  gnu)
   case "${target}" in
    mips*)
     CXXFLAGS_64BITS="-mabi=64"
     ;;
    *)
     CXXFLAGS_64BITS="-m64"
     ;;
   esac
   ;;

  ibm)
   CXXFLAGS_64BITS="-q64"
   ;;

  intel)
   CXX_LDFLAGS_EXTRA="${CXX_LDFLAGS_EXTRA} -static-libcxa -i-static"
   case "${abi_cxx_version}" in
    9.0|9.1|10.0|10.1)
     CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA} -vec-report0"
     ;;
   esac
   ;;

  pathscale)
   CXXFLAGS_64BITS="-m64"
   ;;

 esac

 if test "${enable_64bit_flags}" = "yes"; then
  { $as_echo "$as_me:$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:$LINENO: result: none" >&5
$as_echo "none" >&6; }
  else
   { $as_echo "$as_me:$LINENO: result: ${CXXFLAGS_64BITS}" >&5
$as_echo "${CXXFLAGS_64BITS}" >&6; }
   CXX="${CXX} ${CXXFLAGS_64BITS}"
  fi
 else
  CXXFLAGS_64BITS=""
 fi
fi

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

#
# 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_AR="${AR}"

  abi_env_ARFLAGS="${ARFLAGS}"

  abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

  abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

  abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

  abi_env_ARFLAGS_OPT="${ARFLAGS_OPT}"

  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_OPT="${CC_LDFLAGS_OPT}"

  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_OPT="${CC_LIBS_OPT}"

  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_OPT="${CFLAGS_OPT}"

  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_OPT="${CPPFLAGS_OPT}"

  abi_env_CXX="${CXX}"

  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_OPT="${CXX_LDFLAGS_OPT}"

  abi_env_CXX_LIBS="${CXX_LIBS}"

  abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

  abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

  abi_env_CXX_LIBS_OPT="${CXX_LIBS_OPT}"

  abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

  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_OPT="${CXXFLAGS_OPT}"

  abi_env_DEFS="${DEFS}"

  abi_env_FC="${FC}"

  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_OPT="${FC_LDFLAGS_OPT}"

  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_OPT="${FC_LIBS_OPT}"

  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_OPT="${FCFLAGS_OPT}"

  abi_env_LTXFLAGS="${LTXFLAGS}"

  abi_env_MDFLAGS="${MDFLAGS}"

  abi_env_MPI_CC_LDFLAGS="${MPI_CC_LDFLAGS}"

  abi_env_MPI_CC_LIBS="${MPI_CC_LIBS}"

  abi_env_MPI_CXX_LIBS="${MPI_CXX_LIBS}"

  abi_env_MPI_FC_LIBS="${MPI_FC_LIBS}"

  abi_env_MPI_CFLAGS="${MPI_CFLAGS}"

  abi_env_MPI_CPPFLAGS="${MPI_CPPFLAGS}"

  abi_env_MPI_CXX_LDFLAGS="${MPI_CXX_LDFLAGS}"

  abi_env_MPI_CXXFLAGS="${MPI_CXXFLAGS}"

  abi_env_MPI_FC_LDFLAGS="${MPI_FC_LDFLAGS}"

  abi_env_MPI_FCFLAGS="${MPI_FCFLAGS}"

  abi_env_MPI_RUNNER="${MPI_RUNNER}"

  abi_env_PDFFLAGS="${PDFFLAGS}"



# Restore back FCFLAGS
FCFLAGS="${abi_env_FCFLAGS}"

# Check for compiler
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:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_FC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$FC"; then
  ac_cv_prog_FC="$FC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


    test -n "$FC" && break
  done
fi
if test -z "$FC"; then
  ac_ct_FC=$FC
  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_FC"; then
  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_FC="$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


  test -n "$ac_ct_FC" && break
done

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


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

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

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

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_fc_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FCFLAGS+set}
ac_save_FFLAGS=$FCFLAGS
FCFLAGS=
{ $as_echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
$as_echo_n "checking whether $FC accepts -g... " >&6; }
if test "${ac_cv_prog_fc_g+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  FCFLAGS=-g
cat >conftest.$ac_ext <<_ACEOF
      program main

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

	ac_cv_prog_fc_g=no
fi

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

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
$as_echo "$ac_cv_prog_fc_g" >&6; }
if test "$ac_test_FFLAGS" = set; then
  FCFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_fc_g = yes; then
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
    FCFLAGS="-g -O2"
  else
    FCFLAGS="-g"
  fi
else
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
    FCFLAGS="-O2"
  else
    FCFLAGS=
  fi
fi

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

if test "${FC}" = ""; then
 { { $as_echo "$as_me:$LINENO: error: no Fortran compiler found" >&5
$as_echo "$as_me: error: no Fortran compiler found" >&2;}
   { (exit 1); exit 1; }; }
fi

 abi_fc_vendor="${with_fc_vendor}"
 abi_fc_version="${with_fc_version}"

 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:$LINENO: checking which type of Fortran compiler we have" >&5
$as_echo_n "checking which type of Fortran compiler we have... " >&6; }

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

  fc_info_string=`${FC} --version 2>&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

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

  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
 if test "${abi_fc_vendor}" = "unknown"; then

  fc_info_string=`${FC} --version 2>&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

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

  abi_fc_vendor="gnu"
  abi_fc_version=`echo ${abi_result} | sed -e 's/^[^(]*([^)]*) //; s/ .*//'`
  abi_result="yes"
 fi

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

  fc_info_string=`${FC} -v -V 2>&1 | sed -e '/^ifc: warning/d'`
 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

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

  abi_fc_vendor="intel"
  abi_fc_version=`echo "${fc_info_string}" | grep '^Version' | sed -e 's/Version //;s/ .*//;s/ //g' | head -n 1`
  if test "${abi_fc_version}" = ""; then
   abi_fc_version="unknown"
  fi
  abi_result="yes"
 fi

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

  fc_info_string=`${FC} -version 2>&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

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

  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
 if test "${abi_fc_vendor}" = "unknown"; then

  fc_info_string=`${FC} -V 2>&1 | sed -e '/^$/d'`
 abi_result=`echo "${fc_info_string}" | grep '^pgf9[05]' | grep -v 'No files to process'`
 if test "${abi_result}" = ""; then
  abi_result="no"
  fc_info_string=""
  abi_fc_vendor="unknown"
  abi_fc_version="unknown"
 else

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

  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"
  else
   if test "${abi_fc_version}" = "6.0"; then

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

   fi
  fi
  abi_result="yes"
 fi

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

  fc_info_string=`${FC} -version 2>&1 | sed -e 's/^	//' | grep '^Compaq Fortran Compiler'`
 abi_result="${fc_info_string}"
 if test "${abi_result}" = ""; then
  fc_info_string=`${FC} -version 2>&1 | sed -e 's/^	//' | grep '^HP Fortran Compiler'`
  abi_result="${fc_info_string}"
 fi
 if test "${abi_result}" = ""; then
  abi_result="no"
  fc_info_string=""
  abi_fc_vendor="unknown"
  abi_fc_version="unknown"
 else

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

  abi_fc_vendor="compaq"
  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
 if test "${abi_fc_vendor}" = "unknown"; then

  fc_info_string=`${FC} -V 2> /dev/null`
 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

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

  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
 if test "${abi_fc_vendor}" = "unknown"; then

  fc_info_string=`${FC} -version 2>&1 | sed -e '/^$/d'`
 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

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

  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
 if test "${abi_fc_vendor}" = "unknown"; then

  fc_info_string=`${FC} --version 2>&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

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

  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
 if test "${abi_fc_vendor}" = "unknown"; then

  fc_info_string=`${FC} -V 2> /dev/null`
 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

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

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

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

  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
 if test "${abi_fc_vendor}" = "unknown"; then

  fc_info_string=`${FC} -V 2> /dev/null`
 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

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

  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
  if test "${abi_fc_vendor}" = "unknown"; then

  fc_info_string=`${FC} -qversion 2>&1`
 fc_garbage=`${FC} -qversion 2>&1 | wc -l | sed -e 's/ //g'`
 abi_result=`echo "${fc_info_string}" | grep 'IBM(R) XL Fortran'`
 if test "${abi_result}" = ""; then
  abi_result=`echo "${fc_info_string}" | grep 'IBM 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

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

   abi_fc_vendor="ibm"
   abi_fc_version="unknown"
   abi_result="yes"
  fi
 else

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

  abi_fc_vendor="ibm"
  abi_fc_version=`echo "${abi_result}" | sed -e 's/.* V\([0-9\.]*\) .*/\1/'`
  if test "${abi_fc_version}" = "${abi_result}"; then
   abi_fc_version="unknown"
  fi
  abi_result="yes"
 fi

 fi

  if test "${abi_fc_vendor}" = "unknown"; then
  abi_fc_vendor="generic"
 fi

  if test "${abi_fc_vendor}" = "unknown"; then
  abi_fc_version="0.0"
 else
  abi_fc_version=`echo ${abi_fc_version} | cut -d. -f1-2`
 fi

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





   fc_has_exit="no"

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


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
 ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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

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

 fi

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

  fc_has_flush="no"

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


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
 ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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

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

 fi

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

  fc_has_gamma="no"

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


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
 ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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

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

 fi

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



# Fail if no Fortran compiler is available
if test "${FC}" = ""; then
 { { $as_echo "$as_me:$LINENO: error: no Fortran compiler available" >&5
$as_echo "$as_me: error: no Fortran compiler available" >&2;}
   { (exit 1); exit 1; }; }
fi

# Apply tricks as soon as possible
if test "${enable_tricks_fc}" = "yes"; then

 if test "${abi_fc_vendor}" != "UNKNOWN"; then
  { $as_echo "$as_me:$LINENO: applying Fortran compiler tricks (type: ${abi_fc_vendor}, version: ${abi_fc_version})" >&5
$as_echo "$as_me: applying Fortran compiler tricks (type: ${abi_fc_vendor}, version: ${abi_fc_version})" >&6;}
 fi

 case "${abi_fc_vendor}" in

  absoft)
   abi_fc_wrap="yes"
   ;;

  compaq)
   if test "${ac_cv_c_bigendian}" = "yes"; then
    FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -convert big_endian"
   fi
   ;;

  fujitsu)
   FCFLAGS_FREEFORM="-Free"
   FCFLAGS_FIXEDFORM="-Fixed"
   FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -Am -Ee -Ep"
   abi_fc_wrap="yes"
   ;;

  g95)
   FCFLAGS_64BITS="-m64"
   ;;

  gnu)
   FCFLAGS_64BITS="-m64"
   FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -ffree-line-length-none"
   ;;

  hitachi)
   FCFLAGS_EXTRA="-hf95 -nosave -nohugeary"
   ;;

  ibm)
   FCFLAGS_64BITS="-q64"
   FCFLAGS_FREEFORM="-qsuffix=cpp=F90:f=f90 -qfree=f90"
   FCFLAGS_FIXEDFORM="-qsuffix=cpp=F:f=f -qfixed"
   abi_fc_wrap="yes"
   ;;

  intel)
   case "${abi_fc_version}" in
    7.*)
     FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -132"
     FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA} -Vaxlib"
     ;;

    8.0)
     { $as_echo "$as_me:$LINENO: WARNING: IFORT 8.0 is severely buggy and not able to produce reliable ABINIT binaries" >&5
$as_echo "$as_me: WARNING: IFORT 8.0 is severely buggy and not able to produce reliable ABINIT binaries" >&2;}
     { { $as_echo "$as_me:$LINENO: error: Please use another version of IFORT, or another compiler" >&5
$as_echo "$as_me: error: Please use another version of IFORT, or another compiler" >&2;}
   { (exit 80); exit 80; }; }
     ;;

    8.1)
     FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -extend_source"
     FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA} -static-libcxa"
     ;;

    9.0|9.1|10.0|10.1)
     FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -extend_source"
     FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA} -i-static -static-libcxa"
     case "${build_cpu}" in
      ia64)
       ;;
      *)
       FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -vec-report0"
       ;;
     esac
     ;;

   esac
   ;;

  mipspro)
   FCFLAGS_64BITS="-64"
   if test "${abi_cpu_type}" != ""; then
    FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -${abi_cpu_type}"
   fi
   abi_fc_wrap="yes"
   ;;

  pathscale)
   FCFLAGS_64BITS="-m64"
   FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -extend-source"
   ;;

  pgi)
   mkdir -p "${abinit_builddir}/tmp-modules"
   FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -module ${abinit_builddir}/tmp-modules -I${abinit_builddir}/tmp-modules"
   FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -Mextend"
   case "${abi_fc_version}" in
    6.0)
     FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -Msave"
     ;;
   esac
   ;;

  sun)
   mkdir -p "${abinit_builddir}/tmp-modules"
   FCFLAGS_EXTRA='-moddir=$(abinit_builddir)/tmp-modules -M$(abinit_builddir)/tmp-modules'
   ;;

 esac

 if test "${enable_64bit_flags}" = "yes"; then
  { $as_echo "$as_me:$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:$LINENO: result: none" >&5
$as_echo "none" >&6; }
  else
   { $as_echo "$as_me:$LINENO: result: ${FCFLAGS_64BITS}" >&5
$as_echo "${FCFLAGS_64BITS}" >&6; }
   FC="${FC} ${FCFLAGS_64BITS}"
  fi
 else
  FCFLAGS_64BITS=""
 fi
fi

# Wrap Fortran compiler calls if needed or requested
if test "${enable_fc_wrapper}" = "yes"; then
 abi_fc_wrap="yes"
fi

if test "${abi_fc_wrap}" = "yes"; then
 { $as_echo "$as_me:$LINENO: Fortran compiler calls will be wrapped" >&5
$as_echo "$as_me: Fortran compiler calls will be wrapped" >&6;}
 if test "${TRUE_CPP}" = ""; then
  { { $as_echo "$as_me:$LINENO: error: the Fortran wrapper requires a working C preprocessor" >&5
$as_echo "$as_me: error: the Fortran wrapper requires a working C preprocessor" >&2;}
   { (exit 1); exit 1; }; }
 fi
fi

# The IBM Fortran compiler is too buggy to compile standard Fortran 90 files
# The following measure should suffice in most cases (let's hope!)
if test "${abi_fc_vendor}" = "ibm"; then
 FC_SRCEXT="f"
else
 FC_SRCEXT="F90"
fi

# Check whether top read file list from standard input
if test "${enable_stdin}" = "no"; then

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

fi

# Determine whether to use C clock for timings
{ $as_echo "$as_me:$LINENO: checking whether to use C clock for timings" >&5
$as_echo_n "checking whether to use C clock for timings... " >&6; }
 if test "${enable_cclock}" = "yes"; then
  DO_BUILD_CCLOCK_TRUE=
  DO_BUILD_CCLOCK_FALSE='#'
else
  DO_BUILD_CCLOCK_TRUE='#'
  DO_BUILD_CCLOCK_FALSE=
fi

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

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

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

# FIXME: set Fortran module extension
MODEXT="mod"


# Determine Fortran-C name mangling scheme
if test "${abi_fc_wrappers}" = "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:$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
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_fc_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_FFLAGS=$FCFLAGS
FCFLAGS="$FCFLAGS $ac_verb"
eval "set x $ac_link"
shift
$as_echo "$as_me:$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_FFLAGS

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:$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: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$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:$LINENO: result: $ac_cv_prog_fc_v" >&5
$as_echo "$ac_cv_prog_fc_v" >&6; }
{ $as_echo "$as_me:$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_FFLAGS=$FCFLAGS
FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
eval "set x $ac_link"
shift
$as_echo "$as_me:$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_FFLAGS

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

	ac_cv_fortran_dummy_main=unknown
fi

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

 if test $ac_cv_fortran_dummy_main = unknown; then
   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* 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
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_fortran_dummy_main=$ac_func; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
   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:$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

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

  fi
fi
else
  { { $as_echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
See \`config.log' for more details." >&5
$as_echo "$as_me: error: linking to Fortran libraries from C fails
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi


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

ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
{ $as_echo "$as_me:$LINENO: checking for Fortran 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
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because 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
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$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_success=yes; break 2
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because 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
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$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_success_extra=yes; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
     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: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ { $as_echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compile a simple Fortran program
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

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

fi
{ $as_echo "$as_me:$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")
          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC(name,NAME) name
_ACEOF

          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC_(name,NAME) name
_ACEOF
 ;;
  "lower case, no underscore, extra underscore")
          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC(name,NAME) name
_ACEOF

          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC_(name,NAME) name ## _
_ACEOF
 ;;
  "lower case, underscore, no extra underscore")
          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC(name,NAME) name ## _
_ACEOF

          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC_(name,NAME) name ## _
_ACEOF
 ;;
  "lower case, underscore, extra underscore")
          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC(name,NAME) name ## _
_ACEOF

          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC_(name,NAME) name ## __
_ACEOF
 ;;
  "upper case, no underscore, no extra underscore")
          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC(name,NAME) NAME
_ACEOF

          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC_(name,NAME) NAME
_ACEOF
 ;;
  "upper case, no underscore, extra underscore")
          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC(name,NAME) NAME
_ACEOF

          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC_(name,NAME) NAME ## _
_ACEOF
 ;;
  "upper case, underscore, no extra underscore")
          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC(name,NAME) NAME ## _
_ACEOF

          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC_(name,NAME) NAME ## _
_ACEOF
 ;;
  "upper case, underscore, extra underscore")
          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC(name,NAME) NAME ## _
_ACEOF

          cat >>confdefs.h <<\_ACEOF
#define FC_FUNC_(name,NAME) NAME ## __
_ACEOF
 ;;
  *)
          { $as_echo "$as_me:$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

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

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


  test -n "$BAZAAR" && break
done

fi

# Set Bazaar variables
bzr_branch=""
bzr_revno=""
bzr_clean=""
if test "${BAZAAR}" != "" -a -d "${abinit_srcdir}/.bzr"; then
  { $as_echo "$as_me:$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}`

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

fi

# FIXME: this is not generic enough (should use Libtool)
if test "${enable_bindings}" = "yes"; then
  if test "${abi_cc_vendor}" = "gnu"; then
    { $as_echo "$as_me:$LINENO: setting PIC flags for C compiler" >&5
$as_echo "$as_me: setting PIC flags for C compiler" >&6;}
    CFLAGS_EXTRA="${CFLAGS_EXTRA} -fPIC"
  fi
  if test "${abi_cxx_vendor}" = "gnu"; then
    { $as_echo "$as_me:$LINENO: setting PIC flags for C++ compiler" >&5
$as_echo "$as_me: setting PIC flags for C++ compiler" >&6;}
    CXXFLAGS_EXTRA="${CXXFLAGS_EXTRA} -fPIC"
  fi
  if test "${abi_fc_vendor}" = "gnu"; then
    { $as_echo "$as_me:$LINENO: setting PIC flags for Fortran compiler" >&5
$as_echo "$as_me: setting PIC flags for Fortran compiler" >&6;}
    FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -fPIC"
  fi
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_AR="${AR}"

  abi_env_ARFLAGS="${ARFLAGS}"

  abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

  abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

  abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

  abi_env_ARFLAGS_OPT="${ARFLAGS_OPT}"

  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_OPT="${CC_LDFLAGS_OPT}"

  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_OPT="${CC_LIBS_OPT}"

  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_OPT="${CFLAGS_OPT}"

  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_OPT="${CPPFLAGS_OPT}"

  abi_env_CXX="${CXX}"

  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_OPT="${CXX_LDFLAGS_OPT}"

  abi_env_CXX_LIBS="${CXX_LIBS}"

  abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

  abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

  abi_env_CXX_LIBS_OPT="${CXX_LIBS_OPT}"

  abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

  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_OPT="${CXXFLAGS_OPT}"

  abi_env_DEFS="${DEFS}"

  abi_env_FC="${FC}"

  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_OPT="${FC_LDFLAGS_OPT}"

  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_OPT="${FC_LIBS_OPT}"

  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_OPT="${FCFLAGS_OPT}"

  abi_env_LTXFLAGS="${LTXFLAGS}"

  abi_env_MDFLAGS="${MDFLAGS}"

  abi_env_MPI_CC_LDFLAGS="${MPI_CC_LDFLAGS}"

  abi_env_MPI_CC_LIBS="${MPI_CC_LIBS}"

  abi_env_MPI_CXX_LIBS="${MPI_CXX_LIBS}"

  abi_env_MPI_FC_LIBS="${MPI_FC_LIBS}"

  abi_env_MPI_CFLAGS="${MPI_CFLAGS}"

  abi_env_MPI_CPPFLAGS="${MPI_CPPFLAGS}"

  abi_env_MPI_CXX_LDFLAGS="${MPI_CXX_LDFLAGS}"

  abi_env_MPI_CXXFLAGS="${MPI_CXXFLAGS}"

  abi_env_MPI_FC_LDFLAGS="${MPI_FC_LDFLAGS}"

  abi_env_MPI_FCFLAGS="${MPI_FCFLAGS}"

  abi_env_MPI_RUNNER="${MPI_RUNNER}"

  abi_env_PDFFLAGS="${PDFFLAGS}"



# Disable shared objects (may change in a distant future)
# Note: Libtool-provided macro
#AC_DISABLE_SHARED

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

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


 test "${AR}" = "/bin/ar" -o "${AR}" = "/usr/bin/ar" && AR="ar"
fi
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

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

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


# Look for linker (not used for now)
#AC_PROG_LD

# Apply tricks
if test "${enable_tricks_ar}" = "yes"; then

   test "${ARFLAGS_CMD}" = "" && ARFLAGS_CMD="rc"

 case "${target_os}" in

  aix*)
   ARFLAGS_64BITS="-X 64"
   ;;

 esac



 if test "${enable_64bit_flags}" = "yes"; then
  { $as_echo "$as_me:$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:$LINENO: result: none" >&5
$as_echo "none" >&6; }
  else
   { $as_echo "$as_me:$LINENO: result: ${ARFLAGS_64BITS}" >&5
$as_echo "${ARFLAGS_64BITS}" >&6; }
   AR="${AR} ${ARFLAGS_64BITS}"
  fi
 else
  ARFLAGS_64BITS=""
 fi
fi

# Import command-line options
if test "${with_ar_dbgflags}" != ""; then
 ARFLAGS_DEBUG="${with_ar_dbgflags}"
fi
if test "${with_ar_optflags}" != ""; then
 ARFLAGS_OPT="${with_ar_optflags}"
fi

# 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




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

#
# 64-bit support
#
# NOTES:
#
#   * This step requires that the tricks have been applied.
#
#   * Please do not try to set-up the *_64BITS variables manually, as they
#     will systematically be overwritten. These flags should be modified by
#     the --with-64bit-flags option only (see documentation).
#


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


{ $as_echo "$as_me:$LINENO: this section is still under development" >&5
$as_echo "$as_me: this section is still under development" >&6;}
{ $as_echo "$as_me:$LINENO: checking for a 64-bit architecture" >&5
$as_echo_n "checking for a 64-bit architecture... " >&6; }
{ $as_echo "$as_me:$LINENO: result: ${abi_cpu_64bits}" >&5
$as_echo "${abi_cpu_64bits}" >&6; }

if test "${abi_cpu_64bits}" = "yes"; then
 { $as_echo "$as_me:$LINENO: checking at which stage we may use 64-bit flags (not implemented yet)" >&5
$as_echo_n "checking at which stage we may use 64-bit flags (not implemented yet)... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${enable_64bit_flags}" >&5
$as_echo "${enable_64bit_flags}" >&6; }
 { $as_echo "$as_me:$LINENO: checking which 64-bit flags to use (not implemented yet)" >&5
$as_echo_n "checking which 64-bit flags to use (not implemented yet)... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${with_64bit_flags}" >&5
$as_echo "${with_64bit_flags}" >&6; }
 if test "${enable_64bit_flags}" != "no"; then
  { $as_echo "$as_me:$LINENO: WARNING: 64-bit flags currently apply globally" >&5
$as_echo "$as_me: WARNING: 64-bit flags currently apply globally" >&2;}
 fi
else
 enable_64bit_flags="no"
fi

# Reset flags when disabled
if test "${enable_64bit_flags}" = "no"; then
 ARFLAGS_64BITS=""
 CPPFLAGS_64BITS=""
 CFLAGS_64BITS=""
 CC_LDFLAGS_64BITS=""
 CXXFLAGS_64BITS=""
 CXX_LDFLAGS_64BITS=""
 FCFLAGS_64BITS=""
 FC_LDFLAGS_64BITS=""
fi

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

#
# Optimizations and debugging
#
# NOTE:
#
#   * Please do not try to set-up the *FLAGS_OPT variables manually, as they
#     will systematically be overwritten. These flags should be modified by
#     the --with-*-optflags options only.
#


 abi_sec_title="Optimizations and 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 ""


# Load optimizations from the optflags database
if test "${enable_debug}" != "yes" -a "${enable_tricks_opt}" = "yes"; then
 { $as_echo "$as_me:$LINENO: checking for optimization level" >&5
$as_echo_n "checking for optimization level... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${enable_optlevel}" >&5
$as_echo "${enable_optlevel}" >&6; }
 if test "${CFLAGS}" = ""; then

  abi_result=""
 abi_optflags_file=""

  for tmp_optflags_file in \
  "${ac_top_srcdir}/config/optflags/generic_cc/all/all.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_cc_vendor}_cc/all/all.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_cc_vendor}_cc/all/${abi_cpu_vendor}_${abi_cpu_model}.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_cc_vendor}_cc/${abi_cc_version}/all.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_cc_vendor}_cc/${abi_cc_version}/${abi_cpu_vendor}_${abi_cpu_model}.opt"; do

  if test -s "${tmp_optflags_file}"; then
   abi_optflags_file="${tmp_optflags_file}"
   abi_result=`echo "${abi_optflags_file}" | \
    sed -e 's,.*optflags/,,; s,\.opt$,,; s,^\([^_]*\)_\([^/]*\),\2: \1,'`
  fi
 done

  #AC_MSG_NOTICE([checking ${abi_optflags_file}])
 if test "${abi_optflags_file}" != ""; then
  { $as_echo "$as_me:$LINENO: loading optimizations for ${abi_result}" >&5
$as_echo "$as_me: loading optimizations for ${abi_result}" >&6;}
  . "${abi_optflags_file}"
 else
  { $as_echo "$as_me:$LINENO: WARNING: could not find suitable optimizations" >&5
$as_echo "$as_me: WARNING: could not find suitable optimizations" >&2;}
 fi


  abi_result=""
 abi_dirflags_file=""

  for tmp_dirflags_file in \
  "${ac_top_srcdir}/config/optflags/${abi_cc_vendor}_cc/all/all.dir" \
  "${ac_top_srcdir}/config/optflags/${abi_cc_vendor}_cc/all/${abi_cpu_vendor}_${abi_cpu_model}.dir" \
  "${ac_top_srcdir}/config/optflags/${abi_cc_vendor}_cc/${abi_cc_version}/all.dir" \
  "${ac_top_srcdir}/config/optflags/${abi_cc_vendor}_cc/${abi_cc_version}/${abi_cpu_vendor}_${abi_cpu_model}.dir"; do

  if test -s "${tmp_dirflags_file}"; then
   abi_dirflags_file="${tmp_dirflags_file}"
   abi_result=`echo "${abi_dirflags_file}" | \
    sed -e 's,.*optflags/,,; s,\.dir$,,; s,^\([^_]*\)_\([^/]*\),\2: \1,'`
  fi
 done

  #AC_MSG_NOTICE([checking ${abi_dirflags_file}])
 if test "${abi_dirflags_file}" != ""; then
  { $as_echo "$as_me:$LINENO: loading customizations for ${abi_result}" >&5
$as_echo "$as_me: loading customizations for ${abi_result}" >&6;}
  . "${abi_dirflags_file}"
 fi

 else
  { $as_echo "$as_me:$LINENO: no C optimizations - using provided CFLAGS instead" >&5
$as_echo "$as_me: no C optimizations - using provided CFLAGS instead" >&6;}
  CFLAGS_OPT=""
 fi
 if test "${CXXFLAGS}" = ""; then

  abi_result=""
 abi_optflags_file=""

  for tmp_optflags_file in \
  "${ac_top_srcdir}/config/optflags/generic_cxx/all/all.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_cxx_vendor}_cxx/all/all.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_cxx_vendor}_cxx/all/${abi_cpu_vendor}_${abi_cpu_model}.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_cxx_vendor}_cxx/${abi_cxx_version}/all.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_cxx_vendor}_cxx/${abi_cxx_version}/${abi_cpu_vendor}_${abi_cpu_model}.opt"; do

  if test -s "${tmp_optflags_file}"; then
   abi_optflags_file="${tmp_optflags_file}"
   abi_result=`echo "${abi_optflags_file}" | \
    sed -e 's,.*optflags/,,; s,\.opt$,,; s,^\([^_]*\)_\([^/]*\),\2: \1,'`
  fi
 done

  #AC_MSG_NOTICE([checking ${abi_optflags_file}])
 if test "${abi_optflags_file}" != ""; then
  { $as_echo "$as_me:$LINENO: loading optimizations for ${abi_result}" >&5
$as_echo "$as_me: loading optimizations for ${abi_result}" >&6;}
  . "${abi_optflags_file}"
 else
  { $as_echo "$as_me:$LINENO: WARNING: could not find suitable optimizations" >&5
$as_echo "$as_me: WARNING: could not find suitable optimizations" >&2;}
 fi


  abi_result=""
 abi_dirflags_file=""

  for tmp_dirflags_file in \
  "${ac_top_srcdir}/config/optflags/${abi_cxx_vendor}_cxx/all/all.dir" \
  "${ac_top_srcdir}/config/optflags/${abi_cxx_vendor}_cxx/all/${abi_cpu_vendor}_${abi_cpu_model}.dir" \
  "${ac_top_srcdir}/config/optflags/${abi_cxx_vendor}_cxx/${abi_cxx_version}/all.dir" \
  "${ac_top_srcdir}/config/optflags/${abi_cxx_vendor}_cxx/${abi_cxx_version}/${abi_cpu_vendor}_${abi_cpu_model}.dir"; do

  if test -s "${tmp_dirflags_file}"; then
   abi_dirflags_file="${tmp_dirflags_file}"
   abi_result=`echo "${abi_dirflags_file}" | \
    sed -e 's,.*optflags/,,; s,\.dir$,,; s,^\([^_]*\)_\([^/]*\),\2: \1,'`
  fi
 done

  #AC_MSG_NOTICE([checking ${abi_dirflags_file}])
 if test "${abi_dirflags_file}" != ""; then
  { $as_echo "$as_me:$LINENO: loading customizations for ${abi_result}" >&5
$as_echo "$as_me: loading customizations for ${abi_result}" >&6;}
  . "${abi_dirflags_file}"
 fi

 else
  { $as_echo "$as_me:$LINENO: no C++ optimizations - using provided CXXFLAGS instead" >&5
$as_echo "$as_me: no C++ optimizations - using provided CXXFLAGS instead" >&6;}
  CXXFLAGS_OPT=""
 fi
 if test "${FCFLAGS}" = ""; then

  abi_result=""
 abi_optflags_file=""

  for tmp_optflags_file in \
  "${ac_top_srcdir}/config/optflags/generic_fc/all/all.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_fc_vendor}_fc/all/all.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_fc_vendor}_fc/all/${abi_cpu_vendor}_${abi_cpu_model}.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_fc_vendor}_fc/${abi_fc_version}/all.opt" \
  "${ac_top_srcdir}/config/optflags/${abi_fc_vendor}_fc/${abi_fc_version}/${abi_cpu_vendor}_${abi_cpu_model}.opt"; do

  if test -s "${tmp_optflags_file}"; then
   abi_optflags_file="${tmp_optflags_file}"
   abi_result=`echo "${abi_optflags_file}" | \
    sed -e 's,.*optflags/,,; s,\.opt$,,; s,^\([^_]*\)_\([^/]*\),\2: \1,'`
  fi
 done

  #AC_MSG_NOTICE([checking ${abi_optflags_file}])
 if test "${abi_optflags_file}" != ""; then
  { $as_echo "$as_me:$LINENO: loading optimizations for ${abi_result}" >&5
$as_echo "$as_me: loading optimizations for ${abi_result}" >&6;}
  . "${abi_optflags_file}"
 else
  { $as_echo "$as_me:$LINENO: WARNING: could not find suitable optimizations" >&5
$as_echo "$as_me: WARNING: could not find suitable optimizations" >&2;}
 fi


  abi_result=""
 abi_dirflags_file=""

  for tmp_dirflags_file in \
  "${ac_top_srcdir}/config/optflags/${abi_fc_vendor}_fc/all/all.dir" \
  "${ac_top_srcdir}/config/optflags/${abi_fc_vendor}_fc/all/${abi_cpu_vendor}_${abi_cpu_model}.dir" \
  "${ac_top_srcdir}/config/optflags/${abi_fc_vendor}_fc/${abi_fc_version}/all.dir" \
  "${ac_top_srcdir}/config/optflags/${abi_fc_vendor}_fc/${abi_fc_version}/${abi_cpu_vendor}_${abi_cpu_model}.dir"; do

  if test -s "${tmp_dirflags_file}"; then
   abi_dirflags_file="${tmp_dirflags_file}"
   abi_result=`echo "${abi_dirflags_file}" | \
    sed -e 's,.*optflags/,,; s,\.dir$,,; s,^\([^_]*\)_\([^/]*\),\2: \1,'`
  fi
 done

  #AC_MSG_NOTICE([checking ${abi_dirflags_file}])
 if test "${abi_dirflags_file}" != ""; then
  { $as_echo "$as_me:$LINENO: loading customizations for ${abi_result}" >&5
$as_echo "$as_me: loading customizations for ${abi_result}" >&6;}
  . "${abi_dirflags_file}"
 fi

 else
  { $as_echo "$as_me:$LINENO: no Fortran optimizations - using provided FCFLAGS instead" >&5
$as_echo "$as_me: no Fortran optimizations - using provided FCFLAGS instead" >&6;}
  FCFLAGS_OPT=""
 fi

 if test "${CFLAGS_OPT}" = ""; then
  CFLAGS_OPT=`eval echo "\\$cflags_opt_${enable_optlevel}"`
 else
  { $as_echo "$as_me:$LINENO: using C optimizations read from command-line" >&5
$as_echo "$as_me: using C optimizations read from command-line" >&6;}
 fi
 if test "${CC_LDFLAGS_OPT}" = ""; then
  CC_LDFLAGS_OPT=`eval echo "\\$cc_ldflags_opt_${enable_optlevel}"`
 else
  { $as_echo "$as_me:$LINENO: using C linker optimizations read from command-line" >&5
$as_echo "$as_me: using C linker optimizations read from command-line" >&6;}
 fi
 if test "${CXXFLAGS_OPT}" = ""; then
  CXXFLAGS_OPT=`eval echo "\\$cxxflags_opt_${enable_optlevel}"`
 else
  { $as_echo "$as_me:$LINENO: using C++ optimizations read from command-line" >&5
$as_echo "$as_me: using C++ optimizations read from command-line" >&6;}
 fi
 if test "${CXX_LDFLAGS_OPT}" = ""; then
  CXX_LDFLAGS_OPT=`eval echo "\\$cxx_ldflags_opt_${enable_optlevel}"`
 else
  { $as_echo "$as_me:$LINENO: using C++ linker optimizations read from command-line" >&5
$as_echo "$as_me: using C++ linker optimizations read from command-line" >&6;}
 fi
 if test "${FCFLAGS_OPT}" = ""; then
  FCFLAGS_OPT=`eval echo "\\$fcflags_opt_${enable_optlevel}"`
 else
  { $as_echo "$as_me:$LINENO: using Fortran optimizations read from command-line" >&5
$as_echo "$as_me: using Fortran optimizations read from command-line" >&6;}
 fi
 if test "${FC_LDFLAGS_OPT}" = ""; then
  FC_LDFLAGS_OPT=`eval echo "\\$fc_ldflags_opt_${enable_optlevel}"`
 else
  { $as_echo "$as_me:$LINENO: using Fortran linker optimizations read from command-line" >&5
$as_echo "$as_me: using Fortran linker optimizations read from command-line" >&6;}
 fi
else
 { $as_echo "$as_me:$LINENO: optimizations have been turned off" >&5
$as_echo "$as_me: optimizations have been turned off" >&6;}
fi

# Turn-on debug symbols if requested
if test "${enable_debug}" != "no"; then
 if test "${ac_cv_prog_cc_g}" = "yes"; then
  if test "${CFLAGS}" = "" -a "${CFLAGS_DEBUG}" = ""; then
   CFLAGS_DEBUG="-g"
   { $as_echo "$as_me:$LINENO: setting C debug flags to '-g'" >&5
$as_echo "$as_me: setting C debug flags to '-g'" >&6;}
  fi
 fi
 if test "${ac_cv_prog_cxx_g}" = "yes"; then
  if test "${CXXFLAGS}" = "" -a "${CXXFLAGS_DEBUG}" = ""; then
   CXXFLAGS_DEBUG="-g"
   { $as_echo "$as_me:$LINENO: setting C++ debug flags to '-g'" >&5
$as_echo "$as_me: setting C++ debug flags to '-g'" >&6;}
  fi
 fi
 if test "${ac_cv_prog_fc_g}" = "yes"; then
  if test "${FCFLAGS}" = "" -a "${FCFLAGS_DEBUG}" = ""; then
   FCFLAGS_DEBUG="-g"
   { $as_echo "$as_me:$LINENO: setting Fortran debug flags to '-g'" >&5
$as_echo "$as_me: setting Fortran debug flags to '-g'" >&6;}
  fi
 fi
fi

# Reset debug flags if debugging is not wanted
if test "${enable_debug}" = "no"; then
 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=""
 { $as_echo "$as_me:$LINENO: debugging has been turned off" >&5
$as_echo "$as_me: debugging has been turned off" >&6;}
fi

# Activate debug mode if requested
if test "${enable_debug}" = "yes"; then
 CFLAGS_OPT="-O0"
 CC_LDFLAGS_OPT=""
 CC_LIBS_OPT=""
 CXXFLAGS_OPT="-O0"
 CXX_LDFLAGS_OPT=""
 CXX_LIBS_OPT=""
 FCFLAGS_OPT="-O0"
 FC_LDFLAGS_OPT=""
 FC_LIBS_OPT=""
 ARFLAGS_OPT=""

 # Define preprocessing option

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

 { $as_echo "$as_me:$LINENO: debug mode activated" >&5
$as_echo "$as_me: debug mode activated" >&6;}
fi

# Enable per-directory Fortran optimizations
# (must be done only once FCFLAGS_OPT is set)
if test "${FCFLAGS}" = ""; then

 fcflags_opt_default="${FCFLAGS_OPT}"

 if test "${enable_debug}" = "no"; then
  { $as_echo "$as_me:$LINENO: enabling per-directory Fortran optimizations" >&5
$as_echo "$as_me: enabling per-directory Fortran optimizations" >&6;}
 fi


  if test "${fcflags_opt_defs}" = ""; then
  fcflags_opt_defs="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for defs is ${fcflags_opt_defs}" >&5
$as_echo "$as_me: optimization for defs is ${fcflags_opt_defs}" >&6;}
  else
   fcflags_opt_defs="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_interfaces}" = ""; then
  fcflags_opt_interfaces="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for interfaces is ${fcflags_opt_interfaces}" >&5
$as_echo "$as_me: optimization for interfaces is ${fcflags_opt_interfaces}" >&6;}
  else
   fcflags_opt_interfaces="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_00basis}" = ""; then
  fcflags_opt_00basis="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 00basis is ${fcflags_opt_00basis}" >&5
$as_echo "$as_me: optimization for 00basis is ${fcflags_opt_00basis}" >&6;}
  else
   fcflags_opt_00basis="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_lib00gsl}" = ""; then
  fcflags_opt_lib00gsl="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for lib00gsl is ${fcflags_opt_lib00gsl}" >&5
$as_echo "$as_me: optimization for lib00gsl is ${fcflags_opt_lib00gsl}" >&6;}
  else
   fcflags_opt_lib00gsl="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_lib00macroav}" = ""; then
  fcflags_opt_lib00macroav="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for lib00macroav is ${fcflags_opt_lib00macroav}" >&5
$as_echo "$as_me: optimization for lib00macroav is ${fcflags_opt_lib00macroav}" >&6;}
  else
   fcflags_opt_lib00macroav="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_lib01hidempi}" = ""; then
  fcflags_opt_lib01hidempi="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for lib01hidempi is ${fcflags_opt_lib01hidempi}" >&5
$as_echo "$as_me: optimization for lib01hidempi is ${fcflags_opt_lib01hidempi}" >&6;}
  else
   fcflags_opt_lib01hidempi="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_01manage_mpi}" = ""; then
  fcflags_opt_01manage_mpi="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 01manage_mpi is ${fcflags_opt_01manage_mpi}" >&5
$as_echo "$as_me: optimization for 01manage_mpi is ${fcflags_opt_01manage_mpi}" >&6;}
  else
   fcflags_opt_01manage_mpi="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_02toolbox}" = ""; then
  fcflags_opt_02toolbox="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 02toolbox is ${fcflags_opt_02toolbox}" >&5
$as_echo "$as_me: optimization for 02toolbox is ${fcflags_opt_02toolbox}" >&6;}
  else
   fcflags_opt_02toolbox="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_lib02fftnew}" = ""; then
  fcflags_opt_lib02fftnew="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for lib02fftnew is ${fcflags_opt_lib02fftnew}" >&5
$as_echo "$as_me: optimization for lib02fftnew is ${fcflags_opt_lib02fftnew}" >&6;}
  else
   fcflags_opt_lib02fftnew="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_lib03numeric}" = ""; then
  fcflags_opt_lib03numeric="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for lib03numeric is ${fcflags_opt_lib03numeric}" >&5
$as_echo "$as_me: optimization for lib03numeric is ${fcflags_opt_lib03numeric}" >&6;}
  else
   fcflags_opt_lib03numeric="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_11util}" = ""; then
  fcflags_opt_11util="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 11util is ${fcflags_opt_11util}" >&5
$as_echo "$as_me: optimization for 11util is ${fcflags_opt_11util}" >&6;}
  else
   fcflags_opt_11util="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_11contract}" = ""; then
  fcflags_opt_11contract="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 11contract is ${fcflags_opt_11contract}" >&5
$as_echo "$as_me: optimization for 11contract is ${fcflags_opt_11contract}" >&6;}
  else
   fcflags_opt_11contract="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_12spacepar}" = ""; then
  fcflags_opt_12spacepar="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 12spacepar is ${fcflags_opt_12spacepar}" >&5
$as_echo "$as_me: optimization for 12spacepar is ${fcflags_opt_12spacepar}" >&6;}
  else
   fcflags_opt_12spacepar="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_12parser}" = ""; then
  fcflags_opt_12parser="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 12parser is ${fcflags_opt_12parser}" >&5
$as_echo "$as_me: optimization for 12parser is ${fcflags_opt_12parser}" >&6;}
  else
   fcflags_opt_12parser="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_12geometry}" = ""; then
  fcflags_opt_12geometry="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 12geometry is ${fcflags_opt_12geometry}" >&5
$as_echo "$as_me: optimization for 12geometry is ${fcflags_opt_12geometry}" >&6;}
  else
   fcflags_opt_12geometry="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_12ffts}" = ""; then
  fcflags_opt_12ffts="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 12ffts is ${fcflags_opt_12ffts}" >&5
$as_echo "$as_me: optimization for 12ffts is ${fcflags_opt_12ffts}" >&6;}
  else
   fcflags_opt_12ffts="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_12nlstrain}" = ""; then
  fcflags_opt_12nlstrain="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 12nlstrain is ${fcflags_opt_12nlstrain}" >&5
$as_echo "$as_me: optimization for 12nlstrain is ${fcflags_opt_12nlstrain}" >&6;}
  else
   fcflags_opt_12nlstrain="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_13xml}" = ""; then
  fcflags_opt_13xml="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 13xml is ${fcflags_opt_13xml}" >&5
$as_echo "$as_me: optimization for 13xml is ${fcflags_opt_13xml}" >&6;}
  else
   fcflags_opt_13xml="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_13xc}" = ""; then
  fcflags_opt_13xc="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 13xc is ${fcflags_opt_13xc}" >&5
$as_echo "$as_me: optimization for 13xc is ${fcflags_opt_13xc}" >&6;}
  else
   fcflags_opt_13xc="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_13recipspace}" = ""; then
  fcflags_opt_13recipspace="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 13recipspace is ${fcflags_opt_13recipspace}" >&5
$as_echo "$as_me: optimization for 13recipspace is ${fcflags_opt_13recipspace}" >&6;}
  else
   fcflags_opt_13recipspace="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_13iovars}" = ""; then
  fcflags_opt_13iovars="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 13iovars is ${fcflags_opt_13iovars}" >&5
$as_echo "$as_me: optimization for 13iovars is ${fcflags_opt_13iovars}" >&6;}
  else
   fcflags_opt_13iovars="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_13io_mpi}" = ""; then
  fcflags_opt_13io_mpi="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 13io_mpi is ${fcflags_opt_13io_mpi}" >&5
$as_echo "$as_me: optimization for 13io_mpi is ${fcflags_opt_13io_mpi}" >&6;}
  else
   fcflags_opt_13io_mpi="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_13ionetcdf}" = ""; then
  fcflags_opt_13ionetcdf="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 13ionetcdf is ${fcflags_opt_13ionetcdf}" >&5
$as_echo "$as_me: optimization for 13ionetcdf is ${fcflags_opt_13ionetcdf}" >&6;}
  else
   fcflags_opt_13ionetcdf="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_13papi_counters}" = ""; then
  fcflags_opt_13papi_counters="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 13papi_counters is ${fcflags_opt_13papi_counters}" >&5
$as_echo "$as_me: optimization for 13papi_counters is ${fcflags_opt_13papi_counters}" >&6;}
  else
   fcflags_opt_13papi_counters="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_lib14cg}" = ""; then
  fcflags_opt_lib14cg="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for lib14cg is ${fcflags_opt_lib14cg}" >&5
$as_echo "$as_me: optimization for lib14cg is ${fcflags_opt_lib14cg}" >&6;}
  else
   fcflags_opt_lib14cg="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_14poisson}" = ""; then
  fcflags_opt_14poisson="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 14poisson is ${fcflags_opt_14poisson}" >&5
$as_echo "$as_me: optimization for 14poisson is ${fcflags_opt_14poisson}" >&6;}
  else
   fcflags_opt_14poisson="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_14wvl_wfs}" = ""; then
  fcflags_opt_14wvl_wfs="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 14wvl_wfs is ${fcflags_opt_14wvl_wfs}" >&5
$as_echo "$as_me: optimization for 14wvl_wfs is ${fcflags_opt_14wvl_wfs}" >&6;}
  else
   fcflags_opt_14wvl_wfs="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_14iowfdenpot}" = ""; then
  fcflags_opt_14iowfdenpot="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 14iowfdenpot is ${fcflags_opt_14iowfdenpot}" >&5
$as_echo "$as_me: optimization for 14iowfdenpot is ${fcflags_opt_14iowfdenpot}" >&6;}
  else
   fcflags_opt_14iowfdenpot="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_14bader}" = ""; then
  fcflags_opt_14bader="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 14bader is ${fcflags_opt_14bader}" >&5
$as_echo "$as_me: optimization for 14bader is ${fcflags_opt_14bader}" >&6;}
  else
   fcflags_opt_14bader="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_14occeig}" = ""; then
  fcflags_opt_14occeig="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 14occeig is ${fcflags_opt_14occeig}" >&5
$as_echo "$as_me: optimization for 14occeig is ${fcflags_opt_14occeig}" >&6;}
  else
   fcflags_opt_14occeig="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_15nonlocal}" = ""; then
  fcflags_opt_15nonlocal="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 15nonlocal is ${fcflags_opt_15nonlocal}" >&5
$as_echo "$as_me: optimization for 15nonlocal is ${fcflags_opt_15nonlocal}" >&6;}
  else
   fcflags_opt_15nonlocal="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_15wfs}" = ""; then
  fcflags_opt_15wfs="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 15wfs is ${fcflags_opt_15wfs}" >&5
$as_echo "$as_me: optimization for 15wfs is ${fcflags_opt_15wfs}" >&6;}
  else
   fcflags_opt_15wfs="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_15psp}" = ""; then
  fcflags_opt_15psp="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 15psp is ${fcflags_opt_15psp}" >&5
$as_echo "$as_me: optimization for 15psp is ${fcflags_opt_15psp}" >&6;}
  else
   fcflags_opt_15psp="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_15paw}" = ""; then
  fcflags_opt_15paw="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 15paw is ${fcflags_opt_15paw}" >&5
$as_echo "$as_me: optimization for 15paw is ${fcflags_opt_15paw}" >&6;}
  else
   fcflags_opt_15paw="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_15recursion}" = ""; then
  fcflags_opt_15recursion="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 15recursion is ${fcflags_opt_15recursion}" >&5
$as_echo "$as_me: optimization for 15recursion is ${fcflags_opt_15recursion}" >&6;}
  else
   fcflags_opt_15recursion="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_15common}" = ""; then
  fcflags_opt_15common="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 15common is ${fcflags_opt_15common}" >&5
$as_echo "$as_me: optimization for 15common is ${fcflags_opt_15common}" >&6;}
  else
   fcflags_opt_15common="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_15rsprc}" = ""; then
  fcflags_opt_15rsprc="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 15rsprc is ${fcflags_opt_15rsprc}" >&5
$as_echo "$as_me: optimization for 15rsprc is ${fcflags_opt_15rsprc}" >&6;}
  else
   fcflags_opt_15rsprc="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_15gw}" = ""; then
  fcflags_opt_15gw="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 15gw is ${fcflags_opt_15gw}" >&5
$as_echo "$as_me: optimization for 15gw is ${fcflags_opt_15gw}" >&6;}
  else
   fcflags_opt_15gw="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_16response}" = ""; then
  fcflags_opt_16response="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 16response is ${fcflags_opt_16response}" >&5
$as_echo "$as_me: optimization for 16response is ${fcflags_opt_16response}" >&6;}
  else
   fcflags_opt_16response="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_16geomoptim}" = ""; then
  fcflags_opt_16geomoptim="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 16geomoptim is ${fcflags_opt_16geomoptim}" >&5
$as_echo "$as_me: optimization for 16geomoptim is ${fcflags_opt_16geomoptim}" >&6;}
  else
   fcflags_opt_16geomoptim="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_17suscep}" = ""; then
  fcflags_opt_17suscep="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 17suscep is ${fcflags_opt_17suscep}" >&5
$as_echo "$as_me: optimization for 17suscep is ${fcflags_opt_17suscep}" >&6;}
  else
   fcflags_opt_17suscep="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_17lwf}" = ""; then
  fcflags_opt_17lwf="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 17lwf is ${fcflags_opt_17lwf}" >&5
$as_echo "$as_me: optimization for 17lwf is ${fcflags_opt_17lwf}" >&6;}
  else
   fcflags_opt_17lwf="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_17ddb}" = ""; then
  fcflags_opt_17ddb="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 17ddb is ${fcflags_opt_17ddb}" >&5
$as_echo "$as_me: optimization for 17ddb is ${fcflags_opt_17ddb}" >&6;}
  else
   fcflags_opt_17ddb="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_18seqpar}" = ""; then
  fcflags_opt_18seqpar="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 18seqpar is ${fcflags_opt_18seqpar}" >&5
$as_echo "$as_me: optimization for 18seqpar is ${fcflags_opt_18seqpar}" >&6;}
  else
   fcflags_opt_18seqpar="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_19cut3d}" = ""; then
  fcflags_opt_19cut3d="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 19cut3d is ${fcflags_opt_19cut3d}" >&5
$as_echo "$as_me: optimization for 19cut3d is ${fcflags_opt_19cut3d}" >&6;}
  else
   fcflags_opt_19cut3d="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_21rdm}" = ""; then
  fcflags_opt_21rdm="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 21rdm is ${fcflags_opt_21rdm}" >&5
$as_echo "$as_me: optimization for 21rdm is ${fcflags_opt_21rdm}" >&6;}
  else
   fcflags_opt_21rdm="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_21drive}" = ""; then
  fcflags_opt_21drive="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for 21drive is ${fcflags_opt_21drive}" >&5
$as_echo "$as_me: optimization for 21drive is ${fcflags_opt_21drive}" >&6;}
  else
   fcflags_opt_21drive="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_linalg}" = ""; then
  fcflags_opt_linalg="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for linalg is ${fcflags_opt_linalg}" >&5
$as_echo "$as_me: optimization for linalg is ${fcflags_opt_linalg}" >&6;}
  else
   fcflags_opt_linalg="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_netcdf}" = ""; then
  fcflags_opt_netcdf="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for netcdf is ${fcflags_opt_netcdf}" >&5
$as_echo "$as_me: optimization for netcdf is ${fcflags_opt_netcdf}" >&6;}
  else
   fcflags_opt_netcdf="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_etsf_io}" = ""; then
  fcflags_opt_etsf_io="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$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;}
  else
   fcflags_opt_etsf_io="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_etsf_xc}" = ""; then
  fcflags_opt_etsf_xc="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for etsf_xc is ${fcflags_opt_etsf_xc}" >&5
$as_echo "$as_me: optimization for etsf_xc is ${fcflags_opt_etsf_xc}" >&6;}
  else
   fcflags_opt_etsf_xc="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_fox}" = ""; then
  fcflags_opt_fox="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for fox is ${fcflags_opt_fox}" >&5
$as_echo "$as_me: optimization for fox is ${fcflags_opt_fox}" >&6;}
  else
   fcflags_opt_fox="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_bigdft}" = ""; then
  fcflags_opt_bigdft="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for bigdft is ${fcflags_opt_bigdft}" >&5
$as_echo "$as_me: optimization for bigdft is ${fcflags_opt_bigdft}" >&6;}
  else
   fcflags_opt_bigdft="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_wannier90}" = ""; then
  fcflags_opt_wannier90="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for wannier90 is ${fcflags_opt_wannier90}" >&5
$as_echo "$as_me: optimization for wannier90 is ${fcflags_opt_wannier90}" >&6;}
  else
   fcflags_opt_wannier90="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_xmlf90}" = ""; then
  fcflags_opt_xmlf90="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for xmlf90 is ${fcflags_opt_xmlf90}" >&5
$as_echo "$as_me: optimization for xmlf90 is ${fcflags_opt_xmlf90}" >&6;}
  else
   fcflags_opt_xmlf90="${fcflags_opt_default}"
  fi
 fi


  if test "${fcflags_opt_main}" = ""; then
  fcflags_opt_main="${fcflags_opt_default}"
 else
  if test "${enable_debug}" != "yes"; then
   { $as_echo "$as_me:$LINENO: optimization for main is ${fcflags_opt_main}" >&5
$as_echo "$as_me: optimization for main is ${fcflags_opt_main}" >&6;}
  else
   fcflags_opt_main="${fcflags_opt_default}"
  fi
 fi



else
 { $as_echo "$as_me:$LINENO: per-directory Fortran optimizations replaced by FCFLAGS" >&5
$as_echo "$as_me: per-directory Fortran optimizations replaced by FCFLAGS" >&6;}
fi

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

#
# Save configuration
#

# 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 of C and C++ compiler flags
# Fortran: FCFLAGS_OPT must not be included (per-directory optimizations)
test "${ARFLAGS}" = "" && \
 ARFLAGS="${ARFLAGS_64BITS} ${ARFLAGS_DEBUG} ${ARFLAGS_OPT} ${ARFLAGS_EXTRA} ${ARFLAGS_CMD}"
test "${CPPFLAGS}" = "" && \
 CPPFLAGS="${CPPFLAGS_64BITS} ${CPPFLAGS_DEBUG} ${CPPFLAGS_OPT} ${CPPFLAGS_EXTRA}"
test "${CFLAGS}" = "" && \
 CFLAGS="${CFLAGS_64BITS} ${CFLAGS_DEBUG} ${CFLAGS_OPT} ${CFLAGS_EXTRA}"
test "${CC_LDFLAGS}" = "" && \
 CC_LDFLAGS="${CC_LDFLAGS_64BITS} ${CC_LDFLAGS_DEBUG} ${CC_LDFLAGS_OPT} ${CC_LDFLAGS_EXTRA}"
test "${CC_LIBS}" = "" && \
 CC_LIBS="${CC_LIBS_64BITS} ${CC_LIBS_DEBUG} ${CC_LIBS_OPT} ${CC_LIBS_EXTRA}"
test "${CXXFLAGS}" = "" && \
 CXXFLAGS="${CXXFLAGS_64BITS} ${CXXFLAGS_DEBUG} ${CXXFLAGS_OPT} ${CXXFLAGS_EXTRA}"
test "${CXX_LDFLAGS}" = "" && \
 CXX_LDFLAGS="${CXX_LDFLAGS_64BITS} ${CXX_LDFLAGS_DEBUG} ${CXX_LDFLAGS_OPT} ${CXX_LDFLAGS_EXTRA}"
test "${CXX_LIBS}" = "" && \
 CXX_LIBS="${CXX_LIBS_64BITS} ${CXX_LIBS_DEBUG} ${CXX_LIBS_OPT} ${CXX_LIBS_EXTRA}"
test "${FCFLAGS}" = "" && \
 FCFLAGS="${FCFLAGS_64BITS} ${FCFLAGS_DEBUG} ${FCFLAGS_EXTRA}"
test "${FC_LDFLAGS}" = "" && \
 FC_LDFLAGS="${FC_LDFLAGS_64BITS} ${FC_LDFLAGS_DEBUG} ${FC_LDFLAGS_OPT} ${FC_LDFLAGS_EXTRA}"
test "${FC_LIBS}" = "" && \
 FC_LIBS="${FC_LIBS_64BITS} ${FC_LIBS_DEBUG} ${FC_LIBS_OPT} ${FC_LIBS_EXTRA}"

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

#
# MPI support
#


 abi_sec_title="MPI 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 ""


# Check whether MPI is usable

 if test "${enable_mpi}" = "yes" -o "${enable_mpi}" = "native"; then

    if test "${mpi_usable}" != "yes"; then
    mpi_native_usable="no"
 mpi_native_level=""
 mpi_native_cc=""
 mpi_native_cxx=""
 mpi_native_fc=""
 mpi_native_runner=""


  abi_env_AR="${AR}"

  abi_env_ARFLAGS="${ARFLAGS}"

  abi_env_ARFLAGS_64BITS="${ARFLAGS_64BITS}"

  abi_env_ARFLAGS_DEBUG="${ARFLAGS_DEBUG}"

  abi_env_ARFLAGS_EXTRA="${ARFLAGS_EXTRA}"

  abi_env_ARFLAGS_OPT="${ARFLAGS_OPT}"

  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_OPT="${CC_LDFLAGS_OPT}"

  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_OPT="${CC_LIBS_OPT}"

  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_OPT="${CFLAGS_OPT}"

  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_OPT="${CPPFLAGS_OPT}"

  abi_env_CXX="${CXX}"

  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_OPT="${CXX_LDFLAGS_OPT}"

  abi_env_CXX_LIBS="${CXX_LIBS}"

  abi_env_CXX_LIBS_DEBUG="${CXX_LIBS_DEBUG}"

  abi_env_CXX_LIBS_64BITS="${CXX_LIBS_64BITS}"

  abi_env_CXX_LIBS_OPT="${CXX_LIBS_OPT}"

  abi_env_CXX_LIBS_EXTRA="${CXX_LIBS_EXTRA}"

  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_OPT="${CXXFLAGS_OPT}"

  abi_env_DEFS="${DEFS}"

  abi_env_FC="${FC}"

  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_OPT="${FC_LDFLAGS_OPT}"

  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_OPT="${FC_LIBS_OPT}"

  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_OPT="${FCFLAGS_OPT}"

  abi_env_LTXFLAGS="${LTXFLAGS}"

  abi_env_MDFLAGS="${MDFLAGS}"

  abi_env_MPI_CC_LDFLAGS="${MPI_CC_LDFLAGS}"

  abi_env_MPI_CC_LIBS="${MPI_CC_LIBS}"

  abi_env_MPI_CXX_LIBS="${MPI_CXX_LIBS}"

  abi_env_MPI_FC_LIBS="${MPI_FC_LIBS}"

  abi_env_MPI_CFLAGS="${MPI_CFLAGS}"

  abi_env_MPI_CPPFLAGS="${MPI_CPPFLAGS}"

  abi_env_MPI_CXX_LDFLAGS="${MPI_CXX_LDFLAGS}"

  abi_env_MPI_CXXFLAGS="${MPI_CXXFLAGS}"

  abi_env_MPI_FC_LDFLAGS="${MPI_FC_LDFLAGS}"

  abi_env_MPI_FCFLAGS="${MPI_FCFLAGS}"

  abi_env_MPI_RUNNER="${MPI_RUNNER}"

  abi_env_PDFFLAGS="${PDFFLAGS}"



  { $as_echo "$as_me:$LINENO: checking for a native C MPI support" >&5
$as_echo_n "checking for a native C MPI support... " >&6; }

 CPPFLAGS="${CPPFLAGS} ${MPI_CPPFLAGS}"
 CFLAGS="${CFLAGS} ${MPI_CFLAGS}"
 LDFLAGS="${CC_LDFLAGS} ${MPI_CC_LDFLAGS}"
 LIBS="${CC_LIBS} ${MPI_CC_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include "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(NULL,NULL);

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

	mpi_native_cc="no"
fi

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


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

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

 CXXFLAGS="${CXXFLAGS} ${MPI_CXXFLAGS}"
 LDFLAGS="${CXX_LDFLAGS} ${MPI_CXX_LDFLAGS}"
 LIBS="${CXX_LIBS} ${MPI_CXX_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 >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* 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()

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

	mpi_native_cxx="no"
fi

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


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

  { $as_echo "$as_me:$LINENO: checking for a native Fortran MPI support" >&5
$as_echo_n "checking for a native Fortran MPI support... " >&6; }

 FCFLAGS="${FCFLAGS} ${MPI_FCFLAGS}"
 LDFLAGS="${FC_LDFLAGS} ${MPI_FC_LDFLAGS}"
 LIBS="${FC_LIBS} ${MPI_FC_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
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_fc_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  mpi_native_fc="yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	mpi_native_fc="no"
fi

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

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

  if test "${mpi_native_fc}" = "yes"; then
  { $as_echo "$as_me:$LINENO: checking for MPI standard level supported" >&5
$as_echo_n "checking for MPI standard level supported... " >&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 mpi
       integer :: ierr
       call mpi_init(ierr)
       call mpi_finalize(ierr)

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

	mpi_native_level="1"
fi

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

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



  AR="${abi_env_AR}"

  ARFLAGS="${abi_env_ARFLAGS}"

  ARFLAGS_64BITS="${abi_env_ARFLAGS_64BITS}"

  ARFLAGS_DEBUG="${abi_env_ARFLAGS_DEBUG}"

  ARFLAGS_EXTRA="${abi_env_ARFLAGS_EXTRA}"

  ARFLAGS_OPT="${abi_env_ARFLAGS_OPT}"

  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_OPT="${abi_env_CC_LDFLAGS_OPT}"

  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_OPT="${abi_env_CC_LIBS_OPT}"

  CFLAGS="${abi_env_CFLAGS}"

  CFLAGS_64BITS="${abi_env_CFLAGS_64BITS}"

  CFLAGS_DEBUG="${abi_env_CFLAGS_DEBUG}"

  CFLAGS_EXTRA="${abi_env_CFLAGS_EXTRA}"

  CFLAGS_OPT="${abi_env_CFLAGS_OPT}"

  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_OPT="${abi_env_CPPFLAGS_OPT}"

  CXX="${abi_env_CXX}"

  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_OPT="${abi_env_CXX_LDFLAGS_OPT}"

  CXX_LIBS="${abi_env_CXX_LIBS}"

  CXX_LIBS_DEBUG="${abi_env_CXX_LIBS_DEBUG}"

  CXX_LIBS_64BITS="${abi_env_CXX_LIBS_64BITS}"

  CXX_LIBS_OPT="${abi_env_CXX_LIBS_OPT}"

  CXX_LIBS_EXTRA="${abi_env_CXX_LIBS_EXTRA}"

  CXXFLAGS="${abi_env_CXXFLAGS}"

  CXXFLAGS_64BITS="${abi_env_CXXFLAGS_64BITS}"

  CXXFLAGS_DEBUG="${abi_env_CXXFLAGS_DEBUG}"

  CXXFLAGS_EXTRA="${abi_env_CXXFLAGS_EXTRA}"

  CXXFLAGS_OPT="${abi_env_CXXFLAGS_OPT}"

  DEFS="${abi_env_DEFS}"

  FC="${abi_env_FC}"

  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_OPT="${abi_env_FC_LDFLAGS_OPT}"

  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_OPT="${abi_env_FC_LIBS_OPT}"

  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_OPT="${abi_env_FCFLAGS_OPT}"

  LTXFLAGS="${abi_env_LTXFLAGS}"

  MDFLAGS="${abi_env_MDFLAGS}"

  MPI_CC_LDFLAGS="${abi_env_MPI_CC_LDFLAGS}"

  MPI_CC_LIBS="${abi_env_MPI_CC_LIBS}"

  MPI_CXX_LIBS="${abi_env_MPI_CXX_LIBS}"

  MPI_FC_LIBS="${abi_env_MPI_FC_LIBS}"

  MPI_CFLAGS="${abi_env_MPI_CFLAGS}"

  MPI_CPPFLAGS="${abi_env_MPI_CPPFLAGS}"

  MPI_CXX_LDFLAGS="${abi_env_MPI_CXX_LDFLAGS}"

  MPI_CXXFLAGS="${abi_env_MPI_CXXFLAGS}"

  MPI_FC_LDFLAGS="${abi_env_MPI_FC_LDFLAGS}"

  MPI_FCFLAGS="${abi_env_MPI_FCFLAGS}"

  MPI_RUNNER="${abi_env_MPI_RUNNER}"

  PDFFLAGS="${abi_env_PDFFLAGS}"



  if test "${mpi_native_fc}" = "yes"; then
  mpi_native_usable="yes"
 fi

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

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


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

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


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

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


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

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


  fi
 fi


   mpi_usable="${mpi_native_usable}"
   if test "${mpi_native_usable}" = "yes"; then
    mpi_type="native"
    mpi_level="${mpi_native_level}"
    test "${MPI_RUNNER}" = "" -a "${mpi_native_runner}" != "" && \
     MPI_RUNNER="${mpi_native_runner}"
   fi
  fi

    if test "${mpi_usable}" = "yes"; then
   enable_mpi="yes"
   if test "${MPI_RUNNER}" = ""; then
    { $as_echo "$as_me:$LINENO: WARNING: MPI runner not found" >&5
$as_echo "$as_me: WARNING: MPI runner not found" >&2;}
   fi
  else
   enable_mpi="no"
  fi
 else
  if test "${enable_mpi}" = "manual"; then
   { $as_echo "$as_me:$LINENO: using manual settings for MPI configuration" >&5
$as_echo "$as_me: using manual settings for MPI configuration" >&6;}
   enable_mpi="yes"
   mpi_usable="unknown"
   mpi_type="unknown"
  else
   enable_mpi="no"
   MPI_CPPFLAGS=""
   MPI_CFLAGS=""
   MPI_CC_LDFLAGS=""
   MPI_CXXFLAGS=""
   MPI_CXX_LDFLAGS=""
   MPI_FCFLAGS=""
   MPI_FC_LDFLAGS=""
   MPI_RUNNER=""
  fi
 fi


# Display MPI status
{ $as_echo "$as_me:$LINENO: checking whether MPI is usable" >&5
$as_echo_n "checking whether MPI is usable... " >&6; }
{ $as_echo "$as_me:$LINENO: result: ${mpi_usable}" >&5
$as_echo "${mpi_usable}" >&6; }
{ $as_echo "$as_me:$LINENO: checking whether to build parallel code" >&5
$as_echo_n "checking whether to build parallel code... " >&6; }
{ $as_echo "$as_me:$LINENO: result: ${enable_mpi}" >&5
$as_echo "${enable_mpi}" >&6; }

# Adjust MPI flags
if test "${enable_mpi}" = "yes"; then
 MPI_CPPFLAGS="${CPPFLAGS} ${MPI_CPPFLAGS}"
 MPI_CFLAGS="${CFLAGS} ${MPI_CFLAGS}"
 MPI_CXXFLAGS="${CXXFLAGS} ${MPI_CXXFLAGS}"
 MPI_FCFLAGS="${FCFLAGS} ${MPI_FCFLAGS}"
 #MPI_CC_LDFLAGS="${CC_LDFLAGS} ${MPI_CC_LDFLAGS}"
 #MPI_CXX_LDFLAGS="${CXX_LDFLAGS} ${MPI_CXX_LDFLAGS}"
 #MPI_FC_LDFLAGS="${FC_LDFLAGS} ${MPI_FC_LDFLAGS}"
 #MPI_CC_LIBS="${CC_LIBS} ${MPI_CC_LIBS}"
 #MPI_CXX_LIBS="${CXX_LIBS} ${MPI_CXX_LIBS}"
 #MPI_FC_LIBS="${FC_LIBS} ${MPI_FC_LIBS}"
 test "${MPI_RUNNER}" = "" && MPI_RUNNER="/bin/false"
fi

# All MPI preprocessing options must be found on the compiler command line
if test "${enable_mpi}" = "yes"; then
 # Enable MPI I/O if requested
 if test "${enable_mpi_io}" = "yes"; then
  { $as_echo "$as_me:$LINENO: activating parallel I/O" >&5
$as_echo "$as_me: activating parallel I/O" >&6;}
  MPI_CPPFLAGS="${MPI_CPPFLAGS} -DMPI_IO=1"
 fi

 # Enable MPI I/O workaround if requested
 if test "${enable_mpi_io_buggy}" = "yes"; then
  { $as_echo "$as_me:$LINENO: activating parallel I/O workaround (EXPERIMENTAL)" >&5
$as_echo "$as_me: activating parallel I/O workaround (EXPERIMENTAL)" >&6;}
  MPI_CPPFLAGS="${MPI_CPPFLAGS} -DMPI_IO_MORE=1"
 fi

 # Enable MPI time tracing if requested
 if test "${enable_mpi_trace}" = "yes"; then
  { $as_echo "$as_me:$LINENO: activating parallel time tracing" >&5
$as_echo "$as_me: activating parallel time tracing" >&6;}
  MPI_CPPFLAGS="${MPI_CPPFLAGS} -DMPI_TRACE=1"
 fi

 # Select MPI level
 if test "${with_mpi_level}" != ""; then
  { $as_echo "$as_me:$LINENO: forcing MPI-${with_mpi_level} standard support" >&5
$as_echo "$as_me: forcing MPI-${with_mpi_level} standard support" >&6;}
  if test "${with_mpi_level}" != "${mpi_level}"; then
   { $as_echo "$as_me:$LINENO: WARNING: detected MPI-${mpi_level} support but using MPI-${with_mpi_level} instructions" >&5
$as_echo "$as_me: WARNING: detected MPI-${mpi_level} support but using MPI-${with_mpi_level} instructions" >&2;}
  fi
  mpi_level="${with_mpi_level}"
 fi
 MPI_CPPFLAGS="-DMPI${mpi_level}=1 ${MPI_CPPFLAGS}"

 # Define MPI CPP trigger
 MPI_CPPFLAGS="-DMPI=1 ${MPI_CPPFLAGS}"

 # Report MPI CPPFLAGS
 { $as_echo "$as_me:$LINENO: MPI CPPFLAGS > ${MPI_CPPFLAGS}" >&5
$as_echo "$as_me: MPI CPPFLAGS > ${MPI_CPPFLAGS}" >&6;}
else
 enable_mpi_fft="no"
 enable_mpi_io="no"
 enable_mpi_io_buggy="no"
 enable_mpi_trace="no"
fi

# Define condition
 if test "${enable_mpi}" = "yes"; then
  DO_BUILD_PARALLEL_TRUE=
  DO_BUILD_PARALLEL_FALSE='#'
else
  DO_BUILD_PARALLEL_TRUE='#'
  DO_BUILD_PARALLEL_FALSE=
fi


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

#
# Buggy Fortran compilers
#

# Wrap buggy Fortran compilers (MPI checks must be completed)
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 old fixed-form Fortran libraries



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

#
# External prerequisites
#

# FIXME: update enable_tricks
test "${enable_tricks}" = "no-ar" && enable_tricks="yes"


 abi_sec_title="External prerequisites"

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


# External FFT support (FFTW for now)
 lib_fft_includes=""
 lib_fft_libs=""

  if test "${enable_fftw}" = "yes"; then
  { $as_echo "$as_me:$LINENO: WARNING: FFTW support is still under development" >&5
$as_echo "$as_me: WARNING: FFTW support is still under development" >&2;}

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


  { $as_echo "$as_me:$LINENO: checking whether to use the threaded version of FFTW" >&5
$as_echo_n "checking whether to use the threaded version of FFTW... " >&6; }
  { $as_echo "$as_me:$LINENO: result: ${enable_fftw_threads}" >&5
$as_echo "${enable_fftw_threads}" >&6; }
  if test "${enable_fftw_threads}" = "yes"; then

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

  fi

  lib_fft_includes="${with_fftw_includes}"
  lib_fft_libs="${with_fftw_libs}"
 fi

  { $as_echo "$as_me:$LINENO: checking whether to use the FFTW library" >&5
$as_echo_n "checking whether to use the FFTW library... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${enable_fftw}" >&5
$as_echo "${enable_fftw}" >&6; }





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

# GNU Scientific Library support
 lib_gsl_includes=""
 lib_gsl_libs=""

  if test "${enable_gsl}" = "yes"; then
  { $as_echo "$as_me:$LINENO: WARNING: GSL support is still under development" >&5
$as_echo "$as_me: WARNING: GSL support is still under development" >&2;}

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


  lib_gsl_includes="${with_gsl_includes}"
  lib_gsl_libs="${with_gsl_libs}"
 fi

  { $as_echo "$as_me:$LINENO: checking whether to use the GNU Scientific Library" >&5
$as_echo_n "checking whether to use the GNU Scientific Library... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${enable_gsl}" >&5
$as_echo "${enable_gsl}" >&6; }




   if test "${enable_gsl}" = "yes"; then
  DO_BUILD_LIB00GSL_TRUE=
  DO_BUILD_LIB00GSL_FALSE='#'
else
  DO_BUILD_LIB00GSL_TRUE='#'
  DO_BUILD_LIB00GSL_FALSE=
fi



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

# Linear algebra support (BLAS and LAPACK)
 lib_linalg_includes=""
 lib_linalg_libs=""

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


  FCFLAGS_LINALG="${FCFLAGS_LINALG} ${fcflags_opt_linalg}"

  linalg_type="${with_linalg_type}"

  if test "${with_linalg_libs}" = ""; then
  lib_linalg_includes=""
  lib_linalg_libs="-L\$(abinit_builddir)/prereqs/linalg -llapack -lblas"
  build_linalg="yes"
  test "${linalg_type}" = "" && linalg_type="abinit"
 else
  lib_linalg_includes="${with_linalg_includes}"
  lib_linalg_libs="${with_linalg_libs}"
  build_linalg="no"
  test "${linalg_type}" = "" && linalg_type="external"
 fi

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

 if test "${linalg_type}" != ""; then
  { $as_echo "$as_me:$LINENO: applying linear algebra tricks (type: ${linalg_type})" >&5
$as_echo "$as_me: applying linear algebra tricks (type: ${linalg_type})" >&6;}
 fi

 case "${linalg_type}" in

  abinit)
   linalg_tricks_bypass="no"
   ;;

  atlas)
   FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA} -llapack -lblas"
   linalg_tricks_bypass="yes"
   ;;

  essl)
   FCFLAGS_EXTRA="${FCFLAGS_EXTRA} -qessl"
   FC_LDFLAGS_EXTRA="${FC_LDFLAGS_EXTRA} -lessl"
   linalg_tricks_bypass="yes"
   ;;

  acml|asl|cxml|mkl|mlib|sgimath|sunperf)
   { $as_echo "$as_me:$LINENO: WARNING: tricks not yet implemented for ${linalg_type}" >&5
$as_echo "$as_me: WARNING: tricks not yet implemented for ${linalg_type}" >&2;}
   ;;

 esac



  if test "${linalg_tricks_bypass}" = "yes"; then
   build_linalg="no"
  fi
 fi


  { $as_echo "$as_me:$LINENO: checking whether to build the LINALG library" >&5
$as_echo_n "checking whether to build the LINALG library... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${build_linalg}" >&5
$as_echo "${build_linalg}" >&6; }







   if test "${build_linalg}" = "yes"; then
  DO_BUILD_LINALG_TRUE=
  DO_BUILD_LINALG_FALSE='#'
else
  DO_BUILD_LINALG_TRUE='#'
  DO_BUILD_LINALG_FALSE=
fi



# ScaLAPACK support
if test "${enable_mpi}" = "no"; then
 if test "${enable_scalapack}" = "yes"; then
  { $as_echo "$as_me:$LINENO: MPI disabled => disabling ScaLAPACK support" >&5
$as_echo "$as_me: MPI disabled => disabling ScaLAPACK support" >&6;}
 fi
 enable_scalapack="no"
fi
{ $as_echo "$as_me:$LINENO: checking whether to activate ScaLAPACK support" >&5
$as_echo_n "checking whether to activate ScaLAPACK support... " >&6; }
{ $as_echo "$as_me:$LINENO: result: ${enable_scalapack}" >&5
$as_echo "${enable_scalapack}" >&6; }
if test "${enable_scalapack}" = "yes"; then
 MPI_CPPFLAGS="${MPI_CPPFLAGS} -DHAVE_SCALAPACK=1"
 { $as_echo "$as_me:$LINENO: MPI CPPFLAGS > ${MPI_CPPFLAGS}" >&5
$as_echo "$as_me: MPI CPPFLAGS > ${MPI_CPPFLAGS}" >&6;}
 lib_linalg_includes="${with_scalapack_includes} ${lib_linalg_includes}"
 lib_linalg_libs="${with_scalapack_libs} ${lib_linalg_libs}"
fi

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

# PAPI library (timings)
 lib_papi_includes=""
 lib_papi_libs=""

  if test "${enable_papi}" = "yes"; then
  { $as_echo "$as_me:$LINENO: WARNING: PAPI support is still under development" >&5
$as_echo "$as_me: WARNING: PAPI support is still under development" >&2;}

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


  lib_papi_includes="${with_papi_includes}"
  lib_papi_libs="${with_papi_libs}"
 fi

  { $as_echo "$as_me:$LINENO: checking whether to use the PAPI library" >&5
$as_echo_n "checking whether to use the PAPI library... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${enable_papi}" >&5
$as_echo "${enable_papi}" >&6; }





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

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


# Make sure ~/.abinit/plugins 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:$LINENO: creating ${abinit_tardir}" >&5
$as_echo "$as_me: creating ${abinit_tardir}" >&6;}
  ${MKDIR_P} "${abinit_tardir}"
 fi
fi
{ $as_echo "$as_me:$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:$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:$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

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

#
# Wavelets support - BigDFT project
#

 lib_bigdft_includes=""
 lib_bigdft_libs=""
 build_bigdft="no"
 abi_plug_ready="no"
 abi_plug_tarball="no"
 abi_plug_bins=""
 abi_plug_incs=""
 abi_plug_libs=""

  bigdft_pkg_name="bigdft-1.2.0"

 bigdft_pkg_string="BigDFT library 1.2.0 (upstream release)"


 if test -z "${CPPFLAGS_BIGDFT}"; then
  CPPFLAGS_BIGDFT="${CPPFLAGS}"
 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:$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/libbigdft.a"; then
    abi_plug_libs="${abi_plug_libs} -lbigdft"
   else
    abi_plug_ready="no"
   fi

   if test -s "${with_plugins_prefix}/lib/libpoissonsolver.a"; then
    abi_plug_libs="${abi_plug_libs} -lpoissonsolver"
   else
    abi_plug_ready="no"
   fi

   { $as_echo "$as_me:$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:$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.tar.gz"; then
    abi_plug_tarball="yes"
   fi
   { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }

      if test "${abi_plug_ready}" = "no"; then
    if test "${abi_plug_tarball}" = "no"; then
     { $as_echo "$as_me:$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.tar.gz"; then
      { $as_echo "$as_me:$LINENO: checking availability of BIGDFT from URL 1" >&5
$as_echo_n "checking availability of BIGDFT from URL 1... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${abinit_tardir}/bigdft-1.2.0.tar.gz" \
       'http://inac.cea.fr/L_Sim/BigDFT/bigdft-1.2.0.tar.gz'
      test -s "${abinit_tardir}/bigdft-1.2.0.tar.gz" && abi_plug_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi
     if test ! -s "${abinit_tardir}/bigdft-1.2.0.tar.gz"; then
      { $as_echo "$as_me:$LINENO: checking availability of BIGDFT from URL 2" >&5
$as_echo_n "checking availability of BIGDFT from URL 2... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${abinit_tardir}/bigdft-1.2.0.tar.gz" \
       'http://wwwold.abinit.org/plugins/bigdft-1.2.0.tar.gz'
      test -s "${abinit_tardir}/bigdft-1.2.0.tar.gz" && abi_plug_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi

    fi

        if test "${abi_plug_tarball}" = "yes"; then
     lib_bigdft_includes="-I\$(abinit_builddir)/plugins/bigdft"
     lib_bigdft_libs="-L\$(abinit_builddir)/plugins/bigdft -lbigdft -lpoissonsolver"
     build_bigdft="yes"
    else
     lib_bigdft_includes=""
     lib_bigdft_libs=""
     enable_bigdft="no"
     build_bigdft="no"
     { $as_echo "$as_me:$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:$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_includes="${with_bigdft_includes}"
   lib_bigdft_libs="${with_bigdft_libs}"
   build_bigdft="no"
  fi

 else
  enable_bigdft="no"
  build_bigdft="no"
 fi


  if test "${build_bigdft}" = "yes" -a "${enable_tricks}" = "yes"; then

 { $as_echo "$as_me:$LINENO: applying BigDFT tricks (not needed yet)" >&5
$as_echo "$as_me: applying BigDFT tricks (not needed yet)" >&6;}

  if test "${bigdft_tricks_bypass}" = "yes"; then
   build_bigdft="no"
  fi
 fi

  { $as_echo "$as_me:$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:$LINENO: result: ${enable_bigdft}" >&5
$as_echo "${enable_bigdft}" >&6; }
 { $as_echo "$as_me:$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:$LINENO: result: ${build_bigdft}" >&5
$as_echo "${build_bigdft}" >&6; }

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

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

 fi





   if test "${enable_bigdft}" = "yes"; then
  DO_ENABLE_BIGDFT_TRUE=
  DO_ENABLE_BIGDFT_FALSE='#'
else
  DO_ENABLE_BIGDFT_TRUE='#'
  DO_ENABLE_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



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

#
# NetCDF support
#

# Experimental: custom configure options
CONFIGOPT_NETCDF=""


 lib_netcdf_includes=""
 lib_netcdf_libs=""
 build_netcdf="no"
 abi_plug_ready="no"
 abi_plug_tarball="no"
 abi_plug_bins=""
 abi_plug_incs=""
 abi_plug_libs=""

  netcdf_pkg_name="netcdf-3.6.3"

 netcdf_pkg_string="NetCDF library 3.6.3 (upstream release)"


 if test -z "${CPPFLAGS_NETCDF}"; then
  CPPFLAGS_NETCDF="${CPPFLAGS}"
 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:$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/libnetcdf.a"; then
    abi_plug_libs="${abi_plug_libs} -lnetcdf"
   else
    abi_plug_ready="no"
   fi

   { $as_echo "$as_me:$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:$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
    abi_plug_tarball="yes"
   fi
   { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }

      if test "${abi_plug_ready}" = "no"; then
    if test "${abi_plug_tarball}" = "no"; then
     { $as_echo "$as_me:$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:$LINENO: checking availability of NETCDF from URL 1" >&5
$as_echo_n "checking availability of NETCDF from URL 1... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${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_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi
     if test ! -s "${abinit_tardir}/netcdf-3.6.3.tar.gz"; then
      { $as_echo "$as_me:$LINENO: checking availability of NETCDF from URL 2" >&5
$as_echo_n "checking availability of NETCDF from URL 2... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${abinit_tardir}/netcdf-3.6.3.tar.gz" \
       'http://wwwold.abinit.org/plugins/netcdf-3.6.3.tar.gz'
      test -s "${abinit_tardir}/netcdf-3.6.3.tar.gz" && abi_plug_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi

    fi

        if test "${abi_plug_tarball}" = "yes"; then
     lib_netcdf_includes="-I\$(abinit_builddir)/plugins/netcdf"
     lib_netcdf_libs="-L\$(abinit_builddir)/plugins/netcdf -lnetcdf"
     build_netcdf="yes"
    else
     lib_netcdf_includes=""
     lib_netcdf_libs=""
     enable_netcdf="no"
     build_netcdf="no"
     { $as_echo "$as_me:$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:$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_includes="${with_netcdf_includes}"
   lib_netcdf_libs="${with_netcdf_libs}"
   build_netcdf="no"
  fi

 else
  enable_netcdf="no"
  build_netcdf="no"
 fi

  if test "${enable_netcdf}" = "yes"; then
  FCLIBS_NETCDF='$(FCLIBS)'
 else
  FCLIBS_NETCDF=''
 fi


  if test "${build_netcdf}" = "yes" -a "${enable_tricks}" = "yes"; then

 if test "${abi_fc_vendor}" != "UNKNOWN"; then
  { $as_echo "$as_me:$LINENO: applying compiler-specific NetCDF tricks (type: ${abi_fc_vendor}, version: ${abi_fc_version})" >&5
$as_echo "$as_me: applying compiler-specific NetCDF tricks (type: ${abi_fc_vendor}, version: ${abi_fc_version})" >&6;}
 fi

 CONFIGOPT_NETCDF="${CONFIGOPT_NETCDF} --disable-cxx"

 case "${abi_fc_vendor}" in

  g95)
   CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -Df2cFortran"
   ;;

  gnu)
   CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -DpgiFortran"
   ;;

  ibm)
   CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -DIBMR2Fortran"
   ;;

  intel)
   CPPFLAGS_NETCDF="${CPPFLAGS_NETCDF} -DpgiFortran"
   case "${abi_fc_version}" in
    7.1|8.0|8.1|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:$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:$LINENO: result: ${enable_netcdf}" >&5
$as_echo "${enable_netcdf}" >&6; }
 { $as_echo "$as_me:$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:$LINENO: result: ${build_netcdf}" >&5
$as_echo "${build_netcdf}" >&6; }

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

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

 fi





   if test "${enable_netcdf}" = "yes"; then
  DO_ENABLE_NETCDF_TRUE=
  DO_ENABLE_NETCDF_FALSE='#'
else
  DO_ENABLE_NETCDF_TRUE='#'
  DO_ENABLE_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
#

 lib_etsf_io_includes=""
 lib_etsf_io_libs=""
 build_etsf_io="no"
 abi_plug_ready="no"
 abi_plug_tarball="no"
 abi_plug_bins=""
 abi_plug_incs=""
 abi_plug_libs=""

  etsf_io_pkg_name="etsf_io-1.0.2"

 etsf_io_pkg_string="ETSF I/O library 1.0.2 (upstream release)"


 if test -z "${CPPFLAGS_ETSF_IO}"; then
  CPPFLAGS_ETSF_IO="${CPPFLAGS}"
 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:$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/libetsf_io.a"; then
    abi_plug_libs="${abi_plug_libs} -letsf_io"
   else
    abi_plug_ready="no"
   fi

   if test -s "${with_plugins_prefix}/lib/libetsf_io_utils.a"; then
    abi_plug_libs="${abi_plug_libs} -letsf_io_utils"
   else
    abi_plug_ready="no"
   fi

   if test -s "${with_plugins_prefix}/lib/libetsf_io_low_level.a"; then
    abi_plug_libs="${abi_plug_libs} -letsf_io_low_level"
   else
    abi_plug_ready="no"
   fi

   { $as_echo "$as_me:$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:$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.2.tar.gz"; then
    abi_plug_tarball="yes"
   fi
   { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }

      if test "${abi_plug_ready}" = "no"; then
    if test "${abi_plug_tarball}" = "no"; then
     { $as_echo "$as_me:$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.2.tar.gz"; then
      { $as_echo "$as_me:$LINENO: checking availability of ETSF_IO from URL 1" >&5
$as_echo_n "checking availability of ETSF_IO from URL 1... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${abinit_tardir}/etsf_io-1.0.2.tar.gz" \
       'http://wwwold.abinit.org/plugins/etsf_io-1.0.2.tar.gz'
      test -s "${abinit_tardir}/etsf_io-1.0.2.tar.gz" && abi_plug_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi

    fi

        if test "${abi_plug_tarball}" = "yes"; then
     lib_etsf_io_includes="-I\$(abinit_builddir)/plugins/etsf_io"
     lib_etsf_io_libs="-L\$(abinit_builddir)/plugins/etsf_io -letsf_io -letsf_io_utils -letsf_io_low_level"
     build_etsf_io="yes"
    else
     lib_etsf_io_includes=""
     lib_etsf_io_libs=""
     enable_etsf_io="no"
     build_etsf_io="no"
     { $as_echo "$as_me:$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:$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_includes="${with_etsf_io_includes}"
   lib_etsf_io_libs="${with_etsf_io_libs}"
   build_etsf_io="no"
  fi

 else
  enable_etsf_io="no"
  build_etsf_io="no"
 fi

  if test "${enable_etsf_io}" = "yes"; then
  FCLIBS_ETSF_IO='$(FCLIBS)'
 else
  FCLIBS_ETSF_IO=''
 fi


  if test "${build_etsf_io}" = "yes" -a "${enable_tricks}" = "yes"; then

 if test "${abi_fc_vendor}" != "UNKNOWN"; then
  { $as_echo "$as_me:$LINENO: applying ETSF_IO tricks" >&5
$as_echo "$as_me: applying ETSF_IO tricks" >&6;}
 fi

 case "${abi_fc_vendor}" in

  sun)
   lib_netcdf_includes='-I$(abinit_builddir)/tmp-modules'
   ;;

 esac

  if test "${etsf_io_tricks_bypass}" = "yes"; then
   build_etsf_io="no"
  fi
 fi

  { $as_echo "$as_me:$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:$LINENO: result: ${enable_etsf_io}" >&5
$as_echo "${enable_etsf_io}" >&6; }
 { $as_echo "$as_me:$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:$LINENO: result: ${build_etsf_io}" >&5
$as_echo "${build_etsf_io}" >&6; }

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

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

 fi





   if test "${enable_etsf_io}" = "yes"; then
  DO_ENABLE_ETSF_IO_TRUE=
  DO_ENABLE_ETSF_IO_FALSE='#'
else
  DO_ENABLE_ETSF_IO_TRUE='#'
  DO_ENABLE_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



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

#
# ETSF exchange-correlation library support
#

if test "${abi_fc_vendor}" = "sun" -a "${enable_debug}" != "yes"; then
 enable_etsf_xc="no"
 { $as_echo "$as_me:$LINENO: WARNING: ETSF XC cannot be built by Sun compilers => disabled" >&5
$as_echo "$as_me: WARNING: ETSF XC cannot be built by Sun compilers => disabled" >&2;}
fi
 lib_etsf_xc_includes=""
 lib_etsf_xc_libs=""
 build_etsf_xc="no"
 abi_plug_ready="no"
 abi_plug_tarball="no"
 abi_plug_bins=""
 abi_plug_incs=""
 abi_plug_libs=""

  etsf_xc_pkg_name="etsf_xc-20081127"

 etsf_xc_pkg_string="ETSF XC library 20081127 (hacked from the LibXC of Octopus)"


 if test -z "${CPPFLAGS_ETSF_XC}"; then
  CPPFLAGS_ETSF_XC="${CPPFLAGS}"
 fi

 if test -z "${CFLAGS_ETSF_XC}"; then
  CFLAGS_ETSF_XC="${CFLAGS}"
 fi

 if test -z "${CXXFLAGS_ETSF_XC}"; then
  CXXFLAGS_ETSF_XC="${CXXFLAGS}"
 fi

 if test -z "${FCFLAGS_ETSF_XC}"; then
  FCFLAGS_ETSF_XC="${FCFLAGS}"
 fi


  FCFLAGS_ETSF_XC="${FCFLAGS_ETSF_XC} ${fcflags_opt_etsf_xc}"

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

    if test "${with_plugins_prefix}" != ""; then
   { $as_echo "$as_me:$LINENO: checking whether ETSF_XC is ready for use" >&5
$as_echo_n "checking whether ETSF_XC 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/libxc.a"; then
    abi_plug_libs="${abi_plug_libs} -lxc"
   else
    abi_plug_ready="no"
   fi

   if test -s "${with_plugins_prefix}/lib/libstring_f.a"; then
    abi_plug_libs="${abi_plug_libs} -lstring_f"
   else
    abi_plug_ready="no"
   fi

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

  if test "${abi_plug_ready}" = "yes"; then
   with_etsf_xc_bins="${abi_plug_bins}"
   with_etsf_xc_includes="${abi_plug_incs}"
   with_etsf_xc_libs="${abi_plug_libs}"
  fi

    if test "${with_etsf_xc_includes}" = "" -o "${with_etsf_xc_libs}" = ""; then

      { $as_echo "$as_me:$LINENO: checking for a source tarball of ETSF_XC" >&5
$as_echo_n "checking for a source tarball of ETSF_XC... " >&6; }
   if test -s "${abinit_tardir}/etsf_xc-20081127.tar.gz"; then
    abi_plug_tarball="yes"
   fi
   { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }

      if test "${abi_plug_ready}" = "no"; then
    if test "${abi_plug_tarball}" = "no"; then
     { $as_echo "$as_me:$LINENO: downloading ETSF_XC - this may take a while" >&5
$as_echo "$as_me: downloading ETSF_XC - this may take a while" >&6;}

     if test ! -s "${abinit_tardir}/etsf_xc-20081127.tar.gz"; then
      { $as_echo "$as_me:$LINENO: checking availability of ETSF_XC from URL 1" >&5
$as_echo_n "checking availability of ETSF_XC from URL 1... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${abinit_tardir}/etsf_xc-20081127.tar.gz" \
       'http://wwwold.abinit.org/plugins/etsf_xc-20081127.tar.gz'
      test -s "${abinit_tardir}/etsf_xc-20081127.tar.gz" && abi_plug_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi

    fi

        if test "${abi_plug_tarball}" = "yes"; then
     lib_etsf_xc_includes="-I\$(abinit_builddir)/plugins/etsf_xc"
     lib_etsf_xc_libs="-L\$(abinit_builddir)/plugins/etsf_xc -lxc -lstring_f"
     build_etsf_xc="yes"
    else
     lib_etsf_xc_includes=""
     lib_etsf_xc_libs=""
     enable_etsf_xc="no"
     build_etsf_xc="no"
     { $as_echo "$as_me:$LINENO: WARNING: could not download ETSF_XC plug-in tarball" >&5
$as_echo "$as_me: WARNING: could not download ETSF_XC plug-in tarball" >&2;}
     { $as_echo "$as_me:$LINENO: WARNING: support for ETSF_XC plug-in has been disabled" >&5
$as_echo "$as_me: WARNING: support for ETSF_XC plug-in has been disabled" >&2;}
    fi
   fi
  else
   lib_etsf_xc_includes="${with_etsf_xc_includes}"
   lib_etsf_xc_libs="${with_etsf_xc_libs}"
   build_etsf_xc="no"
  fi

 else
  enable_etsf_xc="no"
  build_etsf_xc="no"
 fi


  if test "${build_etsf_xc}" = "yes" -a "${enable_tricks}" = "yes"; then

 { $as_echo "$as_me:$LINENO: applying ETSF_XC tricks (not needed yet)" >&5
$as_echo "$as_me: applying ETSF_XC tricks (not needed yet)" >&6;}

  if test "${etsf_xc_tricks_bypass}" = "yes"; then
   build_etsf_xc="no"
  fi
 fi

  { $as_echo "$as_me:$LINENO: checking whether to enable the ETSF_XC plug-in" >&5
$as_echo_n "checking whether to enable the ETSF_XC plug-in... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${enable_etsf_xc}" >&5
$as_echo "${enable_etsf_xc}" >&6; }
 { $as_echo "$as_me:$LINENO: checking whether to build the ETSF_XC plug-in" >&5
$as_echo_n "checking whether to build the ETSF_XC plug-in... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${build_etsf_xc}" >&5
$as_echo "${build_etsf_xc}" >&6; }

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

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

 fi





   if test "${enable_etsf_xc}" = "yes"; then
  DO_ENABLE_ETSF_XC_TRUE=
  DO_ENABLE_ETSF_XC_FALSE='#'
else
  DO_ENABLE_ETSF_XC_TRUE='#'
  DO_ENABLE_ETSF_XC_FALSE=
fi

  if test "${build_etsf_xc}" = "yes"; then
  DO_BUILD_ETSF_XC_TRUE=
  DO_BUILD_ETSF_XC_FALSE='#'
else
  DO_BUILD_ETSF_XC_TRUE='#'
  DO_BUILD_ETSF_XC_FALSE=
fi



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

#
# XML file I/O support
#

if test "${abi_fc_vendor}" = "sun" -a "${enable_debug}" != "yes"; then
 enable_fox="no"
 { $as_echo "$as_me:$LINENO: WARNING: FoX does not support separate .mod files => disabled" >&5
$as_echo "$as_me: WARNING: FoX does not support separate .mod files => disabled" >&2;}
fi
 lib_fox_includes=""
 lib_fox_libs=""
 build_fox="no"
 abi_plug_ready="no"
 abi_plug_tarball="no"
 abi_plug_bins=""
 abi_plug_incs=""
 abi_plug_libs=""

  fox_pkg_name="FoX-4.0.3"

 fox_pkg_string="FoX Fortran XML library 4.0.3 (upstream release)"


 if test -z "${CPPFLAGS_FOX}"; then
  CPPFLAGS_FOX="${CPPFLAGS}"
 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:$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/libFoX_wxml.a"; then
    abi_plug_libs="${abi_plug_libs} -lFoX_wxml"
   else
    abi_plug_ready="no"
   fi

   if test -s "${with_plugins_prefix}/lib/libFoX_wcml.a"; then
    abi_plug_libs="${abi_plug_libs} -lFoX_wcml"
   else
    abi_plug_ready="no"
   fi

   if test -s "${with_plugins_prefix}/lib/libFoX_utils.a"; then
    abi_plug_libs="${abi_plug_libs} -lFoX_utils"
   else
    abi_plug_ready="no"
   fi

   if test -s "${with_plugins_prefix}/lib/libFoX_sax.a"; then
    abi_plug_libs="${abi_plug_libs} -lFoX_sax"
   else
    abi_plug_ready="no"
   fi

   if test -s "${with_plugins_prefix}/lib/libFoX_common.a"; then
    abi_plug_libs="${abi_plug_libs} -lFoX_common"
   else
    abi_plug_ready="no"
   fi

   if test -s "${with_plugins_prefix}/lib/libfsys.a"; then
    abi_plug_libs="${abi_plug_libs} -lfsys"
   else
    abi_plug_ready="no"
   fi

   { $as_echo "$as_me:$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:$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.3.tar.gz"; then
    abi_plug_tarball="yes"
   fi
   { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }

      if test "${abi_plug_ready}" = "no"; then
    if test "${abi_plug_tarball}" = "no"; then
     { $as_echo "$as_me:$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.3.tar.gz"; then
      { $as_echo "$as_me:$LINENO: checking availability of FOX from URL 1" >&5
$as_echo_n "checking availability of FOX from URL 1... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${abinit_tardir}/FoX-4.0.3.tar.gz" \
       'http://www.uszla.me.uk/software/source/FoX/FoX-4.0.3.tgz'
      test -s "${abinit_tardir}/FoX-4.0.3.tar.gz" && abi_plug_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi
     if test ! -s "${abinit_tardir}/FoX-4.0.3.tar.gz"; then
      { $as_echo "$as_me:$LINENO: checking availability of FOX from URL 2" >&5
$as_echo_n "checking availability of FOX from URL 2... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${abinit_tardir}/FoX-4.0.3.tar.gz" \
       'http://wwwold.abinit.org/plugins/FoX-4.0.3.tar.gz'
      test -s "${abinit_tardir}/FoX-4.0.3.tar.gz" && abi_plug_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi

    fi

        if test "${abi_plug_tarball}" = "yes"; then
     lib_fox_includes="-I\$(abinit_builddir)/plugins/fox"
     lib_fox_libs="-L\$(abinit_builddir)/plugins/fox -lFoX_wxml -lFoX_wcml -lFoX_utils -lFoX_sax -lFoX_common -lfsys"
     build_fox="yes"
    else
     lib_fox_includes=""
     lib_fox_libs=""
     enable_fox="no"
     build_fox="no"
     { $as_echo "$as_me:$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:$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_includes="${with_fox_includes}"
   lib_fox_libs="${with_fox_libs}"
   build_fox="no"
  fi

 else
  enable_fox="no"
  build_fox="no"
 fi

  if test "${enable_fox}" = "yes"; then
  FCLIBS_FOX='$(FCLIBS)'
 else
  FCLIBS_FOX=''
 fi


  if test "${build_fox}" = "yes" -a "${enable_tricks}" = "yes"; then

 { $as_echo "$as_me:$LINENO: applying FoX tricks (not needed yet)" >&5
$as_echo "$as_me: applying FoX tricks (not needed yet)" >&6;}

  if test "${fox_tricks_bypass}" = "yes"; then
   build_fox="no"
  fi
 fi

  { $as_echo "$as_me:$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:$LINENO: result: ${enable_fox}" >&5
$as_echo "${enable_fox}" >&6; }
 { $as_echo "$as_me:$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:$LINENO: result: ${build_fox}" >&5
$as_echo "${build_fox}" >&6; }

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

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

 fi





   if test "${enable_fox}" = "yes"; then
  DO_ENABLE_FOX_TRUE=
  DO_ENABLE_FOX_FALSE='#'
else
  DO_ENABLE_FOX_TRUE='#'
  DO_ENABLE_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



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

#
# XML Fortran 90 support
# Note: this library is not developed anymore
#

if test "${abi_fc_vendor}" = "sun" -a "${enable_debug}" != "yes"; then
 enable_xmlf90="no"
 { $as_echo "$as_me:$LINENO: WARNING: XMLF90 does not support separate .mod files => disabled" >&5
$as_echo "$as_me: WARNING: XMLF90 does not support separate .mod files => disabled" >&2;}
fi
 lib_xmlf90_includes=""
 lib_xmlf90_libs=""
 build_xmlf90="no"
 abi_plug_ready="no"
 abi_plug_tarball="no"
 abi_plug_bins=""
 abi_plug_incs=""
 abi_plug_libs=""

  xmlf90_pkg_name="xmlf90-1.2g"

 xmlf90_pkg_string="XML Fortran 90 Library 1.2g (upstream release)"


 if test -z "${CPPFLAGS_XMLF90}"; then
  CPPFLAGS_XMLF90="${CPPFLAGS}"
 fi

 if test -z "${CFLAGS_XMLF90}"; then
  CFLAGS_XMLF90="${CFLAGS}"
 fi

 if test -z "${CXXFLAGS_XMLF90}"; then
  CXXFLAGS_XMLF90="${CXXFLAGS}"
 fi

 if test -z "${FCFLAGS_XMLF90}"; then
  FCFLAGS_XMLF90="${FCFLAGS}"
 fi


  FCFLAGS_XMLF90="${FCFLAGS_XMLF90} ${fcflags_opt_xmlf90}"

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

    if test "${with_plugins_prefix}" != ""; then
   { $as_echo "$as_me:$LINENO: checking whether XMLF90 is ready for use" >&5
$as_echo_n "checking whether XMLF90 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/libflib.a"; then
    abi_plug_libs="${abi_plug_libs} -lflib"
   else
    abi_plug_ready="no"
   fi

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

  if test "${abi_plug_ready}" = "yes"; then
   with_xmlf90_bins="${abi_plug_bins}"
   with_xmlf90_includes="${abi_plug_incs}"
   with_xmlf90_libs="${abi_plug_libs}"
  fi

    if test "${with_xmlf90_includes}" = "" -o "${with_xmlf90_libs}" = ""; then

      { $as_echo "$as_me:$LINENO: checking for a source tarball of XMLF90" >&5
$as_echo_n "checking for a source tarball of XMLF90... " >&6; }
   if test -s "${abinit_tardir}/xmlf90-1.2g.tar.gz"; then
    abi_plug_tarball="yes"
   fi
   { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }

      if test "${abi_plug_ready}" = "no"; then
    if test "${abi_plug_tarball}" = "no"; then
     { $as_echo "$as_me:$LINENO: downloading XMLF90 - this may take a while" >&5
$as_echo "$as_me: downloading XMLF90 - this may take a while" >&6;}

     if test ! -s "${abinit_tardir}/xmlf90-1.2g.tar.gz"; then
      { $as_echo "$as_me:$LINENO: checking availability of XMLF90 from URL 1" >&5
$as_echo_n "checking availability of XMLF90 from URL 1... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${abinit_tardir}/xmlf90-1.2g.tar.gz" \
       'http://wwwold.abinit.org/plugins/xmlf90-1.2g.tar.gz'
      test -s "${abinit_tardir}/xmlf90-1.2g.tar.gz" && abi_plug_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi

    fi

        if test "${abi_plug_tarball}" = "yes"; then
     lib_xmlf90_includes="-I\$(abinit_builddir)/plugins/xmlf90"
     lib_xmlf90_libs="-L\$(abinit_builddir)/plugins/xmlf90 -lflib"
     build_xmlf90="yes"
    else
     lib_xmlf90_includes=""
     lib_xmlf90_libs=""
     enable_xmlf90="no"
     build_xmlf90="no"
     { $as_echo "$as_me:$LINENO: WARNING: could not download XMLF90 plug-in tarball" >&5
$as_echo "$as_me: WARNING: could not download XMLF90 plug-in tarball" >&2;}
     { $as_echo "$as_me:$LINENO: WARNING: support for XMLF90 plug-in has been disabled" >&5
$as_echo "$as_me: WARNING: support for XMLF90 plug-in has been disabled" >&2;}
    fi
   fi
  else
   lib_xmlf90_includes="${with_xmlf90_includes}"
   lib_xmlf90_libs="${with_xmlf90_libs}"
   build_xmlf90="no"
  fi

 else
  enable_xmlf90="no"
  build_xmlf90="no"
 fi


  if test "${build_xmlf90}" = "yes" -a "${enable_tricks}" = "yes"; then

 { $as_echo "$as_me:$LINENO: applying XMLF90 tricks (not needed yet)" >&5
$as_echo "$as_me: applying XMLF90 tricks (not needed yet)" >&6;}

  if test "${xmlf90_tricks_bypass}" = "yes"; then
   build_xmlf90="no"
  fi
 fi

  { $as_echo "$as_me:$LINENO: checking whether to enable the XMLF90 plug-in" >&5
$as_echo_n "checking whether to enable the XMLF90 plug-in... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${enable_xmlf90}" >&5
$as_echo "${enable_xmlf90}" >&6; }
 { $as_echo "$as_me:$LINENO: checking whether to build the XMLF90 plug-in" >&5
$as_echo_n "checking whether to build the XMLF90 plug-in... " >&6; }
 { $as_echo "$as_me:$LINENO: result: ${build_xmlf90}" >&5
$as_echo "${build_xmlf90}" >&6; }

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

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

 fi





   if test "${enable_xmlf90}" = "yes"; then
  DO_ENABLE_XMLF90_TRUE=
  DO_ENABLE_XMLF90_FALSE='#'
else
  DO_ENABLE_XMLF90_TRUE='#'
  DO_ENABLE_XMLF90_FALSE=
fi

  if test "${build_xmlf90}" = "yes"; then
  DO_BUILD_XMLF90_TRUE=
  DO_BUILD_XMLF90_FALSE='#'
else
  DO_BUILD_XMLF90_TRUE='#'
  DO_BUILD_XMLF90_FALSE=
fi


if test "${enable_xmlf90}" = "yes"; then
 { $as_echo "$as_me:$LINENO: WARNING: XMLF90 will be replaced by FoX in the near future" >&5
$as_echo "$as_me: WARNING: XMLF90 will be replaced by FoX in the near future" >&2;}
fi

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

#
# Wannier90 support
#

 lib_wannier90_includes=""
 lib_wannier90_libs=""
 build_wannier90="no"
 abi_plug_ready="no"
 abi_plug_tarball="no"
 abi_plug_bins=""
 abi_plug_incs=""
 abi_plug_libs=""

  wannier90_pkg_name="wannier90-1.1"

 wannier90_pkg_string="Wannier90 program 1.1 (upstream release)"


 if test -z "${CPPFLAGS_WANNIER90}"; then
  CPPFLAGS_WANNIER90="${CPPFLAGS}"
 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:$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/libwannier.a"; then
    abi_plug_libs="${abi_plug_libs} -lwannier"
   else
    abi_plug_ready="no"
   fi

   { $as_echo "$as_me:$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:$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.1.tar.gz"; then
    abi_plug_tarball="yes"
   fi
   { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }

      if test "${abi_plug_ready}" = "no"; then
    if test "${abi_plug_tarball}" = "no"; then
     { $as_echo "$as_me:$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.1.tar.gz"; then
      { $as_echo "$as_me:$LINENO: checking availability of WANNIER90 from URL 1" >&5
$as_echo_n "checking availability of WANNIER90 from URL 1... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${abinit_tardir}/wannier90-1.1.tar.gz" \
       'http://quasiamore.mit.edu/wannier/code/wannier90-1.1.tar.gz'
      test -s "${abinit_tardir}/wannier90-1.1.tar.gz" && abi_plug_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi
     if test ! -s "${abinit_tardir}/wannier90-1.1.tar.gz"; then
      { $as_echo "$as_me:$LINENO: checking availability of WANNIER90 from URL 2" >&5
$as_echo_n "checking availability of WANNIER90 from URL 2... " >&6; }
      ${WGET} --timeout=15 --tries=1 -q -O \
       "${abinit_tardir}/wannier90-1.1.tar.gz" \
       'http://wwwold.abinit.org/plugins/wannier90-1.1.tar.gz'
      test -s "${abinit_tardir}/wannier90-1.1.tar.gz" && abi_plug_tarball="yes"
      { $as_echo "$as_me:$LINENO: result: ${abi_plug_tarball}" >&5
$as_echo "${abi_plug_tarball}" >&6; }
     fi

    fi

        if test "${abi_plug_tarball}" = "yes"; then
     lib_wannier90_includes=""
     lib_wannier90_libs="-L\$(abinit_builddir)/plugins/wannier90 -lwannier"
     build_wannier90="yes"
    else
     lib_wannier90_includes=""
     lib_wannier90_libs=""
     enable_wannier90="no"
     build_wannier90="no"
     { $as_echo "$as_me:$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:$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_includes="${with_wannier90_includes}"
   lib_wannier90_libs="${with_wannier90_libs}"
   build_wannier90="no"
  fi

 else
  enable_wannier90="no"
  build_wannier90="no"
 fi

  if test "${enable_wannier90}" = "yes"; then
  FCLIBS_WANNIER90='$(FCLIBS)'
 else
  FCLIBS_WANNIER90=''
 fi


  if test "${build_wannier90}" = "yes" -a "${enable_tricks}" = "yes"; then

 if test "${abi_fc_vendor}" != "UNKNOWN"; then
  { $as_echo "$as_me:$LINENO: applying compiler-specific Wannier90 tricks (type: ${abi_fc_vendor}, version: ${abi_fc_version})" >&5
$as_echo "$as_me: applying compiler-specific Wannier90 tricks (type: ${abi_fc_vendor}, version: ${abi_fc_version})" >&6;}
 fi

 case "${abi_fc_vendor}" in

  intel)
   FCLIBS_WANNIER90="${FCLIBS_WANNIER90} -lsvml"
   ;;

 esac

  if test "${wannier90_tricks_bypass}" = "yes"; then
   build_wannier90="no"
  fi
 fi

  { $as_echo "$as_me:$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:$LINENO: result: ${enable_wannier90}" >&5
$as_echo "${enable_wannier90}" >&6; }
 { $as_echo "$as_me:$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:$LINENO: result: ${build_wannier90}" >&5
$as_echo "${build_wannier90}" >&6; }

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

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

 fi





   if test "${enable_wannier90}" = "yes"; then
  DO_ENABLE_WANNIER90_TRUE=
  DO_ENABLE_WANNIER90_FALSE='#'
else
  DO_ENABLE_WANNIER90_TRUE='#'
  DO_ENABLE_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



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

#
# 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:$LINENO: checking whether to build Nightly code" >&5
$as_echo_n "checking whether to build Nightly code... " >&6; }
{ $as_echo "$as_me:$LINENO: result: ${enable_nightly}" >&5
$as_echo "${enable_nightly}" >&6; }

# Check for headers (required for Nigthly)
if test "${enable_nightly}" = "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:$LINENO: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

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

	ac_cv_header_stdc=no
fi

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

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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


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

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

fi

 if test "${ac_cv_header_stdio_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for stdio.h" >&5
$as_echo_n "checking for stdio.h... " >&6; }
if test "${ac_cv_header_stdio_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
$as_echo "$ac_cv_header_stdio_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking stdio.h usability" >&5
$as_echo_n "checking stdio.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <stdio.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking stdio.h presence" >&5
$as_echo_n "checking stdio.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdio.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: stdio.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: stdio.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: stdio.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: stdio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ------------------------------------------------- ##
## Report this to https://bugs.launchpad.net/abinit/ ##
## ------------------------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for stdio.h" >&5
$as_echo_n "checking for stdio.h... " >&6; }
if test "${ac_cv_header_stdio_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_stdio_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
$as_echo "$ac_cv_header_stdio_h" >&6; }

fi
if test $ac_cv_header_stdio_h = yes; then

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

else
  enable_nightly="no"
fi


 if test "${ac_cv_header_signal_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for signal.h" >&5
$as_echo_n "checking for signal.h... " >&6; }
if test "${ac_cv_header_signal_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
$as_echo "$ac_cv_header_signal_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking signal.h usability" >&5
$as_echo_n "checking signal.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <signal.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking signal.h presence" >&5
$as_echo_n "checking signal.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <signal.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: signal.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: signal.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: signal.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: signal.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: signal.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: signal.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ------------------------------------------------- ##
## Report this to https://bugs.launchpad.net/abinit/ ##
## ------------------------------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for signal.h" >&5
$as_echo_n "checking for signal.h... " >&6; }
if test "${ac_cv_header_signal_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_signal_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
$as_echo "$ac_cv_header_signal_h" >&6; }

fi
if test $ac_cv_header_signal_h = yes; then

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

else
  enable_nightly="no"
fi


 if test "${enable_nightly}" = "no"; then
  { $as_echo "$as_me:$LINENO: WARNING: nightly build support has been disabled" >&5
$as_echo "$as_me: WARNING: nightly build support has been disabled" >&2;}
 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

fi

# Set timeout for tests
if test "${enable_nightly}" = "yes"; then
 { $as_echo "$as_me:$LINENO: checking timeout for automatic tests" >&5
$as_echo_n "checking timeout for automatic tests... " >&6; }
 nightly_timeout="${with_timeout}"
 test "${with_timeout}" = "yes" && nightly_timeout="600"
 test "${with_timeout}" = "no" -o "${with_timeout}" = "" && nightly_timeout="0"
 if test "${nightly_timeout}" = "0"; then
  { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
 else
  { $as_echo "$as_me:$LINENO: result: ${nightly_timeout} seconds" >&5
$as_echo "${nightly_timeout} seconds" >&6; }
 fi
else
 nightly_timeout=""
fi



 if test "${enable_nightly}" = "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:$LINENO: checking whether to enable bindings" >&5
$as_echo_n "checking whether to enable bindings... " >&6; }
if test "${enable_bindings}" = "yes"; then

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

fi
{ $as_echo "$as_me:$LINENO: result: ${enable_bindings}" >&5
$as_echo "${enable_bindings}" >&6; }
 if test "${enable_bindings}" = "yes"; then
  DO_BUILD_BINDINGS_TRUE=
  DO_BUILD_BINDINGS_FALSE='#'
else
  DO_BUILD_BINDINGS_TRUE='#'
  DO_BUILD_BINDINGS_FALSE=
fi


# Error handlers
{ $as_echo "$as_me:$LINENO: checking whether to enable error handlers" >&5
$as_echo_n "checking whether to enable error handlers... " >&6; }
if test "${enable_error_handlers}" = "yes"; then

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

fi
{ $as_echo "$as_me:$LINENO: result: ${enable_error_handlers}" >&5
$as_echo "${enable_error_handlers}" >&6; }
 if test "${enable_error_handlers}" = "yes"; then
  DO_BUILD_ERROR_HANDLERS_TRUE=
  DO_BUILD_ERROR_HANDLERS_FALSE='#'
else
  DO_BUILD_ERROR_HANDLERS_TRUE='#'
  DO_BUILD_ERROR_HANDLERS_FALSE=
fi


# Exports
if test "${enable_bindings}" = "yes"; then
 if test "${enable_exports}" != "yes"; then
  { $as_echo "$as_me:$LINENO: bindings enabled => enabling exports" >&5
$as_echo "$as_me: bindings enabled => enabling exports" >&6;}
  enable_exports="yes"
 fi
fi
{ $as_echo "$as_me:$LINENO: checking whether to build exports" >&5
$as_echo_n "checking whether to build exports... " >&6; }
{ $as_echo "$as_me:$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


# Double precision in GW
{ $as_echo "$as_me:$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

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

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

# Build of macroave
{ $as_echo "$as_me:$LINENO: checking whether to use macroave" >&5
$as_echo_n "checking whether to use macroave... " >&6; }
if test "${enable_macroave}" = "yes"; then

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

fi
{ $as_echo "$as_me:$LINENO: result: ${enable_macroave}" >&5
$as_echo "${enable_macroave}" >&6; }
 if test "${enable_macroave}" = "yes"; then
  DO_BUILD_LIB00MACROAV_TRUE=
  DO_BUILD_LIB00MACROAV_FALSE='#'
else
  DO_BUILD_LIB00MACROAV_TRUE='#'
  DO_BUILD_LIB00MACROAV_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


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

#
# 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.mk config.py config.sh config.dump config/wrappers/wrap-fc plugins/xmlf90/build.mk src/00basis/m_build_info.F90 tests/tests.env Makefile src/Makefile src/defs/Makefile src/interfaces/Makefile src/00basis/Makefile src/lib00gsl/Makefile src/lib00macroav/Makefile src/lib01hidempi/Makefile src/01manage_mpi/Makefile src/02toolbox/Makefile src/lib02fftnew/Makefile src/lib03numeric/Makefile src/11util/Makefile src/11contract/Makefile src/12spacepar/Makefile src/12parser/Makefile src/12geometry/Makefile src/12ffts/Makefile src/12nlstrain/Makefile src/13xml/Makefile src/13xc/Makefile src/13recipspace/Makefile src/13iovars/Makefile src/13io_mpi/Makefile src/13ionetcdf/Makefile src/13papi_counters/Makefile src/lib14cg/Makefile src/14poisson/Makefile src/14wvl_wfs/Makefile src/14iowfdenpot/Makefile src/14bader/Makefile src/14occeig/Makefile src/15nonlocal/Makefile src/15wfs/Makefile src/15psp/Makefile src/15paw/Makefile src/15recursion/Makefile src/15common/Makefile src/15rsprc/Makefile src/15gw/Makefile src/16response/Makefile src/16geomoptim/Makefile src/17suscep/Makefile src/17lwf/Makefile src/17ddb/Makefile src/18seqpar/Makefile src/19cut3d/Makefile src/21rdm/Makefile src/21drive/Makefile src/main/Makefile src/libs/Makefile src/nightly/Makefile prereqs/Makefile prereqs/linalg/Makefile plugins/Makefile plugins/netcdf/Makefile plugins/etsf_io/Makefile plugins/etsf_xc/Makefile plugins/fox/Makefile plugins/bigdft/Makefile plugins/wannier90/Makefile plugins/xmlf90/Makefile bindings/Makefile bindings/parser/Makefile doc/Makefile tests/Makefile"


  ac_config_commands="$ac_config_commands script-perms"


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

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_CCLOCK_TRUE}" && test -z "${DO_BUILD_CCLOCK_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_CCLOCK\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_CCLOCK\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_PARALLEL_TRUE}" && test -z "${DO_BUILD_PARALLEL_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_PARALLEL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_PARALLEL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_LIB00GSL_TRUE}" && test -z "${DO_BUILD_LIB00GSL_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_LIB00GSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_LIB00GSL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_LINALG_TRUE}" && test -z "${DO_BUILD_LINALG_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_LINALG\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_LINALG\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_ENABLE_BIGDFT_TRUE}" && test -z "${DO_ENABLE_BIGDFT_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_ENABLE_BIGDFT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_ENABLE_BIGDFT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_BIGDFT_TRUE}" && test -z "${DO_BUILD_BIGDFT_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_BIGDFT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_BIGDFT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_ENABLE_NETCDF_TRUE}" && test -z "${DO_ENABLE_NETCDF_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_ENABLE_NETCDF\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_ENABLE_NETCDF\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_NETCDF_TRUE}" && test -z "${DO_BUILD_NETCDF_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_NETCDF\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_NETCDF\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_ENABLE_ETSF_IO_TRUE}" && test -z "${DO_ENABLE_ETSF_IO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_ENABLE_ETSF_IO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_ENABLE_ETSF_IO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_ETSF_IO_TRUE}" && test -z "${DO_BUILD_ETSF_IO_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_ETSF_IO\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_ETSF_IO\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_ENABLE_ETSF_XC_TRUE}" && test -z "${DO_ENABLE_ETSF_XC_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_ENABLE_ETSF_XC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_ENABLE_ETSF_XC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_ETSF_XC_TRUE}" && test -z "${DO_BUILD_ETSF_XC_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_ETSF_XC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_ETSF_XC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_ENABLE_FOX_TRUE}" && test -z "${DO_ENABLE_FOX_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_ENABLE_FOX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_ENABLE_FOX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_FOX_TRUE}" && test -z "${DO_BUILD_FOX_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_FOX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_FOX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_ENABLE_XMLF90_TRUE}" && test -z "${DO_ENABLE_XMLF90_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_ENABLE_XMLF90\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_ENABLE_XMLF90\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_XMLF90_TRUE}" && test -z "${DO_BUILD_XMLF90_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_XMLF90\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_XMLF90\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_ENABLE_WANNIER90_TRUE}" && test -z "${DO_ENABLE_WANNIER90_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_ENABLE_WANNIER90\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_ENABLE_WANNIER90\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_WANNIER90_TRUE}" && test -z "${DO_BUILD_WANNIER90_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_WANNIER90\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_WANNIER90\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_NIGHTLY_TRUE}" && test -z "${DO_BUILD_NIGHTLY_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_NIGHTLY\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_NIGHTLY\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_BINDINGS_TRUE}" && test -z "${DO_BUILD_BINDINGS_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_BINDINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_ERROR_HANDLERS_TRUE}" && test -z "${DO_BUILD_ERROR_HANDLERS_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_ERROR_HANDLERS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_ERROR_HANDLERS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_EXPORTS_TRUE}" && test -z "${DO_BUILD_EXPORTS_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_EXPORTS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_EXPORTS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_LIB00MACROAV_TRUE}" && test -z "${DO_BUILD_LIB00MACROAV_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_LIB00MACROAV\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_LIB00MACROAV\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DO_BUILD_MACROAVE_TRUE}" && test -z "${DO_BUILD_MACROAVE_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"DO_BUILD_MACROAVE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"DO_BUILD_MACROAVE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi

: ${CONFIG_STATUS=./config.status}
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

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

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi

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


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

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
PS1='$ '
PS2='> '
PS4='+ '

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

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

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# CDPATH.
$as_unset CDPATH



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

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


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

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

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

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

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

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1

# Save the log message, to keep $[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by ABINIT $as_me 5.7.4, which was
generated by GNU Autoconf 2.62.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
  -q, --quiet      do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@gnu.org>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
ABINIT config.status 5.7.4
configured by $0, generated by GNU Autoconf 2.62,
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

Copyright (C) 2008 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    { $as_echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { $as_echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"

_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.mk") CONFIG_FILES="$CONFIG_FILES config.mk" ;;
    "config.py") CONFIG_FILES="$CONFIG_FILES config.py" ;;
    "config.sh") CONFIG_FILES="$CONFIG_FILES config.sh" ;;
    "config.dump") CONFIG_FILES="$CONFIG_FILES config.dump" ;;
    "config/wrappers/wrap-fc") CONFIG_FILES="$CONFIG_FILES config/wrappers/wrap-fc" ;;
    "plugins/xmlf90/build.mk") CONFIG_FILES="$CONFIG_FILES plugins/xmlf90/build.mk" ;;
    "src/00basis/m_build_info.F90") CONFIG_FILES="$CONFIG_FILES src/00basis/m_build_info.F90" ;;
    "tests/tests.env") CONFIG_FILES="$CONFIG_FILES tests/tests.env" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    "src/defs/Makefile") CONFIG_FILES="$CONFIG_FILES src/defs/Makefile" ;;
    "src/interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES src/interfaces/Makefile" ;;
    "src/00basis/Makefile") CONFIG_FILES="$CONFIG_FILES src/00basis/Makefile" ;;
    "src/lib00gsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib00gsl/Makefile" ;;
    "src/lib00macroav/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib00macroav/Makefile" ;;
    "src/lib01hidempi/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib01hidempi/Makefile" ;;
    "src/01manage_mpi/Makefile") CONFIG_FILES="$CONFIG_FILES src/01manage_mpi/Makefile" ;;
    "src/02toolbox/Makefile") CONFIG_FILES="$CONFIG_FILES src/02toolbox/Makefile" ;;
    "src/lib02fftnew/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib02fftnew/Makefile" ;;
    "src/lib03numeric/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib03numeric/Makefile" ;;
    "src/11util/Makefile") CONFIG_FILES="$CONFIG_FILES src/11util/Makefile" ;;
    "src/11contract/Makefile") CONFIG_FILES="$CONFIG_FILES src/11contract/Makefile" ;;
    "src/12spacepar/Makefile") CONFIG_FILES="$CONFIG_FILES src/12spacepar/Makefile" ;;
    "src/12parser/Makefile") CONFIG_FILES="$CONFIG_FILES src/12parser/Makefile" ;;
    "src/12geometry/Makefile") CONFIG_FILES="$CONFIG_FILES src/12geometry/Makefile" ;;
    "src/12ffts/Makefile") CONFIG_FILES="$CONFIG_FILES src/12ffts/Makefile" ;;
    "src/12nlstrain/Makefile") CONFIG_FILES="$CONFIG_FILES src/12nlstrain/Makefile" ;;
    "src/13xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/13xml/Makefile" ;;
    "src/13xc/Makefile") CONFIG_FILES="$CONFIG_FILES src/13xc/Makefile" ;;
    "src/13recipspace/Makefile") CONFIG_FILES="$CONFIG_FILES src/13recipspace/Makefile" ;;
    "src/13iovars/Makefile") CONFIG_FILES="$CONFIG_FILES src/13iovars/Makefile" ;;
    "src/13io_mpi/Makefile") CONFIG_FILES="$CONFIG_FILES src/13io_mpi/Makefile" ;;
    "src/13ionetcdf/Makefile") CONFIG_FILES="$CONFIG_FILES src/13ionetcdf/Makefile" ;;
    "src/13papi_counters/Makefile") CONFIG_FILES="$CONFIG_FILES src/13papi_counters/Makefile" ;;
    "src/lib14cg/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib14cg/Makefile" ;;
    "src/14poisson/Makefile") CONFIG_FILES="$CONFIG_FILES src/14poisson/Makefile" ;;
    "src/14wvl_wfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/14wvl_wfs/Makefile" ;;
    "src/14iowfdenpot/Makefile") CONFIG_FILES="$CONFIG_FILES src/14iowfdenpot/Makefile" ;;
    "src/14bader/Makefile") CONFIG_FILES="$CONFIG_FILES src/14bader/Makefile" ;;
    "src/14occeig/Makefile") CONFIG_FILES="$CONFIG_FILES src/14occeig/Makefile" ;;
    "src/15nonlocal/Makefile") CONFIG_FILES="$CONFIG_FILES src/15nonlocal/Makefile" ;;
    "src/15wfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/15wfs/Makefile" ;;
    "src/15psp/Makefile") CONFIG_FILES="$CONFIG_FILES src/15psp/Makefile" ;;
    "src/15paw/Makefile") CONFIG_FILES="$CONFIG_FILES src/15paw/Makefile" ;;
    "src/15recursion/Makefile") CONFIG_FILES="$CONFIG_FILES src/15recursion/Makefile" ;;
    "src/15common/Makefile") CONFIG_FILES="$CONFIG_FILES src/15common/Makefile" ;;
    "src/15rsprc/Makefile") CONFIG_FILES="$CONFIG_FILES src/15rsprc/Makefile" ;;
    "src/15gw/Makefile") CONFIG_FILES="$CONFIG_FILES src/15gw/Makefile" ;;
    "src/16response/Makefile") CONFIG_FILES="$CONFIG_FILES src/16response/Makefile" ;;
    "src/16geomoptim/Makefile") CONFIG_FILES="$CONFIG_FILES src/16geomoptim/Makefile" ;;
    "src/17suscep/Makefile") CONFIG_FILES="$CONFIG_FILES src/17suscep/Makefile" ;;
    "src/17lwf/Makefile") CONFIG_FILES="$CONFIG_FILES src/17lwf/Makefile" ;;
    "src/17ddb/Makefile") CONFIG_FILES="$CONFIG_FILES src/17ddb/Makefile" ;;
    "src/18seqpar/Makefile") CONFIG_FILES="$CONFIG_FILES src/18seqpar/Makefile" ;;
    "src/19cut3d/Makefile") CONFIG_FILES="$CONFIG_FILES src/19cut3d/Makefile" ;;
    "src/21rdm/Makefile") CONFIG_FILES="$CONFIG_FILES src/21rdm/Makefile" ;;
    "src/21drive/Makefile") CONFIG_FILES="$CONFIG_FILES src/21drive/Makefile" ;;
    "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
    "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
    "src/nightly/Makefile") CONFIG_FILES="$CONFIG_FILES src/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/netcdf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/netcdf/Makefile" ;;
    "plugins/etsf_io/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/etsf_io/Makefile" ;;
    "plugins/etsf_xc/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/etsf_xc/Makefile" ;;
    "plugins/fox/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fox/Makefile" ;;
    "plugins/bigdft/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/bigdft/Makefile" ;;
    "plugins/wannier90/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/wannier90/Makefile" ;;
    "plugins/xmlf90/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/xmlf90/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" ;;
    "script-perms") CONFIG_COMMANDS="$CONFIG_COMMANDS script-perms" ;;

  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} ||
{
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr='
'
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }

  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
    break
  elif $ac_last_try; then
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\).*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\).*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
   { (exit 1); exit 1; }; }
_ACEOF

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@srcdir@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_t"; then
    break
  elif $ac_last_try; then
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    prefix = substr(line, 1, index(line, defundef) - 1)
    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 "/*", line, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
   { (exit 1); exit 1; }; }
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   { (exit 1); exit 1; }; };;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   { (exit 1); exit 1; }; };;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      ac_file_inputs="$ac_file_inputs '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin" \
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; } ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  { as_dir="$ac_dir"
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
   { (exit 1); exit 1; }; }; }
  ac_builddir=.

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

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


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=

ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p
'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
    s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
s&@MKDIR_P@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; }

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}

  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out" && rm -f "$tmp/out";;
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  esac \
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; }
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
    } >"$tmp/config.h" \
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; }
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$tmp/config.h" "$ac_file" \
	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; }
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
$as_echo "$as_me: error: could not create -" >&2;}
   { (exit 1); exit 1; }; }
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;

  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  # Strip MF so we end up with the name of the file.
  mf=`echo "$mf" | sed -e 's/:.*$//'`
  # Check whether this is an Automake generated Makefile or not.
  # We used to match only the files named `Makefile.in', but
  # some people rename them; so instead we look at the file content.
  # Grep'ing the first line is not enough: some people post-process
  # each Makefile.in and add a new line on top of each file to say so.
  # Grep'ing the whole file is not good either: AIX grep has a line
  # limit of 2048, but all sed's we know have understand at least 4000.
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
    dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$mf" : 'X\(//\)[^/]' \| \
	 X"$mf" : 'X\(//\)$' \| \
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  else
    continue
  fi
  # Extract the definition of DEPDIR, am__include, and am__quote
  # from the Makefile without running `make'.
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  test -z "$DEPDIR" && continue
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
  test -z "am__include" && continue
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  # When using ansi2knr, U may be empty or an underscore; expand it
  U=`sed -n 's/^U = //p' < "$mf"`
  # Find all dependency output files, they are included files with
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
  # simplest approach to changing $(DEPDIR) to its actual value in the
  # expansion.
  for file in `sed -n "
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    # Make sure the directory exists.
    test -f "$dirpart/$file" && continue
    fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$file" : 'X\(//\)[^/]' \| \
	 X"$file" : 'X\(//\)$' \| \
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    { as_dir=$dirpart/$fdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
   { (exit 1); exit 1; }; }; }
    # echo "creating $dirpart/$file"
    echo '# dummy' > "$dirpart/$file"
  done
done
 ;;
    "script-perms":C) chmod a+x config/wrappers/wrap-fc ;;

  esac
done # for ac_tag


{ (exit 0); exit 0; }
_ACEOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
fi



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

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

  abi_msg_file="${abinit_srcdir}/config/messages/mpi-generic.msg"
 abi_msg_title=""
 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:$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

# 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 "make mj4", "make multi" or "make multi_alt" on a SMP machine)

EOF

