diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 964ea8058..0d3573c84 100644 --- a/configure.ac +++ b/configure.ac @@ -212,6 +212,11 @@ WITH_INITSCRIPT if test x$initscript = xsystemd; then WITH_SYSTEMD_UNIT_DIR WITH_SYSTEMD_CONF_DIR +else + AC_CHECK_PROG(HAVE_SERVICE, service, yes, no) + AS_IF([test x$HAVE_SERVICE = xyes], + [AC_DEFINE(HAVE_SERVICE, 1, + [Whether the service command is available])]) fi PKG_CHECK_MODULES([DBUS],[dbus-1]) |