]> git.meshlink.io Git - catta/commitdiff
systemd: update configure.ac snippet
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Oct 2010 00:04:50 +0000 (02:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Oct 2010 00:04:50 +0000 (02:04 +0200)
configure.ac

index 2d0c07978e70ae62b7d52abea987aba889322d33..f2377b750d1c447d70b1601ae2b57021f00263d7 100644 (file)
@@ -1080,8 +1080,10 @@ AC_ARG_WITH([systemdsystemunitdir],
         AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
         [],
         [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
-AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
-AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir"])
+if test "x$with_systemdsystemunitdir" != xno; then
+        AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
+fi
+AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
 
 # ==========================================================================
 AC_CONFIG_FILES([