Changeset 4794
- Timestamp:
- Dec 13, 2011, 11:17:42 PM (10 years ago)
- Location:
- neercs/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/configure.ac
r4791 r4794 71 71 AC_MSG_ERROR([you need libcaca version 0.99.beta17 or later])]) 72 72 73 AC_CHECK_HEADERS(libutil.h util.h stdio.h pty.h sys/ioctl.h sys/ptrace.h sys/stat.h sys/syscall.h sys/user.h sys/wait.h linux/kdev_t.h linux/major.h security/pam_appl.h security/pam_misc.h )73 AC_CHECK_HEADERS(libutil.h util.h stdio.h pty.h sys/ioctl.h sys/ptrace.h sys/stat.h sys/syscall.h sys/user.h sys/wait.h linux/kdev_t.h linux/major.h security/pam_appl.h security/pam_misc.h pam/pam_appl.h pam/pam_misc.h) 74 74 75 case $host_os in 76 darwin*) 77 AC_MSG_RESULT(Disabling lock support on OSX) ;; 78 *) 75 if test "${ac_cv_header_security_pam_misc_h}" = "yes" -o "${ac_cv_header_pam_pam_misc_h}" = "yes"; then 79 76 AC_CHECK_LIB(pam, pam_authenticate, 80 77 [PAM_LIBS="${PAM_LIBS} -lpam" 81 AC_DEFINE(USE_LOCK, 1, [Locking the PTY is supported])]) ;;82 esac 78 AC_DEFINE(USE_LOCK, 1, [Locking the PTY is supported])]) 79 fi 83 80 AC_SUBST(PAM_LIBS) 84 81 -
neercs/trunk/src/lock.c
r4366 r4794 23 23 24 24 #if defined USE_LOCK 25 #if defined (__APPLE__)25 #if defined HAVE_PAM_PAM_MISC_H 26 26 # include <pam/pam_appl.h> 27 27 # include <pam/pam_misc.h>
Note: See TracChangeset
for help on using the changeset viewer.