configure: Improve check for security framework and don't warn about gnutls in that case.
diff --git a/configure.ac b/configure.ac
index 8314579..b16b9e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -703,7 +703,6 @@
STRIP="$STRIP -x"
LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
dnl declare needed frameworks
- AC_SUBST(SECURITYLIB,"-framework Security -framework CoreFoundation")
AC_SUBST(COREFOUNDATIONLIB,"-framework CoreFoundation")
AC_SUBST(IOKITLIB,"-framework IOKit -framework CoreFoundation")
AC_SUBST(APPLICATIONSERVICESLIB,"-framework ApplicationServices")
@@ -713,6 +712,11 @@
dnl DiskArbitration API is not public on Darwin < 8.0, use it only if header found
AC_SUBST(DISKARBITRATIONLIB,"-framework DiskArbitration -framework CoreFoundation")
fi
+ if test "$ac_cv_header_Security_Security_h" = "yes"
+ then
+ AC_SUBST(SECURITYLIB,"-framework Security -framework CoreFoundation")
+ with_gnutls=${with_gnutls:-no}
+ fi
if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
then
if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"