Updating submodules
[hiphop-php.git] / CMake / FindLibpam.cmake
blobdcf428056387e3e14c2d3102da644c384cc98d28
1 IF(PAM_FOUND)
2   SET(PAM_FIND_QUIETLY TRUE)
3 ENDIF(PAM_FOUND)
5 FIND_PATH(PAM_INCLUDE_PATH
6   NAMES pam_modules.h
7   PATH_SUFFIXES security
8   PATHS /usr/include /usr/local/include /usr/pkg/include
11 FIND_LIBRARY(PAM_LIBRARY
12   NAMES pam
13   PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
16 IF (PAM_INCLUDE_PATH AND PAM_LIBRARY)
17   SET(PAM_FOUND TRUE)
18 ENDIF()
20 MARK_AS_ADVANCED(
21   PAM_INCLUDE_PATH
22   PAM_LIBRARY