X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=configure.ac;h=ae69aa7f45d0de93f2e5d6b74e2bf8a1d57afb60;hp=24b3e123ba9493a3ce82bbff280cad60365912a0;hb=bfebf96caf375ab52e4df396f3383851d5ed2647;hpb=0f8817a4f973e16d9e174e7dd2310155b881a0ed diff --git a/configure.ac b/configure.ac index 24b3e12..ae69aa7 100644 --- a/configure.ac +++ b/configure.ac @@ -105,10 +105,8 @@ AC_ARG_ENABLE([systemd], AM_CONDITIONAL(WITH_SYSTEMD, test "x${enable_systemd}" = "xyes") AM_COND_IF([WITH_SYSTEMD], AC_DEFINE([SYSTEMD], 1, [Enable support for systemd notifications])) - -if test "x${enable_systemd}" = "xyes"; then - PKG_CHECK_MODULES([systemd], [systemd]) -fi +AS_IF([test "x${enable_systemd}" = "xyes"], [ + PKG_CHECK_MODULES([systemd], [systemd])]) # # Enable Callback Protocol Support, disabled by default