mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
7055827b8f
This makes it clearer that we always want to do heimdal changes via the lorikeet-heimdal repository. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Autobuild-User(master): Joseph Sutton <jsutton@samba.org> Autobuild-Date(master): Wed Jan 19 21:41:59 UTC 2022 on sn-devel-184
32 lines
908 B
Plaintext
32 lines
908 B
Plaintext
AC_DEFUN([rk_FRAMEWORK_SECURITY], [
|
|
|
|
AC_MSG_CHECKING([for framework security])
|
|
AC_CACHE_VAL(rk_cv_framework_security,
|
|
[
|
|
if test "$rk_cv_framework_security" != yes; then
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation"
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <Security/Security.h>
|
|
]],
|
|
[[SecKeychainSearchRef searchRef;
|
|
SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef);
|
|
CFRelease(&searchRef);
|
|
]])],[rk_cv_framework_security=yes])
|
|
LIBS="$ac_save_LIBS"
|
|
fi
|
|
])
|
|
|
|
if test "$rk_cv_framework_security" = yes; then
|
|
AC_DEFINE(HAVE_FRAMEWORK_SECURITY, 1, [Have -framework Security])
|
|
AC_MSG_RESULT(yes)
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
fi
|
|
AM_CONDITIONAL(FRAMEWORK_SECURITY, test "$rk_cv_framework_security" = yes)
|
|
|
|
if test "$rk_cv_framework_security" = yes; then
|
|
AC_NEED_PROTO([#include <Security/Security.h>],SecKeyGetCSPHandle)
|
|
fi
|
|
|
|
])
|