From bdbf74f882a3c14fe852c8da91ae899eac1472a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Briano?= Date: Mon, 11 Mar 2013 20:32:42 -0300 Subject: [PATCH] Fix systemd detection The EFL_OPTIONAL_DEPEND_PKG sets have_systemd=no before checking, so we need to pass the want variable instead or it will always be disabled. --- configure.ac | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 943bab540a..9b8f419b5f 100644 --- a/configure.ac +++ b/configure.ac @@ -292,10 +292,8 @@ AM_CONDITIONAL([HAVE_CRYPTO_OPENSSL], [test "${build_crypto}" = "openssl"]) # check for systemd library if requested if test "x{want_systemd}" = "xyes"; then PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon], - [have_systemd="yes"], - [have_systemd="no"]) -else - have_systemd="no" + [want_systemd="yes"], + [want_systemd="no"]) fi #### Checks for header files @@ -1747,7 +1745,7 @@ if test "x${have_glib}" = "xno"; then want_g_main_loop="no" fi -EFL_OPTIONAL_DEPEND_PKG([ECORE], [${have_systemd}], [SYSTEMD], [libsystemd-daemon]) +EFL_OPTIONAL_DEPEND_PKG([ECORE], [${want_systemd}], [SYSTEMD], [libsystemd-daemon]) EFL_ADD_FEATURE([ECORE], [systemd-daemon], [${have_systemd}]) EFL_ADD_FEATURE([ECORE], [glib])