From e0513e6d4a76d4929b1a303457a70ab7cd204f8f Mon Sep 17 00:00:00 2001 From: v1j4y Date: Tue, 9 Aug 2022 16:01:26 +0200 Subject: [PATCH] Configure script for qmckl_dgemm. --- configure.ac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configure.ac b/configure.ac index 1544bcc..77632fd 100644 --- a/configure.ac +++ b/configure.ac @@ -190,6 +190,24 @@ AS_IF([test "x$with_trexio" != xno], [ PKG_CFLAGS="$PKG_CFLAGS $TREXIO_CFLAGS" PKG_LIBS="$PKG_LIBS $TREXIO_LIBS" +# QMCKL_DGEMM + +AC_ARG_WITH(qmckldgemm, [AS_HELP_STRING([--without-qmckldgemm],[disable support for QMCKLDGEMM])], + with_qmckldgemm=$withval, with_qmckldgemm=no) + +AS_IF([test "x$with_qmckldgemm" != xno], [ + AC_DEFINE([HAVE_QMCKLDGEMM], [1], [Define if your have libqmckldgemm]) + ARGS="${ARGS} qmckldgemm" + AC_CHECK_LIB([qmckldgemm], [qmckl_packed_matrix_create], + [], + [AS_IF([test "x$with_qmckldgemm" != xcheck], + [PKG_CHECK_MODULES([QMCKLDGEMM], [qmckldgemm]) ]) + ]) +]) + +PKG_CFLAGS="$PKG_CFLAGS $QMCKLDGEMM_CFLAGS" +PKG_LIBS="$PKG_LIBS $QMCKLDGEMM_LIBS" + ## BLAS AX_BLAS([], [AC_MSG_ERROR([BLAS was not found.])])