CONFIGURE: Only check Sparkle and NSDockTilePlugIn availability on OS X

This commit is contained in:
Thierry Crozat 2016-03-25 20:28:41 +00:00
parent e917971681
commit a2250d74ed

17
configure vendored
View file

@ -3937,6 +3937,11 @@ echo "$_mpeg2"
# #
# Check for Sparkle if updates support is enabled # Check for Sparkle if updates support is enabled
# #
#
# Check is NSDockTilePlugIn protocol is supported
#
case $_host_os in
darwin*)
echocheck "Sparkle" echocheck "Sparkle"
if test "$_updates" = no; then if test "$_updates" = no; then
_sparkle=no _sparkle=no
@ -3957,10 +3962,17 @@ fi
define_in_config_if_yes "$_sparkle" 'USE_SPARKLE' define_in_config_if_yes "$_sparkle" 'USE_SPARKLE'
fi fi
echo "$_sparkle" echo "$_sparkle"
;;
*)
_sparkle=no
;;
esac
# #
# Check is NSDockTilePlugIn protocol is supported # Check is NSDockTilePlugIn protocol is supported
# #
case $_host_os in
darwin*)
# NSDockTilePlugIn was added in OS X 10.6, so will not be available when compiling on older OS X versions. # NSDockTilePlugIn was added in OS X 10.6, so will not be available when compiling on older OS X versions.
echocheck "DockTilePlugin" echocheck "DockTilePlugin"
if test "$_osxdockplugin" = auto ; then if test "$_osxdockplugin" = auto ; then
@ -3975,6 +3987,11 @@ EOF
fi fi
define_in_config_if_yes "$_osxdockplugin" 'USE_DOCKTILEPLUGIN' define_in_config_if_yes "$_osxdockplugin" 'USE_DOCKTILEPLUGIN'
echo "$_osxdockplugin" echo "$_osxdockplugin"
;;
*)
_osxdockplugin=no
;;
esac
# #
# Check for FluidSynth # Check for FluidSynth