Commit 64ec6ec2 authored by Andreas Marek's avatar Andreas Marek

Allow to disable legacy interface via configure

parent f4aece79
This diff is collapsed.
......@@ -1222,6 +1222,18 @@ if test x"${USE_ASSUMED_SIZE}" = x"yes" ; then
AC_DEFINE([USE_ASSUMED_SIZE],[1],[for performance reasons use assumed size Fortran arrays, even if not debuggable])
fi
dnl check for legacy interface
AC_MSG_CHECKING(whether legacy interface is requested)
AC_ARG_ENABLE([legacy-interface],
AS_HELP_STRING([--enable-legacy-interface],
[check whether legacy interface should be provided, default yes]),
[provide_legacy_interface=yes],
[provide_legacy_interface=no])
AC_MSG_RESULT([$provide_legacy_interface])
if test x"${enableval}" = x"no" ; then
provide_legacy_interface=no
fi
if test x"${want_single_precision}" = x"yes" ; then
AC_DEFINE([WANT_SINGLE_PRECISION_REAL],[1],[build also single-precision for real calculation])
AC_DEFINE([WANT_SINGLE_PRECISION_COMPLEX],[1],[build also single-precision for complex calculation])
......@@ -1229,6 +1241,11 @@ fi
AM_CONDITIONAL([WANT_SINGLE_PRECISION_REAL],[test x"$want_single_precision" = x"yes"])
AM_CONDITIONAL([WANT_SINGLE_PRECISION_COMPLEX],[test x"$want_single_precision" = x"yes"])
AM_CONDITIONAL([WITH_LEGACY_INTERFACE],[test x"$provide_legacy_interface" = x"yes"])
if test x"${provide_legacy_interface}" = x"yes"; then
AC_DEFINE([WITH_LEGACY_INTERFACE], [1], [provide legacy interface])
fi
AC_SUBST([MPI_BINARY])
AC_SUBST([WITH_MKL])
AC_SUBST([WITH_BLACS])
......@@ -1313,7 +1330,6 @@ else
AC_MSG_RESULT([no])
fi
AC_OUTPUT
if test "${can_compile_avx}" = "no" ; then
......@@ -1344,3 +1360,4 @@ echo "* the next stable release. *"
echo "***********************************************************************"
echo " "
make -f $srcdir/generated_headers.am generated-headers top_srcdir="$srcdir"
......@@ -68,8 +68,8 @@
program print_available_elpa2_kernels
use precision
use elpa1
use elpa2
!use elpa1_impl
!use elpa2
use elpa2_utilities
use elpa2_utilities_private
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment