summaryrefslogtreecommitdiffstats
path: root/debian/patches/63-add-utempter-switch.patch
blob: 3f65c2a1a51b0e557b046b6004ae6b64f7d10ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Add guarding commandline option around libutempter check
Author: Axel Beckert <abe@debian.org>
Forwarded: not-yet
Bug-Debian: https://bugs.debian.org/819781

--- a/configure.ac
+++ b/configure.ac
@@ -844,6 +844,8 @@
 ],
 [int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();], AC_DEFINE(GETUTENT), LIBS="$olibs")
 )
+AC_ARG_ENABLE(utempter, [  --enable-utempter       enable utempter support])
+if test "$enable_pam" = "yes"; then
 AC_CHECKING(ut_host)
 AC_TRY_COMPILE([
 #include <time.h>
@@ -860,6 +862,7 @@
   AC_DEFINE(HAVE_UTEMPTER)
   LIBS="$LIBS -lutempter"
 fi
+fi
 
 dnl
 dnl    ****  loadav  ****