]> git.saurik.com Git - wxWidgets.git/commitdiff
Add osx configure support for wxWebView.
authorSteve Lamerton <steve.lamerton@gmail.com>
Tue, 5 Jul 2011 11:06:33 +0000 (11:06 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Tue, 5 Jul 2011 11:06:33 +0000 (11:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 6d058ba4774da0aceed167c0b7c8388eb6794587..a5aa4afb40f3c6b1264560e49b8bdca350e1b04f 100644 (file)
@@ -7386,6 +7386,29 @@ if test "$wxUSE_WEB" = "yes"; then
            AC_MSG_RESULT([not found])
        fi
    fi
+
+    if test "$wxUSE_WEBVIEW_WEBKIT" = "yes" -a "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
+        old_CPPFLAGS="$CPPFLAGS"
+        CPPFLAGS="-x objective-c++ $CPPFLAGS"
+        AC_CHECK_HEADER([WebKit/HIWebView.h],
+                        [
+                           AC_DEFINE(wxUSE_WEBVIEW_WEBKIT)
+                           WEBKIT_LINK="-framework WebKit"
+                        ],
+                        [
+                           AC_MSG_WARN([WebKit headers not found; disabling wxWebView WebKit])
+                           wxUSE_WEBVIEW_WEBKIT=no
+                        ],
+                        [
+                           #include <Carbon/Carbon.h>
+                           #include <WebKit/WebKit.h>
+                        ])
+        CPPFLAGS="$old_CPPFLAGS"
+    elif test "$wxUSE_OLD_COCOA" = 1; then
+        AC_DEFINE(wxUSE_WEBVIEW_WEBKIT)
+    else
+        wxUSE_WEBVIEW_WEBKIT=no
+    fi
 fi
 
 dnl ---------------------------------------------------------------------------