This little patch fixes configure to stop and print a error message if
pam/pam-devel is missing while run configure for PolicyKit
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])
fi
fi
+
AM_CONDITIONAL(HAVE_PAM, test x$have_pam = xyes)
AC_SUBST(HAVE_PAM)
AC_SUBST(AUTH_LIBS)