aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-03-19 11:42:18 +0200
committerSergey Poznyakoff <gray@gnu.org>2018-03-19 11:42:18 +0200
commitd01b9202121805a307e4856e35a4bc9234565f7e (patch)
tree7ab2b6cc8d9f8851c261a0c3acb8b98fef953fb5
parent85f2fd8d2772506911e95c3e4a0cb2538594b274 (diff)
downloadpies-d01b9202121805a307e4856e35a4bc9234565f7e.tar.gz
pies-d01b9202121805a307e4856e35a4bc9234565f7e.tar.bz2
Bugfixsysvinit
* configure.ac: Reset PAM_LIBS if pam_status is "no".
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index d1bb2a9..1090b48 100644
--- a/configure.ac
+++ b/configure.ac
@@ -105,19 +105,21 @@ if test "$status_pam" != "no"; then
105 [status_pam=yes], 105 [status_pam=yes],
106 [status_pam=no], $PAM_LIBS) 106 [status_pam=no], $PAM_LIBS)
107 else 107 else
108 status_pam=no 108 status_pam=no
109 fi 109 fi
110 if test $pam = yes && test $pam != $status_pam; then 110 if test $pam = yes && test $pam != $status_pam; then
111 AC_MSG_ERROR([required module PAM cannot be built because of missing prerequisites]) 111 AC_MSG_ERROR([required module PAM cannot be built because of missing prerequisites])
112 fi 112 fi
113fi 113fi
114 114
115AM_CONDITIONAL([PAM_COND], [test $status_pam = yes]) 115AM_CONDITIONAL([PAM_COND], [test $status_pam = yes])
116if test $status_pam = yes; then 116if test $status_pam = yes; then
117 AC_DEFINE_UNQUOTED(WITH_PAM, 1, [PAM support enabled]) 117 AC_DEFINE_UNQUOTED(WITH_PAM, 1, [PAM support enabled])
118else
119 PAM_LIBS=
118fi 120fi
119 121
120# Build inetd 122# Build inetd
121AC_ARG_ENABLE([inetd], 123AC_ARG_ENABLE([inetd],
122 AC_HELP_STRING([--enable-inetd], 124 AC_HELP_STRING([--enable-inetd],
123 [build and install a replacement for SBINDIR/inetd]), 125 [build and install a replacement for SBINDIR/inetd]),

Return to:

Send suggestions and report system problems to the System administrator.