antognolli pushed a commit to branch master.

http://git.enlightenment.org/tools/clouseau.git/commit/?id=d95ff67dd64efd1ff8574a8a0d8c92dfb6e3c4ad

commit d95ff67dd64efd1ff8574a8a0d8c92dfb6e3c4ad
Author: Rafael Antognolli <rafael.antogno...@intel.com>
Date:   Thu Oct 3 15:52:00 2013 -0300

    Make systemd config files installation optional.
---
 configure.ac | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 676f464..491b931 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,13 +62,26 @@ PKG_CHECK_MODULES([EFL],
    ]
  )
 
+want_systemd="yes"
 EFL_ENABLE_BETA_API_SUPPORT
+AC_ARG_ENABLE([systemd],
+   [AC_HELP_STRING([--disable-systemd],
+       [disable systemd integration. @<:@default=enabled@:>@])],
+   [
+    if test "x${enableval}" = "xyes" ; then
+       want_systemd="yes"
+    else
+       want_systemd="no"
+    fi
+   ])
 
-# Detect systemd user session directory properly
-EFL_PKG_CHECK_VAR([USER_SESSION_DIR], [systemd], [systemduserunitdir],
-        [have_systemd_user_session="yes"], [have_systemd_user_session="no"])
+if test "x${want_systemd}" = "xyes"; then
+    # Detect systemd user session directory properly
+    EFL_PKG_CHECK_VAR([USER_SESSION_DIR], [systemd], [systemduserunitdir],
+            [have_systemd_user_session="yes"], 
[have_systemd_user_session="no"])
+    AC_SUBST([USER_SESSION_DIR])
+fi
 AM_CONDITIONAL([HAVE_SYSTEMD_USER_SESSION], [test 
"x${have_systemd_user_session}" = "xyes"])
-AC_SUBST([USER_SESSION_DIR])
 
 ### Checks for linker characteristics
 lt_enable_auto_import=""

-- 


Reply via email to