• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:with +full:- +full:gssapi

21 # SPDX-License-Identifier: curl
28 # - `GSS_ROOT_DIR`: Set this variable to the root installation of GSS. (also supported as envi…
32 # - `GSS_FOUND`: System has the Heimdal library.
33 # - `GSS_FLAVOUR`: "GNU", "MIT" or "Heimdal" if anything found.
34 # - `GSS_INCLUDE_DIRS`: The GSS include directories.
35 # - `GSS_LIBRARIES`: The GSS library names.
36 # - `GSS_LIBRARY_DIRS`: The GSS library directories.
37 # - `GSS_PC_REQUIRES`: The GSS pkg-config packages.
38 # - `GSS_CFLAGS`: Required compiler flags.
39 # - `GSS_VERSION`: This is set to version advertised by pkg-config or read from manifest.
43 set(_mit_modname "mit-krb5-gssapi")
44 set(_heimdal_modname "heimdal-gssapi")
55 # Try to find library using system pkg-config if user did not specify root dir
67 if(NOT _GSS_FOUND) # Not found by pkg-config. Let us take more traditional approach.
70 "krb5-config"
79 # If not found in user-supplied directories, maybe system knows better
82 "krb5-config"
89 COMMAND ${_gss_configure_script} "--cflags" "gssapi"
94 message(STATUS "FindGSS krb5-config --cflags: ${_GSS_CFLAGS}")
98 string(REGEX REPLACE " +-I" ";" _GSS_CFLAGS "${_GSS_CFLAGS}")
99 string(REGEX REPLACE " +-([^I][^ \\t;]*)" ";-\\1" _GSS_CFLAGS "${_GSS_CFLAGS}")
102 if(_flag MATCHES "^-I")
103 string(REGEX REPLACE "^-I" "" _val "${_flag}")
112 COMMAND ${_gss_configure_script} "--libs" "gssapi"
117 message(STATUS "FindGSS krb5-config --libs: ${_gss_lib_flags}")
120 # This script gives us libraries and link directories. Blah. We have to deal with it.
122 string(REGEX REPLACE " +-(L|l)" ";-\\1" _gss_lib_flags "${_gss_lib_flags}")
123 string(REGEX REPLACE " +-([^Ll][^ \\t;]*)" ";-\\1" _gss_lib_flags "${_gss_lib_flags}")
126 if(_flag MATCHES "^-l")
127 string(REGEX REPLACE "^-l" "" _val "${_flag}")
129 elseif(_flag MATCHES "^-L")
130 string(REGEX REPLACE "^-L" "" _val "${_flag}")
137 COMMAND ${_gss_configure_script} "--version"
143 # Older versions may not have the "--version" parameter. In this case we just do not care.
149 COMMAND ${_gss_configure_script} "--vendor"
155 # Older versions may not have the "--vendor" parameter. In this case we just do not care.
168 find_path(_GSS_INCLUDE_DIRS NAMES "gssapi/gssapi.h"
179 check_include_files("gssapi/gssapi_generic.h;gssapi/gssapi_krb5.h" _gss_have_mit_headers)
184 # Prevent compiling the header - just check if we can include it
185 list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D__ROKEN_H__")
196 find_path(_GSS_INCLUDE_DIRS NAMES "gssapi.h"
255 set(_gss_libname "gssapi")
277 set(GSS_PC_REQUIRES "mit-krb5-gssapi")
283 set(GSS_PC_REQUIRES "heimdal-gssapi")
288 …message(STATUS "Found GSS/${GSS_FLAVOUR} (via pkg-config): ${_GSS_INCLUDE_DIRS} (found version \"$…
309 REGEX "^.*version=\"[0-9]\\.[^\"]+\".*$")
311 string(REGEX MATCH "[0-9]\\.[^\"]+" GSS_VERSION "${_heimdal_version_str}")