diff options
author | Ray Strode <rstrode@redhat.com> | 2016-09-06 15:33:30 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2016-09-06 15:49:01 -0400 |
commit | 316c531e53bf30a0ddf17c038c1943e8fbf76af3 (patch) | |
tree | c73daf591f8fa67b49d549fc6392c481ede4cd7c /configure.ac | |
parent | c579c8fc5d67817c1aad0e57254c828caf72ee3a (diff) |
configure: actually define HAVE_GETUSERSHELL
currently we check for it but never actually set it, leading to
dead code.
This commit fixes that.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7348a4c..2bd1dc1 100644 --- a/configure.ac +++ b/configure.ac @@ -213,6 +213,11 @@ if test "$wtmpx_found" = "no" ; then fi AC_DEFINE_UNQUOTED([PATH_WTMP], [$wtmpx_found], [Path to wtmpx file]) +AC_CHECK_LIB(c, getusershell, have_getusershell=yes, have_getusershell=no) +if test x$have_getusershell = xyes; then + AC_DEFINE(HAVE_GETUSERSHELL, 1, [Define i getusershell() is available]) +fi + dnl --------------------------------------------------------------------------- dnl - gtk-doc Documentation dnl --------------------------------------------------------------------------- |