configure: check for gtk-mac-intregration only if GTK+ is built for quartz

This commit is contained in:
Michael Natterer 2013-11-10 20:51:37 +01:00
parent 1717cb84ed
commit cfa074628f
1 changed files with 2 additions and 1 deletions

View File

@ -1836,7 +1836,8 @@ AM_CONDITIONAL(PLATFORM_OSX, test "x$platform_osx" = xyes)
# Check for GTK Mac Integration
###############################
if test "x$platform_osx" != xno; then
if test "x$platform_osx" != xno &&
test "x`$PKG_CONFIG --variable=target gtk+-2.0`" == "xquartz"; then
PKG_CHECK_MODULES(GTK_MAC_INTEGRATION, gtk-mac-integration >= gtk_mac_integration_required_version)
fi