summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/cf/framework-corefoundation.m4
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/heimdal/cf/framework-corefoundation.m4')
-rw-r--r--third_party/heimdal/cf/framework-corefoundation.m428
1 files changed, 28 insertions, 0 deletions
diff --git a/third_party/heimdal/cf/framework-corefoundation.m4 b/third_party/heimdal/cf/framework-corefoundation.m4
new file mode 100644
index 0000000..a23c4c7
--- /dev/null
+++ b/third_party/heimdal/cf/framework-corefoundation.m4
@@ -0,0 +1,28 @@
+AC_DEFUN([rk_FRAMEWORK_COREFOUNDATION], [
+
+AC_MSG_CHECKING([for framework CoreFoundation])
+AC_CACHE_VAL(rk_cv_framework_corefoundation,
+[
+if test "$rk_cv_framework_corefoundation" != yes; then
+ ac_save_LIBS="$LIBS"
+ LIBS="$ac_save_LIBS -framework CoreFoundation"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <CoreFoundation/CoreFoundation.h>
+]],
+[[CFURLRef url;
+char path[] = "/";
+url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, (UInt8 *)
+path, strlen(path), FALSE);
+CFRelease(url);
+]])],[rk_cv_framework_corefoundation=yes])
+ LIBS="$ac_save_LIBS"
+fi
+])
+
+if test "$rk_cv_framework_corefoundation" = yes; then
+ AC_DEFINE(HAVE_FRAMEWORK_COREFOUNDATION, 1, [Have -framework CoreFoundation])
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+fi
+AM_CONDITIONAL(FRAMEWORK_COREFOUNDATION, test "$rk_cv_framework_corefoundation" = yes)
+])