[PATCH app-xdm 19/19] config: look for PAM support on darwin as well

Gaetan Nadon memsize at videotron.ca
Sun Oct 3 12:36:45 PDT 2010


There is an assumption that PAM support is not available on darwin.
A quick browse on the net indicates otherwise. It won't hurt
to do an AC_SEARCH_LIBS to find out.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac
index 69f251c..3a4ff3b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -106,17 +106,8 @@ AC_CHECK_DECL(key_setnet,
 #include <rpc/key_prot.h>
 ])
 
-# darwin could have PAM support, but not yet
-case $host_os in
-    darwin*)
-        use_pam_default=no
-        ;;
-    *)
-        use_pam_default=try
-        ;;
-esac
-
 # Check for PAM support
+use_pam_default=try
 AC_ARG_WITH(pam, AC_HELP_STRING([--with-pam],[Use PAM for authentication]),
 	[USE_PAM=$withval], [USE_PAM=$use_pam_default])
 if test "x$USE_PAM" != "xno" ; then
-- 
1.6.0.4



More information about the xorg-devel mailing list