|
|
@ -34,11 +34,11 @@ dnl NOTE : odd configurations like ifc + gcc still await in the mist of the unkn
|
|
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
|
|
# NOTE: the literal for version (the second argument to AC_INIT should be a literal!)
|
|
|
|
# NOTE: the literal for version (the second argument to AC_INIT should be a literal!)
|
|
|
|
AC_INIT([AMG4PSBLAS],1.0.0, [https://github.com/sfilippone/amg4psblas/issues])
|
|
|
|
AC_INIT([AMG4PSBLAS],1.1.0, [https://github.com/sfilippone/amg4psblas/issues])
|
|
|
|
|
|
|
|
|
|
|
|
# VERSION is the file containing the PSBLAS version code
|
|
|
|
# VERSION is the file containing the PSBLAS version code
|
|
|
|
# FIXME
|
|
|
|
# FIXME
|
|
|
|
amg4psblas_cv_version="1.0.0"
|
|
|
|
amg4psblas_cv_version="1.1.0"
|
|
|
|
|
|
|
|
|
|
|
|
# A sample source file
|
|
|
|
# A sample source file
|
|
|
|
AC_CONFIG_SRCDIR([amgprec/amg_prec_type.f90])
|
|
|
|
AC_CONFIG_SRCDIR([amgprec/amg_prec_type.f90])
|
|
|
@ -559,31 +559,14 @@ if test "x$pac_cv_psblas_patchlevel" == "xunknown"; then
|
|
|
|
AC_MSG_ERROR([PSBLAS patchlevel "$pac_cv_psblas_patchlevel".])
|
|
|
|
AC_MSG_ERROR([PSBLAS patchlevel "$pac_cv_psblas_patchlevel".])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if (( $pac_cv_psblas_major < 3 )) ||
|
|
|
|
if (( $pac_cv_psblas_major < 3 )) ||
|
|
|
|
( (( $pac_cv_psblas_major == 3 )) && (( $pac_cv_psblas_minor < 7 ))) ; then
|
|
|
|
( (( $pac_cv_psblas_major == 3 )) && (( $pac_cv_psblas_minor < 8 ))) ; then
|
|
|
|
AC_MSG_ERROR([I need at least PSBLAS version 3.7.])
|
|
|
|
AC_MSG_ERROR([I need at least PSBLAS version 3.8.0])
|
|
|
|
else
|
|
|
|
else
|
|
|
|
AC_MSG_NOTICE([Am configuring with PSBLAS version $pac_cv_psblas_major.$pac_cv_psblas_minor.$pac_cv_psblas_patchlevel.])
|
|
|
|
AC_MSG_NOTICE([Am configuring with PSBLAS version $pac_cv_psblas_major.$pac_cv_psblas_minor.$pac_cv_psblas_patchlevel.])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
PAC_FORTRAN_PSBLAS_INTEGER_SIZES()
|
|
|
|
PAC_ARG_WITH_IPK
|
|
|
|
AC_MSG_NOTICE([PSBLAS size of LPK "$pac_cv_psblas_lpk".])
|
|
|
|
PAC_ARG_WITH_LPK
|
|
|
|
if test x"$pac_cv_psblas_lpk" == x8"" ; then
|
|
|
|
# Defaults for IPK/LPK
|
|
|
|
|
|
|
|
if test x"$pac_cv_ipk_size" == x"" ; then
|
|
|
|
|
|
|
|
pac_cv_ipk_size=4
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x"$pac_cv_lpk_size" == x"" ; then
|
|
|
|
|
|
|
|
pac_cv_lpk_size=8
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Enforce sensible combination
|
|
|
|
|
|
|
|
if (( $pac_cv_lpk_size < $pac_cv_ipk_size )); then
|
|
|
|
|
|
|
|
AC_MSG_NOTICE([[Invalid combination of size specs IPK ${pac_cv_ipk_size} LPK ${pac_cv_lpk_size}. ]]);
|
|
|
|
|
|
|
|
AC_MSG_NOTICE([[Forcing equal values]])
|
|
|
|
|
|
|
|
pac_cv_lpk_size=$pac_cv_ipk_size;
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DIPK${pac_cv_ipk_size} $FDEFINES";
|
|
|
|
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DLPK${pac_cv_lpk_size} $FDEFINES";
|
|
|
|
|
|
|
|
CDEFINES="-DIPK${pac_cv_ipk_size} -DLPK${pac_cv_lpk_size} $CDEFINES";
|
|
|
|
|
|
|
|
if test x"$pac_cv_lpk_size" == x8"" ; then
|
|
|
|
|
|
|
|
CXXDEFINES="-DBIT64 $CXXDEFINES";
|
|
|
|
CXXDEFINES="-DBIT64 $CXXDEFINES";
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|