Skip to content

Commit

Permalink
configure.ac: check python library is available
Browse files Browse the repository at this point in the history
  • Loading branch information
nfurmento committed Jan 16, 2024
1 parent 18e6fd8 commit 9afb9af
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3982,6 +3982,19 @@ then
fi
fi
fi
if test "x$enable_starpupy" != xno
then
AC_CHECK_LIB([python$PYTHON_VERSION], [PyErr_Print], [have_python_lib=yes], [have_python_lib=no])
if test "$have_python_lib" = "no" ; then
if test "x$enable_starpupy" = xyes ; then
AC_MSG_ERROR([Python library missing, cannot build StarPU python interface (consider installing python-dev)])
else
AC_MSG_WARN([Python library missing, cannot build StarPU python interface (consider installing python-dev)])
enable_starpupy=no
fi
fi
fi

if test "x$enable_starpupy" != xno
then
CPPFLAGS=${SAVED_CPPFLAGS}
Expand Down

0 comments on commit 9afb9af

Please sign in to comment.