From c4c134d1a1745baa3491e6f6d999f8e6f1ef5239 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Wed, 27 Mar 2019 10:52:03 -0400 Subject: Remove duplicate check for libelogind Also default to no, since elogind is not officially supported. --- configure.ac | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1390ba0..a71617f 100644 --- a/configure.ac +++ b/configure.ac @@ -119,13 +119,11 @@ dnl ==================================================================== AC_ARG_WITH(elogind, AS_HELP_STRING([--with-elogind], [Use libelogind instead of libsystemd-login]),, - with_elogind=auto) + with_elogind=no) use_elogind=no -if test "x$with_elogind" != "xno"; then - PKG_CHECK_MODULES(LIBELOGIND,[libelogind], [use_elogind=yes], - [PKG_CHECK_MODULES([LIBELOGIND], [libelogind], - [use_elogind=yes], [use_elogind=no])]) +if test "x$with_elogind" = "xyes"; then + PKG_CHECK_MODULES(LIBELOGIND,[libelogind], [use_elogind=yes], [use_elogind=no]) if test "x$use_elogind" = "xyes"; then AC_DEFINE([HAVE_ELOGIND], 1, [elogind support]) -- cgit v1.2.1