PolicyKit: Branch 'master'

Danny Kukawka dkukawka at kemper.freedesktop.org
Mon Aug 21 11:30:23 PDT 2006


 configure.in |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

New commits:
diff-tree ae74decdae3b087e92f5d7408d05f3eef8d72718 (from 1043f61430e1d06c0d44a4ad2146e66313f0a4ad)
Author: Danny Kukawka <danny.kukawka at web.de>
Date:   Mon Aug 21 20:28:09 2006 +0200

    stop configure if pam/pam-devel is missing
    
    This little patch fixes configure to stop and print a error message if
    pam/pam-devel is missing while run configure for PolicyKit

diff --git a/configure.in b/configure.in
index ff061fd..9443c86 100644
--- a/configure.in
+++ b/configure.in
@@ -220,7 +220,9 @@ dnl ------------------------------------
 
 have_pam=no
 AC_CHECK_LIB(pam, pam_start, have_pam=yes)
-if test "x$have_pam" = "xyes"; then
+if test x$have_pam = xno; then
+    AC_ERROR([Could not find pam/pam-devel, please install the needed packages.])
+else
     AUTH_LIBS="${AUTH_LIBS} -lpam"
     AC_DEFINE(HAVE_PAM, 1, [Define if PAM support is included])
 
@@ -258,6 +260,7 @@ if test "x$have_pam" = "xyes"; then
     fi
  
 fi
+
 AM_CONDITIONAL(HAVE_PAM, test x$have_pam = xyes)
 AC_SUBST(HAVE_PAM)
 AC_SUBST(AUTH_LIBS)



More information about the hal-commit mailing list