Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
correct the use of AC_CHECK_HEADERS
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Apr 29, 2020
1 parent 45d6d07 commit e0d812f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build/pkgs/suitesparse/spkg-configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ SAGE_SPKG_CONFIGURE([suitesparse], [
AC_SEARCH_LIBS([cholmod_speye], [cholmod], [
AC_SEARCH_LIBS([umfpack_di_solve], [umfpack], [
AC_SEARCH_LIBS([SuiteSparse_version], [suitesparseconfig], [
AC_CHECK_HEADERS([SuiteSparse_config.h amd.h],
[suispa_header_found=yes])
AC_CHECK_HEADERS([suitesparse/SuiteSparse_config.h suitesparse/amd.h],
[suispa_header_found=yes])
AS_IF([test x$suispa_header_found = xyes], [],
[sage_spkg_install_suitesparse=yes])
AC_CHECK_HEADERS([suitesparse/SuiteSparse_config.h SuiteSparse_config.h], [
AC_CHECK_HEADERS([suitesparse/amd.h amd.h], [sage_spkg_install_suitesparse=no; break], [sage_spkg_install_suitesparse=yes])
break
], [sage_spkg_install_suitesparse=yes])
], [sage_spkg_install_suitesparse=yes])
], [
sage_spkg_install_suitesparse=yes])
Expand Down

0 comments on commit e0d812f

Please sign in to comment.