diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-09-08 07:46:56 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-09-08 07:46:56 +0000 |
commit | 001dbcfc0b168c5180c452cd3535438ad76a9237 (patch) | |
tree | bd9461d81dc45795b9682cc8f2f6da4aa8d59b99 /configure.ac | |
parent | 50351aa1c43241d581304583d585b405a022eeb8 (diff) | |
download | wireshark-001dbcfc0b168c5180c452cd3535438ad76a9237.tar.gz wireshark-001dbcfc0b168c5180c452cd3535438ad76a9237.tar.bz2 wireshark-001dbcfc0b168c5180c452cd3535438ad76a9237.zip |
We no longer use Gestalt(), so there's no need to check for it.
We *do*, however, use CFPropertyListCreateWithStream(), so we need to
check for it, and, if we're able to use the OS X frameworks at all, use
CFPropertyListCreateFromStream() if we don't have
CFPropertyListCreateWithStream().
svn path=/trunk/; revision=44812
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 8697d4dfc8..968eaa0811 100644 --- a/configure.ac +++ b/configure.ac @@ -640,19 +640,15 @@ darwin*) # include <CoreFoundation/CFString.h> # include <CoreFoundation/CFURL.h> # include <ApplicationServices/ApplicationServices.h> -# include <CoreServices/CoreServices.h> ], [ CFStringRef url_CFString; CFURLRef url_CFURL; OSStatus status; - long os_version; url_CFString = CFStringCreateWithCString(NULL, "", kCFStringEncodingASCII); url_CFURL = CFURLCreateWithString(NULL, url_CFString, NULL); status = LSOpenCFURLRef(url_CFURL, NULL); - - Gestalt(gestaltSystemVersion, &os_version); ], ac_cv_can_use_osx_frameworks=yes, ac_cv_can_use_osx_frameworks=no, @@ -662,6 +658,17 @@ darwin*) CORESERVICES_FRAMEWORKS="$ac_coreservices_frameworks" LAUNCHSERVICES_FRAMEWORKS="$ac_launchservices_frameworks" AC_MSG_RESULT(yes) + + # + # OK, so we have the OS X frameworks; do they include + # CFPropertyListCreateWithStream, or do we have + # to fall back on CFPropertyListCreateFromStream? + # (They only differ in the error return, which we + # don't care about. And, no, we shouldn't just + # use CFPropertyListCreateFromStream, because it's + # deprecated in newer releases.) + # + AC_CHECK_FUNCS(CFPropertyListCreateWithStream) else AC_MSG_RESULT(no) fi |