Ignore:
Timestamp:
Jul 16, 2008, 3:36:51 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • lock.c: do not build PTY locking mechanism if PAM isn't present.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/configure.ac

    r2510 r2538  
    3838AC_CHECK_HEADERS(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)
    3939
    40 AC_CHECK_LIB(pam, pam_authenticate, PAM_LIBS="${PAM_LIBS} -lpam")
     40lock=no
     41AC_CHECK_LIB(pam, pam_authenticate,
     42 [PAM_LIBS="${PAM_LIBS} -lpam"
     43  lock=yes])
     44AC_DEFINE(USE_LOCK, 1, [Locking the PTY is supported])
    4145AC_SUBST(PAM_LIBS)
    42 
    4346
    4447AC_CHECK_LIB(util, forkpty, UTIL_LIBS="${UTIL_LIBS} -lutil")
     
    4851case $target in
    4952  i?86-*-linux-*|amd64-*-linux-*|x86_64-*-linux-*)
     53    AC_DEFINE(USE_GRAB, 1, [Grabbing processes is supported])
    5054    grab=yes ;;
    5155  *)
    52     grab=no;;
     56    grab=no ;;
    5357esac
    5458AC_MSG_RESULT($grab)
    55 if test "$grab" = "yes"; then
    56   AC_DEFINE(USE_GRAB, 1, [Grabbing processes is supported])
    57 fi
    5859
    5960if test "${enable_debug}" = "yes"; then
Note: See TracChangeset for help on using the changeset viewer.