diff options
-rw-r--r-- | configure.ac | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 2656c9edd..175b7669f 100644 --- a/configure.ac +++ b/configure.ac @@ -284,10 +284,14 @@ AC_ARG_ENABLE(webkit, enable_webkit=auto) if test "x$enable_webkit" != "xno"; then - PKG_CHECK_MODULES(WEBKIT, - [ - webkit-1.0 >= $WEBKIT_REQUIRED - ], have_webkit="yes", have_webkit="no") + + if test "x$enable_gtk3" == "xno"; then + PKG_CHECK_MODULES(WEBKIT, [webkit-1.0 >= $WEBKIT_REQUIRED], + have_webkit="yes", have_webkit="no") + else + PKG_CHECK_MODULES(WEBKIT, [webkitgtk-3.0 >= $WEBKIT_REQUIRED], + have_webkit="yes", have_webkit="no") + fi if test "x$have_webkit" = "xyes"; then AC_DEFINE(HAVE_WEBKIT, 1, [Define if you have libwebkitgtk]) |