diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-20 21:13:25 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-20 21:13:25 +0200 |
commit | 92849a1a87f2c74a3017b30fec90c46919761f79 (patch) | |
tree | 1f35e4ffd5e942ca7c25c751a46b7fa1f521887b /plugins/Makefile.am | |
parent | 4083622f86e1fe0fef1e81f23a2ca7a4614ea481 (diff) | |
download | monitoring-plugins-92849a1a87f2c74a3017b30fec90c46919761f79.tar.gz |
check_users: Use utmpx(5) only if available
For systems that don't provide an utmpx(5) interface, restore the code
that was replaced in commit 3e622f3a47bc7d31f22513a79892c3c52febd2d3.
Diffstat (limited to 'plugins/Makefile.am')
-rw-r--r-- | plugins/Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 64969dbf..031dd251 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -112,6 +112,10 @@ check_ide_smart_LDADD = $(BASEOBJS) negate_LDADD = $(BASEOBJS) urlize_LDADD = $(BASEOBJS) +if !HAVE_UTMPX +check_users_LDADD += popen.o +endif + ############################################################################## # secondary dependencies |