changeset 29355:2a4998b97990

build: Consider SPQR dependency on cholmod in configure check (bug #57033). * configure.ac: Link with cholmod libs for SPQR check.
author Markus Mützel <markus.muetzel@gmx.de>
date Sun, 07 Feb 2021 11:16:54 +0100
parents 6c2fa2293242
children 65c57984a65e
files configure.ac
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Sat Feb 06 11:14:13 2021 +0100
+++ b/configure.ac	Sun Feb 07 11:16:54 2021 +0100
@@ -2146,11 +2146,14 @@
 
 ### Check for SPQR library
 
+save_LIBS="$LIBS"
+LIBS="$CHOLMOD_LIBS $LIBS"
 OCTAVE_CHECK_LIB(spqr, SPQR,
   [SPQR library not found.  This will result in some lack of functionality for sparse matrices.],
   [suitesparse/SuiteSparseQR.hpp SuiteSparseQR.hpp],
   [SuiteSparseQR_C],
   [C++], [don't use SPQR library, disable some sparse matrix functionality])
+LIBS="$save_LIBS"
 
 ### Check for CXSparse library