diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-05 01:55:21 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-10 15:17:21 +0200 |
commit | 3721995872e0872bda9b77cf7ac94167015c73df (patch) | |
tree | 177fda17677daef9a792d54e3c6ef6ed42105824 /configure.ac | |
parent | bgpd: encap: add attribute handling (diff) | |
download | frr-3721995872e0872bda9b77cf7ac94167015c73df.tar.xz frr-3721995872e0872bda9b77cf7ac94167015c73df.zip |
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>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 151214b88..d9f67def4 100755 --- a/configure.ac +++ b/configure.ac @@ -337,10 +337,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) @@ -707,7 +713,6 @@ dnl [TODO] on Linux, and in [TODO] on Solaris. AC_DEFINE(rl_completion_matches,completion_matches,Old readline) fi ;; - "no" ) VTYSH="";; esac AC_SUBST(LIBREADLINE) AM_CONDITIONAL(VTYSH, test "x$VTYSH" = "xvtysh") |