From ee770d0d1e31b5ef0344415bee04d9e87ac56679 Mon Sep 17 00:00:00 2001 From: DRC Date: Thu, 30 Sep 2010 07:41:56 +0000 Subject: [PATCH] OS X has the PAM library, but only 10.6 has the headers, so check for those. NOTE: a compiler check is forced because, when cross-compiling on 10.6 using the 10.5 or 10.4 SDK, the preprocessor will detect the headers in /usr/include, but the compiler can't compile them, since the SDK does not have those headers. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4149 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4ea07063..a5ebbff6 100644 --- a/configure.ac +++ b/configure.ac @@ -87,8 +87,10 @@ AC_SUBST([GNUTLS_LIBS]) AM_CONDITIONAL([HAVE_GNUTLS], [ ! test "x$GNUTLS_LIBS" = x ]) AC_CHECK_LIB([pam], [pam_start], - [PAM_LIBS='-lpam' - AC_DEFINE(HAVE_PAM, 1, [PAM available])]) + [AC_CHECK_HEADER([security/pam_appl.h], + [PAM_LIBS='-lpam' + AC_DEFINE(HAVE_PAM, 1, [PAM available])], + [], [#include ])]) AC_SUBST([PAM_LIBS]) AM_CONDITIONAL([HAVE_PAM], [ ! test "x$PAM_LIBS" = x ]) -- 2.39.5