configure: Ensure systemd development is present

If a users specifies that they should use systemd
then ensure that the systemd can be compiled against it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>

Conflicts:
	configure.ac
This commit is contained in:
Donald Sharp 2016-06-04 19:55:21 -04:00
parent 8c05b72b5a
commit 97da92655c

View File

@ -328,10 +328,16 @@ if test x"${enable_time_check}" != x"no" ; then
fi
fi
if test "${enable_systemd}" = "yes" ; then
AC_DEFINE(HAVE_SYSTEMD,,Compile systemd support in)
LIBS="$LIBS -lsystemd "
fi
case "${enable_systemd}" in
"no") ;;
"yes")
AC_CHECK_LIB(systemd, sd_notify, LIBS="$LIBS -lsystemd")
if test $ac_cv_lib_systemd_sd_notify = no; then
AC_MSG_ERROR([enable systemd has been specified but systemd development env not found on your system])
fi
;;
"*") ;;
esac
if test "${enable_poll}" = "yes" ; then
AC_DEFINE(HAVE_POLL,,Compile systemd support in)