#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for icon 2026.04.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

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


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

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


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

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

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

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

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

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

# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

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

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

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


      if test "x$CONFIG_SHELL" != x; then :
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
fi

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

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

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

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

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

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p

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

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


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

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

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

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

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

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


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}

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

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

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

as_test_x='test -x'
as_executable_p=as_fn_executable_p

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

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


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

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

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='icon'
PACKAGE_TARNAME='icon-2026.04'
PACKAGE_VERSION='2026.04'
PACKAGE_STRING='icon 2026.04'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

ac_unique_file="src/drivers/icon.f90"
extra_build_subdirs=
ac_subst_vars='LTLIBOBJS
LIBOBJS
PGI_INLIB_ENABLED
COMIN_PYTHON_ENABLED
YAC_PYTHON_ENABLED
MTIME_PYTHON_ENABLED
SB2_ENABLED
FPP_ENABLED
HIP_ENABLED
CUDA_ENABLED
GPU_ENABLED
OPENMP_ENABLED
MPI_DISABLED
MPI_ENABLED
HD_ENABLED
COMIN_SHARED_ENABLED
COMIN_STATIC_ENABLED
MSGWAM_ENABLED
ART_ENABLED
EMVORADO_ENABLED
DACE_ENABLED
JSBACH_ENABLED
SEPARATE_MODS_DISABLED
SEPARATE_MODS_ENABLED
DELAYED_CONFIG_ENABLED
DEFAULT_VERBOSITY
icon_bundled_cmake_builddirs
icon_bundled_builddirs
ICON_HD_FCFLAGS
ICON_RAGNAROK_HIPFLAGS
ICON_RAGNAROK_CUDAFLAGS
ICON_RAGNAROK_CXXFLAGS
ICON_RAGNAROK_FCFLAGS
ICON_ICONMATH_FCFLAGS
ICON_MEMMAN_CXXFLAGS
ICON_MEMMAN_CFLAGS
ICON_MEMMAN_FCFLAGS
ICON_KOKKOS_HIPFLAGS
ICON_KOKKOS_CUDAFLAGS
ICON_KOKKOS_CXXFLAGS
ICON_FORTRAN_SUPPORT_CFLAGS
ICON_FORTRAN_SUPPORT_FCFLAGS
ICON_COMIN_CXXFLAGS
ICON_COMIN_CFLAGS
ICON_COMIN_FCFLAGS
ICON_TIXI_CFLAGS
ICON_TIXI_FCFLAGS
ICON_YAC_CFLAGS
ICON_YAC_FCFLAGS
ICON_MTIME_CFLAGS
ICON_MTIME_FCFLAGS
ICON_CDI_CFLAGS
ICON_CDI_FCFLAGS
ICON_PPM_CFLAGS
ICON_PPM_FCFLAGS
ICON_YAXT_CFLAGS
ICON_YAXT_FCFLAGS
ICON_SCT_CFLAGS
ICON_SCT_FCFLAGS
ICON_ECRAD_FCFLAGS
ICON_RTE_RRTMGP_FCFLAGS
icon_dace_fetchstamp
icon_dace_subdir
ICON_CMAKE_EXCLUDE
icon_pvcs_bundled_srcdirs
BUNDLED_LIBFILES
BUNDLED_PYTHONPATH
BUNDLED_RULES
ICON_BUNDLED_HIPFLAGS
ICON_BUNDLED_CUDAFLAGS
ICON_BUNDLED_CXXFLAGS
ICON_BUNDLED_CFLAGS
ICON_BUNDLED_FCFLAGS
MPI_LAUNCH
SB2PP
FPP
CMAKE
PYTHON
RANLIB
ARFLAGS
AR
LN_S
MKDIR_P
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
DEPGEN_FCFLAGS
ICON_HIPFLAGS
HIPFLAGS
HIPCXX
ICON_CUDAFLAGS
CUDAFLAGS
CUDACXX
CXXFLAGS
CXX
ICON_CFLAGS
ac_ct_CC
CPPFLAGS
CFLAGS
CC
FC_PP_DEF
FC_INC_ORDER_PP_f90
FC_INC_FLAG_PP_f90
FC_INC_ORDER
FC_INC_FLAG
FC_MOD_ONLY
FC_ROOT_SMOD
FC_SMOD_FILE_EXT
FC_SMOD_FILE_INFIX
FC_MOD_FILE_EXT
FC_MOD_FILE_UPPER
FC_MOD_OUT
FC_MOD_IN
FC_VERSION
FC_VENDOR
FCFLAGS_f90
ICON_FCGROUP_FLAGS
ICON_LDFLAGS
ICON_FCFLAGS
OBJEXT
EXEEXT
ac_ct_FC
LDFLAGS
FCFLAGS
FC
host_fqdn
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
BUILD_ENV_MAKE
BUILD_ENV
FCGROUP_ASSIGNMENTS
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_rpaths
enable_silent_rules
enable_delayed_config
enable_separate_mods
enable_deprecated
enable_atmo
enable_les
enable_upatmo
enable_ocean
enable_jsbach
enable_jsbach_hd
enable_quincy
enable_waves
enable_coupling
enable_aes
enable_ragnarok
enable_nwp
enable_ecrad
enable_rte_rrtmgp
enable_rttov
enable_dace
enable_emvorado
enable_art
enable_msgwam
enable_art_gpl
enable_comin
enable_hd
enable_acm_license
enable_mpi
enable_mpi_checks
enable_active_target_sync
enable_mpi_rget
enable_mpi_gpu
enable_async_io_rma
enable_openmp
enable_gpu
enable_grib2
enable_parallel_netcdf
enable_cdi_pio
enable_sct
enable_yaxt
enable_explicit_fpp
enable_serialization
enable_testbed
enable_memory_tracing
enable_bundled_python
enable_loop_exchange
enable_dim_swap
enable_realloc_buf
enable_lvector
enable_vectorized_lrtm
enable_mixed_precision
enable_single_precision
enable_single_precision_ecrad
enable_intel_consistency
enable_pgi_inlib
enable_nccl
enable_cuda_graphs
with_external_rte_rrtmgp
with_external_ecrad
with_external_sct
with_external_yaxt
with_external_ppm
with_external_cdi
with_external_mtime
with_external_yac
with_external_tixi
with_external_fortran_support
'
      ac_precious_vars='build_alias
host_alias
target_alias
BUILD_ENV
FC
FCFLAGS
LDFLAGS
LIBS
ICON_FCFLAGS
ICON_LDFLAGS
CC
CFLAGS
CPPFLAGS
ICON_CFLAGS
CXX
CXXFLAGS
CUDACXX
CUDAFLAGS
ICON_CUDAFLAGS
HIPCXX
HIPFLAGS
ICON_HIPFLAGS
AR
ARFLAGS
RANLIB
PYTHON
CMAKE
FPP
SB2PP
MPI_LAUNCH
ICON_BUNDLED_FCFLAGS
ICON_BUNDLED_CFLAGS
ICON_BUNDLED_CXXFLAGS
ICON_BUNDLED_CUDAFLAGS
ICON_BUNDLED_HIPFLAGS
ICON_RTE_RRTMGP_FCFLAGS
ICON_ECRAD_FCFLAGS
ICON_SCT_FCFLAGS
ICON_SCT_CFLAGS
ICON_YAXT_FCFLAGS
ICON_YAXT_CFLAGS
ICON_PPM_FCFLAGS
ICON_PPM_CFLAGS
ICON_CDI_FCFLAGS
ICON_CDI_CFLAGS
ICON_MTIME_FCFLAGS
ICON_MTIME_CFLAGS
ICON_YAC_FCFLAGS
ICON_YAC_CFLAGS
ICON_TIXI_FCFLAGS
ICON_TIXI_CFLAGS
ICON_COMIN_FCFLAGS
ICON_COMIN_CFLAGS
ICON_COMIN_CXXFLAGS
ICON_FORTRAN_SUPPORT_FCFLAGS
ICON_FORTRAN_SUPPORT_CFLAGS
ICON_KOKKOS_CXXFLAGS
ICON_KOKKOS_CUDAFLAGS
ICON_KOKKOS_HIPFLAGS
ICON_MEMMAN_FCFLAGS
ICON_MEMMAN_CFLAGS
ICON_MEMMAN_CXXFLAGS
ICON_ICONMATH_FCFLAGS
ICON_RAGNAROK_FCFLAGS
ICON_RAGNAROK_CXXFLAGS
ICON_RAGNAROK_CUDAFLAGS
ICON_RAGNAROK_HIPFLAGS
ICON_HD_FCFLAGS'
ac_subdirs_all='externals/rte-rrtmgp
externals/ecrad
externals/sct
externals/yaxt
externals/ppm
externals/cdi
externals/yac
externals/tixi
externals/hd'

# 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=
acx_cmake_defs=
acx_cmake_ignored_defs=
acx_prev_D=
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

  acx_cmake_option=yes
  if test -n "$acx_prev_D"; then :
  ac_option="-D$ac_option"
     acx_prev_D=
else
  case $ac_option in #(
  -D) :
    acx_prev_D=yes; continue ;; #(
  -D*) :
     ;; #(
  *) :
    acx_cmake_option=no ;;
esac
fi
  if test "x$acx_cmake_option" = xyes; then :
  case $ac_option in #(
  -DCMAKE*) :
    case ', '$acx_cmake_ignored_defs', ' in #(
  *', '$ac_option', '*) :
     ;; #(
  ', '', ') :
    as_fn_append acx_cmake_ignored_defs $ac_option ;; #(
  *) :
    as_fn_append acx_cmake_ignored_defs ', '; as_fn_append acx_cmake_ignored_defs $ac_option ;;
esac ;; #(
  *) :

       case $ac_option in #(
  *\'*) :
    ac_option=`$as_echo "$ac_option" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_cmake_defs " '$ac_option'" ;;
esac
     continue
fi

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

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

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

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

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

  esac
done

if test -n "$acx_prev_D"; then :
  as_fn_error $? "missing argument to -D"
fi
                   if test -n "$acx_cmake_ignored_defs"; then :
  case $enable_option_checking in #(
  no) :
     ;; #(
  fatal) :
    as_fn_error $? "ignored CMake definitions: $acx_cmake_ignored_defs" ;; #(
  *) :
    $as_echo "$as_me: WARNING: ignored CMake definitions: $acx_cmake_ignored_defs" >&2 ;;
esac
fi
           if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error $? "missing argument to $ac_option"
fi

icon_fcgroups=
acx_unrecognized_opts=
acx_save_IFS=$IFS
IFS=','
for acx_opt in $ac_unrecognized_opts; do
  IFS=$acx_save_IFS
  acx_opt=`$as_echo "$acx_opt" | sed 's/^ //'`
  acx_opt_recognized=no
  case $acx_opt in #(
  --disable-fcgroup-* | --enable-fcgroup-*) :
         acx_opt_name=`expr "$acx_opt" : '--[^-]*able-fcgroup-\(.*\)'`
          if test -n "$acx_opt_name"; then :
  as_fn_append icon_fcgroups " $acx_opt_name"
        acx_opt_recognized=yes
fi ;; #(
  *) :
     ;;
esac
  if test "x$acx_opt_recognized" = xno; then :
  if test -n "$acx_unrecognized_opts"; then :
  as_fn_append acx_unrecognized_opts ", $acx_opt"
else
  acx_unrecognized_opts=$acx_opt
fi
fi
done
IFS=$acx_save_IFS
ac_unrecognized_opts=$acx_unrecognized_opts
if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

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

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

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

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

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


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error $? "pwd does not report name of working directory"


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

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures icon 2026.04 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/icon-2026.04]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

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

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

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of icon 2026.04:";;
   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-rpaths         add directories specified with -L flags in LDFLAGS,
                          ICON_LDFLAGS and LIBS to the runtime library search
                          paths (RPATH) [default=yes]
  --enable-silent-rules   less verbose build output (undo: "make V=1")
                          [default=yes]
  --enable-delayed-config configure the bundled packages at the build time
                          [default=yes]
  --enable-separate-mods  enable the two-step compilation of the Fortran
                          source files (increases the total overhead but
                          potentially reduces the wall clock time for parallel
                          builds due to a faster Fortran module generation)
                          [default=no]

Model Features:
  --enable-deprecated     enable usage of deprecated features [default=no]
  --enable-atmo           enable the atmosphere component of ICON
                          [default=yes]
  --enable-les            enable the Large-Eddy Simulation component of ICON
                          [default=yes]
  --enable-upatmo         enable the upper atmosphere component of ICON
                          [default=yes]
  --enable-ocean          enable the ocean component of ICON [default=yes]
  --enable-jsbach         enable the land component of ICON (ICON-Land)
                          [default=yes]
  --enable-jsbach-hd      enable the internal hydrological discharge (HD)
                          scheme of the land component [default=auto]
  --enable-quincy         enable the QUINCY biogeochemistry model in the land
                          component [default=no]
  --enable-waves          enable the ocean surface wave component of ICON
                          [default=no]
  --enable-coupling       enable the coupling [default=yes]
  --enable-aes            enable the AES physics package [default=yes]
  --enable-ragnarok       enable experimental components implemented in
                          C++/Kokkos [default=no]
  --enable-nwp            enable the NWP physics package [default=yes]
  --enable-ecrad          enable usage of the ECMWF radiation scheme (ECRAD)
                          [default=no]
  --enable-rte-rrtmgp     enable usage of the RTE+RRTMGP toolbox for radiation
                          calculations [default=yes]
  --enable-rttov          enable usage of the radiative transfer model for
                          TOVS [default=no]
  --enable-dace           enable the Data Assimilation Coding Environment
                          (DACE) modules for data assimilation [default=no]
  --enable-emvorado       enable the radar forward operator EMVORADO
                          [default=no]
  --enable-art            enable the aerosols and reactive trace component ART
                          [default=no]
  --enable-msgwam         enable the MSGWAM gravity wave drag scheme
                          [default=no]
  --enable-art-gpl        enable GPL-licensed code parts of the ART component
                          [default=no]
  --enable-comin          enable the ICON community interface (COMIN). The
                          value of the argument must be one of the following
                          [default=no]:
                            static|yes  enable static bundled COMIN library
                            shared      enable shared bundled COMIN library
                            external    use external COMIN library
                            no          disable COMIN interface
  --enable-hd             enable the Hydrological Discharge (HD) model. The
                          value of the argument must be one of the following
                          [default=no]:
                            05deg|yes  enable for the 0.5-degree global domain
                            5min       enable for the 5min global domain
                            no         disable the HD model
  --enable-acm-license    enable code parts that require accepting the ACM
                          Software License Agreement [default=no]

Infrastructural Features:
  --enable-mpi            enable MPI (parallelization) support [default=yes]
  --enable-mpi-checks     enable configure-time checks of MPI library for
                          known defects [default=yes]
  --enable-active-target-sync
                          enable MPI active target mode (otherwise, passive
                          target mode is used) [default=no]
  --enable-mpi-rget       enable usage of the MPI_Rget routine [default=auto]
  --enable-mpi-gpu        enable usage of the GPU-aware MPI features
                          [default=no]
  --enable-async-io-rma   enable MPI RMA for asynchronous I/O [default=yes]
  --enable-openmp         enable OpenMP support [default=no]
  --enable-gpu            enable GPU support. The value of the argument must
                          be one of the following [default=no]:
                            openacc+cuda  enable support with OpenACC and CUDA
                            openacc+hip   enable support with OpenACC and HIP
                            openacc       alias for 'openacc+cuda'
                            yes           alias for 'openacc+cuda'
                            no            disable GPU support
  --enable-grib2          enable GRIB2 I/O [default=no]
  --enable-parallel-netcdf
                          enable usage of the parallel features of NetCDF
                          [default=no]
  --enable-cdi-pio        enable usage of the parallel features of CDI
                          [default=no]
  --enable-sct            enable the SCT timer [default=no]
  --enable-yaxt           enable the YAXT data exchange [default=no]
  --enable-explicit-fpp   enable explicit Fortran preprocessing [default=auto]
  --enable-serialization  enable the Serialbox2 serialization. The value of
                          the argument must be one of the following
                          [default=no]:
                            read     enable READ mode
                            perturb  enable READ & PERTURB mode
                            create   enable CREATE mode
                            yes      alias for 'read'
                            no       disable serialization
  --enable-testbed        enable ICON Testbed infrastructure [default=no]
  --enable-memory-tracing enable native dynamic memory tracing facility. The
                          value of the argument must be one of the following
                          [default=no]:
                            mtrace  enable tracing with mtrace (glibc)
                            yes     alias for 'mtrace'
                            no      disable memory tracing
  --enable-bundled-python enable Python interfaces of the bundled libraries.
                          The value of the argument must be either one of the
                          following [default=no]:
                            auto|yes  enable all supported interfaces of the
                                      enabled bundled libraries
                            no        disable Python interfaces
                          or a comma-separated list of libraries to enable the
                          Python interfaces for: mtime, yac, comin

Optimization Features:
  --enable-loop-exchange  enable loop exchange [default=auto]
  --enable-dim-swap       enable dimension swap [default=auto]
  --enable-realloc-buf    enable reallocatable buffer in the communication
                          [default=no]
  --enable-lvector        enable optimizations for vector engines in the ocean
                          component of ICON. The value of the argument must be
                          one of the following [default=auto]:
                            auto   enable all optimizations for vector engines
                                   only when using a NEC compiler
                            all    enable all optimizations for vector engines
                            bitid  enable optimizations for vector engines
                                   that preserve bit-identical results
                            yes    alias for 'all'
                            no     disable optimizations for vector engines
  --enable-vectorized-lrtm
                          enable the parallelization-invariant version of LRTM
                          [default=no]
  --enable-mixed-precision
                          enable mixed precision dycore [default=no]
  --enable-single-precision
                          enable single precision as the working precision
                          (experimental) [default=no]
  --enable-single-precision-ecrad
                          enable single precision for ECRAD [default=auto]
  --enable-intel-consistency
                          enable Intel compiler directives enforcing
                          consistency [default=auto]
  --enable-pgi-inlib      enable PGI/NVIDIA cross-file function inlining via
                          an inline library [default=no]
  --enable-nccl           enable usage of the NVIDIA Collective Communications
                          Library (NCCL) [default=no]
  --enable-cuda-graphs    enable CUDA graphs [default=no]
  --enable-fcgroup-<NAME> enable Fortran compile group <NAME>, which can be
                          compiled with an extra set of compiler flags. <NAME>
                          can be any non-empty string consisting of capital
                          letters, digits and underscores. The Fortran
                          compiler flags to be appended to FCFLAGS when
                          compiling files of the group are read from the
                          environment variable ICON_<NAME>_FCFLAGS. The paths
                          to the directories and files included in the group
                          must be provided relative to the root source
                          directory. The value of the argument must be one of
                          the following [default=no]:
                            path1:path2  a colon-separated list of paths to
                                         the directories and files included in
                                         the group
                            yes          read paths to the directories and
                                         files of the group from the
                                         environment variable ICON_<NAME>_PATH
                            no           disable the group

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-external-rte-rrtmgp
                          use external RTE+RRTMGP library [default=no]
  --with-external-ecrad   use external ECRAD library [default=no]
  --with-external-sct     use external SCT library [default=no]
  --with-external-yaxt    use external YAXT library [default=no]
  --with-external-ppm     use external PPM library [default=no]
  --with-external-cdi     use external CDI library [default=no]
  --with-external-mtime   use external MTIME library [default=no]
  --with-external-yac     use external YAC library [default=no]
  --with-external-tixi    use external TIXI library [default=no]
  --with-external-fortran-support
                          use external FORTRAN-SUPPORT library [default=no]

Some influential environment variables:
  BUILD_ENV   initialization code to set up the building environment (must be
              a single line ending with a semicolon), e.g. 'LICENSE=file.lic;
              export LICENSE;'
  FC          Fortran compiler command
  FCFLAGS     Fortran 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>
  ICON_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring ICON
  ICON_LDFLAGS
              Fortran compiler flags to be appended to LDFLAGS when
              configuring ICON
  ICON_<NAME>_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS instead of
              ICON_FCFLAGS when compiling files of the compile group <NAME>
              (see --enable-fcgroup-<NAME>) [default=$ICON_FCFLAGS]
  ICON_<NAME>_PATH
              colon-separated list of paths (relative to the root source
              directory) to files and directories included in the compile
              group <NAME> (see --enable-fcgroup-<NAME>)
  CC          C compiler command
  CFLAGS      C compiler flags
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  ICON_CFLAGS C compiler flags to be appended to CFLAGS when configuring ICON
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CUDACXX     CUDA C++ compiler command
  CUDAFLAGS   CUDA C++ compiler flags
  ICON_CUDAFLAGS
              CUDA C++ compiler flags to be appended to CUDAFLAGS when
              configuring ICON
  HIPCXX      HIP C++ compiler command
  HIPFLAGS    HIP C++ compiler flags
  ICON_HIPFLAGS
              HIP C++ compiler flags to be appended to HIPFLAGS when
              configuring ICON
  AR          archiver command
  ARFLAGS     archiver flags
  RANLIB      archive indexer command
  PYTHON      Python interpreter command
  CMAKE       CMake command
  FPP         Fortran preprocessor command
  SB2PP       Serialbox2 preprocessor command
  MPI_LAUNCH  interactive MPI launcher command
  ICON_BUNDLED_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled packages [default=$ICON_FCFLAGS]
  ICON_BUNDLED_CFLAGS
              C compiler flags to be appended to CFLAGS when configuring the
              bundled packages [default=$ICON_CFLAGS]
  ICON_BUNDLED_CXXFLAGS
              C++ compiler flags to be appended to CXXFLAGS when configuring
              the bundled packages
  ICON_BUNDLED_CUDAFLAGS
              CUDA C++ compiler flags to be appended to CUDAFLAGS when
              configuring the bundled packages [default=$ICON_CUDAFLAGS]
  ICON_BUNDLED_HIPFLAGS
              HIP C++ compiler flags to be appended to HIPFLAGS when
              configuring the bundled packages [default=$ICON_HIPFLAGS]
  ICON_RTE_RRTMGP_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of RTE+RRTMGP library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_ECRAD_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of ECRAD library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_SCT_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of SCT library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_SCT_CFLAGS
              C compiler flags to be appended to CFLAGS when configuring the
              bundled version of SCT library [default=$ICON_BUNDLED_CFLAGS]
  ICON_YAXT_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of YAXT library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_YAXT_CFLAGS
              C compiler flags to be appended to CFLAGS when configuring the
              bundled version of YAXT library [default=$ICON_BUNDLED_CFLAGS]
  ICON_PPM_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of PPM library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_PPM_CFLAGS
              C compiler flags to be appended to CFLAGS when configuring the
              bundled version of PPM library [default=$ICON_BUNDLED_CFLAGS]
  ICON_CDI_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of CDI library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_CDI_CFLAGS
              C compiler flags to be appended to CFLAGS when configuring the
              bundled version of CDI library [default=$ICON_BUNDLED_CFLAGS]
  ICON_MTIME_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of MTIME library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_MTIME_CFLAGS
              C compiler flags to be appended to CFLAGS when configuring the
              bundled version of MTIME library [default=$ICON_BUNDLED_CFLAGS]
  ICON_YAC_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of YAC library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_YAC_CFLAGS
              C compiler flags to be appended to CFLAGS when configuring the
              bundled version of YAC library [default=$ICON_BUNDLED_CFLAGS]
  ICON_TIXI_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of TIXI library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_TIXI_CFLAGS
              C compiler flags to be appended to CFLAGS when configuring the
              bundled version of TIXI library [default=$ICON_BUNDLED_CFLAGS]
  ICON_COMIN_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of COMIN library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_COMIN_CFLAGS
              C compiler flags to be appended to CFLAGS when configuring the
              bundled version of COMIN library [default=$ICON_BUNDLED_CFLAGS]
  ICON_COMIN_CXXFLAGS
              C++ compiler flags to be appended to CXXFLAGS when configuring
              the bundled version of COMIN library
              [default=$ICON_BUNDLED_CXXFLAGS]
  ICON_FORTRAN_SUPPORT_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of FORTRAN-SUPPORT library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_FORTRAN_SUPPORT_CFLAGS
              Fortran compiler flags to be appended to CFLAGS when configuring
              the bundled version of FORTRAN-SUPPORT library
              [default=$ICON_BUNDLED_CFLAGS]
  ICON_KOKKOS_CXXFLAGS
              C++ compiler flags to be appended to CXXFLAGS when configuring
              the KOKKOS library [default=$ICON_BUNDLED_CXXFLAGS]
  ICON_KOKKOS_CUDAFLAGS
              CUDA C++ compiler flags to be appended to CUDAFLAGS when
              configuring the KOKKOS library [default=$ICON_BUNDLED_CUDAFLAGS]
  ICON_KOKKOS_HIPFLAGS
              HIP C++ compiler flags to be appended to HIPFLAGS when
              configuring the KOKKOS library [default=$ICON_BUNDLED_HIPFLAGS]
  ICON_MEMMAN_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of MEMMAN library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_MEMMAN_CFLAGS
              C compiler flags to be appended to CFLAGS when configuring the
              bundled version of MEMMAN library [default=$ICON_BUNDLED_CFLAGS]
  ICON_MEMMAN_CXXFLAGS
              C++ compiler flags to be appended to CXXFLAGS when configuring
              the bundled version of MEMMAN library
              [default=$ICON_BUNDLED_CXXFLAGS]
  ICON_ICONMATH_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of ICONMATH library
              [default=$ICON_BUNDLED_FCFLAGS]
  ICON_RAGNAROK_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the RAGNAROK library [default=$ICON_BUNDLED_FCFLAGS]
  ICON_RAGNAROK_CXXFLAGS
              C++ compiler flags to be appended to CXXFLAGS when configuring
              the RAGNAROK library [default=$ICON_BUNDLED_CXXFLAGS]
  ICON_RAGNAROK_CUDAFLAGS
              CUDA C++ compiler flags to be appended to CUDAFLAGS when
              configuring the RAGNAROK library
              [default=$ICON_BUNDLED_CUDAFLAGS]
  ICON_RAGNAROK_HIPFLAGS
              HIP C++ compiler flags to be appended to HIPFLAGS when
              configuring the RAGNAROK library
              [default=$ICON_BUNDLED_HIPFLAGS]
  ICON_HD_FCFLAGS
              Fortran compiler flags to be appended to FCFLAGS when
              configuring the bundled version of HD model
              [default=$ICON_BUNDLED_FCFLAGS]

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 the package provider.
_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
icon configure 2026.04
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

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

asx_dirname_fn ()
{
$as_dirname -- "$1" ||
$as_expr X"$1" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$1" : 'X\(//\)[^/]' \| \
	 X"$1" : 'X\(//\)$' \| \
	 X"$1" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$1" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'
} # asx_dirname_fn

asx_basename_fn ()
{
$as_basename -- "$1" ||
$as_expr X/"$1" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$1" : 'X\(//\)$' \| \
	 X"$1" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$1" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'
} # asx_basename_fn

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

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_fc_try_compile

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

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

} # ac_fn_fc_try_link

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

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

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

} # ac_fn_c_check_header_compile

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

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_cuda_try_compile

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

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_hip_try_compile

acx_prog_search_abspath_fn ()
{
acx_prog_exec=$1
      case $acx_prog_exec in #(
  *[\\/]*) :
    if as_fn_executable_p $acx_prog_exec; then :
  acx_prog_search_abspath=$acx_prog_exec
fi ;; #(
  *) :
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    if as_fn_executable_p "$as_dir/$acx_prog_exec"; then :
  acx_prog_search_abspath="$as_dir/$acx_prog_exec"; break
fi
  done
IFS=$as_save_IFS
 ;;
esac
      case $acx_prog_search_abspath in #(
  unknown) :
     ;; #(
  [\\/]* | ?:[\\/]*) :
     ;; #(
  *) :
    asx_dir=`echo "$acx_prog_search_abspath" | sed 's%/[^/]*$%%' 2>/dev/null`
         asx_file=`echo "$acx_prog_search_abspath" | sed 's%.*/%%' 2>/dev/null`
         asx_dir=`cd "$asx_dir" >/dev/null 2>&1 && pwd 2>/dev/null`
         acx_prog_search_abspath=unknown
         case $asx_dir in #(
  [\\/]* | ?:[\\/]*) :
    if as_fn_executable_p "$asx_dir/$asx_file"; then :
  acx_prog_search_abspath="$asx_dir/$asx_file"
fi ;; #(
  *) :
     ;;
esac ;;
esac
} # acx_prog_search_abspath_fn

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

} # ac_fn_cuda_check_header_compile

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

} # ac_fn_hip_check_header_compile

# ac_fn_fc_try_run LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_fc_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_fc_try_run

asx_srcdirs_fn ()
{
ac_builddir=.

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

} # asx_srcdirs_fn

acx_subdir_pre_adjust_cmake_args_nocomps_noutils ()
{
if ${acx_subdir_pre_adjusted_cmake_args_nocomps_noutils+:} false; then :

else
  acx_subdir_pre_adjusted_cmake_args_nocomps_noutils="'-Wno-dev' '--no-warn-unused-cli' '-GUnix Makefiles'"
            as_fn_append acx_subdir_pre_adjusted_cmake_args_nocomps_noutils "$acx_cmake_defs"
            eval "set dummy $ac_configure_args"; shift
                                                acx_subdir_cmake_vars_to_transform=
            for acx_tmp; do
              case $acx_tmp in #(
  CFLAGS=*|CXXFLAGS=*|CPPFLAGS=*|FCFLAGS=*|LDFLAGS=*|LIBS=*) :
    acx_arg_name=`expr "x$acx_tmp" : 'x\([^=]*\)='`
                 as_fn_append acx_subdir_cmake_vars_to_transform " $acx_arg_name"
                 acx_arg_cmd_value=`expr "x$acx_tmp" : '[^=]*=\(.*\)'`
                 eval acx_arg_${acx_arg_name}=\$acx_arg_cmd_value ;; #(
  *) :
     ;;
esac
            done
                                    case " $acx_subdir_cmake_vars_to_transform " in #(
  *' CPPFLAGS '*) :
    for acx_arg_name in CFLAGS CXXFLAGS; do
                 case " $acx_subdir_cmake_vars_to_transform " in #(
  *" $acx_arg_name "*) :
    as_fn_append acx_arg_${acx_arg_name} " $acx_arg_CPPFLAGS" ;; #(
  *) :
    eval acx_arg_${acx_arg_name}=\$acx_arg_CPPFLAGS
                    as_fn_append acx_subdir_cmake_vars_to_transform " $acx_arg_name" ;;
esac
               done ;; #(
  *) :
     ;;
esac
                        if test "x$prefix" = xNONE; then :
  acx_arg_PREFIX=$ac_default_prefix
else
  acx_arg_PREFIX=$prefix
fi
            as_fn_append acx_subdir_cmake_vars_to_transform ' PREFIX'
            for acx_arg_name in $acx_subdir_cmake_vars_to_transform; do
              acx_subdir_cmake_vars_to_set=
              case $acx_arg_name in #(
  CFLAGS) :
    acx_subdir_cmake_vars_to_set='CMAKE_C_FLAGS' ;; #(
  CXXFLAGS) :
    acx_subdir_cmake_vars_to_set='CMAKE_CXX_FLAGS' ;; #(
  CPPFLAGS) :
    acx_subdir_cmake_vars_to_set='' ;; #(
  FCFLAGS) :
    acx_subdir_cmake_vars_to_set='CMAKE_Fortran_FLAGS' ;; #(
  LDFLAGS) :
    acx_subdir_cmake_vars_to_set='CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS' ;; #(
  LIBS) :
    acx_subdir_cmake_vars_to_set='CMAKE_C_STANDARD_LIBRARIES CMAKE_CXX_STANDARD_LIBRARIES CMAKE_Fortran_STANDARD_LIBRARIES' ;; #(
  PREFIX) :
    acx_subdir_cmake_vars_to_set='CMAKE_INSTALL_PREFIX' ;; #(
  *) :
     ;;
esac
              if test -n "$acx_subdir_cmake_vars_to_set"; then :
  eval acx_subdir_quoted_value=\$acx_arg_${acx_arg_name}
                 case $acx_subdir_quoted_value in #(
  *\'*) :
    acx_subdir_quoted_value=`$as_echo "$acx_subdir_quoted_value" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
                 for acx_subdir_cmake_var in $acx_subdir_cmake_vars_to_set; do
                   as_fn_append acx_subdir_pre_adjusted_cmake_args_nocomps_noutils " '-D$acx_subdir_cmake_var=$acx_subdir_quoted_value'"
                 done
fi
              { eval acx_arg_${acx_arg_name}=; unset acx_arg_${acx_arg_name};}
            done

fi
} # acx_subdir_pre_adjust_cmake_args_nocomps_noutils

acx_subdir_pre_adjust_config_args ()
{
if ${acx_subdir_pre_adjusted_config_args+:} false; then :

else
  acx_subdir_pre_adjusted_config_args=$ac_configure_args
            eval "set dummy $acx_subdir_pre_adjusted_config_args"; shift
   acx_subdir_pre_adjusted_config_args=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  -D) :
    test 2 -gt $# || shift;  ;; #(
  -D*) :
     ;; #(
  -cache-file|--cache-file|--cache-fil|--cache-fi|--cache-f|--cache-|--cache|--cach|--cac|--ca|--c| \
                -srcdir|--srcdir|--srcdi|--srcd|--src|--sr| \
                -prefix|--prefix|--prefi|--pref|--pre|--pr|--p) :
    test 2 -gt $# || shift;  ;; #(
  -cache-file=*|--cache-file=*|--cache-fil=*|--cache-fi=*|--cache-f=*|--cache-=*|--cache=*|--cach=*|--cac=*|--ca=*|--c=*| \
                -srcdir=*|--srcdir=*|--srcdi=*|--srcd=*|--src=*|--sr=*| \
                -prefix=*|--prefix=*|--prefi=*|--pref=*|--pre=*|--pr=*|--p=*| \
                --config-cache|-C| \
                -enable-option-checking|-enable-option-checking=*|--enable-option-checking|--enable-option-checking=*|-disable-option-checking|--disable-option-checking) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_pre_adjusted_config_args " '$acx_tmp'" ;;
esac
     shift
   done
            as_fn_append acx_subdir_pre_adjusted_config_args " '--disable-option-checking'"
            if test "x$prefix" = xNONE; then :
  acx_tmp="--prefix=$ac_default_prefix"
else
  acx_tmp="--prefix=$prefix"
fi
            case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
            as_fn_append acx_subdir_pre_adjusted_config_args " '$acx_tmp'"
fi
} # acx_subdir_pre_adjust_config_args

acx_subdir_extra_run_0 ()
{
icon_try="${MAKE-make} -C '${icon_abs_top_builddir}/externals/yaxt/inst_headers'"
            { $as_echo "$as_me:${as_lineno-$LINENO}: running $icon_try" >&5
$as_echo "$as_me: running $icon_try" >&6;}
            { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$icon_try\""; } >&5
  (eval $icon_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } >&5
} # acx_subdir_extra_run_0
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 icon $as_me 2026.04, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ $0 $@

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

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

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

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

_ASUNAME

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

} >&5

cat >&5 <<_ACEOF


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

_ACEOF


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

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

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

    $as_echo "## ----------------- ##
## Output variables. ##
## ----------------- ##"
    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
      $as_echo "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
      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
      $as_echo "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

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

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

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

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

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

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

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

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


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  # We do not want a PATH search for config.site.
  case $CONFIG_SITE in #((
    -*)  ac_site_file1=./$CONFIG_SITE;;
    */*) ac_site_file1=$CONFIG_SITE;;
    *)   ac_site_file1=./$CONFIG_SITE;;
  esac
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
  fi
done

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

# Basic CUDA test code (global declarations):
acx_cuda_conftest_basic_globals='#include <cuda.h>
__global__ void conftest_foo() {}'

# Basic CUDA test code (body of main):
acx_cuda_conftest_basic_main='conftest_foo<<<1, 1>>>();'

# C++11 CUDA test code (global declarations):
acx_cuda_conftest_cxx11_globals='
#if !defined __cplusplus || __cplusplus < 201103L
# error "Compiler does not advertise C++11 conformance"
#endif

namespace cxx11test {
  template<typename T>
  class ConftestClassCXX11 {
  public:
    void operator() (T elem) {}
  };
}'

# C++11 CUDA test code (body of main):
acx_cuda_conftest_cxx11_main='
int* pcxx11 = nullptr;
cxx11test::ConftestClassCXX11<int> some_class =
  cxx11test::ConftestClassCXX11<int>();
int icxx11 = 1;
pcxx11 = &icxx11;
some_class(*pcxx11);'

# C++14 CUDA test code (global declarations):
acx_cuda_conftest_cxx14_globals='
#if !defined __cplusplus || __cplusplus < 201402L
# error "Compiler does not advertise C++14 conformance"
#endif
'

# C++14 CUDA test code (body of main):
acx_cuda_conftest_cxx14_main=''

# C++14 CUDA test code (complete):
acx_cuda_conftest_cxx14_program="$acx_cuda_conftest_basic_globals
$acx_cuda_conftest_cxx11_globals
$acx_cuda_conftest_cxx14_globals
int main (int argc, char **argv)
{
  $acx_cuda_conftest_basic_main
  $acx_cuda_conftest_cxx11_main
  $acx_cuda_conftest_cxx14_main
  return 0;
}
"

# C++11 CUDA test code (complete):
acx_cuda_conftest_cxx11_program="$acx_cuda_conftest_basic_globals
$acx_cuda_conftest_cxx11_globals
int main (int argc, char **argv)
{
  $acx_cuda_conftest_basic_main
  $acx_cuda_conftest_cxx11_main
  return 0;
}
"

# Basic CUDA test code (complete):
acx_cuda_conftest_basic_program="$acx_cuda_conftest_basic_globals
int main (int argc, char **argv)
{
  $acx_cuda_conftest_basic_main
  return 0;
}
"

# Basic HIP test code (global declarations):
acx_hip_conftest_basic_globals='#include <hip/hip_runtime.h>
__global__ void conftest_foo() {}'

# Basic HIP test code (body of main):
acx_hip_conftest_basic_main='conftest_foo<<<1, 1>>>();'

# C++11 HIP test code (global declarations):
acx_hip_conftest_cxx11_globals='
#if !defined __cplusplus || __cplusplus < 201103L
# error "Compiler does not advertise C++11 conformance"
#endif

namespace cxx11test {
  template<typename T>
  class ConftestClassCXX11 {
  public:
    void operator() (T elem) {}
  };
}'

# C++11 HIP test code (body of main):
acx_hip_conftest_cxx11_main='
int* pcxx11 = nullptr;
cxx11test::ConftestClassCXX11<int> some_class =
  cxx11test::ConftestClassCXX11<int>();
int icxx11 = 1;
pcxx11 = &icxx11;
some_class(*pcxx11);'

# C++14 HIP test code (global declarations):
acx_hip_conftest_cxx14_globals='
#if !defined __cplusplus || __cplusplus < 201402L
# error "Compiler does not advertise C++14 conformance"
#endif
'

# C++14 HIP test code (body of main):
acx_hip_conftest_cxx14_main=''

# C++14 HIP test code (complete):
acx_hip_conftest_cxx14_program="$acx_hip_conftest_basic_globals
$acx_hip_conftest_cxx11_globals
$acx_hip_conftest_cxx14_globals
int main (int argc, char **argv)
{
  $acx_hip_conftest_basic_main
  $acx_hip_conftest_cxx11_main
  $acx_hip_conftest_cxx14_main
  return 0;
}
"

# C++11 HIP test code (complete):
acx_hip_conftest_cxx11_program="$acx_hip_conftest_basic_globals
$acx_hip_conftest_cxx11_globals
int main (int argc, char **argv)
{
  $acx_hip_conftest_basic_main
  $acx_hip_conftest_cxx11_main
  return 0;
}
"

# Basic HIP test code (complete):
acx_hip_conftest_basic_program="$acx_hip_conftest_basic_globals
int main (int argc, char **argv)
{
  $acx_hip_conftest_basic_main
  return 0;
}
"

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

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




ac_aux_dir=
for ac_dir in utils "$srcdir"/utils; 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_fn_error $? "cannot find install-sh, install.sh, or shtool in utils \"$srcdir\"/utils" "$LINENO" 5
fi

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




icon_usr_note="
********************************************************************************
The users are recommended to run site-specific wrappers instead of this generic
configure script.

You can find the wrappers in '${srcdir}/config/<organization>/'.

If you are running a wrapper and still see this message than either you are
using a wrong one or the wrapper is broken, or there is really a problem with
the configure script.
********************************************************************************
"


if test "`cd $srcdir && pwd`" != "`pwd`" && test -f "$srcdir/config.status"; then :
  as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
fi

############################# OPTION DECLARATIONS ##############################

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


# Check whether --enable-rpaths was given.
if test "${enable_rpaths+set}" = set; then :
  enableval=$enable_rpaths; if test x"$enableval" != xno; then :
  enable_rpaths=yes
fi
else
  enable_rpaths=yes
fi


# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules; if test x"$enableval" != xno; then :
  enable_silent_rules=yes
fi
else
  enable_silent_rules=yes
fi


# Check whether --enable-delayed-config was given.
if test "${enable_delayed_config+set}" = set; then :
  enableval=$enable_delayed_config; if test x"$enableval" != xno; then :
  enable_delayed_config=yes
fi
else
  enable_delayed_config=yes
fi


# Check whether --enable-separate-mods was given.
if test "${enable_separate_mods+set}" = set; then :
  enableval=$enable_separate_mods; if test x"$enableval" != xno; then :
  enable_separate_mods=yes
fi
else
  enable_separate_mods=no
fi




# Check whether --enable-deprecated was given.
if test "${enable_deprecated+set}" = set; then :
  enableval=$enable_deprecated; if test x"$enableval" != xno; then :
  enable_deprecated=yes
fi
else
  enable_deprecated=no
fi


# Check whether --enable-atmo was given.
if test "${enable_atmo+set}" = set; then :
  enableval=$enable_atmo; if test x"$enableval" != xno; then :
  enable_atmo=yes
fi
else
  enable_atmo=yes
fi


# Check whether --enable-les was given.
if test "${enable_les+set}" = set; then :
  enableval=$enable_les; if test x"$enableval" != xno; then :
  enable_les=yes
fi
else
  enable_les=yes
fi


# Check whether --enable-upatmo was given.
if test "${enable_upatmo+set}" = set; then :
  enableval=$enable_upatmo; if test x"$enableval" != xno; then :
  enable_upatmo=yes
fi
else
  enable_upatmo=yes
fi


# Check whether --enable-ocean was given.
if test "${enable_ocean+set}" = set; then :
  enableval=$enable_ocean; if test x"$enableval" != xno; then :
  enable_ocean=yes
fi
else
  enable_ocean=yes
fi


# Check whether --enable-jsbach was given.
if test "${enable_jsbach+set}" = set; then :
  enableval=$enable_jsbach; if test x"$enableval" != xno; then :
  enable_jsbach=yes
fi
else
  enable_jsbach=yes
fi


# Check whether --enable-jsbach-hd was given.
if test "${enable_jsbach_hd+set}" = set; then :
  enableval=$enable_jsbach_hd; if test x"$enableval" != xno && test x"$enableval" != xauto; then :
  enable_jsbach_hd=yes
fi
else
  enable_jsbach_hd=auto
fi


# Check whether --enable-quincy was given.
if test "${enable_quincy+set}" = set; then :
  enableval=$enable_quincy; if test x"$enableval" != xno; then :
  enable_quincy=yes
fi
else
  enable_quincy=no
fi


# Check whether --enable-waves was given.
if test "${enable_waves+set}" = set; then :
  enableval=$enable_waves; if test x"$enableval" != xno; then :
  enable_waves=yes
fi
else
  enable_waves=no
fi


# Check whether --enable-coupling was given.
if test "${enable_coupling+set}" = set; then :
  enableval=$enable_coupling; if test x"$enableval" != xno; then :
  enable_coupling=yes
fi
else
  enable_coupling=yes
fi


# Check whether --enable-aes was given.
if test "${enable_aes+set}" = set; then :
  enableval=$enable_aes; if test x"$enableval" != xno; then :
  enable_aes=yes
fi
else
  enable_aes=yes
fi


# Check whether --enable-ragnarok was given.
if test "${enable_ragnarok+set}" = set; then :
  enableval=$enable_ragnarok; if test x"$enableval" != xno; then :
  enable_ragnarok=yes
fi
else
  enable_ragnarok=no
fi


# Check whether --enable-nwp was given.
if test "${enable_nwp+set}" = set; then :
  enableval=$enable_nwp; if test x"$enableval" != xno; then :
  enable_nwp=yes
fi
else
  enable_nwp=yes
fi


# Check whether --enable-ecrad was given.
if test "${enable_ecrad+set}" = set; then :
  enableval=$enable_ecrad; if test x"$enableval" != xno; then :
  enable_ecrad=yes
fi
else
  enable_ecrad=no
fi


# Check whether --enable-rte-rrtmgp was given.
if test "${enable_rte_rrtmgp+set}" = set; then :
  enableval=$enable_rte_rrtmgp; if test x"$enableval" != xno; then :
  enable_rte_rrtmgp=yes
fi
else
  enable_rte_rrtmgp=yes
fi


# Check whether --enable-rttov was given.
if test "${enable_rttov+set}" = set; then :
  enableval=$enable_rttov; if test x"$enableval" != xno; then :
  enable_rttov=yes
fi
else
  enable_rttov=no
fi


# Check whether --enable-dace was given.
if test "${enable_dace+set}" = set; then :
  enableval=$enable_dace; if test x"$enableval" != xno; then :
  enable_dace=yes
fi
else
  enable_dace=no
fi


# Check whether --enable-emvorado was given.
if test "${enable_emvorado+set}" = set; then :
  enableval=$enable_emvorado; if test x"$enableval" != xno; then :
  enable_emvorado=yes
fi
else
  enable_emvorado=no
fi


# Check whether --enable-art was given.
if test "${enable_art+set}" = set; then :
  enableval=$enable_art; if test x"$enableval" != xno; then :
  enable_art=yes
fi
else
  enable_art=no
fi


# Check whether --enable-msgwam was given.
if test "${enable_msgwam+set}" = set; then :
  enableval=$enable_msgwam; if test x"$enableval" != xno; then :
  enable_msgwam=yes
fi
else
  enable_msgwam=no
fi


# Check whether --enable-art-gpl was given.
if test "${enable_art_gpl+set}" = set; then :
  enableval=$enable_art_gpl; if test x"$enableval" != xno; then :
  enable_art_gpl=yes
fi
else
  enable_art_gpl=no
fi


# Check whether --enable-comin was given.
if test "${enable_comin+set}" = set; then :
  enableval=$enable_comin; case $enableval in #(
  yes) :
    enable_comin=static ;; #(
  static|shared|external|no) :
     ;; #(
  *) :
    as_fn_error $? "unexpected value for the argument --enable-comin='$enableval'; valid values are 'static', 'yes' (same as 'static'), 'shared', 'external', 'no'" "$LINENO" 5 ;;
esac
else
  enable_comin=no
fi


# Check whether --enable-hd was given.
if test "${enable_hd+set}" = set; then :
  enableval=$enable_hd; case $enableval in #(
  yes) :
    enable_hd=05deg ;; #(
  05deg|5min|no) :
     ;; #(
  *) :
    as_fn_error $? "unexpected value for the argument --enable-hd='$enableval'; valid values are '05deg', 'yes' (same as '05deg'), '5min', 'no'" "$LINENO" 5 ;;
esac
else
  enable_hd=no
fi


# Check whether --enable-acm-license was given.
if test "${enable_acm_license+set}" = set; then :
  enableval=$enable_acm_license; if test x"$enableval" != xno; then :
  enable_acm_license=yes
fi
else
  enable_acm_license=no
fi




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


# Check whether --enable-mpi-checks was given.
if test "${enable_mpi_checks+set}" = set; then :
  enableval=$enable_mpi_checks; if test x"$enableval" != xno; then :
  enable_mpi_checks=yes
fi
else
  enable_mpi_checks=yes
fi


# Check whether --enable-active-target-sync was given.
if test "${enable_active_target_sync+set}" = set; then :
  enableval=$enable_active_target_sync; if test x"$enableval" != xno; then :
  enable_active_target_sync=yes
fi
else
  enable_active_target_sync=no
fi


# Check whether --enable-mpi-rget was given.
if test "${enable_mpi_rget+set}" = set; then :
  enableval=$enable_mpi_rget; if test x"$enableval" != xno && test x"$enableval" != xauto; then :
  enable_mpi_rget=yes
fi
else
  enable_mpi_rget=auto
fi


# Check whether --enable-mpi-gpu was given.
if test "${enable_mpi_gpu+set}" = set; then :
  enableval=$enable_mpi_gpu; if test x"$enableval" != xno; then :
  enable_mpi_gpu=yes
fi
else
  enable_mpi_gpu=no
fi


# Check whether --enable-async-io-rma was given.
if test "${enable_async_io_rma+set}" = set; then :
  enableval=$enable_async_io_rma; if test x"$enableval" != xno; then :
  enable_async_io_rma=yes
fi
else
  enable_async_io_rma=yes
fi


# Check whether --enable-openmp was given.
if test "${enable_openmp+set}" = set; then :
  enableval=$enable_openmp; if test x"$enableval" != xno; then :
  enable_openmp=yes
fi
else
  enable_openmp=no
fi


# Check whether --enable-gpu was given.
if test "${enable_gpu+set}" = set; then :
  enableval=$enable_gpu; case $enableval in #(
  openacc|yes) :
    enable_gpu='openacc+cuda' ;; #(
  openacc+cuda|openacc+hip|no) :
     ;; #(
  *) :
    as_fn_error $? "unexpected value for the argument --enable-gpu='$enableval'; valid values are 'openacc+cuda', 'openacc+hip', 'openacc' (same as 'openacc+cuda'), 'yes' (same as 'openacc+cuda'), 'no'" "$LINENO" 5 ;;
esac
else
  enable_gpu=no
fi

case $enable_gpu in #(
  openacc+*) :
    icon_gpu_primary=openacc ;; #(
  *) :
    icon_gpu_primary=no ;;
esac
case $enable_gpu in #(
  *+cuda) :
    icon_gpu_secondary=cuda ;; #(
  *+hip) :
    icon_gpu_secondary=hip ;; #(
  *) :
    icon_gpu_secondary=no ;;
esac

# Check whether --enable-grib2 was given.
if test "${enable_grib2+set}" = set; then :
  enableval=$enable_grib2; if test x"$enableval" != xno; then :
  enable_grib2=yes
fi
else
  enable_grib2=no
fi


# Check whether --enable-parallel-netcdf was given.
if test "${enable_parallel_netcdf+set}" = set; then :
  enableval=$enable_parallel_netcdf; if test x"$enableval" != xno; then :
  enable_parallel_netcdf=yes
fi
else
  enable_parallel_netcdf=no
fi


# Check whether --enable-cdi-pio was given.
if test "${enable_cdi_pio+set}" = set; then :
  enableval=$enable_cdi_pio; if test x"$enableval" != xno; then :
  enable_cdi_pio=yes
fi
else
  enable_cdi_pio=no
fi


# Check whether --enable-sct was given.
if test "${enable_sct+set}" = set; then :
  enableval=$enable_sct; if test x"$enableval" != xno; then :
  enable_sct=yes
fi
else
  enable_sct=no
fi


# Check whether --enable-yaxt was given.
if test "${enable_yaxt+set}" = set; then :
  enableval=$enable_yaxt; if test x"$enableval" != xno; then :
  enable_yaxt=yes
fi
else
  enable_yaxt=no
fi


# Check whether --enable-explicit-fpp was given.
if test "${enable_explicit_fpp+set}" = set; then :
  enableval=$enable_explicit_fpp; if test x"$enableval" != xno && test x"$enableval" != xauto; then :
  enable_explicit_fpp=yes
fi
else
  enable_explicit_fpp=auto
fi


# Check whether --enable-serialization was given.
if test "${enable_serialization+set}" = set; then :
  enableval=$enable_serialization; case $enableval in #(
  yes) :
    enable_serialization=read ;; #(
  read|perturb|create|no) :
     ;; #(
  *) :
    as_fn_error $? "unexpected value for the argument --enable-serialization='$enableval'; valid values are 'read', 'perturb', 'create', 'yes' (same as 'read'), 'no'" "$LINENO" 5 ;;
esac
else
  enable_serialization=no
fi


if test "x$enable_explicit_fpp" = xauto; then :
  if test x"$enable_serialization" != xno; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: explicit Fortran preprocessing is enabled because the Serialbox2 serialization is requested: disable the explicit preprocessing if required (--disable-explicit-fpp)" >&5
$as_echo "$as_me: explicit Fortran preprocessing is enabled because the Serialbox2 serialization is requested: disable the explicit preprocessing if required (--disable-explicit-fpp)" >&6;}
      enable_explicit_fpp=yes
else
  enable_explicit_fpp=no
fi
fi

# Check whether --enable-testbed was given.
if test "${enable_testbed+set}" = set; then :
  enableval=$enable_testbed; if test x"$enableval" != xno; then :
  enable_testbed=yes
fi
else
  enable_testbed=no
fi


# Check whether --enable-memory-tracing was given.
if test "${enable_memory_tracing+set}" = set; then :
  enableval=$enable_memory_tracing; case $enableval in #(
  yes) :
    enable_memory_tracing=mtrace ;; #(
  mtrace|no) :
     ;; #(
  *) :
    as_fn_error $? "unexpected value for the argument --enable-memory-tracing='$enableval'; valid values are 'mtrace', 'yes' (same as 'mtrace'), 'no'" "$LINENO" 5 ;;
esac
else
  enable_memory_tracing=no
fi


# Check whether --enable-bundled-python was given.
if test "${enable_bundled_python+set}" = set; then :
  enableval=$enable_bundled_python; case $enableval in #(
  auto|no) :
     ;; #(
  yes) :
    enable_bundled_python=auto ;; #(
  *) :
    icon_save_IFS=$IFS
    IFS=','
    for icon_bundled_name in $enableval; do
      IFS=$icon_save_IFS
      case $icon_bundled_name in #(
  ''|mtime|yac|comin) :
     ;; #(
  *) :
    as_fn_error $? "unexpected value for the argument --enable-bundled-python='$enableval'; valid values are 'auto', 'yes' (same as 'auto'), 'no' or a comma-separated subset of the following: 'mtime', 'yac', 'comin'" "$LINENO" 5 ;;
esac
    done
    IFS=$icon_save_IFS ;;
esac
else
  enable_bundled_python=no
fi

for icon_bundled_name in mtime yac comin; do
  case $enable_bundled_python in #(
  auto|no) :
    eval "icon_${icon_bundled_name}_python=\$enable_bundled_python" ;; #(
  *) :
    case ",${enable_bundled_python}," in #(
  *",${icon_bundled_name},"*) :
    eval "icon_${icon_bundled_name}_python=yes" ;; #(
  *) :
    eval "icon_${icon_bundled_name}_python=no" ;;
esac ;;
esac
done



# Check whether --enable-loop-exchange was given.
if test "${enable_loop_exchange+set}" = set; then :
  enableval=$enable_loop_exchange; if test x"$enableval" != xno && test x"$enableval" != xauto; then :
  enable_loop_exchange=yes
fi
else
  enable_loop_exchange=auto
fi


if test "x$enable_loop_exchange" = xauto; then :
  if test "x$icon_gpu_primary" = xopenacc; then :
  enable_loop_exchange=no
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: loop exchange is enabled because no GPU support is requested: disable the loop exchange if required (--disable-loop-exchange)" >&5
$as_echo "$as_me: loop exchange is enabled because no GPU support is requested: disable the loop exchange if required (--disable-loop-exchange)" >&6;}
      enable_loop_exchange=yes
fi
fi

# Check whether --enable-dim-swap was given.
if test "${enable_dim_swap+set}" = set; then :
  enableval=$enable_dim_swap; if test x"$enableval" != xno && test x"$enableval" != xauto; then :
  enable_dim_swap=yes
fi
else
  enable_dim_swap=auto
fi


if test "x$enable_dim_swap" = xauto; then :
  if test "x$icon_gpu_primary" = xopenacc; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: dimension swap is enabled because the GPU support is requested: disable the dimension swap if required (--disable-dim-swap)" >&5
$as_echo "$as_me: dimension swap is enabled because the GPU support is requested: disable the dimension swap if required (--disable-dim-swap)" >&6;}
      enable_dim_swap=yes
else
  enable_dim_swap=no
fi
fi

# Check whether --enable-realloc-buf was given.
if test "${enable_realloc_buf+set}" = set; then :
  enableval=$enable_realloc_buf; if test x"$enableval" != xno ; then :
  enable_realloc_buf=yes
fi
else
  enable_realloc_buf=no
fi


# Check whether --enable-lvector was given.
if test "${enable_lvector+set}" = set; then :
  enableval=$enable_lvector; case $enableval in #(
  yes) :
    enable_lvector=all ;; #(
  auto|all|bitid|no) :
     ;; #(
  *) :
    as_fn_error $? "unexpected value for the argument --enable-lvector='$enableval'; valid values are 'auto', 'all', 'bitid', 'yes' (same as 'all'), 'no'" "$LINENO" 5 ;;
esac
else
  enable_lvector=auto
fi


# Check whether --enable-vectorized-lrtm was given.
if test "${enable_vectorized_lrtm+set}" = set; then :
  enableval=$enable_vectorized_lrtm; if test x"$enableval" != xno; then :
  enable_vectorized_lrtm=yes
fi
else
  enable_vectorized_lrtm=no
fi


# Check whether --enable-mixed-precision was given.
if test "${enable_mixed_precision+set}" = set; then :
  enableval=$enable_mixed_precision; if test x"$enableval" != xno; then :
  enable_mixed_precision=yes
fi
else
  enable_mixed_precision=no
fi


# Check whether --enable-single-precision was given.
if test "${enable_single_precision+set}" = set; then :
  enableval=$enable_single_precision; if test x"$enableval" != xno; then :
  enable_single_precision=yes
fi
else
  enable_single_precision=no
fi


# Check whether --enable-single-precision-ecrad was given.
if test "${enable_single_precision_ecrad+set}" = set; then :
  enableval=$enable_single_precision_ecrad; if test x"$enableval" != xno && test x"$enableval" != xauto; then :
  enable_single_precision_ecrad=yes
fi
else
  enable_single_precision_ecrad=auto
fi


if test "x$enable_single_precision_ecrad" = xauto; then :
  if test "x$enable_ecrad$enable_single_precision" = xyesyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: single precision for ECRAD is enabled because single precision as the working precision is requested" >&5
$as_echo "$as_me: single precision for ECRAD is enabled because single precision as the working precision is requested" >&6;}
      enable_single_precision_ecrad=yes
else
  enable_single_precision_ecrad=no
fi
else
  if test "x$enable_ecrad" = xno; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option '--enable-single-precision-ecrad=$enable_single_precision_ecrad' is ignored: the usage of the ECMWF radiation scheme (ECRAD) is disabled" >&5
$as_echo "$as_me: WARNING: option '--enable-single-precision-ecrad=$enable_single_precision_ecrad' is ignored: the usage of the ECMWF radiation scheme (ECRAD) is disabled" >&2;}
fi
fi

# Check whether --enable-intel-consistency was given.
if test "${enable_intel_consistency+set}" = set; then :
  enableval=$enable_intel_consistency; if test x"$enableval" != xno && test x"$enableval" != xauto; then :
  enable_intel_consistency=yes
fi
else
  enable_intel_consistency=auto
fi


# Check whether --enable-pgi-inlib was given.
if test "${enable_pgi_inlib+set}" = set; then :
  enableval=$enable_pgi_inlib; if test x"$enableval" != xno && test x"$enableval" != xauto; then :
  enable_pgi_inlib=yes
fi
else
  enable_pgi_inlib=no
fi


# Check whether --enable-nccl was given.
if test "${enable_nccl+set}" = set; then :
  enableval=$enable_nccl; if test x"$enableval" != xno; then :
  enable_nccl=yes
fi
else
  enable_nccl=no
fi


# Check whether --enable-cuda-graphs was given.
if test "${enable_cuda_graphs+set}" = set; then :
  enableval=$enable_cuda_graphs; if test x"$enableval" != xno; then :
  enable_cuda_graphs=yes
fi
else
  enable_cuda_graphs=no
fi



FCGROUP_ASSIGNMENTS=''

icon_fcgroups_unique=
icon_fcgroup_all_entries=
for icon_fcgroup in $icon_fcgroups; do
  case " $icon_fcgroups_unique " in #(
  *"$icon_fcgroup"*) :
    continue ;; #(
  *) :
    as_fn_append icon_fcgroups_unique " $icon_fcgroup" ;;
esac
  expr "X$icon_fcgroup" : ".*[^_$as_cr_LETTERS$as_cr_digits]" >/dev/null &&
    as_fn_error $? "invalid compile group name '$icon_fcgroup': only capital letters and digits are allowed" "$LINENO" 5
  enableval=`eval 'as_val=${'enable_fcgroup_$icon_fcgroup'};$as_echo "$as_val"'`
  case $enableval in #(
  no) :
    continue ;; #(
  yes) :
    eval enableval=\$ICON_${icon_fcgroup}_PATH ;; #(
  *) :
     ;;
esac
  enableval=`$as_echo "$enableval" | sed 's/::*/:/g;s/^://;s/:*$//'`
  icon_save_IFS=$IFS
  IFS=':'
  for icon_fcgroup_entry in $enableval; do
    IFS=$icon_save_IFS
    case $icon_fcgroup_entry in #(
  [\\/]* | ?:[\\/]*) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: entry '$icon_fcgroup_entry' of the Fortran compile group '$icon_fcgroup' is ignored: not a relative path" >&5
$as_echo "$as_me: WARNING: entry '$icon_fcgroup_entry' of the Fortran compile group '$icon_fcgroup' is ignored: not a relative path" >&2;}
       continue ;; #(
  *) :
     ;;
esac
    icon_fcgroup_delayed_fetch=no
    for icon_delayed_fetch_path in externals/dace; do
      case $icon_fcgroup_entry in #(
  "$icon_delayed_fetch_path"|"$icon_delayed_fetch_path/"*) :
    case $icon_fcgroup_entry in #(
  *'.f90') :
    icon_fcgroup_delayed_fetch=file ;; #(
  *) :
    icon_fcgroup_delayed_fetch=directory ;;
esac ;; #(
  *) :
     ;;
esac
      test x"$icon_fcgroup_delayed_fetch" != xno && break
    done
    case $icon_fcgroup_delayed_fetch in #(
  directory) :
    icon_fcgroup_entry_dirname=$icon_fcgroup_entry
       icon_fcgroup_entry_basename= ;; #(
  file) :
    icon_fcgroup_entry_dirname=`   asx_dirname_fn "$icon_fcgroup_entry"`
       icon_fcgroup_entry_basename=`   asx_basename_fn "$icon_fcgroup_entry"` ;; #(
  *) :
    icon_fcgroup_path="$srcdir/$icon_fcgroup_entry"
       if test -d "$icon_fcgroup_path"; then :
  icon_fcgroup_entry_dirname=$icon_fcgroup_path
          icon_fcgroup_entry_basename=
elif test -f "$icon_fcgroup_path"; then :
  icon_fcgroup_entry_dirname=`   asx_dirname_fn "$icon_fcgroup_path"`
          icon_fcgroup_entry_basename=`   asx_basename_fn "$icon_fcgroup_path"`
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: entry '$icon_fcgroup_entry' of the Fortran compile group '$icon_fcgroup' is ignored: not recognized as an existing directory or a file" >&5
$as_echo "$as_me: WARNING: entry '$icon_fcgroup_entry' of the Fortran compile group '$icon_fcgroup' is ignored: not recognized as an existing directory or a file" >&2;}
          continue
fi
       icon_fcgroup_entry_dirname=`cd "$icon_fcgroup_entry_dirname" >/dev/null 2>&1 && pwd` || { { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: entry '$icon_fcgroup_entry' of the Fortran compile group '$icon_fcgroup' is ignored: unable to detect absolute path to '$icon_fcgroup_entry_dirname'" >&5
$as_echo "$as_me: WARNING: entry '$icon_fcgroup_entry' of the Fortran compile group '$icon_fcgroup' is ignored: unable to detect absolute path to '$icon_fcgroup_entry_dirname'" >&2;}; continue; }
       case $icon_fcgroup_entry_dirname in #(
  "$ac_abs_confdir"[\\/]*) :
     ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: entry '$icon_fcgroup_entry' of the Fortran compile group '$icon_fcgroup' is ignored: not a subdirectory of the root source directory" >&5
$as_echo "$as_me: WARNING: entry '$icon_fcgroup_entry' of the Fortran compile group '$icon_fcgroup' is ignored: not a subdirectory of the root source directory" >&2;}
          continue ;;
esac
       icon_fcgroup_entry_dirname=`$as_echo "$icon_fcgroup_entry_dirname" | sed "s:^$ac_abs_confdir[\\/]::"` ;;
esac
    icon_fcgroup_entry_basename=`$as_echo "$icon_fcgroup_entry_basename" | sed 's:[^\.]*$:%:'`
    icon_fcgroup_pattern="${icon_fcgroup_entry_dirname}/${icon_fcgroup_entry_basename}"
    case "$icon_fcgroup_all_entries:" in #(
  *":$icon_fcgroup_pattern:"*) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: entry '$icon_fcgroup_entry' of the Fortran compile group '$icon_fcgroup' is ignored: an entry with the same relative path (modulo file extension) has already been registered" >&5
$as_echo "$as_me: WARNING: entry '$icon_fcgroup_entry' of the Fortran compile group '$icon_fcgroup' is ignored: an entry with the same relative path (modulo file extension) has already been registered" >&2;}
       continue ;; #(
  *) :
    as_fn_append icon_fcgroup_all_entries ":$icon_fcgroup_pattern" ;;
esac
    if test -n "$FCGROUP_ASSIGNMENTS"; then :
  as_fn_append FCGROUP_ASSIGNMENTS "
"
fi
    as_fn_append FCGROUP_ASSIGNMENTS "${icon_fcgroup_pattern}: ICON_FCFLAGS:= \$(ICON_${icon_fcgroup}_FCFLAGS)"
  done
  IFS=$icon_save_IFS
done
if test -n "$FCGROUP_ASSIGNMENTS"; then :
  FCGROUP_ASSIGNMENTS=`$as_echo "$FCGROUP_ASSIGNMENTS" | sort`
fi



# Check whether --with-external-rte-rrtmgp was given.
if test "${with_external_rte_rrtmgp+set}" = set; then :
  withval=$with_external_rte_rrtmgp; if test x"$withval" != xno; then :
  with_external_rte_rrtmgp=yes
fi
else
  with_external_rte_rrtmgp=no
fi



# Check whether --with-external-ecrad was given.
if test "${with_external_ecrad+set}" = set; then :
  withval=$with_external_ecrad; if test x"$withval" != xno; then :
  with_external_ecrad=yes
fi
else
  with_external_ecrad=no
fi



# Check whether --with-external-sct was given.
if test "${with_external_sct+set}" = set; then :
  withval=$with_external_sct; if test x"$withval" != xno; then :
  with_external_sct=yes
fi
else
  with_external_sct=no
fi



# Check whether --with-external-yaxt was given.
if test "${with_external_yaxt+set}" = set; then :
  withval=$with_external_yaxt; if test x"$withval" != xno; then :
  with_external_yaxt=yes
fi
else
  with_external_yaxt=no
fi



# Check whether --with-external-ppm was given.
if test "${with_external_ppm+set}" = set; then :
  withval=$with_external_ppm; if test x"$withval" != xno; then :
  with_external_ppm=yes
fi
else
  with_external_ppm=no
fi



# Check whether --with-external-cdi was given.
if test "${with_external_cdi+set}" = set; then :
  withval=$with_external_cdi; if test x"$withval" != xno; then :
  with_external_cdi=yes
fi
else
  with_external_cdi=no
fi



# Check whether --with-external-mtime was given.
if test "${with_external_mtime+set}" = set; then :
  withval=$with_external_mtime; if test x"$withval" != xno; then :
  with_external_mtime=yes
fi
else
  with_external_mtime=no
fi



# Check whether --with-external-yac was given.
if test "${with_external_yac+set}" = set; then :
  withval=$with_external_yac; if test x"$withval" != xno; then :
  with_external_yac=yes
fi
else
  with_external_yac=no
fi



# Check whether --with-external-tixi was given.
if test "${with_external_tixi+set}" = set; then :
  withval=$with_external_tixi; if test x"$withval" != xno; then :
  with_external_tixi=yes
fi
else
  with_external_tixi=no
fi



# Check whether --with-external-fortran-support was given.
if test "${with_external_fortran_support+set}" = set; then :
  withval=$with_external_fortran_support; if test x"$withval" != xno; then :
  with_external_fortran_support=yes
fi
else
  with_external_fortran_support=no
fi


############################# OPTION CROSS-CHECKS ##############################

if test "x$enable_single_precision" = xyes; then :
  if test "x$enable_mixed_precision" = xyes; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the single precision as the working precision and the mixed precision dycore: either disable the single precision (--disable-single-precision) or disable the mixed precision dycore (--disable-mixed-precision)" "$LINENO" 5
fi
fi

if test "x$enable_ecrad" = xyes; then :
  if test "x$enable_single_precision$enable_single_precision_ecrad" = xyesno; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the single precision as the working precision but the single precision for ECRAD is disabled: either disable the single precision as the working precision (--disable-single-precision) or enable the single precision for ECRAD (--enable-single-precision-ecrad)" "$LINENO" 5
fi
fi

if test "x$enable_jsbach" = xno; then :
  if test "x$enable_jsbach_hd" = xyes; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the internal hydrological discharge (HD) scheme but the land component of ICON is disabled: either disable the internal HD scheme (--disable-jsbach-hd) or enable the land component (--enable-jsbach)" "$LINENO" 5
fi
   if test "x$enable_quincy" = xyes; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the QUINCY biogeochemistry model but the ICON land component is disabled: either disable the QUINCY model (--disable-quincy) or enable the ICON land component (--enable-jsbach)" "$LINENO" 5
fi
fi

if test "x$enable_jsbach_hd" = xauto; then :
  enable_jsbach_hd=$enable_jsbach
fi

if test "x$enable_art" = xno; then :
  if test "x$enable_art_gpl" = xyes; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the GPL-licensed code parts of the ART component but the ART component is disabled: either disable the the GPL-licensed code of the component (--disable-art-gpl) or enable the ART component (--enable-art)" "$LINENO" 5
fi
fi

if test "x$enable_parallel_netcdf" = xyes; then :
  if test "x$enable_mpi" = xno; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the parallel features of NetCDF but MPI (parallelization) support is disabled: either disable usage of the parallel features of NetCDF (--disable-parallel-netcdf) or enable MPI (parallelization) support (--enable-mpi)" "$LINENO" 5
fi
fi

if test "x$enable_cdi_pio" = xyes; then :
  if test "x$enable_mpi" = xno; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the parallel features of CDI but MPI (parallelization) support is disabled: either disable usage of the parallel features of CDI (--disable-cdi-pio) or enable MPI (parallelization) support (--enable-mpi)" "$LINENO" 5
fi
   if test "x$with_external_cdi" = xyes && test "x$with_external_yaxt" = xno; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the parallel features of an external CDI library and the bundled YAXT library: either disable usage of the parallel features of CDI (--disable-cdi-pio) or use the bundled version of CDI library (--without-external-cdi), or provide the version of YAXT library (--with-external-yaxt) that the provided CDI library has been built with by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
fi

if test "x$enable_yaxt" = xyes && test "x$enable_mpi" = xno; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the YAXT data exchange but MPI (parallelization) support is disabled: either disable the YAXT data exchange (--disable-yaxt) or enable MPI (parallelization) support (--enable-mpi)" "$LINENO" 5
fi

case "$with_external_mtime$icon_mtime_python" in #(
  yesyes) :
    as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the Python interface of the bundled MTIME library and an external MTIME library: either disable the Python interface of the bundled MTIME (see --enable-bundled-python) or use the bundled version of MTIME library (--without-external-mtime)" "$LINENO" 5 ;; #(
  noauto) :
    icon_mtime_python=yes ;; #(
  *auto) :
    icon_mtime_python=no ;; #(
  *) :
     ;;
esac

if test "x$enable_coupling" = xyes; then :
  if test "x$enable_mpi" = xno; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the coupling but MPI (parallelization) support is disabled: either disable the coupling (--disable-coupling) or enable MPI (parallelization) support (--enable-mpi)" "$LINENO" 5
fi
   if eval test \"x\$"x$with_external_yac"\" = x"yes"; then :
  if test "x$with_external_mtime" = xno; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with an external YAC library and the bundled MTIME library: either disable the coupling (--disable-coupling) or use the bundled version of YAC library (--without-external-yac), or provide the version of MTIME library (--with-external-mtime) that the provided YAC library has been built with by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
      if test "x$with_external_yaxt" = xno; then :
  as_fn_error $? "unsupported combination of the configure options: you are trying to configure with an external YAC library and the bundled YAXT library: either disable the coupling (--disable-coupling) or use the bundled version of YAC library (--without-external-yac), or provide the version of YAXT library (--with-external-yaxt) that the provided YAC library has been built with by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
fi
fi

case "$enable_coupling$with_external_yac$icon_yac_python" in #(
  no*yes) :
    as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the Python interface of the bundled YAC library but the coupling is disabled: either disable the Python interface of the bundled YAC (see --enable-bundled-python) or enable the coupling (--enable-coupling)" "$LINENO" 5 ;; #(
  *yesyes) :
    as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the Python interface of the bundled YAC library and an external YAC library: either disable the Python interface of the bundled YAC (see --enable-bundled-python) or use the bundled version of YAC library (--without-external-yac)" "$LINENO" 5 ;; #(
  yesnoauto) :
    icon_yac_python=yes ;; #(
  *auto) :
    icon_yac_python=no ;; #(
  *) :
     ;;
esac

case "$enable_comin$icon_comin_python" in #(
  noyes) :
    as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the Python interface of the bundled COMIN library but the ICON community interface (COMIN) is disabled: either disable the Python interface of the bundled COMIN (see --enable-bundled-python) or enable the community interface (--enable-comin)" "$LINENO" 5 ;; #(
  externalyes) :
    as_fn_error $? "unsupported combination of the configure options: you are trying to configure with the Python interface of the bundled COMIN library and an external COMIN library: either disable the Python interface of the bundled COMIN (see --enable-bundled-python) or use the bundled version of COMIN library (see --enable-comin)" "$LINENO" 5 ;; #(
  staticauto|sharedauto) :
    icon_comin_python=yes ;; #(
  *auto) :
    icon_comin_python=no ;; #(
  *) :
     ;;
esac

############################# CODEBASE EXTENSIONS ##############################

if test "x$enable_jsbach" = xyes; then :
  icon_subdir_srcdir="$srcdir/externals/jsbach"
   icon_subdir_unique_file="src/base/mo_jsb_base.f90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the land component JSBACH ($icon_subdir_unique_file) in '$icon_subdir_srcdir': disable the component (--disable-jsbach)" "$LINENO" 5
fi
fi

if test "x$enable_emvorado" = xyes; then :
  icon_subdir_srcdir="$srcdir/externals/emvorado"
   icon_subdir_unique_file="src_emvorado/radar_organize.f90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the radar forward operator EMVORADO ($icon_subdir_unique_file) in '$icon_subdir_srcdir': disable the operator (--disable-emvorado)" "$LINENO" 5
fi
   if test "x$enable_dace" = xno; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the radar forward operator EMVORADO is enabled but the Data Assimilation Coding Environment (DACE) modules for data assimilation are disabled: EMVORADO will not be able to produce the FEEDBACK (fdbk) files for data assimilation" >&5
$as_echo "$as_me: WARNING: the radar forward operator EMVORADO is enabled but the Data Assimilation Coding Environment (DACE) modules for data assimilation are disabled: EMVORADO will not be able to produce the FEEDBACK (fdbk) files for data assimilation" >&2;}
fi
fi

if test "x$enable_art" = xyes; then :
  icon_subdir_srcdir="$srcdir/externals/art"
   icon_subdir_unique_file="chem_init/mo_art_chem_init_utils.f90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the aerosols and reactive trace component ART ($icon_subdir_unique_file) in '$icon_subdir_srcdir': disable the component (--disable-art)" "$LINENO" 5
fi
fi

if test "x$enable_msgwam" = xyes; then :
  icon_subdir_srcdir="$srcdir/externals/msgwam"
   icon_subdir_unique_file="msgwam/mo_msgwam.f90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the MSGWAM gravity wave drag scheme ($icon_subdir_unique_file) in '$icon_subdir_srcdir': disable the scheme (--disable-msgwam)" "$LINENO" 5
fi
fi

############################## ENVIRONMENT CHECKS ##############################

   if test -n "$BUILD_ENV"; then :
  if $as_echo "$BUILD_ENV" | grep ';[ ]*$' >/dev/null 2>&1; then :

else
  as_fn_error $? "\$BUILD_ENV does not end with a semicolon: '$BUILD_ENV'" "$LINENO" 5
fi
      case $BUILD_ENV in #(
  *${as_nl}*) :
    as_fn_error $? "\$BUILD_ENV contains a newline: '$BUILD_ENV'" "$LINENO" 5 ;; #(
  *) :
     ;;
esac
      BUILD_ENV_MAKE=$BUILD_ENV
      case $BUILD_ENV_MAKE in #(
  *\$*) :
    BUILD_ENV_MAKE=`$as_echo "$BUILD_ENV_MAKE" | sed 's/\\$/$$/g'` ;; #(
  *) :
     ;;
esac
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \$BUILD_ENV is accepted by '$SHELL -c'" >&5
$as_echo_n "checking whether \$BUILD_ENV is accepted by '$SHELL -c'... " >&6; }
      acx_build_env_quoted=$BUILD_ENV
      case $acx_build_env_quoted in #(
  *\'*) :
    acx_build_env_quoted=`$as_echo "$acx_build_env_quoted" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
      $as_echo "$as_me:${as_lineno-$LINENO}: $SHELL -c '$acx_build_env_quoted'" >&5
      eval \$SHELL -c "'$acx_build_env_quoted'" >&5 2>&1
      if test $? -eq 0; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
         acx_build_env_vars_to_check=
         eval "set dummy $ac_configure_args"; shift
         while test $# != 0; do
           acx_arg=$1
case $acx_arg in #(
  -D) :
    test 2 -gt $# || shift ;; #(
  -*) :
     ;; #(
  *=*) :
                acx_arg_name=`expr "x$acx_arg" : 'x\([^=]*\)='`
            acx_arg_cmd_value=`expr "x$acx_arg" : '[^=]*=\(.*\)'`
            eval acx_arg_${acx_arg_name}=\$$acx_arg_name
            if test "x$acx_arg_cmd_value" = x"`eval 'as_val=${'acx_arg_${acx_arg_name}'};$as_echo "$as_val"'`"; then :
  as_fn_append acx_build_env_vars_to_check " $acx_arg_name"
else
  { eval acx_arg_${acx_arg_name}=; unset acx_arg_${acx_arg_name};}
fi ;; #(
  *) :
     ;;
esac
           shift
         done
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \$BUILD_ENV is accepted by the current shell" >&5
$as_echo_n "checking whether \$BUILD_ENV is accepted by the current shell... " >&6; }
         $as_echo "$as_me:${as_lineno-$LINENO}: $BUILD_ENV" >&5
         eval "$BUILD_ENV" >&5 2>&1
         if test $? -eq 0; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
            if test -n "$acx_build_env_vars_to_check"; then :
  for acx_arg_name in $acx_build_env_vars_to_check; do
                 if test x"`eval 'as_val=${'$acx_arg_name'};$as_echo "$as_val"'`" != \
x"`eval 'as_val=${'acx_arg_${acx_arg_name}'};$as_echo "$as_val"'`"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \$BUILD_ENV has modified variable '$acx_arg_name', which was set on the command line to \"`eval 'as_val=${'acx_arg_${acx_arg_name}'};$as_echo "$as_val"'`\": new value of the variable is \"`eval 'as_val=${'$acx_arg_name'};$as_echo "$as_val"'`\"" >&5
$as_echo "$as_me: WARNING: \$BUILD_ENV has modified variable '$acx_arg_name', which was set on the command line to \"`eval 'as_val=${'acx_arg_${acx_arg_name}'};$as_echo "$as_val"'`\": new value of the variable is \"`eval 'as_val=${'$acx_arg_name'};$as_echo "$as_val"'`\"" >&2;}
fi
                 { eval acx_arg_${acx_arg_name}=; unset acx_arg_${acx_arg_name};}
               done
fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
         acx_failMsg="failed to initialize '$SHELL' with the provided BUILD_ENV='$BUILD_ENV'
A possible workaround for the problem is to re-run the configuration with the following command:
CONFIG_SHELL=\$SHELL \$SHELL $as_myself"
         for acx_config_arg in "$@"; do
           as_fn_append acx_failMsg " '$acx_config_arg'"
         done
         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "$acx_failMsg
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

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

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

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


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

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


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the fully qualified domain name of the host" >&5
$as_echo_n "checking for the fully qualified domain name of the host... " >&6; }
if ${acx_cv_host_fqdn+:} false; then :
  $as_echo_n "(cached) " >&6
else
        acx_cv_host_fqdn=`hostname -f 2>/dev/null`
      if test $? -ne 0 || test -z "$acx_cv_host_fqdn"; then :
  acx_cv_host_fqdn=unknown
         acx_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
         test -n "$acx_hostname" || acx_hostname=$HOSTNAME
         test -n "$acx_hostname" || acx_hostname=`cat /proc/sys/kernel/hostname 2>/dev/null`
         test -n "$acx_hostname" && acx_cv_host_fqdn=`host "$acx_hostname" 2>/dev/null | awk '/has address/ {print $1}' 2>/dev/null`
fi
      test -n "$acx_cv_host_fqdn" || acx_cv_host_fqdn=unknown
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_host_fqdn" >&5
$as_echo "$acx_cv_host_fqdn" >&6; }
   if test "x$acx_cv_host_fqdn" = xunknown; then :
  :
fi
host_fqdn=$acx_cv_host_fqdn


###################### FORTRAN COMPILER COMMAND AND FLAGS ######################

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

FCFLAGS=${FCFLAGS-}
subdir_FCFLAGS=$FCFLAGS


acx_save_cross_compiling=$cross_compiling
   acx_save_ac_tool_warned=$ac_tool_warned
   cross_compiling=yes
   ac_tool_warned=yes

ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_FC+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


    test -n "$FC" && break
  done
fi
if test -z "$FC"; then
  ac_ct_FC=$FC
  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_FC+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_FC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  test -n "$ac_ct_FC" && break
done

  if test "x$ac_ct_FC" = x; then
    FC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    FC=$ac_ct_FC
  fi
fi


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

cat > conftest.$ac_ext <<_ACEOF
      program main

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

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

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

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

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

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

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

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat > conftest.$ac_ext <<_ACEOF
      program main
      open(unit=9,file='conftest.out')
      close(unit=9)

      end
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if ${ac_cv_objext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main

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

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
# If we don't use `.F' as extension, the preprocessor is not run on the
# input file.  (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
if ${ac_cv_fc_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
#ifndef __GNUC__
       choke me
#endif

      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_fc_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
ac_ext=$ac_save_ext
ac_test_FCFLAGS=${FCFLAGS+set}
ac_save_FCFLAGS=$FCFLAGS
FCFLAGS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
$as_echo_n "checking whether $FC accepts -g... " >&6; }
if ${ac_cv_prog_fc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  FCFLAGS=-g
cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  ac_cv_prog_fc_g=yes
else
  ac_cv_prog_fc_g=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
$as_echo "$ac_cv_prog_fc_g" >&6; }
if test "$ac_test_FCFLAGS" = set; then
  FCFLAGS=$ac_save_FCFLAGS
elif test $ac_cv_prog_fc_g = yes; then
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
    FCFLAGS="-g -O2"
  else
    FCFLAGS="-g"
  fi
else
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
    FCFLAGS="-O2"
  else
    FCFLAGS=
  fi
fi

if test $ac_compiler_gnu = yes; then
  GFC=yes
else
  GFC=
fi
ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

export FC



ICON_FCGROUP_FLAGS=''
for icon_fcgroup in $icon_fcgroups_unique; do
  eval "icon_fcgroup_flags=\${ICON_${icon_fcgroup}_FCFLAGS-\$ICON_FCFLAGS}"
  if test -n "$ICON_FCGROUP_FLAGS"; then :
  as_fn_append ICON_FCGROUP_FLAGS "
"
fi
  as_fn_append ICON_FCGROUP_FLAGS "ICON_${icon_fcgroup}_FCFLAGS:= ${icon_fcgroup_flags}"
done


   acx_ext_save=$ac_ext
               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to compile preprocessed .f90 files" >&5
$as_echo_n "checking for Fortran compiler flag needed to compile preprocessed .f90 files... " >&6; }
if ${acx_cv_fc_pp_srcext_f90+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=f90
ac_fcflags_pp_srcext_save=$ac_fcflags_srcext
ac_fcflags_srcext=
acx_cv_fc_pp_srcext_f90=unknown
case $ac_ext in #(
  [fF]77) ac_try=f77-cpp-input;; #(
  *) ac_try=f95-cpp-input;;
esac
for ac_flag in none -ftpp -fpp -Tf "-fpp -Tf" -xpp=fpp -Mpreprocess "-e T" "-e Z" \
               -cpp -xpp=cpp -qsuffix=cpp=f90 "-x $ac_try" +cpp -Cpp; do
  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
  cat > conftest.$ac_ext <<_ACEOF
      program main

#if 0
#include <ac_nonexistent.h>
      choke me
#endif
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  cat > conftest.$ac_ext <<_ACEOF
      program main

#if 1
#include <ac_nonexistent.h>
      choke me
#endif
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :

else
  acx_cv_fc_pp_srcext_f90=$ac_flag; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest.$ac_objext conftest.f90
ac_fcflags_srcext=$ac_fcflags_pp_srcext_save

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_pp_srcext_f90" >&5
$as_echo "$acx_cv_fc_pp_srcext_f90" >&6; }
if test "x$acx_cv_fc_pp_srcext_f90" = xunknown; then
  :
else
  ac_fc_srcext=f90
  if test "x$acx_cv_fc_pp_srcext_f90" = xnone; then
    ac_fcflags_srcext=""
    FCFLAGS_f90=""
  else
    ac_fcflags_srcext=$acx_cv_fc_pp_srcext_f90
    FCFLAGS_f90=$acx_cv_fc_pp_srcext_f90
  fi


fi

            if test "x$acx_cv_fc_pp_srcext_f90" = xunknown; then :
  ac_ext=$acx_ext_save
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to compile preprocessed .f90 files
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  ac_ext=$ac_fc_srcext

fi

         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler vendor" >&5
$as_echo_n "checking for Fortran compiler vendor... " >&6; }
if ${acx_cv_fc_compiler_vendor+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $FC --version 2>/dev/null | grep '^\(ifort\|ifx\) (IFORT)' >/dev/null 2>&1; then :
  acx_cv_fc_compiler_vendor=intel
elif $FC -V 2>&1 | grep '^NAG Fortran Compiler Release' >/dev/null 2>&1; then :
  acx_cv_fc_compiler_vendor=nag
elif $FC -V 2>/dev/null| grep '^Copyright.*\(The Portland Group\|NVIDIA CORPORATION\)' >/dev/null 2>&1; then :
  acx_cv_fc_compiler_vendor=portland
elif $FC -V 2>&1 | grep '^Cray Fortran' >/dev/null 2>&1; then :
  acx_cv_fc_compiler_vendor=cray
elif $FC --version 2>&1 | grep '^Copyright.*NEC Corporation' >/dev/null 2>&1; then :
  acx_cv_fc_compiler_vendor=nec
elif $FC --version 2>/dev/null | grep '^GNU Fortran' >/dev/null 2>&1; then :
  acx_cv_fc_compiler_vendor=gnu
elif $FC --version 2>&1 | grep '^AMD clang version' >/dev/null 2>&1; then :
  acx_cv_fc_compiler_vendor=amd
elif $FC -V 2>&1 | grep '^f18 compiler' >/dev/null 2>&1; then :
  acx_cv_fc_compiler_vendor=flang
elif $FC --version 2>&1 | grep 'clang version' >/dev/null 2>&1; then :
  acx_cv_fc_compiler_vendor=flang
else
  acx_cv_fc_compiler_vendor=unknown
fi
      rm -f a.out a.out.dSYM a.exe b.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_compiler_vendor" >&5
$as_echo "$acx_cv_fc_compiler_vendor" >&6; }

FC_VENDOR=$acx_cv_fc_compiler_vendor


if test "x$enable_lvector" = xauto; then :
  if test "x$FC_VENDOR" = xnec; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: Optimized code for vector engines is enabled because $FC is recognized as the NEC Fortran compiler: disable the optimizations if required (--disable-lvector)" >&5
$as_echo "$as_me: Optimized code for vector engines is enabled because $FC is recognized as the NEC Fortran compiler: disable the optimizations if required (--disable-lvector)" >&6;}
      enable_lvector=all
else
  enable_lvector=no
fi
fi

if test "x$enable_intel_consistency" = xauto; then :
  if test "x$FC_VENDOR" = xintel; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: Intel compiler directives enforcing consistency are enabled because $FC is recognized as the Intel Fortran compiler: disable the directives if required (--disable-intel-consistency)" >&5
$as_echo "$as_me: Intel compiler directives enforcing consistency are enabled because $FC is recognized as the Intel Fortran compiler: disable the directives if required (--disable-intel-consistency)" >&6;}
      enable_intel_consistency=yes
else
  enable_intel_consistency=no
fi
fi

if test "x$enable_pgi_inlib" = xauto; then :
  if test "x$FC_VENDOR" = xportland; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: PGI/NVIDIA cross-file function inlining via an inline library is enabled because $FC is recognized as the PGI/NVIDIA compiler: disable the inlining if required (--disable-pgi-inlib)" >&5
$as_echo "$as_me: PGI/NVIDIA cross-file function inlining via an inline library is enabled because $FC is recognized as the PGI/NVIDIA compiler: disable the inlining if required (--disable-pgi-inlib)" >&6;}
      enable_pgi_inlib=yes
else
  enable_pgi_inlib=no
fi
fi

            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
$as_echo_n "checking for Fortran compiler version... " >&6; }
if ${acx_cv_fc_compiler_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $acx_cv_fc_compiler_vendor in #(
  intel) :
    acx_cv_fc_compiler_version=`$FC --version 2>/dev/null | sed -n 's/^ifort (IFORT) \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'`
         if test -n "$acx_cv_fc_compiler_version"; then :
  acx_cv_fc_compiler_version="classic:${acx_cv_fc_compiler_version}"
else
  acx_cv_fc_compiler_version=`$FC --version 2>/dev/null | sed -n 's/^ifx (IFORT) \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'`
            if test -n "$acx_cv_fc_compiler_version"; then :
  acx_cv_fc_compiler_version="oneapi:${acx_cv_fc_compiler_version}"
fi
fi ;; #(
  nag) :
    acx_cv_fc_compiler_version=`$FC -V 2>&1 | sed -n 's/^NAG Fortran Compiler Release \([0-9][0-9]*\.[0-9][0-9]*\).*Build \([0-9][0-9]*\)/\1.\2/p'` ;; #(
  portland) :
    acx_cv_fc_compiler_version=`$FC -V 2>/dev/null | sed -n 's/\(pgfortran\|pgf90\) \([0-9][0-9]*\.[0-9][0-9]*\)-\([0-9][0-9]*\).*/\2.\3/p'`
         if test -n "$acx_cv_fc_compiler_version"; then :
  acx_cv_fc_compiler_version="pg:${acx_cv_fc_compiler_version}"
else
  acx_cv_fc_compiler_version=`$FC -V 2>/dev/null | sed -n 's/nvfortran \([0-9][0-9]*\.[0-9][0-9]*\)-\([0-9][0-9]*\).*/\1.\2/p'`
            if test -n "$acx_cv_fc_compiler_version"; then :
  acx_cv_fc_compiler_version="nv:${acx_cv_fc_compiler_version}"
fi
fi ;; #(
  cray) :
    acx_cv_fc_compiler_version=`$FC -V 2>&1 | sed -n 's/.*[vV]ersion \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'` ;; #(
  nec) :
    acx_cv_fc_compiler_version=`$FC --version 2>&1 | sed -n 's/^nfort (NFORT) \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'` ;; #(
  gnu) :
    acx_cv_fc_compiler_version=`$FC -dumpfullversion 2>/dev/null | sed -n '/^[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$/p'`
         if test -z "$acx_cv_fc_compiler_version"; then :
  acx_cv_fc_compiler_version=`$FC -dumpversion 2>/dev/null | sed -n '/^[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$/p'`
fi ;; #(
  amd) :
    acx_cv_fc_compiler_version=`$FC --version 2>/dev/null | sed -n 's/.*AOCC_\([0-9][0-9]*\)[._]\([0-9][0-9]*\)[._]\([0-9][0-9]*\).*/\1.\2.\3/p'` ;; #(
  flang) :
    acx_cv_fc_compiler_version=`$FC -V 2>&1 | sed -n 's/.*version \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)/\1/p'`
         if test -n "$acx_cv_fc_compiler_version"; then :
  acx_cv_fc_compiler_version="f18:${acx_cv_fc_compiler_version}"
else
  acx_cv_fc_compiler_version=`$FC --version 2>/dev/null | sed -n 's/.*version \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'`
            if test -n "$acx_cv_fc_compiler_version"; then :
  acx_cv_fc_compiler_version="classic:${acx_cv_fc_compiler_version}"
fi
fi ;; #(
  *) :
    acx_cv_fc_compiler_version=unknown ;;
esac
      rm -f a.out a.out.dSYM a.exe b.out
      if test -z "$acx_cv_fc_compiler_version"; then :
  acx_cv_fc_compiler_version=unknown
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_compiler_version" >&5
$as_echo "$acx_cv_fc_compiler_version" >&6; }

FC_VERSION=$acx_cv_fc_compiler_version


if test "x$enable_rpaths" = xyes; then :
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to add a directory to the runtime library search path" >&5
$as_echo_n "checking for Fortran compiler flag needed to add a directory to the runtime library search path... " >&6; }
if ${acx_cv_fc_rpath_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $acx_cv_fc_compiler_vendor in #(
  nag) :
    acx_cv_fc_rpath_flag="-Wl,-Wl,,-rpath,," ;; #(
  *) :
    acx_cv_fc_rpath_flag="-Wl,-rpath," ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_rpath_flag" >&5
$as_echo "$acx_cv_fc_rpath_flag" >&6; }

   icon_L_args=
   asx_extract_args_args="$LDFLAGS $ICON_LDFLAGS $LIBS"
   asx_extract_args_args=`$as_echo "$asx_extract_args_args" | sed 's%''-L[ ]*''%_ASX_EXTRACT_ARGS_MARKER_%g'`
   for asx_extract_args_arg in $asx_extract_args_args; do
     case $asx_extract_args_arg in #(
  _ASX_EXTRACT_ARGS_MARKER_*) :
    asx_extract_args_value=`$as_echo "$asx_extract_args_arg" | sed 's%^_ASX_EXTRACT_ARGS_MARKER_%%'`
        as_fn_append icon_L_args " $asx_extract_args_value" ;; #(
  *) :
     ;;
esac
   done
   for icon_L_arg in $icon_L_args; do
     case ' '$ICON_LDFLAGS' ' in #(
  *' '"$acx_cv_fc_rpath_flag$icon_L_arg"' '*) :
     ;; #(
  ' '' ') :
    as_fn_append ICON_LDFLAGS "$acx_cv_fc_rpath_flag$icon_L_arg" ;; #(
  *) :
    as_fn_append ICON_LDFLAGS ' '; as_fn_append ICON_LDFLAGS "$acx_cv_fc_rpath_flag$icon_L_arg" ;;
esac
   done
   acx_shlib_rpath_flags_check_result=no
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler accepts the automatically generated RPATH flags" >&5
$as_echo_n "checking whether Fortran compiler accepts the automatically generated RPATH flags... " >&6; }

   cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  acx_shlib_rpath_flags_check_result=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_shlib_rpath_flags_check_result" >&5
$as_echo "$acx_shlib_rpath_flags_check_result" >&6; }
   if test "x$acx_shlib_rpath_flags_check_result" = xyes; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Fortran compiler does not accept the automatically generated RPATH flags
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

   cross_compiling=$acx_save_cross_compiling
   ac_tool_warned=$acx_save_ac_tool_warned
      cat > conftest.$ac_ext <<_ACEOF
      program main
      open(unit=9,file='conftest.out')
      close(unit=9)

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

   rm -f conftest.$ac_ext conftest$ac_exeext conftest.out

case $enable_comin in #(
  static) :
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to add all symbols to the dynamic symbol table" >&5
$as_echo_n "checking for Fortran compiler flag needed to add all symbols to the dynamic symbol table... " >&6; }
   if ${acx_cv_fc_export_dynamic_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_export_dynamic_flag=unknown
      case $host_os in #(
  darwin*) :
    acx_cv_fc_export_dynamic_flag= ;; #(
  *) :
    case $acx_cv_fc_compiler_vendor in #(
  nag) :
    acx_cv_fc_export_dynamic_flag='-Wl,-Wl,,--export-dynamic' ;; #(
  *) :
    acx_cv_fc_export_dynamic_flag='-Wl,--export-dynamic' ;;
esac ;;
esac
      if test -n "$acx_cv_fc_export_dynamic_flag" && test "x$acx_cv_fc_export_dynamic_flag" != xunknown; then :
  acx_save_LDFLAGS=$LDFLAGS
         LDFLAGS="$acx_cv_fc_export_dynamic_flag $LDFLAGS"
         cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :

else
  acx_cv_fc_export_dynamic_flag=unknown
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
         LDFLAGS=$acx_save_LDFLAGS
fi
fi

   if test -n "$acx_cv_fc_export_dynamic_flag"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_export_dynamic_flag" >&5
$as_echo "$acx_cv_fc_export_dynamic_flag" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; }
fi
   if test "x$acx_cv_fc_export_dynamic_flag" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to add all symbols to the dynamic symbol table
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  as_fn_append ICON_LDFLAGS " $acx_cv_fc_export_dynamic_flag"
fi
    ;; #(
  shared) :
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the filename extension of shared libraries" >&5
$as_echo_n "checking for the filename extension of shared libraries... " >&6; }
if ${acx_cv_shlib_ext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $host_os in #(
  darwin*) :
    acx_cv_shlib_ext=dylib ;; #(
  *) :
    acx_cv_shlib_ext=so ;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_shlib_ext" >&5
$as_echo "$acx_cv_shlib_ext" >&6; } ;; #(
  *) :
     ;;
esac

               acx_fc_line_length_none_in_cache=no
   if ${acx_cv_fc_line_length_unlimited+:} false; then :
  case $acx_cv_fc_line_length_unlimited in #(
  none) :
    acx_fc_line_length_none_in_cache=yes ;; #(
  '') :
    acx_cv_fc_line_length_unlimited=none ;; #(
  *) :
     ;;
esac
fi
   acx_save_FCFLAGS=$FCFLAGS
   ac_fc_line_len_string=unlimited
	               ac_fc_line_len=0
                       ac_fc_line_length_test='
      subroutine longer_than_132(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,'\
'arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19)'
: ${ac_fc_line_len_string=$ac_fc_line_len}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag needed to accept $ac_fc_line_len_string column source lines" >&5
$as_echo_n "checking for Fortran flag needed to accept $ac_fc_line_len_string column source lines... " >&6; }
if ${acx_cv_fc_line_length_unlimited+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_line_length_unlimited=unknown
ac_fc_line_length_FCFLAGS_save=$FCFLAGS
for ac_flag in none \
	       -ffree-line-length-none -ffixed-line-length-none \
	       -ffree-line-length-huge \
	       -ffree-line-length-$ac_fc_line_len \
	       -ffixed-line-length-$ac_fc_line_len \
	       -qfixed=$ac_fc_line_len -Mextend \
	       -$ac_fc_line_len -extend_source \
	       -W$ac_fc_line_len -W +extend_source +es -wide --wide -w -e \
               -f -Wf,-f -xline
do
  test "x$ac_flag" != xnone && FCFLAGS="$ac_fc_line_length_FCFLAGS_save $ac_flag"
  cat > conftest.$ac_ext <<_ACEOF
$ac_fc_line_length_test
        implicit integer (a)
      end subroutine
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  acx_cv_fc_line_length_unlimited=$ac_flag; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
FCFLAGS=$ac_fc_line_length_FCFLAGS_save

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_line_length_unlimited" >&5
$as_echo "$acx_cv_fc_line_length_unlimited" >&6; }
if test "x$acx_cv_fc_line_length_unlimited" = xunknown; then
  :
else
  if test "x$acx_cv_fc_line_length_unlimited" != xnone; then
    FCFLAGS="$FCFLAGS $acx_cv_fc_line_length_unlimited"
  fi

fi


   FCFLAGS=$acx_save_FCFLAGS
         if test "x$acx_cv_fc_line_length_unlimited$acx_fc_line_length_none_in_cache" = xnoneno; then :
  acx_cv_fc_line_length_unlimited=
fi
   if test "x$acx_cv_fc_line_length_unlimited" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to accept unlimited column source lines
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  if test -n "$acx_cv_fc_line_length_unlimited"; then :
  as_fn_append FCFLAGS " $acx_cv_fc_line_length_unlimited"
fi
fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to specify search paths for module files" >&5
$as_echo_n "checking for Fortran compiler flag needed to specify search paths for module files... " >&6; }
if ${acx_cv_fc_module_in_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_module_in_flag=unknown
mkdir conftest.dir
cd conftest.dir
cat > conftest.$ac_ext <<_ACEOF

      module conftest_module
      implicit none
      public
      contains
      subroutine conftest_routine
      write(*,'(a)') 'gotcha!'
      end subroutine
      end module
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  cd ..
   ac_fc_module_flag_FCFLAGS_save=$FCFLAGS
   for ac_flag in -M -I '-I ' '-M ' -p '-mod ' '-module ' '-Am -I'; do
     FCFLAGS="$ac_fc_module_flag_FCFLAGS_save ${ac_flag}conftest.dir ${ac_flag}conftest.dir"
     cat > conftest.$ac_ext <<_ACEOF

      program main
      use conftest_module, only : conftest_routine
      implicit none
      call conftest_routine
      end program
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  acx_cv_fc_module_in_flag="$ac_flag"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     if test "$acx_cv_fc_module_in_flag" != unknown; then
       break
     fi
   done
   FCFLAGS=$ac_fc_module_flag_FCFLAGS_save

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

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_module_in_flag" >&5
$as_echo "$acx_cv_fc_module_in_flag" >&6; }
if test "$acx_cv_fc_module_in_flag" != unknown; then
    :
else
    :
fi
                  if test "x$acx_cv_fc_module_in_flag" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to specify search paths for module files
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  FC_MOD_IN=$acx_cv_fc_module_in_flag

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to specify output path for module files" >&5
$as_echo_n "checking for Fortran compiler flag needed to specify output path for module files... " >&6; }
if ${acx_cv_fc_module_out_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  mkdir conftest.dir conftest.dir/sub
cd conftest.dir
acx_cv_fc_module_out_flag=unknown
ac_fc_module_output_flag_FCFLAGS_save=$FCFLAGS
for ac_flag in -J '-J ' -fmod= -moddir= +moddir= -qmoddir= '-mdir ' '-mod ' \
	      '-module ' -M '-Am -M' '-e m -J '; do
  FCFLAGS="$ac_fc_module_output_flag_FCFLAGS_save ${ac_flag}sub"
  cat > conftest.$ac_ext <<_ACEOF

      module conftest_module
      implicit none
      public
      contains
      subroutine conftest_routine
      write(*,'(a)') 'gotcha!'
      end subroutine
      end module
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  cd sub
     cat > conftest.$ac_ext <<_ACEOF

      program main
      use conftest_module, only : conftest_routine
      implicit none
      call conftest_routine
      end program
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  acx_cv_fc_module_out_flag="$ac_flag"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     cd ..
     if test "$acx_cv_fc_module_out_flag" != unknown; then
       break
     fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
FCFLAGS=$ac_fc_module_output_flag_FCFLAGS_save
cd ..
rm -rf conftest.dir

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_module_out_flag" >&5
$as_echo "$acx_cv_fc_module_out_flag" >&6; }
if test "$acx_cv_fc_module_out_flag" != unknown; then
    :
else
    :
fi
                  if test "x$acx_cv_fc_module_out_flag" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to specify output path for module files
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  FC_MOD_OUT=$acx_cv_fc_module_out_flag

fi

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler module file naming template" >&5
$as_echo_n "checking for Fortran compiler module file naming template... " >&6; }
   if ${acx_cv_fc_module_naming_upper+:} false && ${acx_cv_fc_module_naming_ext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_module_naming_upper=${acx_cv_fc_module_naming_upper-unknown}
      acx_cv_fc_module_naming_ext=${acx_cv_fc_module_naming_ext-unknown}
      as_dir=conftest.dir; as_fn_mkdir_p
      cd conftest.dir
      cat > conftest.$ac_ext <<_ACEOF
      module conftest_module
      implicit none
      public
      contains
      subroutine conftest_routine
      end subroutine
      end module
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  case $acx_cv_fc_module_naming_upper in #(
  yes) :
    acx_tmp='CONFTEST_MODULE.*' ;; #(
  no) :
    acx_tmp='conftest_module.*' ;; #(
  *) :
    if test "x$acx_cv_fc_module_naming_ext" = xunknown; then :
  acx_tmp='CONFTEST_MODULE.* conftest_module.*'
else
  acx_tmp="CONFTEST_MODULE.$acx_cv_fc_module_naming_ext conftest_module.$acx_cv_fc_module_naming_ext"
fi ;;
esac
         acx_tmp=`ls $acx_tmp 2>/dev/null`
         if test 1 -eq `$as_echo "$acx_tmp" | wc -l` 2>/dev/null; then :
  case "$acx_tmp" in #(
  CONFTEST_MODULE.*) :
    acx_cv_fc_module_naming_upper=yes
               acx_cv_fc_module_naming_ext=`echo $acx_tmp | sed 's,CONFTEST_MODULE\.,,'` ;; #(
  conftest_module.*) :
    acx_cv_fc_module_naming_upper=no
               acx_cv_fc_module_naming_ext=`echo $acx_tmp | sed 's,conftest_module\.,,'` ;; #(
  *) :
     ;;
esac
fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      cd ..
      rm -rf conftest.dir
fi
   if test "x$acx_cv_fc_module_naming_upper" = xunknown || test "x$acx_cv_fc_module_naming_ext" = xunknown; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler module file naming template
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  if test "x$acx_cv_fc_module_naming_upper" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: {NAME}.$acx_cv_fc_module_naming_ext" >&5
$as_echo "{NAME}.$acx_cv_fc_module_naming_ext" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: {name}.$acx_cv_fc_module_naming_ext" >&5
$as_echo "{name}.$acx_cv_fc_module_naming_ext" >&6; }
fi
      FC_MOD_FILE_UPPER=$acx_cv_fc_module_naming_upper

   FC_MOD_FILE_EXT=$acx_cv_fc_module_naming_ext

fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler submodule file naming template" >&5
$as_echo_n "checking for Fortran compiler submodule file naming template... " >&6; }
   if ${acx_cv_fc_module_snaming_infix+:} false && ${acx_cv_fc_module_snaming_ext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_module_snaming_infix=${acx_cv_fc_module_snaming_infix-unknown}
      acx_cv_fc_module_snaming_ext=${acx_cv_fc_module_snaming_ext-unknown}
      as_dir=conftest.dir; as_fn_mkdir_p
      cd conftest.dir
      cat > conftest.$ac_ext <<_ACEOF
      module conftest_module
      implicit none
      public
      interface
      module subroutine conftest_routine
      end subroutine
      end interface
      end module
      submodule (conftest_module) conftest_submodule
      implicit none
      contains
      module subroutine conftest_routine
      end subroutine
      end submodule
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  if test "x$acx_cv_fc_module_naming_upper" = xyes; then :
  acx_fc_module_name='CONFTEST_MODULE'
            acx_fc_module_sname='CONFTEST_SUBMODULE'
else
  acx_fc_module_name='conftest_module'
            acx_fc_module_sname='conftest_submodule'
fi
         if test "x$acx_cv_fc_module_snaming_infix" = xunknown; then :
  acx_tmp='*'
else
  acx_tmp="${acx_fc_module_name}$acx_cv_fc_module_snaming_infix"
fi
         as_fn_append acx_tmp "$acx_fc_module_sname."
         if test "x$acx_cv_fc_module_snaming_ext" = xunknown; then :
  as_fn_append acx_tmp '*'
else
  as_fn_append acx_tmp "$acx_cv_fc_module_snaming_ext"
fi
         acx_tmp=`ls $acx_tmp 2>/dev/null`
         if test 1 -eq `$as_echo "$acx_tmp" | wc -l` 2>/dev/null; then :
  if test "x$acx_cv_fc_module_snaming_ext" = xunknown; then :
  case $acx_tmp in #(
  *"$acx_fc_module_sname."*) :
    acx_cv_fc_module_snaming_ext=`echo $acx_tmp | sed "s,.*$acx_fc_module_sname\.,,"` ;; #(
  *) :
     ;;
esac
fi
            if test "x$acx_cv_fc_module_snaming_infix" = xunknown; then :
  case $acx_tmp in #(
  "$acx_fc_module_sname."*) :
    acx_cv_fc_module_snaming_infix= ;; #(
  "$acx_fc_module_name"*"$acx_fc_module_sname"*) :
    acx_cv_fc_module_snaming_infix=`echo $acx_tmp | sed "s,$acx_fc_module_sname\..*,," | sed "s,^$acx_fc_module_name,,"` ;; #(
  *) :
     ;;
esac
fi
fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      cd ..
      rm -rf conftest.dir
fi
   if test "x$acx_cv_fc_module_snaming_infix" = xunknown || test "x$acx_cv_fc_module_snaming_ext" = xunknown; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler submodule file naming template
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  if test "x$acx_cv_fc_module_naming_upper" = xyes; then :
  acx_fc_module_name='{NAME}'
         acx_fc_module_sname='{SNAME}'
else
  acx_fc_module_name='{name}'
         acx_fc_module_sname='{sname}'
fi
      if ${acx_cv_fc_module_snaming_infix:+false} :; then :
  acx_tmp=
else
  acx_tmp="$acx_fc_module_name$acx_cv_fc_module_snaming_infix"
fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_tmp$acx_fc_module_sname.$acx_cv_fc_module_snaming_ext" >&5
$as_echo "$acx_tmp$acx_fc_module_sname.$acx_cv_fc_module_snaming_ext" >&6; }
      FC_SMOD_FILE_INFIX=$acx_cv_fc_module_snaming_infix

   FC_SMOD_FILE_EXT=$acx_cv_fc_module_snaming_ext

fi

         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler generates submodule files for root ancestors" >&5
$as_echo_n "checking whether Fortran compiler generates submodule files for root ancestors... " >&6; }
if ${acx_cv_fc_module_root_smod+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_module_root_smod=unknown
      if test "x$acx_cv_fc_module_snaming_ext" = x"$acx_cv_fc_module_naming_ext"; then :
  acx_cv_fc_module_root_smod=no
else
  as_dir=conftest.dir; as_fn_mkdir_p
         cd conftest.dir
         cat > conftest.$ac_ext <<_ACEOF
      module conftest_module
      implicit none
      public
      interface
      module subroutine conftest_routine
      end subroutine
      end interface
      end module
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  if test "x$acx_cv_fc_module_naming_upper" = xyes; then :
  acx_fc_module_name='CONFTEST_MODULE'
else
  acx_fc_module_name='conftest_module'
fi
            if test -f "$acx_fc_module_name.$acx_cv_fc_module_snaming_ext"; then :
  acx_cv_fc_module_root_smod=yes
else
  acx_cv_fc_module_root_smod=no
fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         cd ..
         rm -rf conftest.dir
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_module_root_smod" >&5
$as_echo "$acx_cv_fc_module_root_smod" >&6; }
   if test "x$acx_cv_fc_module_root_smod" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect whether Fortran compiler generates submodule files for modules
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  FC_ROOT_SMOD=$acx_cv_fc_module_root_smod

fi

if test "x$enable_separate_mods" = xyes; then :
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to generate module files but no object files" >&5
$as_echo_n "checking for Fortran compiler flag needed to generate module files but no object files... " >&6; }
if ${acx_cv_fc_module_only_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_module_only_flag=unknown
      as_dir=conftest.dir; as_fn_mkdir_p
      cd conftest.dir
      cat > conftest.$ac_ext <<_ACEOF
      module conftest_module
      end module
_ACEOF
      if test "x$acx_cv_fc_module_naming_upper" = xyes; then :
  acx_tmp="CONFTEST_MODULE.$acx_cv_fc_module_naming_ext"
else
  acx_tmp="conftest_module.$acx_cv_fc_module_naming_ext"
fi
      acx_save_FCFLAGS=$FCFLAGS
      for acx_flag in '-syntax-only' '-fsyntax-only' '-Msyntax-only' '-dB -M2179' '-M' '-otype=mod'; do
        FCFLAGS="$acx_save_FCFLAGS $acx_flag"
        if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && test -f $acx_tmp && test ! -f conftest.$ac_objext; then :
  acx_cv_fc_module_only_flag=$acx_flag; break
else
  rm -f $acx_tmp conftest.$ac_objext
fi
      done
      FCFLAGS=$acx_save_FCFLAGS
      cd ..
      rm -rf conftest.dir
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_module_only_flag" >&5
$as_echo "$acx_cv_fc_module_only_flag" >&6; }
   if test "x$acx_cv_fc_module_only_flag" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to generate module files but no object files
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  FC_MOD_ONLY=$acx_cv_fc_module_only_flag
fi
else
  FC_MOD_ONLY=
fi


      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to specify search paths for the \"INCLUDE\" statement" >&5
$as_echo_n "checking for Fortran compiler flag needed to specify search paths for the \"INCLUDE\" statement... " >&6; }
if ${acx_cv_fc_ftn_include_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_ftn_include_flag=unknown
      as_dir=conftest.dir; as_fn_mkdir_p
      cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
      mv conftest.$ac_ext conftest.dir/conftest.inc
      cat > conftest.$ac_ext <<_ACEOF
      include "conftest.inc"

_ACEOF
      acx_save_FCFLAGS=$FCFLAGS
      for acx_flag in -I '-I '; do
        FCFLAGS="$acx_save_FCFLAGS ${acx_flag}conftest.dir"
        if ac_fn_fc_try_link "$LINENO"; then :
  acx_cv_fc_ftn_include_flag=$acx_flag
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
        test "x$acx_cv_fc_ftn_include_flag" != xunknown && break
      done
      FCFLAGS=$acx_save_FCFLAGS
      rm -f conftest.$ac_ext
      rm -rf conftest.dir
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_ftn_include_flag" >&5
$as_echo "$acx_cv_fc_ftn_include_flag" >&6; }

   if test "x$acx_cv_fc_ftn_include_flag" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to specify search paths for the \"INCLUDE\" statement
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  FC_INC_FLAG=$acx_cv_fc_ftn_include_flag

fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler search path order for the \"INCLUDE\" statement" >&5
$as_echo_n "checking for Fortran compiler search path order for the \"INCLUDE\" statement... " >&6; }
if ${acx_cv_fc_ftn_include_order+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_ftn_include_order=
      if test "x$cross_compiling" = xno; then :
  as_dir=conftest.dir/src/inc; as_fn_mkdir_p
         as_dir=conftest.dir/build; as_fn_mkdir_p
         as_dir=conftest.dir/src/inc2; as_fn_mkdir_p
         cat > conftest.$ac_ext <<_ACEOF
      program main
      include "conftest.inc"

      end
_ACEOF
         cp conftest.$ac_ext conftest.dir/build/conftest.$ac_ext
         mv conftest.$ac_ext conftest.dir/src/conftest.$ac_ext
         cat > conftest.$ac_ext <<_ACEOF
      include "conftest.write"

_ACEOF
         mv conftest.$ac_ext conftest.dir/src/inc2/conftest.inc
         set "src" "/src/" "flg" "/src/inc/" "inc" "/src/inc2/" "cwd" "/build/"
         while test $# != 0; do
           cat > conftest.$ac_ext <<_ACEOF
      write(*,"(a)") "${1}"
_ACEOF
           shift; mv conftest.$ac_ext conftest.dir${1}conftest.write; shift
         done
         cd conftest.dir/build
         acx_save_FCFLAGS=$FCFLAGS
         FCFLAGS="$FCFLAGS ${acx_cv_fc_ftn_include_flag}../src/inc ${acx_cv_fc_ftn_include_flag}../src/inc2"
         acx_save_ac_link=$ac_link
         ac_link=`$as_echo "$ac_link" | sed 's%conftest\.\$ac_ext%../src/&%'`
         while :; do
           if ac_fn_fc_try_link "$LINENO"; then :
  acx_exec_result=`./conftest$ac_exeext`
              if test $? -eq 0; then :
  case $acx_exec_result in #(
  src) :
    rm -f ../src/conftest.write ;; #(
  inc) :
    rm -f ../src/inc2/conftest.write ;; #(
  cwd) :
    rm -f ./conftest.write ;; #(
  flg) :
    rm -f ../src/inc/conftest.write ../src/inc2/conftest.write ;; #(
  *) :
    break ;;
esac
                 if test -z "$acx_cv_fc_ftn_include_order"; then :
  acx_cv_fc_ftn_include_order=$acx_exec_result
else
  as_fn_append acx_cv_fc_ftn_include_order ",$acx_exec_result"
fi
                 rm -f conftest$ac_exeext
else
  break
fi
else
  break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
         done
         ac_link=$acx_save_ac_link
         FCFLAGS=$acx_save_FCFLAGS
         cd ../..
         rm -rf conftest.dir
fi
      if test -z "$acx_cv_fc_ftn_include_order"; then :
  acx_cv_fc_ftn_include_order=unknown
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_ftn_include_order" >&5
$as_echo "$acx_cv_fc_ftn_include_order" >&6; }
   if test "x$acx_cv_fc_ftn_include_order" = xunknown; then :
  FC_INC_ORDER=src,flg
else
  FC_INC_ORDER=$acx_cv_fc_ftn_include_order
fi



      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to specify search paths for the quoted form of the \"#include\" directive" >&5
$as_echo_n "checking for Fortran compiler flag needed to specify search paths for the quoted form of the \"#include\" directive... " >&6; }
if ${acx_cv_fc_pp_include_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_pp_include_flag=unknown
      as_dir=conftest.dir; as_fn_mkdir_p
      cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
      mv conftest.$ac_ext conftest.dir/conftest.inc
      cat > conftest.$ac_ext <<_ACEOF
#include "conftest.inc"

_ACEOF
      acx_save_FCFLAGS=$FCFLAGS
      for acx_flag in -I '-I ' '-WF,-I' '-Wp,-I'; do
        FCFLAGS="$acx_save_FCFLAGS ${acx_flag}conftest.dir"
        if ac_fn_fc_try_link "$LINENO"; then :
  acx_cv_fc_pp_include_flag=$acx_flag
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
        test "x$acx_cv_fc_pp_include_flag" != xunknown && break
      done
      FCFLAGS=$acx_save_FCFLAGS
      rm -f conftest.$ac_ext
      rm -rf conftest.dir
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_pp_include_flag" >&5
$as_echo "$acx_cv_fc_pp_include_flag" >&6; }

   if test "x$acx_cv_fc_pp_include_flag" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to specify search paths for the quoted form of the \"#include\" directive
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  FC_INC_FLAG_PP_f90=$acx_cv_fc_pp_include_flag

fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler search path order for the quoted form of the \"#include\" directive" >&5
$as_echo_n "checking for Fortran compiler search path order for the quoted form of the \"#include\" directive... " >&6; }
if ${acx_cv_fc_pp_include_order+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_pp_include_order=
      if test "x$cross_compiling" = xno; then :
  as_dir=conftest.dir/src/inc; as_fn_mkdir_p
         as_dir=conftest.dir/build; as_fn_mkdir_p
         as_dir=conftest.dir/src/inc2; as_fn_mkdir_p
         cat > conftest.$ac_ext <<_ACEOF
      program main
#include "conftest.inc"

      end
_ACEOF
         cp conftest.$ac_ext conftest.dir/build/conftest.$ac_ext
         mv conftest.$ac_ext conftest.dir/src/conftest.$ac_ext
         cat > conftest.$ac_ext <<_ACEOF
#include "conftest.write"

_ACEOF
         mv conftest.$ac_ext conftest.dir/src/inc2/conftest.inc
         set "src" "/src/" "flg" "/src/inc/" "inc" "/src/inc2/" "cwd" "/build/"
         while test $# != 0; do
           cat > conftest.$ac_ext <<_ACEOF
      write(*,"(a)") "${1}"
_ACEOF
           shift; mv conftest.$ac_ext conftest.dir${1}conftest.write; shift
         done
         cd conftest.dir/build
         acx_save_FCFLAGS=$FCFLAGS
         FCFLAGS="$FCFLAGS ${acx_cv_fc_pp_include_flag}../src/inc ${acx_cv_fc_pp_include_flag}../src/inc2"
         acx_save_ac_link=$ac_link
         ac_link=`$as_echo "$ac_link" | sed 's%conftest\.\$ac_ext%../src/&%'`
         while :; do
           if ac_fn_fc_try_link "$LINENO"; then :
  acx_exec_result=`./conftest$ac_exeext`
              if test $? -eq 0; then :
  case $acx_exec_result in #(
  src) :
    rm -f ../src/conftest.write ;; #(
  inc) :
    rm -f ../src/inc2/conftest.write ;; #(
  cwd) :
    rm -f ./conftest.write ;; #(
  flg) :
    rm -f ../src/inc/conftest.write ../src/inc2/conftest.write ;; #(
  *) :
    break ;;
esac
                 if test -z "$acx_cv_fc_pp_include_order"; then :
  acx_cv_fc_pp_include_order=$acx_exec_result
else
  as_fn_append acx_cv_fc_pp_include_order ",$acx_exec_result"
fi
                 rm -f conftest$ac_exeext
else
  break
fi
else
  break
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
         done
         ac_link=$acx_save_ac_link
         FCFLAGS=$acx_save_FCFLAGS
         cd ../..
         rm -rf conftest.dir
fi
      if test -z "$acx_cv_fc_pp_include_order"; then :
  acx_cv_fc_pp_include_order=unknown
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_pp_include_order" >&5
$as_echo "$acx_cv_fc_pp_include_order" >&6; }
   if test "x$acx_cv_fc_pp_include_order" = xunknown; then :
  FC_INC_ORDER_PP_f90=inc,flg
else
  FC_INC_ORDER_PP_f90=$acx_cv_fc_pp_include_order
fi



   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to define a preprocessor macro" >&5
$as_echo_n "checking for Fortran compiler flag needed to define a preprocessor macro... " >&6; }
if ${acx_cv_fc_macro_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_macro_flag=unknown
      cat > conftest.$ac_ext <<_ACEOF
      program main
#ifndef CONFTEST_ONE
      choke me
#endif
#if CONFTEST_TWO != 42
      choke me
#endif
      end
_ACEOF
      acx_save_FCFLAGS=$FCFLAGS
      for acx_lang_macro_flag in -D; do
        FCFLAGS="${acx_save_FCFLAGS} ${acx_lang_macro_flag}CONFTEST_ONE ${acx_lang_macro_flag}CONFTEST_TWO=42"
        if ac_fn_fc_try_compile "$LINENO"; then :
  acx_cv_fc_macro_flag=$acx_lang_macro_flag
fi
rm -f core conftest.err conftest.$ac_objext
        test "x$acx_cv_fc_macro_flag" != xunknown && break
      done
      rm -f conftest.$ac_ext
      FCFLAGS=$acx_save_FCFLAGS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_macro_flag" >&5
$as_echo "$acx_cv_fc_macro_flag" >&6; }
   if test "x$acx_cv_fc_macro_flag" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to define a preprocessor macro
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  FC_PP_DEF=$acx_cv_fc_macro_flag

fi


   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC supports CONTIGUOUS attribute" >&5
$as_echo_n "checking whether $FC supports CONTIGUOUS attribute... " >&6; }
if ${acx_cv_fc_attribute_contiguous+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

      cat > conftest.$ac_ext <<_ACEOF
      SUBROUTINE f(x)
      REAL, CONTIGUOUS, TARGET, INTENT(IN) :: x(:, :)
      REAL, CONTIGUOUS, POINTER :: p(:, :)
      INTEGER :: i, j
      p => x
      DO j = 1, SIZE(p, 2)
      DO i = 1, SIZE(p, 1)
      p(i, j) = p(i, j) * 0.1
      END DO
      END DO
      END SUBROUTINE f

      SUBROUTINE bar(b)
      REAL, POINTER, CONTIGUOUS :: b(:)
      CALL foo(b(1))
      END SUBROUTINE bar

      SUBROUTINE foo(x)
      REAL, INTENT(in) :: x
      WRITE (0, *) x
      END SUBROUTINE foo

_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  acx_cv_fc_attribute_contiguous=yes
else
  acx_cv_fc_attribute_contiguous=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_attribute_contiguous" >&5
$as_echo "$acx_cv_fc_attribute_contiguous" >&6; }
    if test x"$acx_cv_fc_attribute_contiguous" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HAVE_FC_ATTRIBUTE_CONTIGUOUS"
else
  :
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC supports quadruple-precision real kind" >&5
$as_echo_n "checking whether $FC supports quadruple-precision real kind... " >&6; }
if ${icon_cv_have_quad_precision+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_quad_precision=no
    cat > conftest.$ac_ext <<_ACEOF
      program main

      implicit none
      integer, parameter :: qp = selected_real_kind(30)
      real(qp), parameter :: v = 1._qp
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_quad_precision=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_quad_precision" >&5
$as_echo "$icon_cv_have_quad_precision" >&6; }
if test "x$icon_cv_have_quad_precision" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__HAVE_QUAD_PRECISION"
fi

as_fn_append FCFLAGS " ${FC_PP_DEF}__ICON__"

if test "x$enable_deprecated" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__DEPRECATED"
fi

if test "x$enable_atmo" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_ICON_ATMO__"
fi

if test "x$enable_les" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_ICON_LES__"
fi

if test "x$enable_upatmo" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_ICON_UPATMO__"
fi

if test "x$enable_ocean" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_ICON_OCEAN__"
fi

if test "x$enable_jsbach" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_JSBACH__"
fi

if test "x$enable_jsbach_hd" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_JSBACH_HD__"
fi

if test "x$enable_quincy" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_QUINCY__"
fi

if test "x$enable_waves" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_ICON_WAVES__"
fi

if test "x$enable_coupling" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}YAC_coupling"
fi

if test "x$enable_aes" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_AES__"
fi

if test "x$enable_ragnarok" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_RAGNAROK__"
fi

if test "x$enable_nwp" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_NWP__"
fi

if test "x$enable_ecrad" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__ECRAD"
fi

if test "x$enable_rte_rrtmgp" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_RTE_RRTMGP__"
fi

if test "x$enable_rttov" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__USE_RTTOV"
fi

if test "x$enable_dace" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__DACE__"
fi

if test "x$enable_emvorado" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HAVE_RADARFWO ${FC_PP_DEF}TWOMOM_SB_NEW"
   if test "x$enable_dace" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}NUDGING"
fi
fi

if test "x$enable_art" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__ICON_ART ${FC_PP_DEF}__ART_TMP_IFDEF"
fi

if test "x$enable_msgwam" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__MSGWAM"
fi

if test "x$enable_art_gpl" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__ART_GPL"
fi

if test "x$enable_comin" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_ICON_COMIN__"
fi

if test "x$enable_acm_license" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HAVE_ACM_LICENSE"
fi

if test "x$enable_mpi" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}NOMPI"
fi

if test "x$enable_active_target_sync" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HAVE_SLOW_PASSIVE_TARGET_ONESIDED"
fi

if test "x$enable_mpi_gpu" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__USE_G2G"
fi

if test "x$icon_gpu_secondary" = xhip; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__HIP__"
fi

if test "x$enable_grib2" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HAVE_CDI_GRIB2"
fi

if test "x$enable_parallel_netcdf" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HAVE_PARALLEL_NETCDF"
fi

if test "x$enable_async_io_rma" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}NO_ASYNC_IO_RMA"
fi

if test "x$enable_cdi_pio" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HAVE_CDI_PIO"
fi

if test "x$enable_sct" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__SCT__"
fi

if test "x$enable_yaxt" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HAVE_YAXT"
fi

if test x"$enable_serialization" != xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}SERIALIZE"
   case $enable_serialization in #(
  read) :
    as_fn_append FCFLAGS " ${FC_PP_DEF}SERIALIZE_READ_REFERENCE" ;; #(
  perturb) :
    as_fn_append FCFLAGS " ${FC_PP_DEF}SERIALIZE_PERTURB_REFERENCE" ;; #(
  create) :
    as_fn_append FCFLAGS " ${FC_PP_DEF}SERIALIZE_CREATE_REFERENCE" ;; #(
  *) :
     ;;
esac
fi

if test "x$enable_testbed" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__NO_ICON_TESTBED__"
fi

if test "x$enable_loop_exchange" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__LOOP_EXCHANGE"
fi

if test "x$enable_dim_swap" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__SWAPDIM"
fi

if test "x$enable_realloc_buf" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__REALLOC_BUF"
fi

if test x"$enable_lvector" != xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__LVECTOR__"
   if test "x$enable_lvector" = xbitid; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__LVEC_BITID__"
fi
fi

if test "x$enable_vectorized_lrtm" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}LRTM_FULL_VECTORIZATION"
fi

if test "x$enable_mixed_precision" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__MIXED_PRECISION"
fi

if test "x$enable_single_precision" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__SINGLE_PRECISION"
fi

if test "x$enable_single_precision_ecrad" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}__SINGLE_PRECISION_ECRAD"
fi

if test "x$enable_intel_consistency" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}IFORT_CONSISTENCY_ENFORCE"
fi

if test "x$enable_cuda_graphs" = xyes; then :
  icon_warn=yes
   case "$FC_VENDOR,$FC_VERSION" in #(
  portland,nv:*) :


  # Used to indicate true or false condition
  ax_compare_version=false

  # Convert the two version strings to be compared into a format that
  # allows a simple string comparison.  The end result is that a version
  # string of the form 1.12.5-r617 will be converted to the form
  # 0001001200050617.  In other words, each number is zero padded to four
  # digits, and non digits are removed.

  ax_compare_version_A=`echo "$FC_VERSION" | cut -d: -f2"" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
                     -e 's/[^0-9]//g'`


  ax_compare_version_B=`echo "23.3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
                     -e 's/[^0-9]//g'`


    ax_compare_version=`echo "x$ax_compare_version_A
x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`



    if test "$ax_compare_version" = "true" ; then
    icon_warn=no
      fi
 ;; #(
  *) :
     ;;
esac
   if test "x$icon_warn" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran compiler is not recognized as NVIDIA HPC Fortran 23.3 or newer: it is strongly recommended to disable CUDA graphs (--disable-cuda-graphs)" >&5
$as_echo "$as_me: WARNING: Fortran compiler is not recognized as NVIDIA HPC Fortran 23.3 or newer: it is strongly recommended to disable CUDA graphs (--disable-cuda-graphs)" >&2;}
fi
   as_fn_append FCFLAGS " ${FC_PP_DEF}ICON_USE_CUDA_GRAPH"
fi

######################### C COMPILER COMMAND AND FLAGS #########################

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

CFLAGS=${CFLAGS-}
subdir_CFLAGS=$CFLAGS
subdir_CPPFLAGS=$CPPFLAGS

as_fn_append CFLAGS "${ICON_CFLAGS:+ }${ICON_CFLAGS}"

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }

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

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

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

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

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

int
main ()
{

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

int
main ()
{

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

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

int
main ()
{

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

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

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

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

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

fi

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

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

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

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

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

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

typedef const char *ccp;

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

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

  const char *str;
  int number;
  float fnumber;

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

int
main ()
{

  // Check bool.
  _Bool success = false;

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

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

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

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

  ni.number = 58;

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

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

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

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

fi


if test "x$ac_cv_prog_cc_c99" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C compiler does not support ISO C99
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
export CC


         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
$as_echo_n "checking for C compiler vendor... " >&6; }
if ${acx_cv_c_compiler_vendor+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $CC --version 2>/dev/null | grep '^icc (ICC)' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=intel
elif $CC --version 2>/dev/null | grep '^Intel.*oneAPI.*Compiler' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=intel
elif $CC -V 2>&1 | grep '^NAG Fortran Compiler Release' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=nag
elif $CC -V 2>/dev/null| grep '^Copyright.*\(The Portland Group\|NVIDIA CORPORATION\)' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=portland
elif $CC -V 2>&1 | grep '^Cray C' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=cray
elif $CC --version 2>&1 | grep '^Cray clang' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=cray
elif $CC --version 2>&1 | grep '^Copyright.*NEC Corporation' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=nec
elif $CC --version 2>/dev/null | grep '^gcc' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=gnu
elif $CC --version 2>&1 | grep '^AMD clang version' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=amd
elif $CC --version 2>&1 | grep '^Apple \(LLVM\|clang\) version' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=apple
elif $CC --version 2>&1 | grep 'clang version' >/dev/null 2>&1; then :
  acx_cv_c_compiler_vendor=clang
else
  acx_cv_c_compiler_vendor=unknown
fi
      rm -f a.out a.out.dSYM a.exe b.out
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_c_compiler_vendor" >&5
$as_echo "$acx_cv_c_compiler_vendor" >&6; }

            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
$as_echo_n "checking for C compiler version... " >&6; }
if ${acx_cv_c_compiler_version+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $acx_cv_c_compiler_vendor in #(
  intel) :
    acx_cv_c_compiler_version=`$CC --version 2>/dev/null | sed -n 's/^icc (ICC) \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'`
         if test -n "$acx_cv_c_compiler_version"; then :
  acx_cv_c_compiler_version="classic:${acx_cv_c_compiler_version}"
else
  acx_cv_c_compiler_version=`$CC --version 2>/dev/null | sed -n 's/^Intel.*oneAPI.*Compiler \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'`
            if test -n "$acx_cv_c_compiler_version"; then :
  acx_cv_c_compiler_version="oneapi:${acx_cv_c_compiler_version}"
fi
fi ;; #(
  nag) :
    acx_cv_c_compiler_version=`$CC -V 2>&1 | sed -n 's/^NAG Fortran Compiler Release \([0-9][0-9]*\.[0-9][0-9]*\).*Build \([0-9][0-9]*\)/\1.\2/p'` ;; #(
  portland) :
    acx_cv_c_compiler_version=`$CC -V 2>/dev/null | sed -n 's/pgcc \((.*) \)\?\([0-9][0-9]*\.[0-9][0-9]*\)-\([0-9][0-9]*\).*/\2.\3/p'`
         if test -n "$acx_cv_c_compiler_version"; then :
  acx_cv_c_compiler_version="pg:${acx_cv_c_compiler_version}"
else
  acx_cv_c_compiler_version=`$CC -V 2>/dev/null | sed -n 's/nvc \([0-9][0-9]*\.[0-9][0-9]*\)-\([0-9][0-9]*\).*/\1.\2/p'`
            if test -n "$acx_cv_c_compiler_version"; then :
  acx_cv_c_compiler_version="nv:${acx_cv_c_compiler_version}"
fi
fi ;; #(
  cray) :
    acx_cv_c_compiler_version=`$CC -V 2>&1 | sed -n 's/.*ersion \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'`
         if test -n "$acx_cv_c_compiler_version"; then :
  acx_cv_c_compiler_version="classic:${acx_cv_c_compiler_version}"
else
  acx_cv_c_compiler_version=`$CC --version | sed -n 's/.*version \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'`
            if test -n "$acx_cv_c_compiler_version"; then :
  acx_cv_c_compiler_version="clang:${acx_cv_c_compiler_version}"
fi
fi ;; #(
  nec) :
    acx_cv_c_compiler_version=`$CC --version 2>&1 | sed -n 's/^ncc (NCC) \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'` ;; #(
  gnu) :
    acx_cv_c_compiler_version=`$CC -dumpfullversion 2>/dev/null | sed -n '/^[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$/p'`
         if test -z "$acx_cv_c_compiler_version"; then :
  acx_cv_c_compiler_version=`$CC -dumpversion 2>/dev/null | sed -n '/^[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$/p'`
fi ;; #(
  amd) :
    acx_cv_c_compiler_version=`$CC --version 2>/dev/null | sed -n 's/.*AOCC_\([0-9][0-9]*\)[._]\([0-9][0-9]*\)[._]\([0-9][0-9]*\).*/\1.\2.\3/p'` ;; #(
  apple) :
    acx_cv_c_compiler_version=`$CC --version 2>/dev/null | sed -E -n 's/^Apple (LLVM|clang) version ([0-9]+\.[0-9]+\.[0-9]+).*/\2/p'` ;; #(
  clang) :
    acx_cv_c_compiler_version=`$CC --version 2>/dev/null | sed -n 's/.*clang version \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'` ;; #(
  *) :
    acx_cv_c_compiler_version=unknown ;;
esac
      rm -f a.out a.out.dSYM a.exe b.out
      if test -z "$acx_cv_c_compiler_version"; then :
  acx_cv_c_compiler_version=unknown
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_c_compiler_version" >&5
$as_echo "$acx_cv_c_compiler_version" >&6; }



for ac_header in stdlib.h stdio.h math.h time.h ctype.h string.h assert.h   stdbool.h dirent.h errno.h fcntl.h sys/stat.h sys/types.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "// override default includes
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find header file $ac_header
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi

done


######################## C++ COMPILER COMMAND AND FLAGS ########################

CXXFLAGS=${CXXFLAGS-}
subdir_CXXFLAGS=$CXXFLAGS

export CXX

###################### SECONDARY GPU COMPILERS AND FLAGS #######################

subdir_CUDAFLAGS=${CUDAFLAGS-}
subdir_HIPFLAGS=${HIPFLAGS-}

icon_gpu_secondary_arch=unknown
icon_cmake_hipcc_workaround=
case $icon_gpu_secondary in #(
  cuda) :
    CUDAFLAGS=${CUDAFLAGS-}
    as_fn_append CUDAFLAGS "${ICON_CUDAFLAGS:+ }${ICON_CUDAFLAGS}"









ac_ext=cu
ac_compile='$CUDACXX -c $CUDAFLAGS conftest.$ac_ext >&5'
ac_link='$CUDACXX -o conftest$ac_exeext $CUDAFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_cuda_compiler_gnu
               if test -z "$CUDACXX"; then :
  for ac_prog in nvcc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CUDACXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CUDACXX"; then
  ac_cv_prog_CUDACXX="$CUDACXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CUDACXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  test -n "$CUDACXX" && break
done

fi
   $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA C++ compiler version" >&5
   set dummy $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:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler --version >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU CUDA compiler" >&5
$as_echo_n "checking whether we are using the GNU CUDA compiler... " >&6; }
if ${ac_cv_cuda_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF

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

  ;
  return 0;
}
_ACEOF
if ac_fn_cuda_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cuda_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cuda_compiler_gnu" >&5
$as_echo "$ac_cv_cuda_compiler_gnu" >&6; }
   acx_test_CUDAFLAGS=${CUDAFLAGS+set}
   acx_save_CUDAFLAGS=$CUDAFLAGS
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CUDACXX accepts -g" >&5
$as_echo_n "checking whether $CUDACXX accepts -g... " >&6; }
if ${acx_cv_prog_cudac_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_save_cuda_werror_flag=$ac_cuda_werror_flag
      ac_cuda_werror_flag=yes
      acx_cv_prog_cudac_g=no
      CUDAFLAGS='-g'
      cat > conftest.$ac_ext <<_ACEOF

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cuda_try_compile "$LINENO"; then :
  acx_cv_prog_cudac_g=yes
else
  CUDAFLAGS=''
         cat > conftest.$ac_ext <<_ACEOF

int
main ()
{

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

else
  ac_cuda_werror_flag=$acx_save_cuda_werror_flag
            CUDAFLAGS='-g'
            cat > conftest.$ac_ext <<_ACEOF

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cuda_try_compile "$LINENO"; then :
  acx_cv_prog_cudac_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      ac_cuda_werror_flag=$acx_save_cuda_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cudac_g" >&5
$as_echo "$acx_cv_prog_cudac_g" >&6; }
   if test "$acx_test_CUDAFLAGS" = set; then :
  CUDAFLAGS=$acx_save_CUDAFLAGS
elif test "$acx_cv_prog_cudac_g" = yes; then :
  if test "x$ac_cv_cuda_compiler_gnu" = xyes; then :
  CUDAFLAGS='-g -O2'
else
  CUDAFLAGS='-g'
fi
else
  if test "x$ac_cv_cuda_compiler_gnu" = xyes; then :
  CUDAFLAGS='-O2'
else
  CUDAFLAGS=''
fi
fi
   acx_prog_cudacxx_works=no
         if test "x$acx_prog_cudacxx_works" = xno; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CUDACXX option to enable C++14 features" >&5
$as_echo_n "checking for $CUDACXX option to enable C++14 features... " >&6; }
            if ${acx_cv_prog_cudacxx_cxx14_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_prog_cudacxx_cxx14_flag=unsupported
         cat > conftest.$ac_ext <<_ACEOF
$acx_cuda_conftest_cxx14_program
_ACEOF
         acx_save_CUDAFLAGS=$CUDAFLAGS
         for acx_flag in '' -std=c++14
         do
           CUDAFLAGS="$acx_flag $acx_save_CUDAFLAGS"
           if ac_fn_cuda_try_compile "$LINENO"; then :
  acx_cv_prog_cudacxx_cxx14_flag=$acx_flag
fi
rm -f core conftest.err conftest.$ac_objext
           test "x$acx_cv_prog_cudacxx_cxx14_flag" != xunsupported && break
         done
         CUDAFLAGS=$acx_save_CUDAFLAGS
         rm -f conftest.$ac_ext
fi

      if test -n "$acx_cv_prog_cudacxx_cxx14_flag"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cudacxx_cxx14_flag" >&5
$as_echo "$acx_cv_prog_cudacxx_cxx14_flag" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; }
fi
      if test "x$acx_cv_prog_cudacxx_cxx14_flag" != xunsupported; then :
  acx_prog_cudacxx_works=cxx14
fi

fi
      if test "x$acx_prog_cudacxx_works" = xno; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CUDACXX option to enable C++11 features" >&5
$as_echo_n "checking for $CUDACXX option to enable C++11 features... " >&6; }
            if ${acx_cv_prog_cudacxx_cxx11_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_prog_cudacxx_cxx11_flag=unsupported
         cat > conftest.$ac_ext <<_ACEOF
$acx_cuda_conftest_cxx11_program
_ACEOF
         acx_save_CUDAFLAGS=$CUDAFLAGS
         for acx_flag in '' -std=c++11
         do
           CUDAFLAGS="$acx_flag $acx_save_CUDAFLAGS"
           if ac_fn_cuda_try_compile "$LINENO"; then :
  acx_cv_prog_cudacxx_cxx11_flag=$acx_flag
fi
rm -f core conftest.err conftest.$ac_objext
           test "x$acx_cv_prog_cudacxx_cxx11_flag" != xunsupported && break
         done
         CUDAFLAGS=$acx_save_CUDAFLAGS
         rm -f conftest.$ac_ext
fi

      if test -n "$acx_cv_prog_cudacxx_cxx11_flag"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cudacxx_cxx11_flag" >&5
$as_echo "$acx_cv_prog_cudacxx_cxx11_flag" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; }
fi
      if test "x$acx_cv_prog_cudacxx_cxx11_flag" != xunsupported; then :
  acx_prog_cudacxx_works=cxx11
fi

fi
         if test "x$acx_prog_cudacxx_works" = xno; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CUDACXX can compile basic CUDA code" >&5
$as_echo_n "checking whether $CUDACXX can compile basic CUDA code... " >&6; }
if ${acx_cv_prog_cudaxx_basic+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
$acx_cuda_conftest_basic_program
_ACEOF
if ac_fn_cuda_try_compile "$LINENO"; then :
  acx_cv_prog_cudaxx_basic=yes
else
  acx_cv_prog_cudaxx_basic=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cudaxx_basic" >&5
$as_echo "$acx_cv_prog_cudaxx_basic" >&6; }
      if test "x$acx_cv_prog_cudaxx_basic" = xyes; then :
  acx_prog_cudacxx_works=basic
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

    export CUDACXX
        case $acx_prog_cudacxx_works in #(
  no) :
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find a working CUDA Compiler: either switch the secondary GPU compiler (e.g. --enable-gpu=${icon_gpu_primary}+hip) or disable GPU support (--disable-gpu), or set CUDACXX accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; } ;; #(
  basic) :
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect CUDA compiler flag needed to enable
support for the C++11 standard: either switch the secondary GPU compiler (e.g. --enable-gpu=${icon_gpu_primary}+hip) or disable GPU support (--disable-gpu), or set CUDAFLAGS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; } ;; #(
  *) :
    CUDAFLAGS="`eval 'as_val=${'acx_cv_prog_cudacxx_${acx_prog_cudacxx_works}_flag'};$as_echo "$as_val"'` $CUDAFLAGS" ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CUDA architecture" >&5
$as_echo_n "checking for the CUDA architecture... " >&6; }
if ${icon_cv_cuda_arch+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_cuda_arch=unknown
       ac_ext=cu
ac_compile='$CUDACXX -c $CUDAFLAGS conftest.$ac_ext >&5'
ac_link='$CUDACXX -o conftest$ac_exeext $CUDAFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_cuda_compiler_gnu

       icon_nvidia_arch=unknown
       cat > conftest.$ac_ext <<_ACEOF

int
main ()
{
#define CONFTEST_FIRST_ARG_helper(x, ...) x
#define CONFTEST_FIRST_ARG(x, ...) CONFTEST_FIRST_ARG_helper(x)
#define ICON_NVIDIA_ARCH CONFTEST_FIRST_ARG(__CUDA_ARCH_LIST__)
#if ICON_NVIDIA_ARCH != ICON_EXPECTED_NVIDIA_ARCH
choke me
#endif
  ;
  return 0;
}
_ACEOF
       icon_save_CUDAFLAGS=$CUDAFLAGS
       for icon_tmp in 800 900 1000 890 860 750 610 600 1200 \
                       870 720 700 530 520 500 370 350 320 300; do
         CUDAFLAGS="${acx_save_CUDAFLAGS} -DICON_EXPECTED_NVIDIA_ARCH=${icon_tmp}"
         if ac_fn_cuda_try_compile "$LINENO"; then :
  icon_nvidia_arch=$icon_tmp
fi
rm -f core conftest.err conftest.$ac_objext
         test "x$icon_nvidia_arch" != xunknown && break
       done
       rm -f conftest.$ac_ext
       CUDAFLAGS=$icon_save_CUDAFLAGS
       icon_cv_cuda_arch=$icon_nvidia_arch
       ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_cuda_arch" >&5
$as_echo "$icon_cv_cuda_arch" >&6; }
    if test "x$icon_cv_cuda_arch" = xunknown; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to detect the CUDA architecture specified in the compiler invocation" >&5
$as_echo "$as_me: WARNING: unable to detect the CUDA architecture specified in the compiler invocation" >&2;}
else
  icon_gpu_secondary_arch=$icon_cv_cuda_arch
fi
    ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler can link objects compiled with CUDA compiler" >&5
$as_echo_n "checking whether Fortran compiler can link objects compiled with CUDA compiler... " >&6; }
if ${acx_cv_fc_cuda_compatible+:} false; then :
  $as_echo_n "(cached) " >&6
else
     ac_ext=cu
ac_compile='$CUDACXX -c $CUDAFLAGS conftest.$ac_ext >&5'
ac_link='$CUDACXX -o conftest$ac_exeext $CUDAFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_cuda_compiler_gnu

   acx_lang_cuda_compatible=no
   cat > conftest.$ac_ext <<_ACEOF

extern "C" void conftest_cuda_foo() {
  // Call functions that require CUDA runtime library:
  float* x;
  cudaError_t err = cudaMalloc(&x, sizeof(float));
  err = cudaFree(x);
}
_ACEOF
if ac_fn_cuda_try_compile "$LINENO"; then :
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

      { ac_try='mv ./conftest.$ac_objext ./conftest_cuda.$ac_objext'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }
      acx_save_LIBS=$LIBS; LIBS="./conftest_cuda.$ac_objext $LIBS"
      cat > conftest.$ac_ext <<_ACEOF
      program main
      implicit none
      interface
      subroutine conftest_cuda_foo() bind(c)
      end subroutine
      end interface
      call conftest_cuda_foo()
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  acx_lang_cuda_compatible=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
      LIBS=$acx_save_LIBS
      rm -f conftest_cuda.$ac_objext
      ac_ext=cu
ac_compile='$CUDACXX -c $CUDAFLAGS conftest.$ac_ext >&5'
ac_link='$CUDACXX -o conftest$ac_exeext $CUDAFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_cuda_compiler_gnu

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

      acx_cv_fc_cuda_compatible=$acx_lang_cuda_compatible
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_cuda_compatible" >&5
$as_echo "$acx_cv_fc_cuda_compatible" >&6; }
   if test "x$acx_cv_fc_cuda_compatible" = xyes; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Fortran compiler cannot link objects compiled with CUDA compiler: a possible reason is that it cannot find CUDA runtime libraries (e.g. '-lcudart'): set LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi

       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler can link objects compiled with CUDA compiler that require C++ standard library" >&5
$as_echo_n "checking whether Fortran compiler can link objects compiled with CUDA compiler that require C++ standard library... " >&6; }
if ${acx_cv_fc_cuda_compatible_stdcxx+:} false; then :
  $as_echo_n "(cached) " >&6
else
     ac_ext=cu
ac_compile='$CUDACXX -c $CUDAFLAGS conftest.$ac_ext >&5'
ac_link='$CUDACXX -o conftest$ac_exeext $CUDAFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_cuda_compiler_gnu

   acx_lang_cuda_compatible=no
   cat > conftest.$ac_ext <<_ACEOF

/* An attempt to write a function that would keep the dependency on the
   standard C++ library even with a high optimization level, i.e. -O3 */
#include <vector>
std::vector<int>* a;
extern "C" void conftest_cuda_foo() {
  a->push_back(1);
}
_ACEOF
if ac_fn_cuda_try_compile "$LINENO"; then :
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

      { ac_try='mv ./conftest.$ac_objext ./conftest_cuda.$ac_objext'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }
      acx_save_LIBS=$LIBS; LIBS="./conftest_cuda.$ac_objext $LIBS"
      cat > conftest.$ac_ext <<_ACEOF
      program main
      implicit none
      interface
      subroutine conftest_cuda_foo() bind(c)
      end subroutine
      end interface
      call conftest_cuda_foo()
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  acx_lang_cuda_compatible=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
      LIBS=$acx_save_LIBS
      rm -f conftest_cuda.$ac_objext
      ac_ext=cu
ac_compile='$CUDACXX -c $CUDAFLAGS conftest.$ac_ext >&5'
ac_link='$CUDACXX -o conftest$ac_exeext $CUDAFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_cuda_compiler_gnu

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

      acx_cv_fc_cuda_compatible_stdcxx=$acx_lang_cuda_compatible
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_cuda_compatible_stdcxx" >&5
$as_echo "$acx_cv_fc_cuda_compatible_stdcxx" >&6; }
   if test "x$acx_cv_fc_cuda_compatible_stdcxx" = xyes; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Fortran compiler cannot link objects compiled with CUDA compiler that require C++ standard library: a possible reason is that it cannot find C++ standard library (i.e. '-lstdc++'): set LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi

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

    HIPCXX=; HIPFLAGS= ;; #(
  hip) :
    HIPFLAGS=${HIPFLAGS-}
    as_fn_append HIPFLAGS "${ICON_HIPFLAGS:+ }${ICON_HIPFLAGS}"









ac_ext=cc
ac_compile='$HIPCXX -c $HIPFLAGS conftest.$ac_ext >&5'
ac_link='$HIPCXX -o conftest$ac_exeext $HIPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_hip_compiler_gnu
               if test -z "$HIPCXX"; then :
  for ac_prog in hipcc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_HIPCXX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$HIPCXX"; then
  ac_cv_prog_HIPCXX="$HIPCXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_HIPCXX="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  test -n "$HIPCXX" && break
done

fi
   $as_echo "$as_me:${as_lineno-$LINENO}: checking for HIP C++ compiler version" >&5
   set dummy $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:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler --version >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU HIP compiler" >&5
$as_echo_n "checking whether we are using the GNU HIP compiler... " >&6; }
if ${ac_cv_hip_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF

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

  ;
  return 0;
}
_ACEOF
if ac_fn_hip_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_hip_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hip_compiler_gnu" >&5
$as_echo "$ac_cv_hip_compiler_gnu" >&6; }
   acx_test_HIPFLAGS=${HIPFLAGS+set}
   acx_save_HIPFLAGS=$HIPFLAGS
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $HIPCXX accepts -g" >&5
$as_echo_n "checking whether $HIPCXX accepts -g... " >&6; }
if ${acx_cv_prog_hipc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_save_hip_werror_flag=$ac_hip_werror_flag
      ac_hip_werror_flag=yes
      acx_cv_prog_hipc_g=no
      HIPFLAGS='-g'
      cat > conftest.$ac_ext <<_ACEOF

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_hip_try_compile "$LINENO"; then :
  acx_cv_prog_hipc_g=yes
else
  HIPFLAGS=''
         cat > conftest.$ac_ext <<_ACEOF

int
main ()
{

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

else
  ac_hip_werror_flag=$acx_save_hip_werror_flag
            HIPFLAGS='-g'
            cat > conftest.$ac_ext <<_ACEOF

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_hip_try_compile "$LINENO"; then :
  acx_cv_prog_hipc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      ac_hip_werror_flag=$acx_save_hip_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_hipc_g" >&5
$as_echo "$acx_cv_prog_hipc_g" >&6; }
   if test "$acx_test_HIPFLAGS" = set; then :
  HIPFLAGS=$acx_save_HIPFLAGS
elif test "$acx_cv_prog_hipc_g" = yes; then :
  if test "x$ac_cv_hip_compiler_gnu" = xyes; then :
  HIPFLAGS='-g -O2'
else
  HIPFLAGS='-g'
fi
else
  if test "x$ac_cv_hip_compiler_gnu" = xyes; then :
  HIPFLAGS='-O2'
else
  HIPFLAGS=''
fi
fi
   acx_prog_hipcxx_works=no
         if test "x$acx_prog_hipcxx_works" = xno; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $HIPCXX option to enable C++14 features" >&5
$as_echo_n "checking for $HIPCXX option to enable C++14 features... " >&6; }
            if ${acx_cv_prog_hipcxx_cxx14_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_prog_hipcxx_cxx14_flag=unsupported
         cat > conftest.$ac_ext <<_ACEOF
$acx_hip_conftest_cxx14_program
_ACEOF
         acx_save_HIPFLAGS=$HIPFLAGS
         for acx_flag in '' -std=gnu++14 -std=c++14
         do
           HIPFLAGS="$acx_flag $acx_save_HIPFLAGS"
           if ac_fn_hip_try_compile "$LINENO"; then :
  acx_cv_prog_hipcxx_cxx14_flag=$acx_flag
fi
rm -f core conftest.err conftest.$ac_objext
           test "x$acx_cv_prog_hipcxx_cxx14_flag" != xunsupported && break
         done
         HIPFLAGS=$acx_save_HIPFLAGS
         rm -f conftest.$ac_ext
fi

      if test -n "$acx_cv_prog_hipcxx_cxx14_flag"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_hipcxx_cxx14_flag" >&5
$as_echo "$acx_cv_prog_hipcxx_cxx14_flag" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; }
fi
      if test "x$acx_cv_prog_hipcxx_cxx14_flag" != xunsupported; then :
  acx_prog_hipcxx_works=cxx14
fi

fi
      if test "x$acx_prog_hipcxx_works" = xno; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $HIPCXX option to enable C++11 features" >&5
$as_echo_n "checking for $HIPCXX option to enable C++11 features... " >&6; }
            if ${acx_cv_prog_hipcxx_cxx11_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_prog_hipcxx_cxx11_flag=unsupported
         cat > conftest.$ac_ext <<_ACEOF
$acx_hip_conftest_cxx11_program
_ACEOF
         acx_save_HIPFLAGS=$HIPFLAGS
         for acx_flag in '' -std=gnu++11 -std=c++11
         do
           HIPFLAGS="$acx_flag $acx_save_HIPFLAGS"
           if ac_fn_hip_try_compile "$LINENO"; then :
  acx_cv_prog_hipcxx_cxx11_flag=$acx_flag
fi
rm -f core conftest.err conftest.$ac_objext
           test "x$acx_cv_prog_hipcxx_cxx11_flag" != xunsupported && break
         done
         HIPFLAGS=$acx_save_HIPFLAGS
         rm -f conftest.$ac_ext
fi

      if test -n "$acx_cv_prog_hipcxx_cxx11_flag"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_hipcxx_cxx11_flag" >&5
$as_echo "$acx_cv_prog_hipcxx_cxx11_flag" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; }
fi
      if test "x$acx_cv_prog_hipcxx_cxx11_flag" != xunsupported; then :
  acx_prog_hipcxx_works=cxx11
fi

fi
         if test "x$acx_prog_hipcxx_works" = xno; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $HIPCXX can compile basic HIP code" >&5
$as_echo_n "checking whether $HIPCXX can compile basic HIP code... " >&6; }
if ${acx_cv_prog_hipxx_basic+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
$acx_hip_conftest_basic_program
_ACEOF
if ac_fn_hip_try_compile "$LINENO"; then :
  acx_cv_prog_hipxx_basic=yes
else
  acx_cv_prog_hipxx_basic=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_hipxx_basic" >&5
$as_echo "$acx_cv_prog_hipxx_basic" >&6; }
      if test "x$acx_cv_prog_hipxx_basic" = xyes; then :
  acx_prog_hipcxx_works=basic
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

    case $HIPCXX in #(
  *hipcc*) :
    icon_cmake_hipcc_workaround='unset HIPCXX && '
          acx_prog_search_abspath=unknown
   set dummy hipconfig; shift; acx_prog_exec=$1; shift; acx_prog_args="$@"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute path to $acx_prog_exec" >&5
$as_echo_n "checking for the absolute path to $acx_prog_exec... " >&6; }
   acx_prog_search_abspath_fn "$acx_prog_exec"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_prog_search_abspath" >&5
$as_echo "$acx_prog_search_abspath" >&6; }
   if test "x$acx_prog_search_abspath" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find the absolute path to $acx_prog_exec
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  if test -n "$acx_prog_args"; then :
  as_fn_append acx_prog_search_abspath " $acx_prog_args"
fi

fi ;; #(
  *) :
     ;;
esac
    export HIPCXX
        case $acx_prog_hipcxx_works in #(
  no) :
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find a working HIP Compiler: either switch the secondary GPU compiler (e.g. --enable-gpu=${icon_gpu_primary}+cuda) or disable GPU support (--disable-gpu), or set HIPCXX accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; } ;; #(
  basic) :
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect HIP compiler flag needed to enable support for the C++11 standard: either switch the secondary GPU compiler (e.g. --enable-gpu=${icon_gpu_primary}+cuda) or disable GPU support (--disable-gpu), or set HIPFLAGS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; } ;; #(
  *) :
    HIPFLAGS="`eval 'as_val=${'acx_cv_prog_hipcxx_${acx_prog_hipcxx_works}_flag'};$as_echo "$as_val"'` $HIPFLAGS" ;;
esac

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the HIP architecture" >&5
$as_echo_n "checking for the HIP architecture... " >&6; }
if ${icon_cv_hip_arch+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_hip_arch=unknown
       ac_ext=cc
ac_compile='$HIPCXX -c $HIPFLAGS conftest.$ac_ext >&5'
ac_link='$HIPCXX -o conftest$ac_exeext $HIPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_hip_compiler_gnu

       cat > conftest.$ac_ext <<_ACEOF

int
main ()
{
#ifdef __CUDACC__
#else
      choke me
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_hip_try_compile "$LINENO"; then :
  acx_macro_defined=yes
else
  acx_macro_defined=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       if test "x$acx_macro_defined" = xyes; then :
  icon_nvidia_arch=unknown
       cat > conftest.$ac_ext <<_ACEOF

int
main ()
{
#define CONFTEST_FIRST_ARG_helper(x, ...) x
#define CONFTEST_FIRST_ARG(x, ...) CONFTEST_FIRST_ARG_helper(x)
#define ICON_NVIDIA_ARCH CONFTEST_FIRST_ARG(__CUDA_ARCH_LIST__)
#if ICON_NVIDIA_ARCH != ICON_EXPECTED_NVIDIA_ARCH
choke me
#endif
  ;
  return 0;
}
_ACEOF
       icon_save_HIPFLAGS=$HIPFLAGS
       for icon_tmp in 800 900 1000 890 860 750 610 600 1200 \
                       870 720 700 530 520 500 370 350 320 300; do
         HIPFLAGS="${acx_save_HIPFLAGS} -DICON_EXPECTED_NVIDIA_ARCH=${icon_tmp}"
         if ac_fn_hip_try_compile "$LINENO"; then :
  icon_nvidia_arch=$icon_tmp
fi
rm -f core conftest.err conftest.$ac_objext
         test "x$icon_nvidia_arch" != xunknown && break
       done
       rm -f conftest.$ac_ext
       HIPFLAGS=$icon_save_HIPFLAGS
          icon_cv_hip_arch=$icon_nvidia_arch
else
  for icon_amd_arch in gfx90a gfx1103 gfx1100 gfx1030 \
                               gfx940 gfx942 gfx908 gfx906; do
            cat > conftest.$ac_ext <<_ACEOF
#ifdef __HIP_DEVICE_COMPILE__
#ifdef __${icon_amd_arch}__
#define ICON_AMD_ARCH_DETECTED
#endif
#else
#define ICON_AMD_ARCH_DETECTED
#endif
int
main ()
{
#ifdef ICON_AMD_ARCH_DETECTED
#else
      choke me
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_hip_try_compile "$LINENO"; then :
  acx_macro_defined=yes
else
  acx_macro_defined=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
            if test "x$acx_macro_defined" = xyes; then :
  icon_cv_hip_arch=$icon_amd_arch
               break
fi
          done
          ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&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
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_hip_arch" >&5
$as_echo "$icon_cv_hip_arch" >&6; }
    if test "x$icon_cv_hip_arch" = xunknown; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to detect the HIP architecture specified in the compiler invocation" >&5
$as_echo "$as_me: WARNING: unable to detect the HIP architecture specified in the compiler invocation" >&2;}
else
  icon_gpu_secondary_arch=$icon_cv_hip_arch
fi
    ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler can link objects compiled with HIP compiler" >&5
$as_echo_n "checking whether Fortran compiler can link objects compiled with HIP compiler... " >&6; }
if ${acx_cv_fc_hip_compatible+:} false; then :
  $as_echo_n "(cached) " >&6
else
     ac_ext=cc
ac_compile='$HIPCXX -c $HIPFLAGS conftest.$ac_ext >&5'
ac_link='$HIPCXX -o conftest$ac_exeext $HIPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_hip_compiler_gnu

   acx_lang_hip_compatible=no
   cat > conftest.$ac_ext <<_ACEOF

#include <hip/hip_runtime.h>
extern "C" void conftest_hip_foo() {
  // Call functions that require HIP runtime library:
  float* x;
  hipError_t err = hipMalloc(&x, sizeof(float));
  err = hipFree(x);
}
_ACEOF
if ac_fn_hip_try_compile "$LINENO"; then :
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

      { ac_try='mv ./conftest.$ac_objext ./conftest_hip.$ac_objext'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }
      acx_save_LIBS=$LIBS; LIBS="./conftest_hip.$ac_objext $LIBS"
      cat > conftest.$ac_ext <<_ACEOF
      program main
      implicit none
      interface
      subroutine conftest_hip_foo() bind(c)
      end subroutine
      end interface
      call conftest_hip_foo()
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  acx_lang_hip_compatible=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
      LIBS=$acx_save_LIBS
      rm -f conftest_hip.$ac_objext
      ac_ext=cc
ac_compile='$HIPCXX -c $HIPFLAGS conftest.$ac_ext >&5'
ac_link='$HIPCXX -o conftest$ac_exeext $HIPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_hip_compiler_gnu

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

      acx_cv_fc_hip_compatible=$acx_lang_hip_compatible
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_hip_compatible" >&5
$as_echo "$acx_cv_fc_hip_compatible" >&6; }
   if test "x$acx_cv_fc_hip_compatible" = xyes; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Fortran compiler cannot link objects compiled with HIP compiler: a possible reason is that it cannot find HIP runtime libraries (e.g. '-lamdhip64'): set LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi

       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler can link objects compiled with HIP compiler that require C++ standard library" >&5
$as_echo_n "checking whether Fortran compiler can link objects compiled with HIP compiler that require C++ standard library... " >&6; }
if ${acx_cv_fc_hip_compatible_stdcxx+:} false; then :
  $as_echo_n "(cached) " >&6
else
     ac_ext=cc
ac_compile='$HIPCXX -c $HIPFLAGS conftest.$ac_ext >&5'
ac_link='$HIPCXX -o conftest$ac_exeext $HIPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_hip_compiler_gnu

   acx_lang_hip_compatible=no
   cat > conftest.$ac_ext <<_ACEOF

/* An attempt to write a function that would keep the dependency on the
   standard C++ library even with a high optimization level, i.e. -O3 */
#include <vector>
std::vector<int>* a;
extern "C" void conftest_hip_foo() {
  a->push_back(1);
}
_ACEOF
if ac_fn_hip_try_compile "$LINENO"; then :
  ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

      { ac_try='mv ./conftest.$ac_objext ./conftest_hip.$ac_objext'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }
      acx_save_LIBS=$LIBS; LIBS="./conftest_hip.$ac_objext $LIBS"
      cat > conftest.$ac_ext <<_ACEOF
      program main
      implicit none
      interface
      subroutine conftest_hip_foo() bind(c)
      end subroutine
      end interface
      call conftest_hip_foo()
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  acx_lang_hip_compatible=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
      LIBS=$acx_save_LIBS
      rm -f conftest_hip.$ac_objext
      ac_ext=cc
ac_compile='$HIPCXX -c $HIPFLAGS conftest.$ac_ext >&5'
ac_link='$HIPCXX -o conftest$ac_exeext $HIPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_hip_compiler_gnu

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu

      acx_cv_fc_hip_compatible_stdcxx=$acx_lang_hip_compatible
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_hip_compatible_stdcxx" >&5
$as_echo "$acx_cv_fc_hip_compatible_stdcxx" >&6; }
   if test "x$acx_cv_fc_hip_compatible_stdcxx" = xyes; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Fortran compiler cannot link objects compiled with HIP compiler that require C++ standard library: a possible reason is that it cannot find C++ standard library (i.e. '-lstdc++'): set LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi

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

    CUDACXX=; CUDAFLAGS= ;; #(
  *) :
    CUDACXX=; CUDAFLAGS=
    HIPCXX=; HIPFLAGS= ;;
esac

################################ LIBRARY CHECKS ################################


DEPGEN_FCFLAGS=''


ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu


if test "x$enable_memory_tracing" = xmtrace; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C mtrace function is available via the Fortran ISO_C_BINDING interface" >&5
$as_echo_n "checking whether C mtrace function is available via the Fortran ISO_C_BINDING interface... " >&6; }
if ${icon_cv_have_mtrace+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_mtrace=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      implicit none
      interface
      subroutine mtrace() bind(c, name="mtrace")
      end subroutine mtrace
      end interface
      call mtrace
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_mtrace=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_mtrace" >&5
$as_echo "$icon_cv_have_mtrace" >&6; }
   if test "x$icon_cv_have_mtrace" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}ICON_MEMORY_TRACING=1"
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using mtrace function via the Fortran ISO_C_BINDING interface: either disable the native dynamic memory tracing facility (--disable-memory-tracing) or set LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test "x$enable_openmp" = xyes; then :
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to enable OpenMP support" >&5
$as_echo_n "checking for Fortran compiler flag needed to enable OpenMP support... " >&6; }
   if ${acx_cv_fc_openmp_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_openmp_flag=unknown
      acx_save_FCFLAGS=$FCFLAGS
      cat > conftest.$ac_ext <<_ACEOF
#ifndef _OPENMP
      choke me
#endif

      program main
      implicit none
!$    integer tid
      tid = 42
      call omp_set_num_threads(2)
      end

_ACEOF
      for acx_lang_openmp_flag in '' -qopenmp -openmp -fopenmp -homp -mp; do
        FCFLAGS="${acx_save_FCFLAGS} $acx_lang_openmp_flag"
        if ac_fn_fc_try_link "$LINENO"; then :
  acx_cv_fc_openmp_flag=$acx_lang_openmp_flag
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
        test "x$acx_cv_fc_openmp_flag" != xunknown && break
      done
      rm -f conftest.$ac_ext
      FCFLAGS=$acx_save_FCFLAGS
fi

   if test -n "$acx_cv_fc_openmp_flag"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_openmp_flag" >&5
$as_echo "$acx_cv_fc_openmp_flag" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; }
fi
   if test "x$acx_cv_fc_openmp_flag" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to enable OpenMP support
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  as_fn_append FCFLAGS " $acx_cv_fc_openmp_flag"
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of the Fortran preprocessor macro _OPENMP" >&5
$as_echo_n "checking for the value of the Fortran preprocessor macro _OPENMP... " >&6; }
if ${acx_cv_fc_macro__OPENMP_value+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_macro_value=unknown
   if test "x$cross_compiling" = xno; then :
  cat > conftest.$ac_ext <<_ACEOF
#ifndef _OPENMP
      choke me
#else
      subroutine p_str(s)
      implicit none
      character(len=*) :: s
      write(*, "(a)") """"//s//""""
      end subroutine

      subroutine p_int(i)
      implicit none
      integer :: i
      write(*, "(i0)") i
      end subroutine

      subroutine p_none()
      write(*, "(a)") ""
      end subroutine

      program main
      implicit none
      interface p_val
      subroutine p_str(s)
      implicit none
      character(len=*) :: s
      end subroutine
      subroutine p_int(i)
      implicit none
      integer :: i
      end subroutine
      subroutine p_none()
      end subroutine
      end interface
      call p_val(_OPENMP)
      end
#endif
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  acx_exec_result=`./conftest$ac_exeext 2>&5`
         if test $? -eq 0; then :
  acx_macro_value=$acx_exec_result
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
   if test "x$acx_macro_value" = xunknown; then :
  for acx_tmp in 201511 201307 201107 200805 200505 200011 199911 199710; do
           cat > conftest.$ac_ext <<_ACEOF
      program main
#if _OPENMP == _CONFTEST_UNDEFINED_OR_EMPTY || _OPENMP != $acx_tmp
      choke me
#endif
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  acx_macro_value=$acx_tmp
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
           test "x$acx_macro_value" = xunknown || break
         done
fi
      acx_cv_fc_macro__OPENMP_value=$acx_macro_value
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_macro__OPENMP_value" >&5
$as_echo "$acx_cv_fc_macro__OPENMP_value" >&6; }
   acx_macro_value=$acx_cv_fc_macro__OPENMP_value

      if test "x$acx_macro_value" = xunknown; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to detect supported OpenMP version" >&5
$as_echo "$as_me: WARNING: unable to detect supported OpenMP version" >&2;}
         as_fn_append DEPGEN_FCFLAGS " ${FC_PP_DEF}_OPENMP"
else
  if test "$acx_macro_value" -lt 201307 >&5 2>&1; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran compiler does not support OpenMP 4.0 (201307): it is strongly recommended to disable OpenMP support (--disable-openmp)" >&5
$as_echo "$as_me: WARNING: Fortran compiler does not support OpenMP 4.0 (201307): it is strongly recommended to disable OpenMP support (--disable-openmp)" >&2;}
fi
         as_fn_append DEPGEN_FCFLAGS " ${FC_PP_DEF}_OPENMP=$acx_macro_value"
fi
fi

else
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran preprocessor macro _OPENMP is defined" >&5
$as_echo_n "checking whether the Fortran preprocessor macro _OPENMP is defined... " >&6; }
if ${acx_cv_fc_macro__OPENMP_defined+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
#ifdef _OPENMP
#else
      choke me
#endif
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  acx_macro_defined=yes
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
#ifndef _OPENMP
#else
      choke me
#endif
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  acx_macro_defined=no
else
  acx_macro_defined=unsupported
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      acx_cv_fc_macro__OPENMP_defined=$acx_macro_defined
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_macro__OPENMP_defined" >&5
$as_echo "$acx_cv_fc_macro__OPENMP_defined" >&6; }
   acx_macro_defined=$acx_cv_fc_macro__OPENMP_defined

   if test "x$acx_macro_defined" = xyes; then :
  as_fn_error $? "Fortran compiler enables OpenMP support by default: set FCFLAGS accordingly to disable it" "$LINENO" 5
fi
fi

if test "x$icon_gpu_primary" = xopenacc; then :
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler flag needed to enable OpenACC support" >&5
$as_echo_n "checking for Fortran compiler flag needed to enable OpenACC support... " >&6; }
   if ${acx_cv_fc_openacc_flag+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_cv_fc_openacc_flag=unknown
      acx_save_FCFLAGS=$FCFLAGS
      cat > conftest.$ac_ext <<_ACEOF
         program main
#ifndef _OPENACC
      choke me
#endif
      use openacc, only : acc_get_device_type
      implicit none
      integer :: t
      t = acc_get_device_type()
      end
_ACEOF
      for acx_lang_openacc_flag in '' -fopenacc -hacc -acc; do
        FCFLAGS="${acx_save_FCFLAGS} $acx_lang_openacc_flag"
        if ac_fn_fc_try_link "$LINENO"; then :
  acx_cv_fc_openacc_flag=$acx_lang_openacc_flag
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
        test "x$acx_cv_fc_openacc_flag" != xunknown && break
      done
      rm -f conftest.$ac_ext
      FCFLAGS=$acx_save_FCFLAGS
fi

   if test -n "$acx_cv_fc_openacc_flag"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_openacc_flag" >&5
$as_echo "$acx_cv_fc_openacc_flag" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; }
fi
   if test "x$acx_cv_fc_openacc_flag" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to detect Fortran compiler flag needed to enable OpenACC support
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  as_fn_append FCFLAGS " $acx_cv_fc_openacc_flag"
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of the Fortran preprocessor macro _OPENACC" >&5
$as_echo_n "checking for the value of the Fortran preprocessor macro _OPENACC... " >&6; }
if ${acx_cv_fc_macro__OPENACC_value+:} false; then :
  $as_echo_n "(cached) " >&6
else
  acx_macro_value=unknown
   if test "x$cross_compiling" = xno; then :
  cat > conftest.$ac_ext <<_ACEOF
#ifndef _OPENACC
      choke me
#else
      subroutine p_str(s)
      implicit none
      character(len=*) :: s
      write(*, "(a)") """"//s//""""
      end subroutine

      subroutine p_int(i)
      implicit none
      integer :: i
      write(*, "(i0)") i
      end subroutine

      subroutine p_none()
      write(*, "(a)") ""
      end subroutine

      program main
      implicit none
      interface p_val
      subroutine p_str(s)
      implicit none
      character(len=*) :: s
      end subroutine
      subroutine p_int(i)
      implicit none
      integer :: i
      end subroutine
      subroutine p_none()
      end subroutine
      end interface
      call p_val(_OPENACC)
      end
#endif
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  acx_exec_result=`./conftest$ac_exeext 2>&5`
         if test $? -eq 0; then :
  acx_macro_value=$acx_exec_result
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
   if test "x$acx_macro_value" = xunknown; then :
  for acx_tmp in 201711 201510 201308 201306 201111; do
           cat > conftest.$ac_ext <<_ACEOF
      program main
#if _OPENACC == _CONFTEST_UNDEFINED_OR_EMPTY || _OPENACC != $acx_tmp
      choke me
#endif
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  acx_macro_value=$acx_tmp
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
           test "x$acx_macro_value" = xunknown || break
         done
fi
      acx_cv_fc_macro__OPENACC_value=$acx_macro_value
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_macro__OPENACC_value" >&5
$as_echo "$acx_cv_fc_macro__OPENACC_value" >&6; }
   acx_macro_value=$acx_cv_fc_macro__OPENACC_value

      if test "x$acx_macro_value" = xunknown; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to detect supported OpenACC version" >&5
$as_echo "$as_me: WARNING: unable to detect supported OpenACC version" >&2;}
         as_fn_append DEPGEN_FCFLAGS " ${FC_PP_DEF}_OPENACC"
else
  if test "$acx_macro_value" -lt 201711 >&5 2>&1; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran compiler does not support OpenACC 2.6 (201711): it is strongly recommended to disable GPU support (--disable-gpu)" >&5
$as_echo "$as_me: WARNING: Fortran compiler does not support OpenACC 2.6 (201711): it is strongly recommended to disable GPU support (--disable-gpu)" >&2;}
fi
      as_fn_append DEPGEN_FCFLAGS " ${FC_PP_DEF}_OPENACC=$acx_macro_value"
fi
fi

else
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran preprocessor macro _OPENACC is defined" >&5
$as_echo_n "checking whether the Fortran preprocessor macro _OPENACC is defined... " >&6; }
if ${acx_cv_fc_macro__OPENACC_defined+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
#ifdef _OPENACC
#else
      choke me
#endif
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  acx_macro_defined=yes
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
#ifndef _OPENACC
#else
      choke me
#endif
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  acx_macro_defined=no
else
  acx_macro_defined=unsupported
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      acx_cv_fc_macro__OPENACC_defined=$acx_macro_defined
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_fc_macro__OPENACC_defined" >&5
$as_echo "$acx_cv_fc_macro__OPENACC_defined" >&6; }
   acx_macro_defined=$acx_cv_fc_macro__OPENACC_defined

   if test "x$acx_macro_defined" = xyes; then :
  as_fn_error $? "Fortran compiler enables OpenACC support by default: either enable GPU support (--enable-gpu) or set FCFLAGS accordingly to disable OpenACC" "$LINENO" 5
fi
fi

case $icon_gpu_secondary in #(
  cuda) :
    ac_ext=cu
ac_compile='$CUDACXX -c $CUDAFLAGS conftest.$ac_ext >&5'
ac_link='$CUDACXX -o conftest$ac_exeext $CUDAFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_cuda_compiler_gnu

   ac_fn_cuda_check_header_compile "$LINENO" "cub/device/device_select.cuh" "ac_cv_header_cub_device_device_select_cuh" "// override default includes
"
if test "x$ac_cv_header_cub_device_device_select_cuh" = xyes; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find header files of CUB library: either switch the secondary GPU compiler (e.g. --enable-gpu=${icon_gpu_primary}+hip) or disable GPU support
(--disable-gpu), or set CUDAFLAGS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi


   ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
 ;; #(
  hip) :
    ac_ext=cc
ac_compile='$HIPCXX -c $HIPFLAGS conftest.$ac_ext >&5'
ac_link='$HIPCXX -o conftest$ac_exeext $HIPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$acx_cv_hip_compiler_gnu

   ac_fn_hip_check_header_compile "$LINENO" "hipcub/device/device_select.hpp" "ac_cv_header_hipcub_device_device_select_hpp" "// override default includes
"
if test "x$ac_cv_header_hipcub_device_device_select_hpp" = xyes; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find header files of HIPCUB library: either switch the secondary GPU compiler (e.g. --enable-gpu=${icon_gpu_primary}+cuda) or disable GPU support (--disable-gpu), or set HIPFLAGS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi


   ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ICON_FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $ICON_FCFLAGS $LDFLAGS $ICON_LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
 ;; #(
  *) :
     ;;
esac

if test "x$enable_nccl" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NCCL library is available" >&5
$as_echo_n "checking whether NCCL library is available... " >&6; }
if ${icon_cv_have_nccl+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_nccl=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

       use nccl
       implicit none
       TYPE(ncclResult) :: ierror
       ierror = ncclGroupStart()
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_nccl=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_nccl" >&5
$as_echo "$icon_cv_have_nccl" >&6; }
   if test "x$icon_cv_have_nccl" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}USE_NCCL"
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using NCCL library: either disable usage of the NVIDIA Collective Communications Library (--disable-nccl) or set LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

icon_have_mpi_launch=no

if test "x$enable_mpi" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 interface of MPI library is available" >&5
$as_echo_n "checking whether the Fortran 90 interface of MPI library is available... " >&6; }
if ${icon_cv_have_mpi+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_mpi=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

       use mpi, only: mpi_init
       implicit none
       integer :: error
       call mpi_init(error)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_mpi=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_mpi" >&5
$as_echo "$icon_cv_have_mpi" >&6; }
   if test "x$icon_cv_have_mpi" = xyes; then :
  if test x"$enable_dace" = xyes || test x"$enable_rttov" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HAVE_MPI_MOD"
fi
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran 90 interface of MPI library: either disable MPI support (--disable-mpi) and the YAXT data exchange (--disable-yaxt) or set FC to the MPI Fortran compiler wrapper, or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI launch program" >&5
$as_echo_n "checking for MPI launch program... " >&6; }
   acx_tmp=
   if ${acx_cv_prog_mpirun+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
      use mpi
      implicit none
      integer :: s, r, e1, e2
      s = -1
      r = -1
      call MPI_Init(e1)
      if (e1 /= MPI_SUCCESS) then
        call MPI_Abort(MPI_COMM_WORLD, e1, e2)
      endif
      call MPI_Comm_size(MPI_COMM_WORLD, s, e1)
      if (e1 /= MPI_SUCCESS) then
        call MPI_Abort(MPI_COMM_WORLD, e1, e2)
      endif
      call MPI_Comm_rank(MPI_COMM_WORLD, r, e1)
      if (e1 /= MPI_SUCCESS) then
        call MPI_Abort(MPI_COMM_WORLD, e1, e2)
      endif
      if (r == 0) write(*, "(a,i0)") 'conftest: ', s
      call MPI_Finalize(e1)
      if (e1 /= MPI_SUCCESS) then
        call MPI_Abort(MPI_COMM_WORLD, e1, e2)
      endif
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  if ${MPI_LAUNCH+:} false; then :
  set dummy "$MPI_LAUNCH"
else
  set dummy mpirun mpiexec srun
fi
         shift
         for acx_candidate in "$@"; do
            $as_echo "$as_me:${as_lineno-$LINENO}: acx_exec_result=\`$acx_candidate -n 2 ./conftest$ac_exeext 2>&5\`" >&5
            acx_exec_result=`$acx_candidate -n 2 ./conftest$ac_exeext 2>&5`
            acx_status=$?
            $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $acx_status" >&5
            if test $acx_status -eq 0; then :
  $as_echo "$as_me:${as_lineno-$LINENO}: \$acx_exec_result = $acx_exec_result" >&5
               $as_echo "$as_me:${as_lineno-$LINENO}: acx_exec_result=\`$as_echo \"\$acx_exec_result\" | sed -n '/^conftest: 2$/p'\`" >&5
               acx_exec_result=`$as_echo "$acx_exec_result" | sed -n '/^conftest: 2$/p'`
               $as_echo "$as_me:${as_lineno-$LINENO}: \$acx_exec_result = $acx_exec_result" >&5
               if test "x$acx_exec_result" = x'conftest: 2'; then :
  acx_cv_prog_mpirun=$acx_candidate
                  break
fi
fi
         done
else
  acx_tmp='failed to link MPI test program'
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi

   if ${acx_cv_prog_mpirun+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_mpirun" >&5
$as_echo "$acx_cv_prog_mpirun" >&6; }
      MPI_LAUNCH=$acx_cv_prog_mpirun
      case $MPI_LAUNCH in #(
  [\\/]* | ?:[\\/]*) :
     ;; #(
  *) :
       acx_prog_search_abspath=unknown
   set dummy $MPI_LAUNCH; shift; acx_prog_exec=$1; shift; acx_prog_args="$@"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute path to $acx_prog_exec" >&5
$as_echo_n "checking for the absolute path to $acx_prog_exec... " >&6; }
   acx_prog_search_abspath_fn "$acx_prog_exec"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_prog_search_abspath" >&5
$as_echo "$acx_prog_search_abspath" >&6; }
   if test "x$acx_prog_search_abspath" = xunknown; then :
  set dummy $MPI_LAUNCH; shift
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find the absolute path to $1" >&5
$as_echo "$as_me: WARNING: unable to find the absolute path to $1" >&2;}
else
  if test -n "$acx_prog_args"; then :
  as_fn_append acx_prog_search_abspath " $acx_prog_args"
fi
      MPI_LAUNCH="$acx_prog_search_abspath"
fi ;;
esac
      icon_have_mpi_launch=yes
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
      if test -n "$acx_tmp"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $acx_tmp" >&5
$as_echo "$as_me: WARNING: $acx_tmp" >&2;}
fi
      :
fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of the supported MPI standard" >&5
$as_echo_n "checking for the version of the supported MPI standard... " >&6; }
   if ${icon_cv_mpi_version+:} false &&
${icon_cv_mpi_subversion+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ${icon_cv_mpi_version+:} false; then :

else
  icon_cv_mpi_version=unknown
         if test x"$cross_compiling" = xyes; then :
    ac_lo=0 ac_hi=100
   while :; do
   cat > conftest.$ac_ext <<_ACEOF
      module conftest
      use mpi
      contains
      integer function callee(a)
      integer a(:)
      integer i

      do i=1,1024,(MPI_VERSION - $ac_lo)
      a(i) = a(i)
      end do
      callee = a(1)
      end function callee
      subroutine caller
      integer b(1024)

      b(1) = callee(b(::(MPI_VERSION - $ac_lo)))
      end subroutine
      end module
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

      ac_lo=`expr $ac_lo + 1`
      if test $ac_lo -gt $ac_hi; then :
  ac_lo= ac_hi= ; break
fi
else
  break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   done
   if test -z "$ac_lo"; then :
  :
else
  icon_cv_mpi_version=$ac_lo
fi
else
    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
      use mpi

      open(10,file="conftestval")
      write(10,*)MPI_VERSION
      close(10)
      end
_ACEOF
if ac_fn_fc_try_run "$LINENO"; then :
  ac_lo=`sed -e 's/^ *//' conftestval`
      icon_cv_mpi_version=$ac_lo
else
  :
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

   /bin/rm -f conftestval
fi
fi
      if ${icon_cv_mpi_subversion+:} false; then :

else
  icon_cv_mpi_subversion=unknown
         if test x"$icon_cv_mpi_version" != xunknown; then :
  if test x"$cross_compiling" = xyes; then :
    ac_lo=0 ac_hi=100
   while :; do
   cat > conftest.$ac_ext <<_ACEOF
      module conftest
      use mpi
      contains
      integer function callee(a)
      integer a(:)
      integer i

      do i=1,1024,(MPI_SUBVERSION - $ac_lo)
      a(i) = a(i)
      end do
      callee = a(1)
      end function callee
      subroutine caller
      integer b(1024)

      b(1) = callee(b(::(MPI_SUBVERSION - $ac_lo)))
      end subroutine
      end module
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

      ac_lo=`expr $ac_lo + 1`
      if test $ac_lo -gt $ac_hi; then :
  ac_lo= ac_hi= ; break
fi
else
  break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   done
   if test -z "$ac_lo"; then :
  :
else
  icon_cv_mpi_subversion=$ac_lo
fi
else
    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
else
  cat > conftest.$ac_ext <<_ACEOF
      program main
      use mpi

      open(10,file="conftestval")
      write(10,*)MPI_SUBVERSION
      close(10)
      end
_ACEOF
if ac_fn_fc_try_run "$LINENO"; then :
  ac_lo=`sed -e 's/^ *//' conftestval`
      icon_cv_mpi_subversion=$ac_lo
else
  :
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

   /bin/rm -f conftestval
fi
fi
fi
fi
   if test x"$icon_cv_mpi_version" != xunknown && test x"$icon_cv_mpi_subversion" != xunknown; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_mpi_version.$icon_cv_mpi_subversion" >&5
$as_echo "$icon_cv_mpi_version.$icon_cv_mpi_subversion" >&6; }
      as_fn_append FCFLAGS " ${FC_PP_DEF}ICON_MPI_VERSION=$icon_cv_mpi_version ${FC_PP_DEF}ICON_MPI_SUBVERSION=$icon_cv_mpi_subversion"
      icon_mpi_version=$icon_cv_mpi_version
      icon_mpi_subversion=$icon_cv_mpi_subversion
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
      icon_mpi_version=unknown; icon_mpi_subversion=unknown
fi
   if test "x$enable_mpi_rget" = xauto; then :
  if test x"$icon_mpi_version" != xunknown && test "$icon_mpi_version" -ge 3 >/dev/null 2>&1; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: usage of the MPI_Rget routine is enabled because the provided MPI library supports standard 3.0 or higher: disable the usage if required (--disable-mpi-rget)" >&5
$as_echo "$as_me: usage of the MPI_Rget routine is enabled because the provided MPI library supports standard 3.0 or higher: disable the usage if required (--disable-mpi-rget)" >&6;}
         enable_mpi_rget=yes
else
  enable_mpi_rget=no
fi
fi
   if test "x$enable_mpi_rget" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}NO_MPI_RGET"
fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interfaces for MPI routines with choice arguments" >&5
$as_echo_n "checking for interfaces for MPI routines with choice arguments... " >&6; }
if ${icon_cv_have_mpi_choice+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main

       use mpi, only: mpi_send, mpi_integer, mpi_comm_world
       implicit none
       integer :: ierror
       call mpi_send(0, 1, mpi_integer, 1, 0, mpi_comm_world, ierror)
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  icon_cv_have_mpi_choice=yes
else
  icon_cv_have_mpi_choice=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_mpi_choice" >&5
$as_echo "$icon_cv_have_mpi_choice" >&6; }
    if test "x$icon_cv_have_mpi_choice" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}NO_MPI_CHOICE_ARG"
fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the MPI_Alloc_mem interface accepts a TYPE(C_PTR) argument" >&5
$as_echo_n "checking whether the MPI_Alloc_mem interface accepts a TYPE(C_PTR) argument... " >&6; }
if ${icon_cv_have_mpi_cptr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.$ac_ext <<_ACEOF
      program main

       use, intrinsic :: iso_c_binding, only: c_ptr
       use mpi, only: mpi_alloc_mem, mpi_address_kind
       implicit none
       type(c_ptr) :: ptr
       integer :: ierror
       call mpi_alloc_mem(4_mpi_address_kind, 0, ptr, ierror)
      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  icon_cv_have_mpi_cptr=yes
else
  icon_cv_have_mpi_cptr=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_mpi_cptr" >&5
$as_echo "$icon_cv_have_mpi_cptr" >&6; }
    if test "x$icon_cv_have_mpi_cptr" = xno; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}NO_MPI_CPTR_ARG"
fi
fi

if test "x$enable_emvorado" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C ZLIB library is available via the Fortran ISO_C_BINDING interface" >&5
$as_echo_n "checking whether C ZLIB library is available via the Fortran ISO_C_BINDING interface... " >&6; }
if ${icon_cv_have_zlib+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_zlib=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      implicit none
      interface
      subroutine gzOpen() bind(c, name="gzopen")
      end subroutine gzOpen
      end interface
      call gzOpen
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_zlib=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_zlib" >&5
$as_echo "$icon_cv_have_zlib" >&6; }
   if test "x$icon_cv_have_zlib" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}WITH_ZLIB"
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using ZLIB library via the Fortran ISO_C_BINDING interface: either disable the radar forward operator EMVORADO (--disable-emvorado) or set LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 low- and high-level interfaces of HDF5 library are available" >&5
$as_echo_n "checking whether the Fortran 90 low- and high-level interfaces of HDF5 library are available... " >&6; }
if ${icon_cv_have_hdf5+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_hdf5=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use hdf5, only: h5open_f, &
                    & h5fopen_f, &
                    & hid_t, &
                    & H5F_ACC_RDONLY_F
      use h5lt, only: h5ltget_attribute_string_f
      implicit none
      integer :: ierr
      integer(kind=hid_t) :: file_id
      character(len=500) :: catt_value
      call h5open_f(ierr)
      call h5fopen_f('conftest.h5', H5F_ACC_RDONLY_F, &
                   & file_id, ierr)
      call h5ltget_attribute_string_f(file_id, &
                                    & 'group', 'attr', &
                                    & catt_value, ierr)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_hdf5=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_hdf5" >&5
$as_echo "$icon_cv_have_hdf5" >&6; }
   if test "x$icon_cv_have_hdf5" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HDF5_RADAR_INPUT"
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran 90 low- and high-level interfaces of HDF5 library: set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test "x$enable_dace" = xyes || test "x$enable_art" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 77 interface of NetCDF library is available" >&5
$as_echo_n "checking whether the Fortran 77 interface of NetCDF library is available... " >&6; }
if ${icon_cv_have_netcdf77+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_netcdf77=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      implicit none
      include 'netcdf.inc'
      integer :: status, ncid
      status = nf_open('conftest.nc', nf_nowrite, ncid)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_netcdf77=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_netcdf77" >&5
$as_echo "$icon_cv_have_netcdf77" >&6; }
   if test "x$icon_cv_have_netcdf77" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran 77 interface of NetCDF library: set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 interface of NetCDF library is available" >&5
$as_echo_n "checking whether the Fortran 90 interface of NetCDF library is available... " >&6; }
if ${icon_cv_have_netcdf90+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_netcdf90=no
   cat > conftest.$ac_ext <<_ACEOF
      program main

      use netcdf, only: nf90_open, nf90_nowrite
      implicit none
      integer :: status, ncid
      status = nf90_open('conftest.nc', nf90_nowrite, ncid)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_netcdf90=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_netcdf90" >&5
$as_echo "$icon_cv_have_netcdf90" >&6; }
if test "x$icon_cv_have_netcdf90" = xyes; then :
  if test "x$enable_emvorado" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}NETCDF"
fi
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran 90 interface of NetCDF library: set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
if test "x$enable_parallel_netcdf" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the provided version of NetCDF is built with parallel support" >&5
$as_echo_n "checking whether the provided version of NetCDF is built with parallel support... " >&6; }
if ${icon_cv_have_netcdf_parallel+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_netcdf_parallel=unknown
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use mpi, only: mpi_init, mpi_finalize, &
                   & MPI_COMM_WORLD, MPI_INFO_NULL
      use netcdf, only: nf90_create_par, NF90_MPIIO, &
                        NF90_ENOPAR
      implicit none
      integer :: result, tmp
      call mpi_init(tmp)
      result = nf90_create_par('conftest.nc', &
                           & NF90_MPIIO, &
                           & MPI_COMM_WORLD, &
                           & MPI_INFO_NULL, &
                           & tmp)
      if (result == NF90_ENOPAR) then
        write(*,"(a)") "conftest_parallel_no"
      else
        write(*,"(a)") "conftest_parallel_yes"
      endif
      call mpi_finalize(tmp)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_exec_prefix=
         if test "x$icon_have_mpi_launch" = xyes; then :
  icon_exec_prefix="$MPI_LAUNCH -n 1"
fi
         icon_exec_result=`$icon_exec_prefix ./conftest$ac_exeext 2>/dev/null`
         rm -f conftest.nc
         if echo "$icon_exec_result" | grep 'conftest_parallel_no' >/dev/null 2>&1; then :
  icon_cv_have_netcdf_parallel=no
elif echo "$icon_exec_result" | grep 'conftest_parallel_yes' >/dev/null 2>&1; then :
  icon_cv_have_netcdf_parallel=yes
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_netcdf_parallel" >&5
$as_echo "$icon_cv_have_netcdf_parallel" >&6; }
   if test x"$icon_cv_have_netcdf_parallel" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "the provided version of NetCDF does not support the parallel features: either disable usage of the parallel features of NetCDF (--disable-parallel-netcdf) or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
elif test x"$icon_cv_have_netcdf_parallel" = xunknown; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to check whether the provided version of NetCDF supports the parallel features" >&5
$as_echo "$as_me: WARNING: unable to check whether the provided version of NetCDF supports the parallel features" >&2;}
fi
fi

if test "x$enable_rte_rrtmgp" = xyes && test "x$with_external_rte_rrtmgp" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran RTE+RRTMGP library is available" >&5
$as_echo_n "checking whether Fortran RTE+RRTMGP library is available... " >&6; }
if ${icon_cv_have_rte_rrtmgp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_rte_rrtmgp=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use mo_optical_props, only: ty_optical_props_1scl, &
                                & ty_optical_props_2str
      use mo_gas_optics_rrtmgp, only: ty_gas_optics_rrtmgp
      use mo_source_functions, only: ty_source_func_lw
      use mo_rte_kind, only: wp
      use mo_fluxes, only: ty_fluxes_broadband
      use mo_rte_lw, only: rte_lw
      use mo_rte_sw, only: rte_sw
      use mo_gas_concentrations, only: ty_gas_concs
      implicit none
      type(ty_optical_props_1scl) :: optical_props_lw
      type(ty_optical_props_2str) :: optical_props_sw
      logical :: top_at_1
      type(ty_source_func_lw) :: source
      real(wp), dimension(:,:), allocatable :: sfc_emis_spec, &
                                             & toa_flux, &
                                             & sfc_alb_spec
      type(ty_fluxes_broadband) :: fluxes
      real(wp), dimension(:), allocatable :: mu0
      type(ty_gas_concs), dimension(:), allocatable :: gas_conc_array
      real(wp), dimension(:,:,:), allocatable :: gas_conc_temp_3d
      character(len=128) :: error_msg

      error_msg = rte_lw(optical_props_lw, top_at_1, source, &
                       & sfc_emis_spec, fluxes, n_gauss_angles = 1)
      error_msg = rte_sw(optical_props_sw, top_at_1, mu0, &
                       & toa_flux, sfc_alb_spec, sfc_alb_spec, fluxes)
      error_msg = gas_conc_array(1)%set_vmr('h2o',gas_conc_temp_3d(:,:,1))
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_rte_rrtmgp=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_rte_rrtmgp" >&5
$as_echo "$icon_cv_have_rte_rrtmgp" >&6; }
   if test "x$icon_cv_have_rte_rrtmgp" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using RTE+RRTMGP library: either disable usage of the RTE+RRTMGP toolbox for radiation calculations (--disable-rte-rrtmgp) or use the bundled version of RTE+RRTMGP library (--without-external-rte-rrtmgp), or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test "x$enable_ecrad" = xyes && test "x$with_external_ecrad" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran ECRAD library is available" >&5
$as_echo_n "checking whether Fortran ECRAD library is available... " >&6; }
if ${icon_cv_have_ecrad+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_ecrad=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use radiation_config, only: config_type
      use radiation_interface, only: setup_radiation
      implicit none
      type(config_type) :: conf
      call setup_radiation(conf)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_ecrad=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_ecrad" >&5
$as_echo "$icon_cv_have_ecrad" >&6; }
   if test "x$icon_cv_have_ecrad" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using ECRAD library: either disable usage of the ECMWF radiation scheme (--disable-ecrad) or use the bundled version of ECRAD library (--without-external-ecrad), or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test x"$enable_dace" = xyes || test x"$enable_art" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran BLAS library is available" >&5
$as_echo_n "checking whether Fortran BLAS library is available... " >&6; }
if ${icon_cv_have_blas+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_blas=no
      cat > conftest.$ac_ext <<_ACEOF
      program main
      call dgemm
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_blas=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_blas" >&5
$as_echo "$icon_cv_have_blas" >&6; }
   if test "x$icon_cv_have_blas" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using BLAS library: set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran LAPACK library is available" >&5
$as_echo_n "checking whether Fortran LAPACK library is available... " >&6; }
if ${icon_cv_have_lapack+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_lapack=no
   if test "x$enable_single_precision" = xyes; then :
  icon_tmp=sgesdd
else
  icon_tmp=dgesdd
fi
   cat > conftest.$ac_ext <<_ACEOF
      program main
      call $icon_tmp
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_lapack=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_lapack" >&5
$as_echo "$icon_cv_have_lapack" >&6; }
if test "x$icon_cv_have_lapack" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using LAPACK library: set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi

if test "x$enable_rttov" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran RTTOV library is available" >&5
$as_echo_n "checking whether Fortran RTTOV library is available... " >&6; }
if ${icon_cv_have_rttov+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_rttov=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use rttov_types, only: rttov_coefs
      implicit none
#include "rttov_nullify_coef.interface"
      type(rttov_coefs),target:: coefs(1)
      call rttov_nullify_coef(coefs(1)%coef)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_rttov=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_rttov" >&5
$as_echo "$icon_cv_have_rttov" >&6; }
   if test "x$icon_cv_have_rttov" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}_RTTOV_VERSION=13"
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using RTTOV library: either disable usage of the radiative transfer model for TOVS (--disable-rttov) or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test "x$enable_sct" = xyes && test "x$with_external_sct" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran interface of SCT library is available" >&5
$as_echo_n "checking whether the Fortran interface of SCT library is available... " >&6; }
if ${icon_cv_have_sct+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_sct=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use sct, only: sct_init
      implicit none
      call sct_init(timer_max=512)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_sct=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_sct" >&5
$as_echo "$icon_cv_have_sct" >&6; }
   if test "x$icon_cv_have_sct" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran interface of SCT library: either disable the SCT timer (--disable-sct) or use the bundled version of SCT library (--without-external-sct), or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test "x$with_external_yaxt" = xyes; then :
  if test x"$enable_yaxt" = xyes || test x"$enable_cdi_pio" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran interface of YAXT library is available" >&5
$as_echo_n "checking whether the Fortran interface of YAXT library is available... " >&6; }
if ${icon_cv_have_yaxt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_yaxt=no
         cat > conftest.$ac_ext <<_ACEOF
      program main

      use yaxt, only: xt_initialized, xt_initialize
      implicit none
      integer :: a
      if (.not. xt_initialized()) call xt_initialize(a)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_yaxt=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_yaxt" >&5
$as_echo "$icon_cv_have_yaxt" >&6; }
      if test "x$icon_cv_have_yaxt" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran interface of YAXT library: either disable the YAXT data exchange (--disable-yaxt) and usage of the parallel features of CDI (--disable-cdi-pio) or use the bundled version of YAXT library (--without-external-yaxt), or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi
fi

if test x"$enable_grib2" = xyes || test x"$enable_emvorado" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 interfaces of ECCODES library is available" >&5
$as_echo_n "checking whether the Fortran 90 interfaces of ECCODES library is available... " >&6; }
if ${icon_cv_have_eccodes+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_eccodes=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use eccodes, only: codes_open_file, GRIB_SUCCESS
      implicit none
      integer :: igrib, ierr
      call codes_open_file(igrib, 'conftest.grb', 'w', ierr)
      if (ierr  /= GRIB_SUCCESS) igrib = 0
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_eccodes=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_eccodes" >&5
$as_echo "$icon_cv_have_eccodes" >&6; }
fi
if test "x$enable_emvorado" = xyes; then :
  if test "x$icon_cv_have_eccodes" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}GRIBAPI"
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran 90 interfaces of ECCODES library: either disable the radar forward operator EMVORADO (--disable-emvorado) or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi
if test "x$enable_grib2" = xyes; then :
  if test "x$icon_cv_have_eccodes" = xyes; then :
  as_fn_append FCFLAGS " ${FC_PP_DEF}HAVE_ECCODES"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the Fortran 90 interface of ECCODES library is not available: the respective features are disabled" >&5
$as_echo "$as_me: WARNING: the Fortran 90 interface of ECCODES library is not available: the respective features are disabled" >&2;}
fi
fi

if test "x$with_external_cdi" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 interface of CDI library is available" >&5
$as_echo_n "checking whether the Fortran 90 interface of CDI library is available... " >&6; }
if ${icon_cv_have_cdi+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_cdi=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use mo_cdi, only: TSTEP_CONSTANT, cdiInqNatts, &
                        vlistInqVarTypeOfGeneratingProcess, &
                        t_CdiIterator, cdiIterator_inqFiletype
      implicit none
      integer :: a, b, c
      type(t_CdiIterator) :: d
      write(*, "(i0)") cdiInqNatts(a, b, c)
      write(*, "(i0)") vlistInqVarTypeOfGeneratingProcess(a, b)
      write(*, "(i0)") cdiIterator_inqFiletype(d)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_cdi=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_cdi" >&5
$as_echo "$icon_cv_have_cdi" >&6; }
   if test "x$icon_cv_have_cdi" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran 90 interface of CDI library: either use the bundled version of CDI library (--without-external-cdi) or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
   icon_cdi_formats="NetCDF-2:CDI_FILETYPE_NC2 NetCDF-4:CDI_FILETYPE_NC4 GRIB1:CDI_FILETYPE_GRB"
   if test "x$enable_grib2" = xyes; then :
  as_fn_append icon_cdi_formats " GRIB2:CDI_FILETYPE_GRB2"
fi
   for icon_cdi_format in $icon_cdi_formats; do
     icon_cdi_format_name=`echo "$icon_cdi_format" | cut -d: -f1`
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the provided version of CDI is built with $icon_cdi_format_name support" >&5
$as_echo_n "checking whether the provided version of CDI is built with $icon_cdi_format_name support... " >&6; }
if { as_var=icon_cv_have_cdi_`$as_echo "$icon_cdi_format_name" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
  $as_echo_n "(cached) " >&6
else
  eval "icon_cv_have_cdi_`$as_echo "$icon_cdi_format_name" | $as_tr_sh`=unknown"
        icon_cdi_format_ID=`echo "$icon_cdi_format" | cut -d: -f2`
        if test "x$cross_compiling" = xno; then :
  cat > conftest.$ac_ext <<_ACEOF
      program main

      use mo_cdi, only: cdiHaveFiletype, $icon_cdi_format_ID
      write(*, "(i0)") cdiHaveFiletype($icon_cdi_format_ID)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_exec_result=`./conftest$ac_exeext 2>/dev/null`
            if test $? -eq 0; then :
  if test $icon_exec_result -eq 1; then :
  eval "icon_cv_have_cdi_`$as_echo "$icon_cdi_format_name" | $as_tr_sh`=yes"
else
  eval "icon_cv_have_cdi_`$as_echo "$icon_cdi_format_name" | $as_tr_sh`=no"
fi
fi
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
fi
eval ac_res=\$icon_cv_have_cdi_`$as_echo "$icon_cdi_format_name" | $as_tr_sh`
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
     if test x"`eval 'as_val=${'icon_cv_have_cdi_\`$as_echo "$icon_cdi_format_name" | $as_tr_sh\`'};$as_echo "$as_val"'`" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "the provided version of CDI does not support $icon_cdi_format_name: use the bundled version of CDI library (--without-external-cdi)
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
elif test x"`eval 'as_val=${'icon_cv_have_cdi_\`$as_echo "$icon_cdi_format_name" | $as_tr_sh\`'};$as_echo "$as_val"'`" = xunknown; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to check whether the provided version of CDI supports $icon_cdi_format_name" >&5
$as_echo "$as_me: WARNING: unable to check whether the provided version of CDI supports $icon_cdi_format_name" >&2;}
fi
        done
   if test "x$enable_cdi_pio" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 77 parallel I/O interface of CDI library is available" >&5
$as_echo_n "checking whether the Fortran 77 parallel I/O interface of CDI library is available... " >&6; }
if ${icon_cv_have_cdi_parallel+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_cdi_parallel=no
         cat > conftest.$ac_ext <<_ACEOF
      program main

      use yaxt, only: xt_idxlist
      implicit none
      include 'cdipio.inc'
      integer :: cdiCellGridID, gridtype, n_glb, &
               & max_cell_connectivity, grid_deco_part(2)
      type(xt_idxlist), allocatable :: reorder_idxlst_xt(:)
      type(xt_idxlist) :: null_idxlist
      cdiCellGridID = &
      &  cdiPioDistGridCreate(gridtype, n_glb, -1, -1, &
                            & max_cell_connectivity, &
                            & grid_deco_part, &
                            & reorder_idxlst_xt(1), &
                            & null_idxlist, null_idxlist)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_cdi_parallel=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_cdi_parallel" >&5
$as_echo "$icon_cv_have_cdi_parallel" >&6; }
      if test "x$icon_cv_have_cdi_parallel" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran 77 parallel I/O interface of CDI library: either disable usage of the parallel features of CDI (--disable-cdi-pio) or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi
fi

if test x"$enable_serialization" != xno; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran interface of SERIALBOX2 library is available" >&5
$as_echo_n "checking whether the Fortran interface of SERIALBOX2 library is available... " >&6; }
if ${icon_cv_have_serialbox2+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_serialbox2=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use utils_ppser, only: ppser_set_mode
      implicit none
      call ppser_set_mode(1)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_serialbox2=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_serialbox2" >&5
$as_echo "$icon_cv_have_serialbox2" >&6; }
   if test "x$icon_cv_have_serialbox2" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran interface of SERIALBOX2 library: either disable the serialization (--disable-serialization) or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test "x$with_external_mtime" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran interface of MTIME library is available" >&5
$as_echo_n "checking whether the Fortran interface of MTIME library is available... " >&6; }
if ${icon_cv_have_mtime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_mtime=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use mtime, only: max_date_str_len, date, &
                     & newdate, dateToString
      implicit none
      character(len=max_date_str_len) :: test_date_string
      type(date), pointer :: test_date
      test_date => newdate(0,0,0)
      call dateToString(test_date, test_date_string)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_mtime=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_mtime" >&5
$as_echo "$icon_cv_have_mtime" >&6; }
   if test "x$icon_cv_have_mtime" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran interface of MTIME library: either use the bundled version of MTIME (--without-external-mtime) or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test "x$enable_coupling" = xyes && test "x$with_external_yac" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran interface of YAC library is available" >&5
$as_echo_n "checking whether the Fortran interface of YAC library is available... " >&6; }
if ${icon_cv_have_yac+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_yac=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use yac, only: yac_fdef_grid
      implicit none
      integer, parameter :: v = 3, c = 1, vpc = 3
      integer :: c2v(vpc, c), id
      real :: x(v), y(v)
      call yac_fdef_grid('', v, c, vpc, x, y, c2v, id)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_yac=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_yac" >&5
$as_echo "$icon_cv_have_yac" >&6; }
   if test "x$icon_cv_have_yac" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran interface of YAC library: either disable the coupling (--disable-coupling) or use the bundled version of YAC library (--without-external-yac), or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test "x$enable_art" = xyes && test "x$with_external_tixi" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran interface of TIXI library is available" >&5
$as_echo_n "checking whether the Fortran interface of TIXI library is available... " >&6; }
if ${icon_cv_have_tixi+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_tixi=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use tixi, only: tixiOpenDocument
      implicit none
      character(len=200) :: a
      integer :: b
      b = tixiOpenDocument(a, b)
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_tixi=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_tixi" >&5
$as_echo "$icon_cv_have_tixi" >&6; }
   if test "x$icon_cv_have_tixi" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using the Fortran interface of TIXI library: either disable the aerosols and reactive trace component (--disable-art) or use the bundled version of TIXI library (--without-external-tixi), or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test "x$enable_comin" = xexternal; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether COMIN library is available" >&5
$as_echo_n "checking whether COMIN library is available... " >&6; }
if ${icon_cv_have_comin+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_comin=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use comin_host_interface, only: t_comin_setup_version_info, &
                                    & comin_setup_get_version
      implicit none
      type(t_comin_setup_version_info) :: version
      version = comin_setup_get_version()
      write(*,"(i0)") version%version_no_major
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_comin=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_comin" >&5
$as_echo "$icon_cv_have_comin" >&6; }
   if test "x$icon_cv_have_comin" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using COMIN library: either use the bundled version of COMIN (see --enable-comin) or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

if test "x$with_external_fortran_support" = xyes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FORTRAN-SUPPORT library is available" >&5
$as_echo_n "checking whether FORTRAN-SUPPORT library is available... " >&6; }
if ${icon_cv_have_fortran_support+:} false; then :
  $as_echo_n "(cached) " >&6
else
  icon_cv_have_fortran_support=no
      cat > conftest.$ac_ext <<_ACEOF
      program main

      use mo_util_backtrace, only: ftn_util_backtrace
      implicit none
      call ftn_util_backtrace()
      end
_ACEOF
if ac_fn_fc_try_link "$LINENO"; then :
  icon_cv_have_fortran_support=yes
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_cv_have_fortran_support" >&5
$as_echo "$icon_cv_have_fortran_support" >&6; }
   if test "x$icon_cv_have_fortran_support" = xno; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to link a test program using FORTRAN-SUPPORT library: either use the bundled version of FORTRAN-SUPPORT (--without-external-fortran-support) or set FCFLAGS, LDFLAGS and LIBS accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
fi

##################### PREPROCESSOR AND AUXILIARY COMMANDS ######################

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if ${ac_cv_path_install+:} false; 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 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

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

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

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

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

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

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking 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 ${ac_cv_path_mkdir+:} false; 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
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
  done
IFS=$as_save_IFS

fi

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

LN_S=$as_ln_s


ARFLAGS=${ARFLAGS-cr}
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar" >&5
$as_echo_n "checking for ar... " >&6; }
   if ${acx_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ${AR+:} false; then :
  set dummy "$AR"
else
  set dummy ar
fi
      shift
      for acx_candidate in "$@"; do
        cat > conftest.$ac_ext <<_ACEOF
      program main

      end
_ACEOF
if ac_fn_fc_try_compile "$LINENO"; then :
  icon_prog_try='$acx_candidate ${ARFLAGS} libconftest.a conftest.$ac_objext >/dev/null'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$icon_prog_try\""; } >&5
  (eval $icon_prog_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      rm -f libconftest.a
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   test $ac_status -eq 0
        if test $? -eq 0; then :
  acx_cv_prog_AR=$acx_candidate
           break
fi
      done
fi

   if ${acx_cv_prog_AR+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_AR" >&5
$as_echo "$acx_cv_prog_AR" >&6; }
      AR=$acx_cv_prog_AR
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find ar
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi

case $AR in #(
  [\\/]* | ?:[\\/]*) :
     ;; #(
  *) :
       acx_prog_search_abspath=unknown
   set dummy $AR; shift; acx_prog_exec=$1; shift; acx_prog_args="$@"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute path to $acx_prog_exec" >&5
$as_echo_n "checking for the absolute path to $acx_prog_exec... " >&6; }
   acx_prog_search_abspath_fn "$acx_prog_exec"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_prog_search_abspath" >&5
$as_echo "$acx_prog_search_abspath" >&6; }
   if test "x$acx_prog_search_abspath" = xunknown; then :
  set dummy $AR; shift
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find the absolute path to $1" >&5
$as_echo "$as_me: WARNING: unable to find the absolute path to $1" >&2;}
else
  if test -n "$acx_prog_args"; then :
  as_fn_append acx_prog_search_abspath " $acx_prog_args"
fi
      AR="$acx_prog_search_abspath"
fi ;;
esac

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

case $RANLIB in #(
  [\\/]* | ?:[\\/]*) :
     ;; #(
  *) :
       acx_prog_search_abspath=unknown
   set dummy $RANLIB; shift; acx_prog_exec=$1; shift; acx_prog_args="$@"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute path to $acx_prog_exec" >&5
$as_echo_n "checking for the absolute path to $acx_prog_exec... " >&6; }
   acx_prog_search_abspath_fn "$acx_prog_exec"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_prog_search_abspath" >&5
$as_echo "$acx_prog_search_abspath" >&6; }
   if test "x$acx_prog_search_abspath" = xunknown; then :
  set dummy $RANLIB; shift
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find the absolute path to $1" >&5
$as_echo "$as_me: WARNING: unable to find the absolute path to $1" >&2;}
else
  if test -n "$acx_prog_args"; then :
  as_fn_append acx_prog_search_abspath " $acx_prog_args"
fi
      RANLIB="$acx_prog_search_abspath"
fi ;;
esac

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
$as_echo_n "checking for python... " >&6; }
   if ${acx_cv_prog_PYTHON+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ${PYTHON+:} false; then :
  set dummy "$PYTHON"
else
  set dummy python3 python
fi
      shift
      for acx_candidate in "$@"; do
        icon_prog_try='$acx_candidate $srcdir/utils/mkhelper/depgen.py -h >/dev/null'
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$icon_prog_try\""; } >&5
  (eval $icon_prog_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        if test $? -eq 0; then :
  acx_cv_prog_PYTHON=$acx_candidate
           break
fi
      done
fi

   if ${acx_cv_prog_PYTHON+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_PYTHON" >&5
$as_echo "$acx_cv_prog_PYTHON" >&6; }
      PYTHON=$acx_cv_prog_PYTHON
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find python
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi

case $PYTHON in #(
  [\\/]* | ?:[\\/]*) :
     ;; #(
  *) :
       acx_prog_search_abspath=unknown
   set dummy $PYTHON; shift; acx_prog_exec=$1; shift; acx_prog_args="$@"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute path to $acx_prog_exec" >&5
$as_echo_n "checking for the absolute path to $acx_prog_exec... " >&6; }
   acx_prog_search_abspath_fn "$acx_prog_exec"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_prog_search_abspath" >&5
$as_echo "$acx_prog_search_abspath" >&6; }
   if test "x$acx_prog_search_abspath" = xunknown; then :
  set dummy $PYTHON; shift
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find the absolute path to $1" >&5
$as_echo "$as_me: WARNING: unable to find the absolute path to $1" >&2;}
else
  if test -n "$acx_prog_args"; then :
  as_fn_append acx_prog_search_abspath " $acx_prog_args"
fi
      PYTHON="$acx_prog_search_abspath"
fi ;;
esac

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmake" >&5
$as_echo_n "checking for cmake... " >&6; }
   if ${acx_cv_prog_CMAKE+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ${CMAKE+:} false; then :
  set dummy "$CMAKE"
else
  set dummy cmake
fi
      shift
      for acx_candidate in "$@"; do
        icon_prog_try='$acx_candidate --version >&5'
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$icon_prog_try\""; } >&5
  (eval $icon_prog_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        if test $? -eq 0; then :
  acx_cv_prog_CMAKE=$acx_candidate
           break
fi
      done
fi

   if ${acx_cv_prog_CMAKE+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_CMAKE" >&5
$as_echo "$acx_cv_prog_CMAKE" >&6; }
      CMAKE=$acx_cv_prog_CMAKE
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find cmake
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi

case $CMAKE in #(
  [\\/]* | ?:[\\/]*) :
     ;; #(
  *) :
       acx_prog_search_abspath=unknown
   set dummy $CMAKE; shift; acx_prog_exec=$1; shift; acx_prog_args="$@"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute path to $acx_prog_exec" >&5
$as_echo_n "checking for the absolute path to $acx_prog_exec... " >&6; }
   acx_prog_search_abspath_fn "$acx_prog_exec"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_prog_search_abspath" >&5
$as_echo "$acx_prog_search_abspath" >&6; }
   if test "x$acx_prog_search_abspath" = xunknown; then :
  set dummy $CMAKE; shift
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find the absolute path to $1" >&5
$as_echo "$as_me: WARNING: unable to find the absolute path to $1" >&2;}
else
  if test -n "$acx_prog_args"; then :
  as_fn_append acx_prog_search_abspath " $acx_prog_args"
fi
      CMAKE="$acx_prog_search_abspath"
fi ;;
esac

if test "x$enable_explicit_fpp" = xyes; then :
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran preprocessor command" >&5
$as_echo_n "checking for Fortran preprocessor command... " >&6; }
   if ${acx_cv_prog_fpp+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_dir=conftest.dir/sub; as_fn_mkdir_p
      cd conftest.dir
      cat > sub/conftest.fpp_inc <<_ACEOF
#define CONFTEST_THREE
#ifndef CONFTEST_ZERO
      integer conftest_zero
#else
      choke me
#endif
#ifdef CONFTEST_ONE
      integer conftest_one
#else
      choke me
#endif
#if CONFTEST_TWO != 42
      choke me
#else
      integer conftest_two
#endif
#ifdef CONFTEST_THREE
      integer conftest_three
#else
      choke me
#endif

_ACEOF
      acx_save_FCFLAGS=$FCFLAGS
      if ${FPP+:} false; then :
  set dummy "$FPP"
else
  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

         acx_prog_fpp_wrapper_dir="${ac_abs_top_srcdir}/utils/fpp-wrappers"
         set dummy "$FC -E" "$FC -E $ac_fcflags_srcext" \
                   "$SHELL ${acx_prog_fpp_wrapper_dir}/nag.sh $FC" \
                   "$FC -o - -Wp,-w,-P -F $ac_fcflags_srcext" \
                   "$SHELL ${acx_prog_fpp_wrapper_dir}/cray.sh $FC" \
                   "$FC -F" "$FC -F $ac_fcflags_srcext"
fi
      shift
      acx_prog_fpp_include_flag=$FC_INC_FLAG_PP_f90
      acx_prog_fpp_macro_flag=$FC_PP_DEF
      for acx_candidate in "$@"; do
        cat > conftest.$ac_ext <<_ACEOF
      program main
      implicit none
#include "conftest.fpp_inc"
      conftest_zero = 0
      conftest_one = 1
      conftest_two = 2
      conftest_three = 3
      end
_ACEOF
        rm -f conftest.acx_prog_fpp
        acx_try_fpp="$acx_candidate \$FCFLAGS conftest.\$ac_ext >conftest.acx_prog_fpp"
        FCFLAGS="${acx_prog_fpp_include_flag}sub ${acx_prog_fpp_macro_flag}CONFTEST_ONE ${acx_prog_fpp_macro_flag}CONFTEST_TWO=42 $acx_save_FCFLAGS"
        { { ac_try="$acx_try_fpp"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$acx_try_fpp") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        if test $? -eq 0 && test -f conftest.acx_prog_fpp; then :
  acx_result=`grep -c 'integer conftest' conftest.acx_prog_fpp 2>/dev/null`
           if test $? -eq 0 && test 4 -eq "$acx_result" 2>/dev/null; then :
  mv conftest.acx_prog_fpp conftest.$ac_ext
              FCFLAGS=$acx_save_FCFLAGS
              if ac_fn_fc_try_compile "$LINENO"; then :
  acx_cv_prog_fpp=$acx_candidate
                 break
fi
rm -f core conftest.err conftest.$ac_objext
fi
fi
      done
      FCFLAGS=$acx_save_FCFLAGS
      cd ..
      rm -rf conftest.dir
fi

   if ${acx_cv_prog_fpp+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_fpp" >&5
$as_echo "$acx_cv_prog_fpp" >&6; }
      FPP=$acx_cv_prog_fpp
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find a valid Fortran preprocessor command: either disable explicit Fortran preprocessing (--disable-explicit-fpp) or set FPP accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
else
  FPP=
fi

if test x"$enable_serialization" != xno; then :

   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Serialbox2 preprocessor command" >&5
$as_echo_n "checking for Serialbox2 preprocessor command... " >&6; }
   icon_sb2pp_result=unknown
   SB2PP=${SB2PP-'${PYTHON} -m pp_ser'}
   cat > conftest.$ac_ext <<_ACEOF
      program main
      implicit none
      !\$ser mode write
      call ppser_set_mode(1)
      end program
_ACEOF
   icon_prog_try="$SB2PP -o conftest.$ac_ext conftest.$ac_ext >&5"
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$icon_prog_try\""; } >&5
  (eval $icon_prog_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
   if test $? -eq 0; then :
  if ac_fn_fc_try_link "$LINENO"; then :
  icon_sb2pp_result=$SB2PP
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
fi
   rm -f conftest.$ac_ext
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icon_sb2pp_result" >&5
$as_echo "$icon_sb2pp_result" >&6; }
   if test "x$icon_sb2pp_result" = xunknown; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "unable to find a valid Serialbox2 preprocessor command: either disable the Serialbox2 serialization (--disable-serialization) or make sure that path to the 'pp_ser' module is in the PYTHONPATH environment variable, or set SB2PP accordingly
See \`config.log' for more details
${icon_usr_note}" "$LINENO" 5; }
fi
else
  SB2PP=
fi

if test "x$icon_have_mpi_launch" = xyes; then :
     subdir_MPI_LAUNCH=$MPI_LAUNCH
else
     if ${MPI_LAUNCH+:} false; then :
  subdir_MPI_LAUNCH=$MPI_LAUNCH
else
  { subdir_MPI_LAUNCH=; unset subdir_MPI_LAUNCH;}
fi
   MPI_LAUNCH=
   if test -n "$subdir_MPI_LAUNCH"; then :
  case $subdir_MPI_LAUNCH in #(
  [\\/]* | ?:[\\/]*) :
     ;; #(
  *) :
       acx_prog_search_abspath=unknown
   set dummy $subdir_MPI_LAUNCH; shift; acx_prog_exec=$1; shift; acx_prog_args="$@"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute path to $acx_prog_exec" >&5
$as_echo_n "checking for the absolute path to $acx_prog_exec... " >&6; }
   acx_prog_search_abspath_fn "$acx_prog_exec"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_prog_search_abspath" >&5
$as_echo "$acx_prog_search_abspath" >&6; }
   if test "x$acx_prog_search_abspath" = xunknown; then :
  set dummy $subdir_MPI_LAUNCH; shift
            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find the absolute path to $1" >&5
$as_echo "$as_me: WARNING: unable to find the absolute path to $1" >&2;}
else
  if test -n "$acx_prog_args"; then :
  as_fn_append acx_prog_search_abspath " $acx_prog_args"
fi
      subdir_MPI_LAUNCH="$acx_prog_search_abspath"
fi ;;
esac
fi
fi

############################### BUNDLED PACKAGES ###############################

if test "x$prefix" = xNONE; then :
  prefix=$ac_default_prefix
fi
if test "x$exec_prefix" = xNONE; then :
  exec_prefix=$prefix
fi
for icon_installdir in bindir datarootdir datadir includedir libdir; do
  eval icon_tmp=\$$icon_installdir
  eval "$icon_installdir=\"$icon_tmp\""
done

   asx_srcdirs_fn .
icon_abs_top_srcdir=$ac_abs_top_srcdir
icon_abs_top_builddir=$ac_abs_top_builddir

ICON_BUNDLED_FCFLAGS=${ICON_BUNDLED_FCFLAGS-$ICON_FCFLAGS}

ICON_BUNDLED_CFLAGS=${ICON_BUNDLED_CFLAGS-$ICON_CFLAGS}


ICON_BUNDLED_CUDAFLAGS=${ICON_BUNDLED_CUDAFLAGS-$ICON_CUDAFLAGS}

ICON_BUNDLED_HIPFLAGS=${ICON_BUNDLED_HIPFLAGS-$ICON_HIPFLAGS}

bundled_CMAKE_PREFIX_PATH=

BUNDLED_RULES=''



BUNDLED_PYTHONPATH=''


############################## BUNDLED LIBRARIES ###############################

bundled_includes=

BUNDLED_LIBFILES=''



icon_pvcs_bundled_srcdirs=''



if test "x$enable_dace" = xyes; then :
                       acx_subdir_run_cmd_externals_dace_fetch="'${CMAKE}'"
   acx_subdir_build_type_externals_dace_fetch='cmake'
                                             acx_subdir_pre_adjust_cmake_args_nocomps_noutils
      acx_subdir_run_args_externals_dace_fetch=$acx_subdir_pre_adjusted_cmake_args_nocomps_noutils
         asx_srcdirs_fn "externals/dace/fetch"
      acx_tmp="$ac_top_srcdir/externals/dace"
      case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
      as_fn_append acx_subdir_run_args_externals_dace_fetch " '$acx_tmp'"
      as_fn_append extra_build_subdirs " externals/dace/fetch"
   acx_subdir_run_externals_dace_fetch=yes
   eval "set dummy $acx_subdir_run_args_externals_dace_fetch"; shift
   acx_subdir_run_args_externals_dace_fetch=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  -D*|--no-warn-unused-cli) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_dace_fetch " '$acx_tmp'" ;;
esac
     shift
   done
   icon_dace_subdir='externals/dace/fetch/src'

   icon_dace_fetchstamp='externals/dace/fetch/.fetchstamp'

   set dummy -DICON_DACE_SOURCE_DIR="$icon_abs_top_builddir/$icon_dace_subdir" -DICON_DACE_FETCH_STAMP_FILE="$icon_abs_top_builddir/$icon_dace_fetchstamp"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_dace_fetch " '$acx_tmp'"
   done
   as_fn_append BUNDLED_RULES "$icon_dace_fetchstamp: externals/dace/fetch;$as_nl"
   as_fn_append BUNDLED_RULES "version.c: $icon_dace_fetchstamp$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " dace:$icon_dace_subdir"
fi

if test "x$enable_rte_rrtmgp" = xyes && test "x$with_external_rte_rrtmgp" = xno; then :
  icon_subdir_srcdir="$srcdir/externals/rte-rrtmgp"
   icon_subdir_unique_file="rte-frontend/mo_rte_sw.F90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the RTE+RRTMGP library ($icon_subdir_unique_file) in '$icon_subdir_srcdir': either disable usage of the RTE+RRTMGP toolbox for radiation calculations (--disable-rte-rrtmgp) or provide an external version of RTE+RRTMGP library (--with-external-rte-rrtmgp) by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
      ICON_RTE_RRTMGP_FCFLAGS=${ICON_RTE_RRTMGP_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
                           asx_srcdirs_fn "externals/rte-rrtmgp"
   acx_subdir_run_cmd_externals_rte_rrtmgp="'$ac_top_srcdir/externals/rte-rrtmgp/configure'"
   acx_subdir_build_type_externals_rte_rrtmgp='config'
   acx_subdir_run_default_args_externals_rte_rrtmgp=
         acx_subdir_pre_adjust_config_args
      acx_subdir_run_args_externals_rte_rrtmgp=$acx_subdir_pre_adjusted_config_args
      if test "x$cache_file" = x'/dev/null'; then :
  acx_tmp=$cache_file
else
  case $cache_file in #(
  [\\/]* | ?:[\\/]*) :
    acx_tmp=$cache_file ;; #(
  *) :
    acx_tmp="$ac_top_build_prefix$cache_file" ;;
esac
         acx_tmp="$acx_tmp.externals.rte-rrtmgp"
fi
      set dummy "--cache-file=$acx_tmp" "--srcdir=$ac_top_srcdir/externals/rte-rrtmgp"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_rte_rrtmgp " '$acx_tmp'"
   done
      as_fn_append extra_build_subdirs " externals/rte-rrtmgp"
   acx_subdir_run_externals_rte_rrtmgp=no
   as_fn_append acx_subdir_run_default_args_externals_rte_rrtmgp " '--disable-tests'"
   eval "set dummy $acx_subdir_run_args_externals_rte_rrtmgp"; shift
   acx_subdir_run_args_externals_rte_rrtmgp=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  BUILD_ENV=*|ICON_*FLAGS=*|CFLAGS=*|FCFLAGS=*) :
     ;; #(
  NETCDF_FCFLAGS=*|NETCDF_FCLIBS=*|RANLIB=*|PYTHON=*) :
     ;; #(
  -enable-silent-rules|-enable-silent-rules=*|--enable-silent-rules|--enable-silent-rules=*|-disable-silent-rules|--disable-silent-rules) :
     ;; #(
  -enable-maintainer-mode|-enable-maintainer-mode=*|--enable-maintainer-mode|--enable-maintainer-mode=*|-disable-maintainer-mode|--disable-maintainer-mode) :
     ;; #(
  -enable-single-precision|-enable-single-precision=*|--enable-single-precision|--enable-single-precision=*|-disable-single-precision|--disable-single-precision) :
     ;; #(
  -enable-gpu|-enable-gpu=*|--enable-gpu|--enable-gpu=*|-disable-gpu|--disable-gpu) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_rte_rrtmgp " '$acx_tmp'" ;;
esac
     shift
   done
   set dummy FCFLAGS="$subdir_FCFLAGS $ICON_RTE_RRTMGP_FCFLAGS" NETCDF_FCFLAGS= NETCDF_FCLIBS= RANLIB="$RANLIB" PYTHON="$PYTHON" --enable-silent-rules="$enable_silent_rules" --enable-single-precision="$enable_single_precision" --disable-maintainer-mode --enable-gpu="$icon_gpu_primary"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_rte_rrtmgp " '$acx_tmp'"
   done
   as_fn_append bundled_includes "${FC_MOD_IN}externals/rte-rrtmgp "
   BUNDLED_LIBFILES="externals/rte-rrtmgp/librrtmgp.a externals/rte-rrtmgp/librte.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/rte-rrtmgp/librrtmgp.a externals/rte-rrtmgp/librte.a: externals/rte-rrtmgp;$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi
if test "x$enable_ecrad" = xyes && test "x$with_external_ecrad" = xno; then :
  icon_subdir_srcdir="$srcdir/externals/ecrad"
   icon_subdir_unique_file="radiation/radiation_flux.F90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the the ECRAD library ($icon_subdir_unique_file) in '$icon_subdir_srcdir': either disable usage of the ECMWF radiation scheme (--disable-ecrad) or provide an external version of ECRAD library (--with-external-ecrad) by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
      ICON_ECRAD_FCFLAGS=${ICON_ECRAD_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
                           asx_srcdirs_fn "externals/ecrad"
   acx_subdir_run_cmd_externals_ecrad="'$ac_top_srcdir/externals/ecrad/configure'"
   acx_subdir_build_type_externals_ecrad='config'
   acx_subdir_run_default_args_externals_ecrad=
         acx_subdir_pre_adjust_config_args
      acx_subdir_run_args_externals_ecrad=$acx_subdir_pre_adjusted_config_args
      if test "x$cache_file" = x'/dev/null'; then :
  acx_tmp=$cache_file
else
  case $cache_file in #(
  [\\/]* | ?:[\\/]*) :
    acx_tmp=$cache_file ;; #(
  *) :
    acx_tmp="$ac_top_build_prefix$cache_file" ;;
esac
         acx_tmp="$acx_tmp.externals.ecrad"
fi
      set dummy "--cache-file=$acx_tmp" "--srcdir=$ac_top_srcdir/externals/ecrad"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_ecrad " '$acx_tmp'"
   done
      as_fn_append extra_build_subdirs " externals/ecrad"
   acx_subdir_run_externals_ecrad=no
   eval "set dummy $acx_subdir_run_args_externals_ecrad"; shift
   acx_subdir_run_args_externals_ecrad=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  BUILD_ENV=*|ICON_*FLAGS=*|CFLAGS=*|FCFLAGS=*) :
     ;; #(
  NETCDF_FCFLAGS=*|NETCDF_FCLIBS=*|AR=*|PYTHON=*) :
     ;; #(
  -enable-silent-rules|-enable-silent-rules=*|--enable-silent-rules|--enable-silent-rules=*|-disable-silent-rules|--disable-silent-rules) :
     ;; #(
  -enable-single-precision|-enable-single-precision=*|--enable-single-precision|--enable-single-precision=*|-disable-single-precision|--disable-single-precision) :
     ;; #(
  -enable-openacc|-enable-openacc=*|--enable-openacc|--enable-openacc=*|-disable-openacc|--disable-openacc) :
     ;; #(
  -enable-pgi-inlib|-enable-pgi-inlib=*|--enable-pgi-inlib|--enable-pgi-inlib=*|-disable-pgi-inlib|--disable-pgi-inlib) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_ecrad " '$acx_tmp'" ;;
esac
     shift
   done
   if test "x$icon_gpu_primary" = xopenacc; then :
  icon_ecrad_openacc=yes
else
  icon_ecrad_openacc=no
fi
   set dummy FCFLAGS="$subdir_FCFLAGS $ICON_ECRAD_FCFLAGS" NETCDF_FCFLAGS= NETCDF_FCLIBS= AR="$AR" PYTHON="$PYTHON" --enable-silent-rules="$enable_silent_rules" --enable-openacc="$icon_ecrad_openacc" --enable-pgi-inlib="$enable_pgi_inlib" --enable-single-precision="$enable_single_precision_ecrad"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_ecrad " '$acx_tmp'"
   done
   as_fn_append bundled_includes "${FC_MOD_IN}externals/ecrad/mod "
   BUNDLED_LIBFILES="externals/ecrad/libradiation.a externals/ecrad/libifsrrtm.a externals/ecrad/libutilities.a externals/ecrad/libifsaux.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/ecrad/libradiation.a externals/ecrad/libifsrrtm.a externals/ecrad/libutilities.a externals/ecrad/libifsaux.a: externals/ecrad;$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi

if test "x$enable_sct" = xyes && test "x$with_external_sct" = xno; then :
  icon_subdir_srcdir="$srcdir/externals/sct"
   icon_subdir_unique_file="src/sct_reporter.c"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of SCT library ($icon_subdir_unique_file) in '$icon_subdir_srcdir': either disable the SCT timer (--disable-sct) or provide an external version of SCT library (--with-external-sct) by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
      ICON_SCT_FCFLAGS=${ICON_SCT_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
      ICON_SCT_CFLAGS=${ICON_SCT_CFLAGS-$ICON_BUNDLED_CFLAGS}
                           asx_srcdirs_fn "externals/sct"
   acx_subdir_run_cmd_externals_sct="'$ac_top_srcdir/externals/sct/configure'"
   acx_subdir_build_type_externals_sct='config'
   acx_subdir_run_default_args_externals_sct=
         acx_subdir_pre_adjust_config_args
      acx_subdir_run_args_externals_sct=$acx_subdir_pre_adjusted_config_args
      if test "x$cache_file" = x'/dev/null'; then :
  acx_tmp=$cache_file
else
  case $cache_file in #(
  [\\/]* | ?:[\\/]*) :
    acx_tmp=$cache_file ;; #(
  *) :
    acx_tmp="$ac_top_build_prefix$cache_file" ;;
esac
         acx_tmp="$acx_tmp.externals.sct"
fi
      set dummy "--cache-file=$acx_tmp" "--srcdir=$ac_top_srcdir/externals/sct"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_sct " '$acx_tmp'"
   done
      as_fn_append extra_build_subdirs " externals/sct"
   acx_subdir_run_externals_sct=no
   eval "set dummy $acx_subdir_run_args_externals_sct"; shift
   acx_subdir_run_args_externals_sct=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  BUILD_ENV=*|ICON_*FLAGS=*|CFLAGS=*|FCFLAGS=*|AR=*|RANLIB=*) :
     ;; #(
  MPICC=*|MPIFC=*|MPI_LAUNCH=*) :
     ;; #(
  -enable-static|-enable-static=*|--enable-static|--enable-static=*|-disable-static|--disable-static) :
     ;; #(
  -enable-shared|-enable-shared=*|--enable-shared|--enable-shared=*|-disable-shared|--disable-shared) :
     ;; #(
  -enable-maintainer-mode|-enable-maintainer-mode=*|--enable-maintainer-mode|--enable-maintainer-mode=*|-disable-maintainer-mode|--disable-maintainer-mode) :
     ;; #(
  -enable-mpi|-enable-mpi=*|--enable-mpi|--enable-mpi=*|-disable-mpi|--disable-mpi) :
     ;; #(
  -enable-mpirun-check|-enable-mpirun-check=*|--enable-mpirun-check|--enable-mpirun-check=*|-disable-mpirun-check|--disable-mpirun-check) :
     ;; #(
  -enable-openmp|-enable-openmp=*|--enable-openmp|--enable-openmp=*|-disable-openmp|--disable-openmp) :
     ;; #(
  -enable-rpath|-enable-rpath=*|--enable-rpath|--enable-rpath=*|-disable-rpath|--disable-rpath) :
     ;; #(
  -enable-papi|-enable-papi=*|--enable-papi|--enable-papi=*|-disable-papi|--disable-papi) :
     ;; #(
  -enable-hdf5|-enable-hdf5=*|--enable-hdf5|--enable-hdf5=*|-disable-hdf5|--disable-hdf5) :
     ;; #(
  -enable-silent-rules|-enable-silent-rules=*|--enable-silent-rules|--enable-silent-rules=*|-disable-silent-rules|--disable-silent-rules) :
     ;; #(
  -with-libpapi-prefix|-with-libpapi-prefix=*|--with-libpapi-prefix|--with-libpapi-prefix=*|-without-libpapi-prefix|--without-libpapi-prefix) :
     ;; #(
  -with-libhdf5-prefix|-with-libhdf5-prefix=*|--with-libhdf5-prefix|--with-libhdf5-prefix=*|-without-libhdf5-prefix|--without-libhdf5-prefix) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_sct " '$acx_tmp'" ;;
esac
     shift
   done
   set dummy CFLAGS="$subdir_CFLAGS $ICON_SCT_CFLAGS" FCFLAGS="$subdir_FCFLAGS $ICON_SCT_FCFLAGS" AR="$AR" RANLIB="$RANLIB" MPICC= MPIFC= MPI_LAUNCH="$subdir_MPI_LAUNCH" --enable-static --disable-shared --disable-maintainer-mode --enable-mpi="$enable_mpi" --enable-openmp="$enable_openmp" --disable-rpath --disable-papi --enable-hdf5 --enable-silent-rules="$enable_silent_rules" --without-libpapi-prefix --without-libhdf5-prefix; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_sct " '$acx_tmp'"
   done
   as_fn_append bundled_includes "${FC_MOD_IN}externals/sct/src "
   BUNDLED_LIBFILES="externals/sct/src/.libs/libsct.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/sct/src/.libs/libsct.a: externals/sct;$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi

if test "x$with_external_yaxt" = xno; then :
  icon_bundled_yaxt_fc=no
   icon_bundled_yaxt_c=no
   if test x"$enable_yaxt" = xyes || test x"$enable_cdi_pio" = xyes; then :
  icon_bundled_yaxt_fc=direct
elif test x"$enable_coupling" = xyes && test x"$with_external_yac" = xno; then :
  icon_bundled_yaxt_c=transitive
fi
   case $icon_bundled_yaxt_fc in #(
       direct|transitive) :
    if test x"$icon_bundled_yaxt_c" != xdirect; then :
  icon_bundled_yaxt_c=transitive
fi ;; #(
       dummy) :
    if test "x$icon_bundled_yaxt_c" = xno; then :
  icon_bundled_yaxt_c=dummy
fi ;; #(
  *) :
     ;;
esac
   if test x"$icon_bundled_yaxt_c" != xno; then :
  icon_subdir_srcdir="$srcdir/externals/yaxt"
      icon_subdir_unique_file="src/xt_idxlist.c"
      if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of YAXT library ($icon_subdir_unique_file) in '$icon_subdir_srcdir': either disable the YAXT data exchange (--disable-yaxt), usage of the parallel features of CDI (--disable-cdi-pio) and usage of the bundled YAC library (--with-external-yac or --disable-coupling) or provide an external version of YAXT library (--with-external-yaxt) by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
            ICON_YAXT_FCFLAGS=${ICON_YAXT_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
            ICON_YAXT_CFLAGS=${ICON_YAXT_CFLAGS-$ICON_BUNDLED_CFLAGS}
                              asx_srcdirs_fn "externals/yaxt"
   acx_subdir_run_cmd_externals_yaxt="'$ac_top_srcdir/externals/yaxt/configure'"
   acx_subdir_build_type_externals_yaxt='config'
   acx_subdir_run_default_args_externals_yaxt=
         acx_subdir_pre_adjust_config_args
      acx_subdir_run_args_externals_yaxt=$acx_subdir_pre_adjusted_config_args
      if test "x$cache_file" = x'/dev/null'; then :
  acx_tmp=$cache_file
else
  case $cache_file in #(
  [\\/]* | ?:[\\/]*) :
    acx_tmp=$cache_file ;; #(
  *) :
    acx_tmp="$ac_top_build_prefix$cache_file" ;;
esac
         acx_tmp="$acx_tmp.externals.yaxt"
fi
      set dummy "--cache-file=$acx_tmp" "--srcdir=$ac_top_srcdir/externals/yaxt"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yaxt " '$acx_tmp'"
   done
      as_fn_append extra_build_subdirs " externals/yaxt"
   acx_subdir_run_externals_yaxt=no
      eval "set dummy $acx_subdir_run_args_externals_yaxt"; shift
   acx_subdir_run_args_externals_yaxt=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  BUILD_*=*|ICON_*FLAGS=*|CFLAGS=*|FCFLAGS=*|AR=*|RANLIB=*|MPI_LAUNCH=*) :
     ;; #(
  MPIROOT=*|MPI_C_INCLUDE=*|MPI_C_LIB=*|MPI_FC_MOD=*|MPI_FC_LIB=*) :
     ;; #(
  -enable-silent-rules|-enable-silent-rules=*|--enable-silent-rules|--enable-silent-rules=*|-disable-silent-rules|--disable-silent-rules) :
     ;; #(
  -enable-maintainer-mode|-enable-maintainer-mode=*|--enable-maintainer-mode|--enable-maintainer-mode=*|-disable-maintainer-mode|--disable-maintainer-mode) :
     ;; #(
  -enable-shared|-enable-shared=*|--enable-shared|--enable-shared=*|-disable-shared|--disable-shared) :
     ;; #(
  -enable-static|-enable-static=*|--enable-static|--enable-static=*|-disable-static|--disable-static) :
     ;; #(
  -with-pic|-with-pic=*|--with-pic|--with-pic=*|-without-pic|--without-pic) :
     ;; #(
  -with-mpi-root|-with-mpi-root=*|--with-mpi-root|--with-mpi-root=*|-without-mpi-root|--without-mpi-root) :
     ;; #(
  -with-mpi-include|-with-mpi-include=*|--with-mpi-include|--with-mpi-include=*|-without-mpi-include|--without-mpi-include) :
     ;; #(
  -with-mpi-lib|-with-mpi-lib=*|--with-mpi-lib|--with-mpi-lib=*|-without-mpi-lib|--without-mpi-lib) :
     ;; #(
  -with-mpi-fc-mod|-with-mpi-fc-mod=*|--with-mpi-fc-mod|--with-mpi-fc-mod=*|-without-mpi-fc-mod|--without-mpi-fc-mod) :
     ;; #(
  -with-mpi-fc-lib|-with-mpi-fc-lib=*|--with-mpi-fc-lib|--with-mpi-fc-lib=*|-without-mpi-fc-lib|--without-mpi-fc-lib) :
     ;; #(
  -with-regard-for-quality|-with-regard-for-quality=*|--with-regard-for-quality|--with-regard-for-quality=*|-without-regard-for-quality|--without-regard-for-quality) :
     ;; #(
  -with-on-demand-check-programs|-with-on-demand-check-programs=*|--with-on-demand-check-programs|--with-on-demand-check-programs=*|-without-on-demand-check-programs|--without-on-demand-check-programs) :
     ;; #(
  -with-example-programs|-with-example-programs=*|--with-example-programs|--with-example-programs=*|-without-example-programs|--without-example-programs) :
     ;; #(
  -with-perf-programs|-with-perf-programs=*|--with-perf-programs|--with-perf-programs=*|-without-perf-programs|--without-perf-programs) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_yaxt " '$acx_tmp'" ;;
esac
     shift
   done
      set dummy CFLAGS="$subdir_CFLAGS $ICON_YAXT_CFLAGS" FCFLAGS="$subdir_FCFLAGS $ICON_YAXT_FCFLAGS" AR="$AR" RANLIB="$RANLIB" MPI_LAUNCH="$subdir_MPI_LAUNCH" MPIROOT= MPI_C_INCLUDE= MPI_C_LIB= MPI_FC_MOD= MPI_FC_LIB= BUILD_CFLAGS= BUILD_FCFLAGS= BUILD_LDFLAGS= BUILD_LIBS= BUILD_CC= BUILD_FC= --enable-silent-rules="$enable_silent_rules" --disable-maintainer-mode --disable-shared --enable-static --with-pic="$icon_yac_python" --with-regard-for-quality="$enable_mpi_checks" --with-on-demand-check-programs --without-example-programs --without-perf-programs; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yaxt " '$acx_tmp'"
   done
      case $icon_bundled_yaxt_c in #(
  direct) :
             BUNDLED_LIBFILES="externals/yaxt/src/.libs/libyaxt_c.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/yaxt/src/.libs/libyaxt_c.a: externals/yaxt;$as_nl" ;; #(
  transitive) :
    BUNDLED_LIBFILES="externals/yaxt/src/.libs/libyaxt_c.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/yaxt/src/.libs/libyaxt_c.a: externals/yaxt;$as_nl" ;; #(
  *) :
     ;;
esac
      case $icon_bundled_yaxt_fc in #(
  direct) :
    as_fn_append bundled_includes "${FC_MOD_IN}externals/yaxt/inst_headers/f90 "
         BUNDLED_LIBFILES="externals/yaxt/src/.libs/libyaxt.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/yaxt/src/.libs/libyaxt.a: externals/yaxt;$as_nl" ;; #(
  transitive) :
    BUNDLED_LIBFILES="externals/yaxt/src/.libs/libyaxt.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/yaxt/src/.libs/libyaxt.a: externals/yaxt;$as_nl" ;; #(
  no) :
    set dummy FC=no; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yaxt " '$acx_tmp'"
   done ;; #(
  *) :
     ;;
esac
      as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi
fi

if test "x$with_external_ppm" = xno; then :
  icon_bundled_ppm_needed=no
   if test x"$enable_cdi_pio" = xyes && test x"$with_external_cdi" = xno; then :
  icon_bundled_ppm_needed=transitive_c
fi
   if test x"$icon_bundled_ppm_needed" != xno; then :
  icon_subdir_srcdir="$srcdir/externals/ppm"
      icon_subdir_unique_file="src/core/core.c"
      if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of PPM library ($icon_subdir_unique_file) in '$icon_subdir_srcdir': either disable usage of the parallel features of CDI (--disable-cdi-pio) or provide an external version of PPM library (--with-external-ppm), or an external version of CDI library (--with-external-cdi) by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
            ICON_PPM_FCFLAGS=${ICON_PPM_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
            ICON_PPM_CFLAGS=${ICON_PPM_CFLAGS-$ICON_BUNDLED_CFLAGS}
                              asx_srcdirs_fn "externals/ppm"
   acx_subdir_run_cmd_externals_ppm="'$ac_top_srcdir/externals/ppm/configure'"
   acx_subdir_build_type_externals_ppm='config'
   acx_subdir_run_default_args_externals_ppm=
         acx_subdir_pre_adjust_config_args
      acx_subdir_run_args_externals_ppm=$acx_subdir_pre_adjusted_config_args
      if test "x$cache_file" = x'/dev/null'; then :
  acx_tmp=$cache_file
else
  case $cache_file in #(
  [\\/]* | ?:[\\/]*) :
    acx_tmp=$cache_file ;; #(
  *) :
    acx_tmp="$ac_top_build_prefix$cache_file" ;;
esac
         acx_tmp="$acx_tmp.externals.ppm"
fi
      set dummy "--cache-file=$acx_tmp" "--srcdir=$ac_top_srcdir/externals/ppm"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_ppm " '$acx_tmp'"
   done
      as_fn_append extra_build_subdirs " externals/ppm"
   acx_subdir_run_externals_ppm=no
      eval "set dummy $acx_subdir_run_args_externals_ppm"; shift
   acx_subdir_run_args_externals_ppm=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  BUILD_*=*|ICON_*FLAGS=*|CFLAGS=*|FCFLAGS=*|MPI_LAUNCH=*|AR=*) :
     ;; #(
  RANLIB=*|PYTHON=*|PLATFORM_OPT_LIBM=*|IEEE_ARITHMETICROOT=*) :
     ;; #(
  IEEE_ARITHMETIC_FC_MOD=*|IEEE_ARITHMETIC_FC_LIB=*) :
     ;; #(
  IEEE_ARHMETIC_FCFLAGS=*|MPIROOT=*|MPI_FC_MOD=*|MPI_FC_LIB=*) :
     ;; #(
  MPI_FC_INCLUDE=*|MPI_C_INCLUDE=*|MPI_C_LIB=*) :
     ;; #(
  -enable-silent-rules|-enable-silent-rules=*|--enable-silent-rules|--enable-silent-rules=*|-disable-silent-rules|--disable-silent-rules) :
     ;; #(
  -enable-maintainer-mode|-enable-maintainer-mode=*|--enable-maintainer-mode|--enable-maintainer-mode=*|-disable-maintainer-mode|--disable-maintainer-mode) :
     ;; #(
  -enable-mh-file|-enable-mh-file=*|--enable-mh-file|--enable-mh-file=*|-disable-mh-file|--disable-mh-file) :
     ;; #(
  -enable-shared|-enable-shared=*|--enable-shared|--enable-shared=*|-disable-shared|--disable-shared) :
     ;; #(
  -enable-static|-enable-static=*|--enable-static|--enable-static=*|-disable-static|--disable-static) :
     ;; #(
  -enable-MPI|-enable-MPI=*|--enable-MPI|--enable-MPI=*|-disable-MPI|--disable-MPI) :
     ;; #(
  -enable-netcdf|-enable-netcdf=*|--enable-netcdf|--enable-netcdf=*|-disable-netcdf|--disable-netcdf) :
     ;; #(
  -enable-hdf5|-enable-hdf5=*|--enable-hdf5|--enable-hdf5=*|-disable-hdf5|--disable-hdf5) :
     ;; #(
  -enable-parmetis|-enable-parmetis=*|--enable-parmetis|--enable-parmetis=*|-disable-parmetis|--disable-parmetis) :
     ;; #(
  -enable-metis|-enable-metis=*|--enable-metis|--enable-metis=*|-disable-metis|--disable-metis) :
     ;; #(
  -enable-crypto|-enable-crypto=*|--enable-crypto|--enable-crypto=*|-disable-crypto|--disable-crypto) :
     ;; #(
  -with-setup|-with-setup=*|--with-setup|--with-setup=*|-without-setup|--without-setup) :
     ;; #(
  -with-ieee-arithmetic-root|-with-ieee-arithmetic-root=*|--with-ieee-arithmetic-root|--with-ieee-arithmetic-root=*|-without-ieee-arithmetic-root|--without-ieee-arithmetic-root) :
     ;; #(
  -with-ieee-arithmetic-fc-mod|-with-ieee-arithmetic-fc-mod=*|--with-ieee-arithmetic-fc-mod|--with-ieee-arithmetic-fc-mod=*|-without-ieee-arithmetic-fc-mod|--without-ieee-arithmetic-fc-mod) :
     ;; #(
  -with-ieee-arithmetic-fc-lib|-with-ieee-arithmetic-fc-lib=*|--with-ieee-arithmetic-fc-lib|--with-ieee-arithmetic-fc-lib=*|-without-ieee-arithmetic-fc-lib|--without-ieee-arithmetic-fc-lib) :
     ;; #(
  -with-mpi-root|-with-mpi-root=*|--with-mpi-root|--with-mpi-root=*|-without-mpi-root|--without-mpi-root) :
     ;; #(
  -with-mpi-fc-mod|-with-mpi-fc-mod=*|--with-mpi-fc-mod|--with-mpi-fc-mod=*|-without-mpi-fc-mod|--without-mpi-fc-mod) :
     ;; #(
  -with-mpi-fc-lib|-with-mpi-fc-lib=*|--with-mpi-fc-lib|--with-mpi-fc-lib=*|-without-mpi-fc-lib|--without-mpi-fc-lib) :
     ;; #(
  -with-mpi-include|-with-mpi-include=*|--with-mpi-include|--with-mpi-include=*|-without-mpi-include|--without-mpi-include) :
     ;; #(
  -with-mpi-lib|-with-mpi-lib=*|--with-mpi-lib|--with-mpi-lib=*|-without-mpi-lib|--without-mpi-lib) :
     ;; #(
  -with-regard-for-quality|-with-regard-for-quality=*|--with-regard-for-quality|--with-regard-for-quality=*|-without-regard-for-quality|--without-regard-for-quality) :
     ;; #(
  -with-on-demand-check-programs|-with-on-demand-check-programs=*|--with-on-demand-check-programs|--with-on-demand-check-programs=*|-without-on-demand-check-programs|--without-on-demand-check-programs) :
     ;; #(
  -with-example-programs|-with-example-programs=*|--with-example-programs|--with-example-programs=*|-without-example-programs|--without-example-programs) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_ppm " '$acx_tmp'" ;;
esac
     shift
   done
      set dummy CFLAGS="$subdir_CFLAGS $ICON_PPM_CFLAGS" FCFLAGS="$subdir_FCFLAGS $ICON_PPM_FCFLAGS" MPI_LAUNCH="$subdir_MPI_LAUNCH" AR="$AR" RANLIB="$RANLIB" PYTHON="$PYTHON" PLATFORM_OPT_LIBM= IEEE_ARITHMETICROOT= IEEE_ARITHMETIC_FC_MOD= IEEE_ARITHMETIC_FC_LIB= IEEE_ARHMETIC_FCFLAGS= MPIROOT= MPI_C_INCLUDE= MPI_C_LIB= MPI_FC_MOD= MPI_FC_LIB= BUILD_CFLAGS= BUILD_FCFLAGS= BUILD_LDFLAGS= BUILD_FCLDFLAGS= --enable-silent-rules="$enable_silent_rules" --disable-maintainer-mode --disable-shared --enable-static --enable-MPI --disable-netcdf --disable-hdf5 --disable-parmetis --disable-metis --disable-crypto --with-regard-for-quality="$enable_mpi_checks" --with-on-demand-check-programs --without-example-programs         FC=no; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_ppm " '$acx_tmp'"
   done
      BUNDLED_LIBFILES="externals/ppm/src/.libs/libscalesppmcore.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/ppm/src/.libs/libscalesppmcore.a: externals/ppm;$as_nl"
      as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi
fi

if test "x$with_external_cdi" = xno; then :
  icon_subdir_srcdir="$srcdir/externals/cdi"
   icon_subdir_unique_file="src/cdi.h"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of CDI library ($icon_subdir_unique_file) in '$icon_subdir_srcdir': provide an external version of CDI library (--with-external-cdi) by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
      ICON_CDI_FCFLAGS=${ICON_CDI_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
      ICON_CDI_CFLAGS=${ICON_CDI_CFLAGS-$ICON_BUNDLED_CFLAGS}
                           asx_srcdirs_fn "externals/cdi"
   acx_subdir_run_cmd_externals_cdi="'$ac_top_srcdir/externals/cdi/configure'"
   acx_subdir_build_type_externals_cdi='config'
   acx_subdir_run_default_args_externals_cdi=
         acx_subdir_pre_adjust_config_args
      acx_subdir_run_args_externals_cdi=$acx_subdir_pre_adjusted_config_args
      if test "x$cache_file" = x'/dev/null'; then :
  acx_tmp=$cache_file
else
  case $cache_file in #(
  [\\/]* | ?:[\\/]*) :
    acx_tmp=$cache_file ;; #(
  *) :
    acx_tmp="$ac_top_build_prefix$cache_file" ;;
esac
         acx_tmp="$acx_tmp.externals.cdi"
fi
      set dummy "--cache-file=$acx_tmp" "--srcdir=$ac_top_srcdir/externals/cdi"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_cdi " '$acx_tmp'"
   done
      as_fn_append extra_build_subdirs " externals/cdi"
   acx_subdir_run_externals_cdi=no
   eval "set dummy $acx_subdir_run_args_externals_cdi"; shift
   acx_subdir_run_args_externals_cdi=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  BUILD_*=*|ICON_*FLAGS=*|CFLAGS=*|FCFLAGS=*|F77=*|CXX=*|AR=*|RANLIB=*) :
     ;; #(
  UTIL_LINUX_UUID_C_INCLUDE=*|UTIL_LINUX_UUID_C_LIB=*) :
     ;; #(
  OSSP_UUID_C_INCLUDE=*|OSSP_UUID_C_LIB=*|DCE_UUID_C_INCLUDE=*) :
     ;; #(
  DCE_UUID_C_LIB=*|MPIROOT=*|MPI_C_INCLUDE=*|MPI_C_LIB=*|MPI_LAUNCH=*) :
     ;; #(
  MPI_FC_MOD=*|MPI_FC_LIB=*|PKG_CONFIG=*|YAXT_C_INCLUDE=*|YAXT_C_LIB=*) :
     ;; #(
  YAXT_FC_MOD=*|YAXT_FC_LIB=*|PPM_CORE_C_INCLUDE=*|PPM_CORE_C_LIB=*) :
     ;; #(
  PYTHON=*) :
     ;; #(
  -enable-silent-rules|-enable-silent-rules=*|--enable-silent-rules|--enable-silent-rules=*|-disable-silent-rules|--disable-silent-rules) :
     ;; #(
  -enable-maintainer-mode|-enable-maintainer-mode=*|--enable-maintainer-mode|--enable-maintainer-mode=*|-disable-maintainer-mode|--disable-maintainer-mode) :
     ;; #(
  -enable-mpi|-enable-mpi=*|--enable-mpi|--enable-mpi=*|-disable-mpi|--disable-mpi) :
     ;; #(
  -enable-iso-c-interface|-enable-iso-c-interface=*|--enable-iso-c-interface|--enable-iso-c-interface=*|-disable-iso-c-interface|--disable-iso-c-interface) :
     ;; #(
  -enable-cf-interface|-enable-cf-interface=*|--enable-cf-interface|--enable-cf-interface=*|-disable-cf-interface|--disable-cf-interface) :
     ;; #(
  -enable-ruby-interface|-enable-ruby-interface=*|--enable-ruby-interface|--enable-ruby-interface=*|-disable-ruby-interface|--disable-ruby-interface) :
     ;; #(
  -enable-python-interface|-enable-python-interface=*|--enable-python-interface|--enable-python-interface=*|-disable-python-interface|--disable-python-interface) :
     ;; #(
  -enable-openmp|-enable-openmp=*|--enable-openmp|--enable-openmp=*|-disable-openmp|--disable-openmp) :
     ;; #(
  -enable-shared|-enable-shared=*|--enable-shared|--enable-shared=*|-disable-shared|--disable-shared) :
     ;; #(
  -enable-static|-enable-static=*|--enable-static|--enable-static=*|-disable-static|--disable-static) :
     ;; #(
  -enable-grib|-enable-grib=*|--enable-grib|--enable-grib=*|-disable-grib|--disable-grib) :
     ;; #(
  -enable-across|-enable-across=*|--enable-across|--enable-across=*|-disable-across|--disable-across) :
     ;; #(
  -enable-cgribex|-enable-cgribex=*|--enable-cgribex|--enable-cgribex=*|-disable-cgribex|--disable-cgribex) :
     ;; #(
  -enable-cdi-app|-enable-cdi-app=*|--enable-cdi-app|--enable-cdi-app=*|-disable-cdi-app|--disable-cdi-app) :
     ;; #(
  -enable-ppm-dist-array|-enable-ppm-dist-array=*|--enable-ppm-dist-array|--enable-ppm-dist-array=*|-disable-ppm-dist-array|--disable-ppm-dist-array) :
     ;; #(
  -with-util-linux-uuid-include|-with-util-linux-uuid-include=*|--with-util-linux-uuid-include|--with-util-linux-uuid-include=*|-without-util-linux-uuid-include|--without-util-linux-uuid-include) :
     ;; #(
  -with-util-linux-uuid-lib|-with-util-linux-uuid-lib=*|--with-util-linux-uuid-lib|--with-util-linux-uuid-lib=*|-without-util-linux-uuid-lib|--without-util-linux-uuid-lib) :
     ;; #(
  -with-ossp-uuid-include|-with-ossp-uuid-include=*|--with-ossp-uuid-include|--with-ossp-uuid-include=*|-without-ossp-uuid-include|--without-ossp-uuid-include) :
     ;; #(
  -with-ossp-uuid-lib|-with-ossp-uuid-lib=*|--with-ossp-uuid-lib|--with-ossp-uuid-lib=*|-without-ossp-uuid-lib|--without-ossp-uuid-lib) :
     ;; #(
  -with-dce-uuid-include|-with-dce-uuid-include=*|--with-dce-uuid-include|--with-dce-uuid-include=*|-without-dce-uuid-include|--without-dce-uuid-include) :
     ;; #(
  -with-dce-uuid-lib|-with-dce-uuid-lib=*|--with-dce-uuid-lib|--with-dce-uuid-lib=*|-without-dce-uuid-lib|--without-dce-uuid-lib) :
     ;; #(
  -with-threads|-with-threads=*|--with-threads|--with-threads=*|-without-threads|--without-threads) :
     ;; #(
  -with-fdb5|-with-fdb5=*|--with-fdb5|--with-fdb5=*|-without-fdb5|--without-fdb5) :
     ;; #(
  -with-szlib|-with-szlib=*|--with-szlib|--with-szlib=*|-without-szlib|--without-szlib) :
     ;; #(
  -with-netcdf|-with-netcdf=*|--with-netcdf|--with-netcdf=*|-without-netcdf|--without-netcdf) :
     ;; #(
  -with-eccodes|-with-eccodes=*|--with-eccodes|--with-eccodes=*|-without-eccodes|--without-eccodes) :
     ;; #(
  -with-grib_api|-with-grib_api=*|--with-grib_api|--with-grib_api=*|-without-grib_api|--without-grib_api) :
     ;; #(
  -with-mpi-root|-with-mpi-root=*|--with-mpi-root|--with-mpi-root=*|-without-mpi-root|--without-mpi-root) :
     ;; #(
  -with-mpi-include|-with-mpi-include=*|--with-mpi-include|--with-mpi-include=*|-without-mpi-include|--without-mpi-include) :
     ;; #(
  -with-mpi-lib|-with-mpi-lib=*|--with-mpi-lib|--with-mpi-lib=*|-without-mpi-lib|--without-mpi-lib) :
     ;; #(
  -with-mpi-fc-mod|-with-mpi-fc-mod=*|--with-mpi-fc-mod|--with-mpi-fc-mod=*|-without-mpi-fc-mod|--without-mpi-fc-mod) :
     ;; #(
  -with-mpi-fc-lib|-with-mpi-fc-lib=*|--with-mpi-fc-lib|--with-mpi-fc-lib=*|-without-mpi-fc-lib|--without-mpi-fc-lib) :
     ;; #(
  -with-on-demand-check-programs|-with-on-demand-check-programs=*|--with-on-demand-check-programs|--with-on-demand-check-programs=*|-without-on-demand-check-programs|--without-on-demand-check-programs) :
     ;; #(
  -with-example-programs|-with-example-programs=*|--with-example-programs|--with-example-programs=*|-without-example-programs|--without-example-programs) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_cdi " '$acx_tmp'" ;;
esac
     shift
   done
   set dummy CFLAGS="$subdir_CFLAGS $ICON_CDI_CFLAGS" FCFLAGS="$subdir_FCFLAGS $ICON_CDI_FCFLAGS"      F77=no      CXX=no AR="$AR" RANLIB="$RANLIB" UTIL_LINUX_UUID_C_INCLUDE= UTIL_LINUX_UUID_C_LIB= OSSP_UUID_C_INCLUDE= OSSP_UUID_C_LIB= DCE_UUID_C_INCLUDE= DCE_UUID_C_LIB= MPIROOT= MPI_C_INCLUDE= MPI_C_LIB= MPI_LAUNCH="$subdir_MPI_LAUNCH" MPI_FC_MOD= MPI_FC_LIB= PKG_CONFIG= YAXT_C_INCLUDE= YAXT_C_LIB= YAXT_FC_MOD= YAXT_FC_LIB= PPM_CORE_C_INCLUDE= PPM_CORE_C_LIB= PYTHON="$PYTHON" BUILD_CFLAGS= BUILD_FCFLAGS= BUILD_LDFLAGS= BUILD_LIBS= BUILD_MPI_C_LIB= BUILD_MPI_FC_LIB= BUILD_CC= BUILD_CXX= BUILD_FC= BUILD_F77= --enable-silent-rules="$enable_silent_rules" --disable-maintainer-mode --enable-mpi="$enable_cdi_pio" --enable-iso-c-interface --enable-cf-interface="$enable_cdi_pio" --disable-ruby-interface --disable-python-interface --disable-openmp --disable-shared --enable-static --enable-grib --disable-across --enable-cgribex --disable-cdi-app --enable-ppm-dist-array="$enable_cdi_pio" --without-util-linux-uuid --without-ossp-uuid --without-dce-uuid --without-threads --without-fdb5 --without-szlib --with-netcdf      --with-eccodes="$enable_grib2" --without-grib_api --with-on-demand-check-programs --without-example-programs      acx_cv_have_netcdf2=yes acx_cv_have_netcdf4=yes      acx_cv_have_pnetcdf=no      acx_cv_have_libnc_dap=no acx_cv_have_nc4hdf5=no; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_cdi " '$acx_tmp'"
   done
   BUNDLED_LIBFILES="externals/cdi/src/.libs/libcdi.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/cdi/src/.libs/libcdi.a: externals/cdi;$as_nl"
   if test "x$enable_cdi_pio" = xyes; then :
       if test "x$with_external_yaxt" = xno; then :
  set dummy acx_cv_c_include_yaxt_h="-I${icon_abs_top_builddir}/externals/yaxt/inst_headers" acx_cv_option_search_xt_initialized_c="${icon_abs_top_builddir}/externals/yaxt/src/libyaxt_c.la" acx_cv_fortran_mod_yaxt="${FC_MOD_IN}${icon_abs_top_builddir}/externals/yaxt/inst_headers/f90" acx_cv_option_search_xt_initialized_fc="${icon_abs_top_builddir}/externals/yaxt/src/libyaxt.la ${icon_abs_top_builddir}/externals/yaxt/src/libyaxt_c.la"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_cdi " '$acx_tmp'"
   done
         as_fn_append BUNDLED_RULES "externals/cdi: externals/yaxt$as_nl"
fi
      if test "x$with_external_ppm" = xno; then :
  set dummy acx_cv_c_include_ppm_ppm_h="-I${icon_abs_top_builddir}/externals/ppm/include" ac_cv_header_ppm_dist_array_h=yes acx_cv_option_search_PPM_initialize_c="${icon_abs_top_builddir}/externals/ppm/src/libscalesppmcore.la"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_cdi " '$acx_tmp'"
   done
         as_fn_append BUNDLED_RULES "externals/cdi: externals/ppm$as_nl"
fi
      as_fn_append bundled_includes "${FC_INC_FLAG}${srcdir}/externals/cdi/src "
      BUNDLED_LIBFILES="externals/cdi/src/.libs/libcdipio.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/cdi/src/.libs/libcdipio.a: externals/cdi;$as_nl"
fi
   as_fn_append bundled_includes "${FC_MOD_IN}externals/cdi/src "
   BUNDLED_LIBFILES="externals/cdi/src/.libs/libcdi_f2003.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/cdi/src/.libs/libcdi_f2003.a: externals/cdi;$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi

if test "x$with_external_mtime" = xno; then :
  icon_subdir_srcdir="$srcdir/externals/mtime"
   icon_subdir_unique_file="include/mtime_calendar.h"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of MTIME library ($icon_subdir_unique_file) in '$icon_subdir_srcdir': provide an external version of MTIME library (--with-external-mtime) by setting CFLAGS, FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
      ICON_MTIME_FCFLAGS=${ICON_MTIME_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
      ICON_MTIME_CFLAGS=${ICON_MTIME_CFLAGS-$ICON_BUNDLED_CFLAGS}
                        acx_subdir_run_cmd_externals_mtime_build="'${CMAKE}'"
   acx_subdir_build_type_externals_mtime_build='cmake'
                                             acx_subdir_pre_adjust_cmake_args_nocomps_noutils
      acx_subdir_run_args_externals_mtime_build=$acx_subdir_pre_adjusted_cmake_args_nocomps_noutils
         asx_srcdirs_fn "externals/mtime/build"
      acx_tmp="$ac_top_srcdir/externals/mtime"
      case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
      as_fn_append acx_subdir_run_args_externals_mtime_build " '$acx_tmp'"
      as_fn_append extra_build_subdirs " externals/mtime/build"
   acx_subdir_run_externals_mtime_build=no
   as_fn_append acx_subdir_run_default_args_externals_mtime_build " '-DBUILD_TESTING=OFF'"
   eval "set dummy $acx_subdir_run_args_externals_mtime_build"; shift
   acx_subdir_run_args_externals_mtime_build=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  -DCMAKE_C_FLAGS=*|-DCMAKE_Fortran_FLAGS=*|-DCMAKE_CXX_*=*) :
     ;; #(
  -DCMAKE_INSTALL_PREFIX=*) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_mtime_build " '$acx_tmp'" ;;
esac
     shift
   done
   set dummy -DCMAKE_AR="$AR" -DCMAKE_RANLIB="$RANLIB" -DCMAKE_C_FLAGS="$subdir_CFLAGS $ICON_MTIME_CFLAGS $subdir_CPPFLAGS" -DCMAKE_Fortran_FLAGS="$subdir_FCFLAGS $ICON_MTIME_FCFLAGS" -DCMAKE_BUILD_TYPE=None -DCMAKE_PREFIX_PATH="$bundled_CMAKE_PREFIX_PATH"      -DCMAKE_POSITION_INDEPENDENT_CODE="$icon_yac_python"      -DCMAKE_INSTALL_PREFIX="$exec_prefix"      -DCMAKE_INSTALL_LIBDIR="$libdir" -DBUILD_SHARED_LIBS=OFF -DMTIME_ENABLE_PYTHON="$icon_mtime_python" -DPython_EXECUTABLE="$PYTHON"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_mtime_build " '$acx_tmp'"
   done
   as_fn_append bundled_CMAKE_PREFIX_PATH "${bundled_CMAKE_PREFIX_PATH:+";"}${icon_abs_top_builddir}/externals/mtime/build"
   if test "x$icon_mtime_python" = xyes; then :
  as_fn_append BUNDLED_PYTHONPATH "${BUNDLED_PYTHONPATH:+"${PATH_SEPARATOR}"}\${abs_top_builddir}/externals/mtime/build/python"
fi
   as_fn_append bundled_includes "${FC_MOD_IN}externals/mtime/build/src/mod "
   BUNDLED_LIBFILES="externals/mtime/build/src/libmtime.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/mtime/build/src/libmtime.a: externals/mtime/build;$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi

if test "x$enable_coupling" = xyes && test "x$with_external_yac" = xno; then :
  icon_subdir_srcdir="$srcdir/externals/yac"
   icon_subdir_unique_file="src/mci/yac_module.F90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of YAC library ($icon_subdir_unique_file) in '$icon_subdir_srcdir': either disable the coupling (--disable-coupling) or provide an external version of YAC library (--with-external-yac) by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
      ICON_YAC_FCFLAGS=${ICON_YAC_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
      ICON_YAC_CFLAGS=${ICON_YAC_CFLAGS-$ICON_BUNDLED_CFLAGS}
                           asx_srcdirs_fn "externals/yac"
   acx_subdir_run_cmd_externals_yac="'$ac_top_srcdir/externals/yac/configure'"
   acx_subdir_build_type_externals_yac='config'
   acx_subdir_run_default_args_externals_yac=
         acx_subdir_pre_adjust_config_args
      acx_subdir_run_args_externals_yac=$acx_subdir_pre_adjusted_config_args
      if test "x$cache_file" = x'/dev/null'; then :
  acx_tmp=$cache_file
else
  case $cache_file in #(
  [\\/]* | ?:[\\/]*) :
    acx_tmp=$cache_file ;; #(
  *) :
    acx_tmp="$ac_top_build_prefix$cache_file" ;;
esac
         acx_tmp="$acx_tmp.externals.yac"
fi
      set dummy "--cache-file=$acx_tmp" "--srcdir=$ac_top_srcdir/externals/yac"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yac " '$acx_tmp'"
   done
      as_fn_append extra_build_subdirs " externals/yac"
   acx_subdir_run_externals_yac=no
   eval "set dummy $acx_subdir_run_args_externals_yac"; shift
   acx_subdir_run_args_externals_yac=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  BUILD_ENV=*|ICON_*FLAGS=*|CFLAGS=*|FCFLAGS=*|AR=*|RANLIB=*) :
     ;; #(
  MPI_LAUNCH=*|MPI_CFLAGS=*|MPI_CLIBS=*|MPI_FCFLAGS=*|MPI_FCLIBS=*) :
     ;; #(
  YAXT_CFLAGS=*|YAXT_CLIBS=*|YAXT_FCFLAGS=*|YAXT_FCLIBS=*) :
     ;; #(
  NETCDF_CFLAGS=*|NETCDF_CLIBS=*|FYAML_CFLAGS=*|FYAML_CLIBS=*) :
     ;; #(
  MTIME_CFLAGS=*|MTIME_CLIBS=*|FORTRAN_LAPACK_CLIBS=*|PYTHON=*) :
     ;; #(
  -enable-silent-rules|-enable-silent-rules=*|--enable-silent-rules|--enable-silent-rules=*|-disable-silent-rules|--disable-silent-rules) :
     ;; #(
  -enable-maintainer-mode|-enable-maintainer-mode=*|--enable-maintainer-mode|--enable-maintainer-mode=*|-disable-maintainer-mode|--disable-maintainer-mode) :
     ;; #(
  -enable-rpaths|-enable-rpaths=*|--enable-rpaths|--enable-rpaths=*|-disable-rpaths|--disable-rpaths) :
     ;; #(
  -enable-openmp|-enable-openmp=*|--enable-openmp|--enable-openmp=*|-disable-openmp|--disable-openmp) :
     ;; #(
  -enable-mci|-enable-mci=*|--enable-mci|--enable-mci=*|-disable-mci|--disable-mci) :
     ;; #(
  -enable-utils|-enable-utils=*|--enable-utils|--enable-utils=*|-disable-utils|--disable-utils) :
     ;; #(
  -enable-examples|-enable-examples=*|--enable-examples|--enable-examples=*|-disable-examples|--disable-examples) :
     ;; #(
  -enable-tools|-enable-tools=*|--enable-tools|--enable-tools=*|-disable-tools|--disable-tools) :
     ;; #(
  -enable-lib-core-only|-enable-lib-core-only=*|--enable-lib-core-only|--enable-lib-core-only=*|-disable-lib-core-only|--disable-lib-core-only) :
     ;; #(
  -enable-deprecated|-enable-deprecated=*|--enable-deprecated|--enable-deprecated=*|-disable-deprecated|--disable-deprecated) :
     ;; #(
  -enable-netcdf|-enable-netcdf=*|--enable-netcdf|--enable-netcdf=*|-disable-netcdf|--disable-netcdf) :
     ;; #(
  -enable-python-bindings|-enable-python-bindings=*|--enable-python-bindings|--enable-python-bindings=*|-disable-python-bindings|--disable-python-bindings) :
     ;; #(
  -with-pic|-with-pic=*|--with-pic|--with-pic=*|-without-pic|--without-pic) :
     ;; #(
  -with-external-lapack|-with-external-lapack=*|--with-external-lapack|--with-external-lapack=*|-without-external-lapack|--without-external-lapack) :
     ;; #(
  -with-external-mtime|-with-external-mtime=*|--with-external-mtime|--with-external-mtime=*|-without-external-mtime|--without-external-mtime) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_yac " '$acx_tmp'" ;;
esac
     shift
   done
   set dummy CFLAGS="$subdir_CFLAGS $ICON_YAC_CFLAGS" FCFLAGS="$subdir_FCFLAGS $ICON_YAC_FCFLAGS" AR="$AR" RANLIB="$RANLIB" MPI_CFLAGS= MPI_CLIBS= MPI_FCFLAGS= MPI_FCLIBS= YAXT_CLIBS= YAXT_FCLIBS= NETCDF_CFLAGS= NETCDF_CLIBS= FYAML_CFLAGS= FYAML_CLIBS= MTIME_CLIBS= FORTRAN_LAPACK_CLIBS= PYTHON="$PYTHON" --enable-silent-rules="$enable_silent_rules" --disable-maintainer-mode --enable-rpaths="$enable_rpaths" --disable-openmp --enable-mci --disable-utils --disable-examples --disable-tools --disable-deprecated --enable-netcdf --enable-python-bindings="$icon_yac_python" --with-pic="$icon_yac_python" --with-external-lapack=fortran --with-external-mtime; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yac " '$acx_tmp'"
   done
   if ${subdir_MPI_LAUNCH+:} false; then :
  set dummy MPI_LAUNCH="$subdir_MPI_LAUNCH"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yac " '$acx_tmp'"
   done
fi
   if test "x$with_external_yaxt" = xyes; then :
  set dummy YAXT_CFLAGS= YAXT_FCFLAGS=; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yac " '$acx_tmp'"
   done
else
  set dummy YAXT_CFLAGS="-I${icon_abs_top_builddir}/externals/yaxt/inst_headers" ac_cv_header_yaxt_h=yes acx_cv_c_lib_func_xt_initialized="${icon_abs_top_builddir}/externals/yaxt/src/.libs/libyaxt_c.a"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yac " '$acx_tmp'"
   done
      if test x"${icon_bundled_yaxt_fc-no}" != xno; then :
  set dummy YAXT_FCFLAGS="${FC_MOD_IN}${icon_abs_top_builddir}/externals/yaxt/inst_headers/f90" acx_cv_fc_module_YAXT=yes acx_cv_fc_lib_func_XT_INITIALIZED="${icon_abs_top_builddir}/externals/yaxt/src/.libs/libyaxt.a ${icon_abs_top_builddir}/externals/yaxt/src/.libs/libyaxt_c.a"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yac " '$acx_tmp'"
   done
else
  set dummy YAXT_FCFLAGS=; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yac " '$acx_tmp'"
   done
fi
      if test "x$enable_mpi_checks" = xyes; then :
                 as_fn_append acx_subdir_run_before_externals_yac ' acx_subdir_extra_run_0'
         if test "x$enable_delayed_config" = xyes; then :
  as_fn_append BUNDLED_RULES "externals/yac/Makefile:| externals/yaxt$as_nl"
fi
   as_fn_append BUNDLED_RULES "externals/yac: externals/yaxt$as_nl"
else
  as_fn_append BUNDLED_RULES "externals/yac: externals/yaxt$as_nl"
fi
fi
   if test "x$with_external_mtime" = xyes; then :
  set dummy MTIME_CFLAGS=; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yac " '$acx_tmp'"
   done
else
  set dummy MTIME_CFLAGS="-I${icon_abs_top_srcdir}/externals/mtime/include" acx_cv_c_lib_func_datetimeToString="${icon_abs_top_builddir}/externals/mtime/build/src/libmtime.a"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_yac " '$acx_tmp'"
   done
      if test "x$icon_yac_python" = xyes; then :
  as_fn_append BUNDLED_RULES "externals/yac: externals/mtime/build$as_nl"
fi
fi
   if test "x$icon_yac_python" = xyes; then :
  as_fn_append BUNDLED_PYTHONPATH "${BUNDLED_PYTHONPATH:+"${PATH_SEPARATOR}"}\${abs_top_builddir}/externals/yac/python"
fi
   as_fn_append bundled_includes "${FC_MOD_IN}externals/yac/src/mci "
   BUNDLED_LIBFILES="externals/yac/src/mci/libyac_mci.a externals/yac/src/core/libyac_core.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/yac/src/mci/libyac_mci.a externals/yac/src/core/libyac_core.a: externals/yac;$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi

if test "x$enable_art" = xyes && test "x$with_external_tixi" = xno; then :
  icon_subdir_srcdir="$srcdir/externals/tixi"
   icon_subdir_unique_file="src/tixi.f90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of TIXI library ($icon_subdir_unique_file) in '$icon_subdir_srcdir': either disable the aerosols and reactive trace component (--disable-art) or provide an external version of TIXI library (--with-external-tixi) by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
      ICON_TIXI_FCFLAGS=${ICON_TIXI_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
      ICON_TIXI_CFLAGS=${ICON_TIXI_CFLAGS-$ICON_BUNDLED_CFLAGS}
                           asx_srcdirs_fn "externals/tixi"
   acx_subdir_run_cmd_externals_tixi="'$ac_top_srcdir/externals/tixi/configure'"
   acx_subdir_build_type_externals_tixi='config'
   acx_subdir_run_default_args_externals_tixi=
         acx_subdir_pre_adjust_config_args
      acx_subdir_run_args_externals_tixi=$acx_subdir_pre_adjusted_config_args
      if test "x$cache_file" = x'/dev/null'; then :
  acx_tmp=$cache_file
else
  case $cache_file in #(
  [\\/]* | ?:[\\/]*) :
    acx_tmp=$cache_file ;; #(
  *) :
    acx_tmp="$ac_top_build_prefix$cache_file" ;;
esac
         acx_tmp="$acx_tmp.externals.tixi"
fi
      set dummy "--cache-file=$acx_tmp" "--srcdir=$ac_top_srcdir/externals/tixi"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_tixi " '$acx_tmp'"
   done
      as_fn_append extra_build_subdirs " externals/tixi"
   acx_subdir_run_externals_tixi=no
   eval "set dummy $acx_subdir_run_args_externals_tixi"; shift
   acx_subdir_run_args_externals_tixi=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  BUILD_ENV=*|ICON_*FLAGS=*|CFLAGS=*|FCFLAGS=*|AR=*|RANLIB=*) :
     ;; #(
  XML2_CFLAGS=*|XML2_CLIBS=*) :
     ;; #(
  -enable-maintainer-mode|-enable-maintainer-mode=*|--enable-maintainer-mode|--enable-maintainer-mode=*|-disable-maintainer-mode|--disable-maintainer-mode) :
     ;; #(
  -enable-silent-rules|-enable-silent-rules=*|--enable-silent-rules|--enable-silent-rules=*|-disable-silent-rules|--disable-silent-rules) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_tixi " '$acx_tmp'" ;;
esac
     shift
   done
   set dummy CFLAGS="$subdir_CFLAGS $ICON_TIXI_CFLAGS" FCFLAGS="$subdir_FCFLAGS $ICON_TIXI_FCFLAGS" AR="$AR" RANLIB="$RANLIB" XML2_CFLAGS= XML2_CLIBS= --disable-maintainer-mode --enable-silent-rules="$enable_silent_rules"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_tixi " '$acx_tmp'"
   done
   as_fn_append bundled_includes "${FC_MOD_IN}externals/tixi/src "
   BUNDLED_LIBFILES="externals/tixi/src/libicon_tixi.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/tixi/src/libicon_tixi.a: externals/tixi;$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi

if test "x$enable_comin" = xstatic || test "x$enable_comin" = xshared; then :
  icon_subdir_srcdir="$srcdir/externals/comin"
   icon_subdir_unique_file="src/comin_setup.F90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of COMIN library ($icon_subdir_unique_file) in '$icon_subdir_srcdir'" "$LINENO" 5
fi
      ICON_COMIN_FCFLAGS=${ICON_COMIN_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
      ICON_COMIN_CFLAGS=${ICON_COMIN_CFLAGS-$ICON_BUNDLED_CFLAGS}
      ICON_COMIN_CXXFLAGS=${ICON_COMIN_CXXFLAGS-$ICON_BUNDLED_CXXFLAGS}
                        acx_subdir_run_cmd_externals_comin_build="'${CMAKE}'"
   acx_subdir_build_type_externals_comin_build='cmake'
                                             acx_subdir_pre_adjust_cmake_args_nocomps_noutils
      acx_subdir_run_args_externals_comin_build=$acx_subdir_pre_adjusted_cmake_args_nocomps_noutils
         asx_srcdirs_fn "externals/comin/build"
      acx_tmp="$ac_top_srcdir/utils/cmake-wrapper"
      case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
      as_fn_append acx_subdir_run_args_externals_comin_build " '$acx_tmp'"
      as_fn_append extra_build_subdirs " externals/comin/build"
   acx_subdir_run_externals_comin_build=no
   as_fn_append acx_subdir_run_default_args_externals_comin_build " '-DBUILD_TESTING=OFF' '-DCOMIN_ENABLE_EXAMPLES=OFF'"
   eval "set dummy $acx_subdir_run_args_externals_comin_build"; shift
   acx_subdir_run_args_externals_comin_build=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  -DCMAKE_C_FLAGS=*|-DCMAKE_Fortran_FLAGS=*|-DCMAKE_CXX_FLAGS=*) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_comin_build " '$acx_tmp'" ;;
esac
     shift
   done
   icon_comin_extra_args=
   if test "x$enable_comin" = xstatic; then :
  icon_comin_extra_args='-DBUILD_SHARED_LIBS=OFF'
      as_fn_append icon_comin_extra_args ' -DICON_DEP_LIBRARIES=$<TARGET_OBJECTS:ComIn::ComIn>'
else
  icon_comin_extra_args='-DBUILD_SHARED_LIBS=ON'
      as_fn_append icon_comin_extra_args " -DCMAKE_SHARED_LIBRARY_SUFFIX_CXX=.$acx_cv_shlib_ext"
fi
   if test "x$enable_delayed_config" = xyes; then :
  case $icon_comin_extra_args in #(
  *\$*) :
    icon_comin_extra_args=`$as_echo "$icon_comin_extra_args" | sed 's/\\$/$$/g'` ;; #(
  *) :
     ;;
esac
fi
   set dummy -DCMAKE_AR="$AR" -DCMAKE_RANLIB="$RANLIB" -DCMAKE_C_FLAGS="$subdir_CFLAGS $ICON_COMIN_CFLAGS $subdir_CPPFLAGS" -DCMAKE_Fortran_FLAGS="$subdir_FCFLAGS $ICON_COMIN_FCFLAGS" -DCMAKE_CXX_FLAGS="$subdir_CXXFLAGS $ICON_COMIN_CXXFLAGS $subdir_CPPFLAGS" -DCMAKE_BUILD_TYPE=None -DCMAKE_PREFIX_PATH="$bundled_CMAKE_PREFIX_PATH" -DCMAKE_INSTALL_LIBDIR="$libdir" -DCMAKE_INSTALL_INCLUDEDIR="$includedir" -DICON_DEP_SOURCE_DIR="${icon_abs_top_srcdir}/externals/comin" -DCOMIN_ENABLE_PYTHON_ADAPTER="$icon_comin_python" -DPython3_EXECUTABLE="$PYTHON" $icon_comin_extra_args; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_comin_build " '$acx_tmp'"
   done
   as_fn_append bundled_CMAKE_PREFIX_PATH "${bundled_CMAKE_PREFIX_PATH:+";"}${icon_abs_top_builddir}/externals/comin/build/_icon"
   as_fn_append bundled_includes "${FC_MOD_IN}externals/comin/build/_icon/mod "
   if test "x$enable_comin" = xstatic; then :
  BUNDLED_LIBFILES="externals/comin/build/_icon/libcomin.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/comin/build/_icon/libcomin.a: externals/comin/build;$as_nl"
else
  BUNDLED_LIBFILES="externals/comin/build/_icon/libcomin.$acx_cv_shlib_ext $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/comin/build/_icon/libcomin.$acx_cv_shlib_ext: externals/comin/build;$as_nl"
      if test "x$enable_rpaths" = xyes; then :
  ICON_LDFLAGS="$acx_cv_fc_rpath_flag$icon_abs_top_builddir/externals/comin/build/_icon $ICON_LDFLAGS"
fi
fi
   as_fn_append icon_pvcs_bundled_srcdirs ' externals/comin'
fi

if test "x$with_external_fortran_support" = xno; then :
  icon_subdir_srcdir="$srcdir/externals/fortran-support"
   icon_subdir_unique_file="src/mo_util_backtrace.F90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of FORTRAN-SUPPORT library ($icon_subdir_unique_file) in '$icon_subdir_srcdir': provide an external version of FORTRAN-SUPPORT library (--with-external-fortran-support) by setting FCFLAGS, LDFLAGS and LIBS accordingly" "$LINENO" 5
fi
      ICON_FORTRAN_SUPPORT_FCFLAGS=${ICON_FORTRAN_SUPPORT_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
      ICON_FORTRAN_SUPPORT_CFLAGS=${ICON_FORTRAN_SUPPORT_CFLAGS-$ICON_BUNDLED_CFLAGS}
                        acx_subdir_run_cmd_externals_fortran_support_build="'${CMAKE}'"
   acx_subdir_build_type_externals_fortran_support_build='cmake'
                                             acx_subdir_pre_adjust_cmake_args_nocomps_noutils
      acx_subdir_run_args_externals_fortran_support_build=$acx_subdir_pre_adjusted_cmake_args_nocomps_noutils
         asx_srcdirs_fn "externals/fortran-support/build"
      acx_tmp="$ac_top_srcdir/externals/fortran-support"
      case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
      as_fn_append acx_subdir_run_args_externals_fortran_support_build " '$acx_tmp'"
      as_fn_append extra_build_subdirs " externals/fortran-support/build"
   acx_subdir_run_externals_fortran_support_build=no
   as_fn_append acx_subdir_run_default_args_externals_fortran_support_build " '-DBUILD_TESTING=OFF'"
   eval "set dummy $acx_subdir_run_args_externals_fortran_support_build"; shift
   acx_subdir_run_args_externals_fortran_support_build=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  -DCMAKE_C_FLAGS=*|-DCMAKE_Fortran_FLAGS=*|-DCMAKE_CXX_*=*) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_fortran_support_build " '$acx_tmp'" ;;
esac
     shift
   done
   if test "x$icon_gpu_primary" = xopenacc; then :
  icon_fs_openacc=ON
else
  icon_fs_openacc=OFF
fi
   set dummy -DCMAKE_AR="$AR" -DCMAKE_RANLIB="$RANLIB" -DCMAKE_C_FLAGS="$subdir_CFLAGS $ICON_FORTRAN_SUPPORT_CFLAGS $subdir_CPPFLAGS" -DCMAKE_Fortran_FLAGS="$subdir_FCFLAGS $ICON_FORTRAN_SUPPORT_FCFLAGS" -DCMAKE_BUILD_TYPE=None -DCMAKE_PREFIX_PATH="$bundled_CMAKE_PREFIX_PATH" -DBUILD_SHARED_LIBS=OFF -DFS_ENABLE_OMP="$enable_openmp" -DFS_ENABLE_MIXED_PRECISION="$enable_mixed_precision" -DFS_ENABLE_SINGLE_PRECISION="$enable_single_precision" -DFS_ENABLE_OPENACC="$icon_fs_openacc"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_fortran_support_build " '$acx_tmp'"
   done
   as_fn_append bundled_CMAKE_PREFIX_PATH "${bundled_CMAKE_PREFIX_PATH:+";"}${icon_abs_top_builddir}/externals/fortran-support/build"
   as_fn_append bundled_includes "${FC_MOD_IN}externals/fortran-support/build/src/mod "
   BUNDLED_LIBFILES="externals/fortran-support/build/src/libfortran-support.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/fortran-support/build/src/libfortran-support.a: externals/fortran-support/build;$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi

if test "x$enable_ragnarok" = xyes; then :
  icon_subdir_srcdir="$srcdir/externals/kokkos"
   icon_subdir_unique_file='core/src/Kokkos_Core.hpp'
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of KOKKOS library ($icon_subdir_unique_file) in '$icon_subdir_srcdir'" "$LINENO" 5
fi
      ICON_KOKKOS_CXXFLAGS=${ICON_KOKKOS_CXXFLAGS-$ICON_BUNDLED_CXXFLAGS}
      ICON_KOKKOS_CUDAFLAGS=${ICON_KOKKOS_CUDAFLAGS-$ICON_BUNDLED_CUDAFLAGS}
      ICON_KOKKOS_HIPFLAGS=${ICON_KOKKOS_HIPFLAGS-$ICON_BUNDLED_HIPFLAGS}
                        acx_subdir_run_cmd_externals_kokkos_build="${icon_cmake_hipcc_workaround}'${CMAKE}'"
   acx_subdir_build_type_externals_kokkos_build='cmake'
                                             acx_subdir_pre_adjust_cmake_args_nocomps_noutils
      acx_subdir_run_args_externals_kokkos_build=$acx_subdir_pre_adjusted_cmake_args_nocomps_noutils
         asx_srcdirs_fn "externals/kokkos/build"
      acx_tmp="$ac_top_srcdir/utils/cmake-wrapper"
      case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
      as_fn_append acx_subdir_run_args_externals_kokkos_build " '$acx_tmp'"
      as_fn_append extra_build_subdirs " externals/kokkos/build"
   acx_subdir_run_externals_kokkos_build=no
   eval "set dummy $acx_subdir_run_args_ragnarok_build"; shift
   acx_subdir_run_args_ragnarok_build=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  -DCMAKE_C_*=*|-DCMAKE_Fortran_*=*|-DCMAKE_CXX_FLAGS=*) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_ragnarok_build " '$acx_tmp'" ;;
esac
     shift
   done
   icon_kokkos_extra_args=
   as_fn_append icon_kokkos_extra_args ' -DKokkos_ENABLE_SERIAL=ON'
   if test "x$enable_openmp" = xyes; then :
  as_fn_append icon_kokkos_extra_args ' -DKokkos_ENABLE_OPENMP=ON'
fi
   case $icon_gpu_secondary in #(
  cuda) :
    as_fn_append icon_kokkos_extra_args ' -DKokkos_ENABLE_CUDA=ON' ;; #(
  hip) :
    as_fn_append icon_kokkos_extra_args ' -DKokkos_ENABLE_HIP=ON' ;; #(
  *) :
     ;;
esac
   if test x"$icon_gpu_secondary" != xno; then :
  case $icon_gpu_secondary_arch in #(
  gfx*) :
    icon_tmp=`$as_echo_n "$icon_gpu_secondary_arch" | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` ;; #(
  *0) :
    icon_tmp=`$as_echo_n "$icon_gpu_secondary_arch" | sed 's/0$//'` ;; #(
  *) :
    icon_tmp=$icon_gpu_secondary_arch ;;
esac
      case $icon_tmp in #(
  30|32|35|37) :
    as_fn_append icon_kokkos_extra_args " -DKokkos_ARCH_KEPLER${icon_tmp}=ON" ;; #(
  50|52|53) :
    as_fn_append icon_kokkos_extra_args " -DKokkos_ARCH_MAXWELL${icon_tmp}=ON" ;; #(
  60|61) :
    as_fn_append icon_kokkos_extra_args " -DKokkos_ARCH_PASCAL${icon_tmp}=ON" ;; #(
  70|72) :
    as_fn_append icon_kokkos_extra_args " -DKokkos_ARCH_VOLTA${icon_tmp}=ON" ;; #(
  75) :
    as_fn_append icon_kokkos_extra_args " -DKokkos_ARCH_TURING${icon_tmp}=ON" ;; #(
  80|86) :
    as_fn_append icon_kokkos_extra_args " -DKokkos_ARCH_AMPERE${icon_tmp}=ON" ;; #(
  89) :
    as_fn_append icon_kokkos_extra_args " -DKokkos_ARCH_ADA${icon_tmp}=ON" ;; #(
  90) :
    as_fn_append icon_kokkos_extra_args " -DKokkos_ARCH_HOPPER${icon_tmp}=ON" ;; #(
  100|120) :
    as_fn_append icon_kokkos_extra_args " -DKokkos_ARCH_BLACKWELL${icon_tmp}=ON" ;; #(
  GFX*) :
    as_fn_append icon_kokkos_extra_args " -DKokkos_ARCH_AMD_${icon_tmp}=ON" ;; #(
  *) :
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to identify the Kokkos device architecture name" >&5
$as_echo "$as_me: WARNING: unable to identify the Kokkos device architecture name" >&2;} ;;
esac
fi
   set dummy -DCMAKE_AR="$AR" -DCMAKE_RANLIB="$RANLIB" -DCMAKE_CXX_FLAGS="$subdir_CXXFLAGS $ICON_KOKKOS_CXXFLAGS $subdir_CPPFLAGS" -DCMAKE_CUDA_FLAGS="$subdir_CUDAFLAGS $ICON_KOKKOS_CUDAFLAGS" -DCMAKE_CUDA_STANDARD_LIBRARIES="$LIBS" -DCMAKE_HIP_FLAGS="$subdir_HIPFLAGS $ICON_KOKKOS_HIPFLAGS" -DCMAKE_HIP_STANDARD_LIBRARIES="$LIBS" -DCMAKE_BUILD_TYPE=None -DCMAKE_PREFIX_PATH="$bundled_CMAKE_PREFIX_PATH" -DBUILD_SHARED_LIBS=OFF -DCMAKE_HIP_ARCHITECTURES=OFF -DICON_DEP_SOURCE_DIR="${icon_abs_top_srcdir}/externals/kokkos" -DICON_EXCLUDE_FROM_ALL='impl_git_version' -DKokkos_ENABLE_IMPL_MDSPAN=OFF -DKokkos_ENABLE_LIBDL=OFF -DKokkos_ENABLE_COMPILE_AS_CMAKE_LANGUAGE=ON $icon_kokkos_extra_args; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_kokkos_build " '$acx_tmp'"
   done
   as_fn_append bundled_CMAKE_PREFIX_PATH "${bundled_CMAKE_PREFIX_PATH:+";"}${icon_abs_top_builddir}/externals/kokkos/build/_icon"
   BUNDLED_LIBFILES="externals/kokkos/build/_icon/core/src/libkokkoscore.a externals/kokkos/build/_icon/containers/src/libkokkoscontainers.a externals/kokkos/build/_icon/simd/src/libkokkossimd.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/kokkos/build/_icon/core/src/libkokkoscore.a externals/kokkos/build/_icon/containers/src/libkokkoscontainers.a externals/kokkos/build/_icon/simd/src/libkokkossimd.a: externals/kokkos/build;$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi

if test "x$enable_aes" = xyes; then :
  icon_subdir_srcdir="$srcdir/externals/memman"
   icon_subdir_unique_file="src/bindings/fortran/memman_f.F90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of MEMMAN library ($icon_subdir_unique_file) in '$icon_subdir_srcdir'" "$LINENO" 5
fi
      ICON_MEMMAN_FCFLAGS=${ICON_MEMMAN_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
      ICON_MEMMAN_CFLAGS=${ICON_MEMMAN_CFLAGS-$ICON_BUNDLED_CFLAGS}
      ICON_MEMMAN_CXXFLAGS=${ICON_MEMMAN_CXXFLAGS-$ICON_BUNDLED_CXXFLAGS}
                        acx_subdir_run_cmd_externals_memman_build="'${CMAKE}'"
   acx_subdir_build_type_externals_memman_build='cmake'
                                             acx_subdir_pre_adjust_cmake_args_nocomps_noutils
      acx_subdir_run_args_externals_memman_build=$acx_subdir_pre_adjusted_cmake_args_nocomps_noutils
         asx_srcdirs_fn "externals/memman/build"
      acx_tmp="$ac_top_srcdir/utils/cmake-wrapper"
      case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
      as_fn_append acx_subdir_run_args_externals_memman_build " '$acx_tmp'"
      as_fn_append extra_build_subdirs " externals/memman/build"
   acx_subdir_run_externals_memman_build=no
   as_fn_append acx_subdir_run_default_args_externals_memman_build " '-DBUILD_TESTING=OFF'"
   eval "set dummy $acx_subdir_run_args_externals_memman_build"; shift
   acx_subdir_run_args_externals_memman_build=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  -DCMAKE_C_FLAGS=*|-DCMAKE_Fortran_FLAGS=*|-DCMAKE_CXX_FLAGS=*) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_memman_build " '$acx_tmp'" ;;
esac
     shift
   done
   icon_memman_extra_args=
   case $icon_gpu_secondary in #(
  cuda) :
    as_fn_append icon_memman_extra_args ' -DMM_ENABLE_BACKEND_CUDA=ON -DMM_ENABLE_BACKEND_HIP=OFF' ;; #(
  hip) :
    as_fn_append icon_memman_extra_args ' -DMM_ENABLE_BACKEND_CUDA=OFF -DMM_ENABLE_BACKEND_HIP=ON' ;; #(
  *) :
    as_fn_append icon_memman_extra_args ' -DMM_ENABLE_BACKEND_CUDA=OFF -DMM_ENABLE_BACKEND_HIP=OFF' ;;
esac
   set dummy -DCMAKE_AR="$AR" -DCMAKE_RANLIB="$RANLIB" -DCMAKE_C_FLAGS="$subdir_CFLAGS $ICON_MEMMAN_CFLAGS $subdir_CPPFLAGS" -DCMAKE_Fortran_FLAGS="$subdir_FCFLAGS $ICON_MEMMAN_FCFLAGS" -DCMAKE_CXX_FLAGS="$subdir_CXXFLAGS $ICON_MEMMAN_CXXFLAGS $subdir_CPPFLAGS" -DCMAKE_BUILD_TYPE=None -DCMAKE_PREFIX_PATH="$bundled_CMAKE_PREFIX_PATH" -DBUILD_SHARED_LIBS=OFF -DICON_DEP_SOURCE_DIR="${icon_abs_top_srcdir}/externals/memman" -DMM_BUILD_DOC=OFF -DMM_GENERATE_BINDINGS=OFF -DMM_ENABLE_C=ON -DMM_ENABLE_FORTRAN=ON $icon_memman_extra_args; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_memman_build " '$acx_tmp'"
   done
   as_fn_append bundled_CMAKE_PREFIX_PATH "${bundled_CMAKE_PREFIX_PATH:+";"}${icon_abs_top_builddir}/externals/memman/build/_icon"
   as_fn_append bundled_includes "${FC_MOD_IN}externals/memman/build/_icon/src/bindings/fortran/mod "
   BUNDLED_LIBFILES="externals/memman/build/_icon/src/bindings/fortran/libmemmanf.a externals/memman/build/_icon/src/bindings/c/libmemmanc.a externals/memman/build/_icon/src/bindings/cpp/libmemmancpp.a externals/memman/build/_icon/src/core/libmemman.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/memman/build/_icon/src/bindings/fortran/libmemmanf.a externals/memman/build/_icon/src/bindings/c/libmemmanc.a externals/memman/build/_icon/src/bindings/cpp/libmemmancpp.a externals/memman/build/_icon/src/core/libmemman.a: externals/memman/build;$as_nl"
   as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"
fi

icon_subdir_srcdir="$srcdir/externals/iconmath"
icon_subdir_unique_file="src/support/mo_math_constants.f90"
if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of ICONMATH library ($icon_subdir_unique_file) in '$icon_subdir_srcdir'" "$LINENO" 5
fi
ICON_ICONMATH_FCFLAGS=${ICON_ICONMATH_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
                     acx_subdir_run_cmd_externals_iconmath_build="'${CMAKE}'"
   acx_subdir_build_type_externals_iconmath_build='cmake'
                                             acx_subdir_pre_adjust_cmake_args_nocomps_noutils
      acx_subdir_run_args_externals_iconmath_build=$acx_subdir_pre_adjusted_cmake_args_nocomps_noutils
         asx_srcdirs_fn "externals/iconmath/build"
      acx_tmp="$ac_top_srcdir/externals/iconmath"
      case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
      as_fn_append acx_subdir_run_args_externals_iconmath_build " '$acx_tmp'"
      as_fn_append extra_build_subdirs " externals/iconmath/build"
   acx_subdir_run_externals_iconmath_build=no
as_fn_append acx_subdir_run_default_args_externals_iconmath_build " '-DBUILD_TESTING=OFF'"
eval "set dummy $acx_subdir_run_args_externals_iconmath_build"; shift
   acx_subdir_run_args_externals_iconmath_build=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  -DCMAKE_Fortran_FLAGS=*|-DCMAKE_C_*=*|-DCMAKE_CXX_*=*) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_iconmath_build " '$acx_tmp'" ;;
esac
     shift
   done
if test "x$icon_gpu_primary" = xopenacc; then :
  icon_im_openacc=ON
else
  icon_im_openacc=OFF
fi
set dummy -DCMAKE_AR="$AR" -DCMAKE_RANLIB="$RANLIB" -DCMAKE_Fortran_FLAGS="$subdir_FCFLAGS $ICON_ICONMATH_FCFLAGS" -DCMAKE_BUILD_TYPE=None -DCMAKE_PREFIX_PATH="$bundled_CMAKE_PREFIX_PATH" -DBUILD_SHARED_LIBS=OFF -DIM_ENABLE_LOOP_EXCHANGE="$enable_loop_exchange" -DIM_ENABLE_MIXED_PRECISION="$enable_mixed_precision" -DIM_ENABLE_SINGLE_PRECISION="$enable_single_precision" -DIM_ENABLE_DIM_SWAP="$enable_dim_swap" -DIM_ENABLE_OPENACC="$icon_im_openacc" -DIM_ENABLE_OPENMP="$enable_openmp"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_iconmath_build " '$acx_tmp'"
   done
as_fn_append bundled_CMAKE_PREFIX_PATH "${bundled_CMAKE_PREFIX_PATH:+";"}${icon_abs_top_builddir}/externals/iconmath/build"
if test "x$with_external_fortran_support" = xno; then :
  if test "x$enable_delayed_config" = xyes; then :
  as_fn_append BUNDLED_RULES "externals/iconmath/build/Makefile:| externals/fortran-support/build/Makefile$as_nl"
fi
   as_fn_append BUNDLED_RULES "externals/iconmath/build: externals/fortran-support/build$as_nl"
fi
as_fn_append bundled_includes "${FC_MOD_IN}externals/iconmath/build/src/support/mod "
as_fn_append bundled_includes "${FC_MOD_IN}externals/iconmath/build/src/horizontal/mod "
as_fn_append bundled_includes "${FC_MOD_IN}externals/iconmath/build/src/interpolation/mod "
BUNDLED_LIBFILES="externals/iconmath/build/src/interpolation/libiconmath-interpolation.a externals/iconmath/build/src/horizontal/libiconmath-horizontal.a externals/iconmath/build/src/support/libiconmath-support.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "externals/iconmath/build/src/interpolation/libiconmath-interpolation.a externals/iconmath/build/src/horizontal/libiconmath-horizontal.a externals/iconmath/build/src/support/libiconmath-support.a: externals/iconmath/build;$as_nl"
as_fn_append icon_pvcs_bundled_srcdirs " $icon_subdir_srcdir"

if test "x$enable_ragnarok" = xyes; then :
     ICON_RAGNAROK_FCFLAGS=${ICON_RAGNAROK_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
      ICON_RAGNAROK_CXXFLAGS=${ICON_RAGNAROK_CXXFLAGS-$ICON_BUNDLED_CXXFLAGS}
      ICON_RAGNAROK_CUDAFLAGS=${ICON_RAGNAROK_CUDAFLAGS-$ICON_BUNDLED_CUDAFLAGS}
      ICON_RAGNAROK_HIPFLAGS=${ICON_RAGNAROK_HIPFLAGS-$ICON_BUNDLED_HIPFLAGS}
                        acx_subdir_run_cmd_ragnarok_build="${icon_cmake_hipcc_workaround}'${CMAKE}'"
   acx_subdir_build_type_ragnarok_build='cmake'
                                             acx_subdir_pre_adjust_cmake_args_nocomps_noutils
      acx_subdir_run_args_ragnarok_build=$acx_subdir_pre_adjusted_cmake_args_nocomps_noutils
         asx_srcdirs_fn "ragnarok/build"
      acx_tmp="$ac_top_srcdir/ragnarok"
      case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
      as_fn_append acx_subdir_run_args_ragnarok_build " '$acx_tmp'"
      as_fn_append extra_build_subdirs " ragnarok/build"
   acx_subdir_run_ragnarok_build=no
   as_fn_append acx_subdir_run_default_args_ragnarok_build " '-DBUILD_TESTING=OFF'"
   eval "set dummy $acx_subdir_run_args_ragnarok_build"; shift
   acx_subdir_run_args_ragnarok_build=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  -DCMAKE_C_*=*|-DCMAKE_Fortran_FLAGS=*|-DCMAKE_CXX_FLAGS=*) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_ragnarok_build " '$acx_tmp'" ;;
esac
     shift
   done
   set dummy -DCMAKE_AR="$AR" -DCMAKE_RANLIB="$RANLIB" -DCMAKE_Fortran_FLAGS="$subdir_FCFLAGS $ICON_RAGNAROK_FCFLAGS" -DCMAKE_CXX_FLAGS="$subdir_CXXFLAGS $ICON_RAGNAROK_CXXFLAGS $subdir_CPPFLAGS" -DCMAKE_CUDA_FLAGS="$subdir_CUDAFLAGS $ICON_RAGNAROK_CUDAFLAGS" -DCMAKE_HIP_STANDARD_LIBRARIES="$LIBS" -DCMAKE_HIP_FLAGS="$subdir_HIPFLAGS $ICON_RAGNAROK_HIPFLAGS" -DCMAKE_HIP_STANDARD_LIBRARIES="$LIBS" -DCMAKE_BUILD_TYPE=None -DCMAKE_PREFIX_PATH="$bundled_CMAKE_PREFIX_PATH" -DBUILD_SHARED_LIBS=OFF -DRGK_ENABLE_STANDALONE=OFF -DRGK_ENABLE_PYTHON_BINDINGS=OFF -DRGK_ENABLE_SINGLE_PRECISION="$enable_single_precision" -DCMAKE_CUDA_ARCHITECTURES=OFF -DCMAKE_HIP_ARCHITECTURES=OFF; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_ragnarok_build " '$acx_tmp'"
   done
   if test "x$enable_delayed_config" = xyes; then :
  as_fn_append BUNDLED_RULES "ragnarok/build/Makefile:| externals/kokkos/build/Makefile$as_nl"
fi
   as_fn_append BUNDLED_RULES "ragnarok/build: externals/kokkos/build$as_nl"
   as_fn_append bundled_includes "${FC_MOD_IN}ragnarok/build/mod "
   BUNDLED_LIBFILES="ragnarok/build/libragnarok.a $BUNDLED_LIBFILES"
   as_fn_append BUNDLED_RULES "ragnarok/build/libragnarok.a: ragnarok/build;$as_nl"
fi

FCFLAGS="${bundled_includes}${FCFLAGS}"

############################# BUNDLED EXECUTABLES ##############################

if test x"$enable_hd" != xno; then :
  icon_subdir_srcdir="$srcdir/externals/hd"
   icon_subdir_unique_file="code/src/hd_driver.f90"
   if test ! -r "$icon_subdir_srcdir/$icon_subdir_unique_file"; then :
  as_fn_error $? "unable to find sources of the bundled version of HD model ($icon_subdir_unique_file) in '$icon_subdir_srcdir': disable building of the bundled Hydrological Discharge (HD) model (--without-bundled-hd)" "$LINENO" 5
fi
            ICON_HD_FCFLAGS=${ICON_HD_FCFLAGS-$ICON_BUNDLED_FCFLAGS}
                              asx_srcdirs_fn "externals/hd"
   acx_subdir_run_cmd_externals_hd="'$ac_top_srcdir/externals/hd/configure'"
   acx_subdir_build_type_externals_hd='config'
   acx_subdir_run_default_args_externals_hd=
         acx_subdir_pre_adjust_config_args
      acx_subdir_run_args_externals_hd=$acx_subdir_pre_adjusted_config_args
      if test "x$cache_file" = x'/dev/null'; then :
  acx_tmp=$cache_file
else
  case $cache_file in #(
  [\\/]* | ?:[\\/]*) :
    acx_tmp=$cache_file ;; #(
  *) :
    acx_tmp="$ac_top_build_prefix$cache_file" ;;
esac
         acx_tmp="$acx_tmp.externals.hd"
fi
      set dummy "--cache-file=$acx_tmp" "--srcdir=$ac_top_srcdir/externals/hd"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_hd " '$acx_tmp'"
   done
      as_fn_append extra_build_subdirs " externals/hd"
   acx_subdir_run_externals_hd=no
      eval "set dummy $acx_subdir_run_args_externals_hd"; shift
   acx_subdir_run_args_externals_hd=
   while test $# != 0; do
     acx_tmp=$1
     case $acx_tmp in #(
  BUILD_ENV=*|ICON_*FLAGS=*|CFLAGS=*|FCFLAGS=*|PYTHON=*) :
     ;; #(
  MPI_FCFLAGS=*|MPI_FCLIBS=*|NETCDF_FCFLAGS=*|NETCDF_FCLIBS=*) :
     ;; #(
  YAC_FCFLAGS=*|YAC_FCLIBS=*|PKG_CONFIG=*) :
     ;; #(
  -enable-rpaths|-enable-rpaths=*|--enable-rpaths|--enable-rpaths=*|-disable-rpaths|--disable-rpaths) :
     ;; #(
  -enable-silent-rules|-enable-silent-rules=*|--enable-silent-rules|--enable-silent-rules=*|-disable-silent-rules|--disable-silent-rules) :
     ;; #(
  -enable-mpi|-enable-mpi=*|--enable-mpi|--enable-mpi=*|-disable-mpi|--disable-mpi) :
     ;; #(
  -enable-resolution|-enable-resolution=*|--enable-resolution|--enable-resolution=*|-disable-resolution|--disable-resolution) :
     ;; #(
  -enable-coupling|-enable-coupling=*|--enable-coupling|--enable-coupling=*|-disable-coupling|--disable-coupling) :
     ;; #(
  *) :
           case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
        as_fn_append acx_subdir_run_args_externals_hd " '$acx_tmp'" ;;
esac
     shift
   done
      set dummy FCFLAGS="$subdir_FCFLAGS $ICON_HD_FCFLAGS" PYTHON="$PYTHON" MPI_FCFLAGS= MPI_FCLIBS= NETCDF_FCFLAGS= NETCDF_FCLIBS= YAC_FCLIBS= PKG_CONFIG= --enable-rpaths="$enable_rpaths" --enable-silent-rules="$enable_silent_rules" --enable-mpi="$enable_mpi" --enable-resolution="$enable_hd" --enable-coupling="$enable_coupling"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_hd " '$acx_tmp'"
   done
      if test "x$enable_coupling" = xyes; then :
  if test "x$with_external_yac" = xyes; then :
  set dummy YAC_FCFLAGS=; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_hd " '$acx_tmp'"
   done
else
  icon_hd_yac_lib="${icon_abs_top_builddir}/externals/yac/src/mci/libyac_mci.a ${icon_abs_top_builddir}/externals/yac/src/core/libyac_core.a"
            if test "x$with_external_mtime" = xno; then :
  as_fn_append icon_hd_yac_lib " ${icon_abs_top_builddir}/externals/mtime/build/src/libmtime.a"
               as_fn_append BUNDLED_RULES "externals/hd: externals/mtime/build$as_nl"
fi
            if test "x$with_external_yaxt" = xno; then :
  as_fn_append icon_hd_yac_lib " ${icon_abs_top_builddir}/externals/yaxt/src/.libs/libyaxt_c.a"
fi
            set dummy YAC_FCFLAGS="${FC_MOD_IN}${icon_abs_top_builddir}/externals/yac/src/mci" acx_cv_fc_module_YAC=yes acx_cv_fc_lib_func_YAC_FGET_VERSION="${icon_hd_yac_lib}"; shift
   for acx_tmp; do
     case $acx_tmp in #(
  *\'*) :
    acx_tmp=`$as_echo "$acx_tmp" | sed "s/'/'\\\\\\\\''/g"` ;; #(
  *) :
     ;;
esac
     as_fn_append acx_subdir_run_args_externals_hd " '$acx_tmp'"
   done
            as_fn_append BUNDLED_RULES "externals/hd: externals/yac$as_nl"
fi
fi
fi

######################## BUNDLED PACKAGES FINALIZATION #########################

icon_bundled_builddirs=$extra_build_subdirs


icon_bundled_cmake_builddirs=''

for icon_bundled_builddir in $icon_bundled_builddirs; do
  eval icon_bundled_type=\$acx_subdir_build_type_`$as_echo "$icon_bundled_builddir" | $as_tr_sh`
  if test "x$icon_bundled_type" = xcmake; then :
  as_fn_append icon_bundled_cmake_builddirs "${icon_bundled_cmake_builddirs:+ }$icon_bundled_builddir"
fi
done

if test "x$enable_delayed_config" = xyes; then :
     as_fn_append BUNDLED_RULES "$as_nl# Configure delayed bundled packages:
export FC CC CXX CUDACXX HIPCXX"
   icon_delayed_epilogue_list=
   for icon_bundled_builddir in $extra_build_subdirs; do
     eval as_val=\$acx_subdir_run_`$as_echo "$icon_bundled_builddir" | $as_tr_sh`
   if test "x$as_val" = xyes; then :

else
  as_fn_append icon_delayed_epilogue_list "$as_nl$icon_bundled_builddir"
        icon_bundled_config_cmd="`eval 'as_val=${'acx_subdir_run_cmd_\`$as_echo "$icon_bundled_builddir" | $as_tr_sh\`'};$as_echo "$as_val"'``eval 'as_val=${'acx_subdir_run_default_args_\`$as_echo "$icon_bundled_builddir" | $as_tr_sh\`'};$as_echo "$as_val"'` `eval 'as_val=${'acx_subdir_run_args_\`$as_echo "$icon_bundled_builddir" | $as_tr_sh\`'};$as_echo "$as_val"'`"
        eval icon_bundled_type=\$acx_subdir_build_type_`$as_echo "$icon_bundled_builddir" | $as_tr_sh`
        if test "x$icon_bundled_type" = xcmake; then :
  icon_bundled_silent_var='silent_CMAKE'
           icon_bundled_silent_suffix='>/dev/null'
else
  icon_bundled_silent_var='silent_CONFIG'
           icon_bundled_silent_suffix='--silent'
fi
        as_fn_append BUNDLED_RULES "$as_nl$as_nl$icon_bundled_builddir: \$(if \$(filter-out mostlyclean clean distclean,\$(or \$(MAKECMDGOALS),all)),$icon_bundled_builddir/Makefile)
$icon_bundled_builddir/Makefile: icon.mk
	\$($icon_bundled_silent_var)\$(MKDIR_P) \$(@D) && cd \$(@D) && $icon_bundled_config_cmd \$(if \$($icon_bundled_silent_var),$icon_bundled_silent_suffix)"
fi
   done
else
  for icon_bundled_builddir in $extra_build_subdirs; do
     eval "acx_subdir_run_`$as_echo "$icon_bundled_builddir" | $as_tr_sh`=yes"
   done
fi

############################ MAKEFILE CONDITIONALS #############################

if test "x$enable_silent_rules" = xyes; then :
  DEFAULT_VERBOSITY=0

else
  DEFAULT_VERBOSITY=1

fi

if test "x$enable_delayed_config" = xyes; then :
  DELAYED_CONFIG_ENABLED=''

else
  DELAYED_CONFIG_ENABLED='#'

fi

if test "x$enable_separate_mods" = xyes; then :
  SEPARATE_MODS_ENABLED=''

   SEPARATE_MODS_DISABLED='#'

else
  SEPARATE_MODS_ENABLED='#'

   SEPARATE_MODS_DISABLED=''

fi

if test "x$enable_jsbach" = xyes; then :
  JSBACH_ENABLED=''

else
  JSBACH_ENABLED='#'

fi

if test "x$enable_dace" = xyes; then :
  DACE_ENABLED=''

else
  DACE_ENABLED='#'

fi

if test "x$enable_emvorado" = xyes; then :
  EMVORADO_ENABLED=''

else
  EMVORADO_ENABLED='#'

fi

if test "x$enable_art" = xyes; then :
  ART_ENABLED=''

else
  ART_ENABLED='#'

fi

if test "x$enable_msgwam" = xyes; then :
  MSGWAM_ENABLED=''

else
  MSGWAM_ENABLED='#'

fi

COMIN_STATIC_ENABLED='#'

COMIN_SHARED_ENABLED='#'

case $enable_comin in #(
  static) :
    COMIN_STATIC_ENABLED= ;; #(
  shared) :
    COMIN_SHARED_ENABLED= ;; #(
  *) :
     ;;
esac

if test x"$enable_hd" != xno; then :
  HD_ENABLED=''

else
  HD_ENABLED='#'

fi

if test "x$enable_mpi" = xyes; then :
  MPI_ENABLED=''

   MPI_DISABLED='#'

else
  MPI_ENABLED='#'

   MPI_DISABLED=''

fi

if test "x$enable_openmp" = xyes; then :
  OPENMP_ENABLED=''

else
  OPENMP_ENABLED='#'

fi

if test x"$icon_gpu_primary" != xno; then :
  GPU_ENABLED=''

else
  GPU_ENABLED='#'

fi

if test "x$icon_gpu_secondary" = xcuda; then :
  CUDA_ENABLED=''

else
  CUDA_ENABLED='#'

fi

if test "x$icon_gpu_secondary" = xhip; then :
  HIP_ENABLED=''

else
  HIP_ENABLED='#'

fi

if test "x$enable_explicit_fpp" = xyes; then :
  FPP_ENABLED=''

else
  FPP_ENABLED='#'

fi

if test x"$enable_serialization" != xno; then :
  SB2_ENABLED=''

else
  SB2_ENABLED='#'

fi

MTIME_PYTHON_ENABLED='#'
YAC_PYTHON_ENABLED='#'
COMIN_PYTHON_ENABLED='#'
for icon_bundled_name in mtime yac comin; do
  if eval test \"x\$"icon_${icon_bundled_name}_python"\" = x"yes"; then :
  eval "`$as_echo "${icon_bundled_name}_PYTHON_ENABLED" | $as_tr_cpp`=''"
fi
done

if test "x$enable_pgi_inlib" = xyes; then :
  PGI_INLIB_ENABLED=''

   ac_config_files="$ac_config_files inlib.mk"

else
  PGI_INLIB_ENABLED='#'

fi

#################################### OUTPUT ####################################

ac_config_headers="$ac_config_headers config.h"

ac_config_files="$ac_config_files Makefile depgen.c.config depgen.f90.config deplist.config icon.mk run/SETUP.config"


ac_config_files="$ac_config_files collect.extra-libs run/collect.set-up.info"


ac_config_commands="$ac_config_commands run/set-up.info"


ac_config_commands="$ac_config_commands depfiles"


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

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test "x$no_recursion" != xyes; then :
  if test "x$silent" = xyes; then :
  acx_subdir_silent_arg="'--silent'"
else
  acx_subdir_silent_arg=
fi
            acx_subdir_run_any=no
            for acx_subdir_builddir in $extra_build_subdirs; do
              eval as_val=\$acx_subdir_run_`$as_echo "$acx_subdir_builddir" | $as_tr_sh`
   if test "x$as_val" = xyes; then :
  acx_subdir_run_any=yes
                 eval acx_subdir_fns=\$acx_subdir_run_before_`$as_echo "$acx_subdir_builddir" | $as_tr_sh`
                 if test -n "$acx_subdir_fns"; then :
  acx_tmp="=== running extra commands before configuring $acx_subdir_builddir"
                    $as_echo "$as_me:${as_lineno-$LINENO}: $acx_tmp" >&5
                    $as_echo "$acx_tmp" >&6
                    for acx_tmp in $acx_subdir_fns; do
                      eval "$acx_tmp"
                    done
fi
                 acx_tmp="=== configuring $acx_subdir_builddir"
                 $as_echo "$as_me:${as_lineno-$LINENO}: $acx_tmp" >&5
                 $as_echo "$acx_tmp" >&6
                 as_dir="$acx_subdir_builddir"; as_fn_mkdir_p
                 acx_subdir_run_cmd="`eval 'as_val=${'acx_subdir_run_cmd_\`$as_echo "$acx_subdir_builddir" | $as_tr_sh\`'};$as_echo "$as_val"'``eval 'as_val=${'acx_subdir_run_default_args_\`$as_echo "$acx_subdir_builddir" | $as_tr_sh\`'};$as_echo "$as_val"'` `eval 'as_val=${'acx_subdir_run_args_\`$as_echo "$acx_subdir_builddir" | $as_tr_sh\`'};$as_echo "$as_val"'`"
                 acx_subdir_run_cmd="( cd '$acx_subdir_builddir' && $acx_subdir_run_cmd $acx_subdir_silent_arg)"
                 { $as_echo "$as_me:${as_lineno-$LINENO}: running $acx_subdir_run_cmd" >&5
$as_echo "$as_me: running $acx_subdir_run_cmd" >&6;}
                 eval "$acx_subdir_run_cmd" || as_fn_error $? "configuration of $acx_subdir_builddir failed" "$LINENO" 5
                 eval acx_subdir_fns=\$acx_subdir_run_after_`$as_echo "$acx_subdir_builddir" | $as_tr_sh`
                 if test -n "$acx_subdir_fns"; then :
  acx_tmp="=== running extra commands after configuring $acx_subdir_builddir"
                    $as_echo "$as_me:${as_lineno-$LINENO}: $acx_tmp" >&5
                    $as_echo "$acx_tmp" >&6
                    for acx_tmp in $acx_subdir_fns; do
                      eval "$acx_tmp"
                    done
fi
fi
               done
               if test "x$acx_subdir_run_any" = xyes; then :
  $as_echo "===" >&6
                  $as_echo "$as_me:${as_lineno-$LINENO}: ===" >&5
fi
fi

: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

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


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

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


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

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

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

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

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

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


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


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

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

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

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


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

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

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

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

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

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

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


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

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi


# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p

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

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


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by icon $as_me 2026.04, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
icon config.status 2026.04
configured by $0, generated by GNU Autoconf 2.69,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2012 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'
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=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_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
    "inlib.mk") CONFIG_FILES="$CONFIG_FILES inlib.mk" ;;
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "depgen.c.config") CONFIG_FILES="$CONFIG_FILES depgen.c.config" ;;
    "depgen.f90.config") CONFIG_FILES="$CONFIG_FILES depgen.f90.config" ;;
    "deplist.config") CONFIG_FILES="$CONFIG_FILES deplist.config" ;;
    "icon.mk") CONFIG_FILES="$CONFIG_FILES icon.mk" ;;
    "run/SETUP.config") CONFIG_FILES="$CONFIG_FILES run/SETUP.config" ;;
    "collect.extra-libs") CONFIG_FILES="$CONFIG_FILES collect.extra-libs" ;;
    "run/collect.set-up.info") CONFIG_FILES="$CONFIG_FILES run/collect.set-up.info" ;;
    "run/set-up.info") CONFIG_COMMANDS="$CONFIG_COMMANDS run/set-up.info" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_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 >>"\$ac_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 < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @srcdir@ entries 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[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@srcdir@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
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 >"$ac_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_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

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

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


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
s&@MKDIR_P@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
 ;;

  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "collect.extra-libs":F) chmod +x "$ac_file" ;;
    "run/collect.set-up.info":F) chmod +x "$ac_file" ;;
    "run/set-up.info":C) run/collect.set-up.info "$ac_file" 2>&5 ||    as_fn_error $? "failed to create $ac_file" "$LINENO" 5 ;;
    "depfiles":C) ${MAKE-make} -f icon.mk dummy-depend >/dev/null 2>&5
   sleep 1
   touch icon.mk ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit 1
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi


if test "x$enable_delayed_config" = xyes; then :
  if test -n "$icon_delayed_epilogue_list"; then :
  $as_echo "${as_nl}The following directories will be configured at the build time:$icon_delayed_epilogue_list$as_nl" >&6
fi
fi
