build-sys: use a single ENABLE_LOGIND conditional
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 3 Apr 2017 00:12:36 +0000 (20:12 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Apr 2017 00:36:09 +0000 (20:36 -0400)
commit79f1c8f6194dc0a2ab1a1f718c1feef16e0d262e
treea3e80a0c069d4816786d848d5dcf32d01d0ef3c0
parenta75e27eb7006bc67345a3f28bf28a111a7540830
build-sys: use a single ENABLE_LOGIND conditional

We used ENABLE_LOGIND for the automake conditional, and HAVE_LOGIND
for the ifdef. That wasn't wrong, but it certainly was confusing.

Also, move the ifdeffery to avoid warning about unused static function
logind_set_wall_message() when logind is disabled.
configure.ac
src/systemctl/systemctl.c