From 2fd6d10530a1c70a6552e703b7a5fd02029e5bc0 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 9 Sep 2024 15:51:21 -0400 Subject: [PATCH] Use new CHECK_NMZ_MACRO to check if we need to link against nauty Previously, we always linked against nauty, but it might not be necessary if libnormaliz was built w/o the nauty package --- M2/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/M2/configure.ac b/M2/configure.ac index a7a3111337..6842948b4e 100644 --- a/M2/configure.ac +++ b/M2/configure.ac @@ -1043,9 +1043,10 @@ AS_IF([test $BUILD_normaliz = no], AC_MSG_CHECKING([for libnormaliz]) AC_LANG(C++) SAVELIBS=$LIBS - LIBS="$LIBS -lnormaliz -lnauty -lgmp" + LIBS="$LIBS -lnormaliz -lgmp" CHECK_NMZ_PACKAGE([ENFNORMALIZ], [-leantic -leanticxx]) CHECK_NMZ_PACKAGE([NMZ_COCOA], [-lcocoa]) + CHECK_NMZ_PACKAGE([NMZ_NAUTY], [-lnauty]) AC_LINK_IFELSE( [AC_LANG_PROGRAM([ #include