1
# Try and find libgssapiv2.
2
# As soon as libgssapiv2 has been found, the following variables will be defined:
5
# GSSAPIV2_LIBRARY:FILEPATH
7
# Copyright (c) 2009 Juergen Leising <jleising@users.sourceforge.net>
9
# Redistribution and use is allowed according to the terms of the New
11
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
15
MESSAGE(STATUS "checking for libgssapiv2...")
17
# No header files required for the ldap plugin.
19
FIND_LIBRARY(GSSAPIV2_LIBRARY NAMES gssapiv2
20
PATHS /usr/lib /lib /usr/local/lib /usr/share/lib /opt/lib /opt/share/lib /var/lib /usr/lib/sasl2 /lib/sasl2 /usr/local/lib/sasl2 /usr/share/lib/sasl2 /opt/lib/sasl2 /opt/share/lib/sasl2 /var/lib/sasl2 /usr/lib64 /lib64 /usr/local/lib64 /usr/share/lib64 /opt/lib64 /opt/share/lib64 /var/lib64 /usr/lib64/sasl2 /lib64/sasl2 /usr/local/lib64/sasl2 /usr/share/lib64/sasl2 /opt/lib64/sasl2 /opt/share/lib64/sasl2 /var/lib64/sasl2
21
DOC "Try and find libgssapiv2")
24
SET (LIBGSSAPIV2_FOUND 1)
25
get_filename_component(GSSAPIV2_LIBRARY_DIRS ${GSSAPIV2_LIBRARY} PATH)
26
MESSAGE(STATUS " Found ${GSSAPIV2_LIBRARY}")
27
ELSE (GSSAPIV2_LIBRARY)
28
IF ( LibGSSAPIV2_FIND_REQUIRED )
29
MESSAGE( FATAL_ERROR " Could NOT find libgssapiv2. The ldap plugin needs this library.")
30
ELSE ( LibGSSAPIV2_FIND_REQUIRED )
31
MESSAGE( STATUS " Could NOT find libgssapiv2. The SASL authentication mechanism GSSAPI (and KERBEROS V5) won't work, therefore. Not a fatal error, however. The ldap plugin itself does NOT need it.")
32
ENDIF ( LibGSSAPIV2_FIND_REQUIRED )
33
ENDIF (GSSAPIV2_LIBRARY)