From ef1fc80c078ff72bf66a52e1eec293e1d7afde11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Fri, 10 Feb 2012 14:59:40 +0100 Subject: [PATCH] Initialise maths support early. --- configure.ac | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 277c5445..3c5a79a6 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,10 @@ AC_PROG_F77 AC_F77_WRAPPERS # Checks for libraries. + +# Bring in numerics support (standard library component) +AC_SEARCH_LIBS([sqrt], [m]) + AX_LAPACK AX_BOOST_BASE([1.37]) AX_BOOST_SYSTEM @@ -49,19 +53,16 @@ AC_TYPE_SIZE_T AC_CHECK_TYPES([ptrdiff_t]) # Checks for library functions. -AC_CHECK_FUNCS([floor memset memmove strchr strtol]) +AC_CHECK_FUNCS([floor memset memmove strchr strtol sqrt pow]) AC_FUNC_STRTOD -AC_SEARCH_LIBS([sqrt], [m]) -AC_CHECK_FUNCS([sqrt pow]) - AC_SEARCH_LIBS([amd_free], [amd], [amd_lib=yes], [amd_lib=no]) # From SuiteSparse version 3.7, umfpack may depend on more libs AC_SEARCH_LIBS([cholmod_l_start], [cholmod]) AC_SEARCH_LIBS([colamd_set_defaults], [colamd]) -# According to docs, umfpack may depend on these, too, +# According to docs, UMFPACK may depend on these, too, # but they seem unneeded for our usage. # AC_SEARCH_LIBS([???], [camd]) # AC_SEARCH_LIBS([???], [ccolamd])