configure: Disable osxvideo on Leopard and earlier

This also moves the "other platforms" check in OS X video to before the
variable is read

https://bugzilla.gnome.org/show_bug.cgi?id=721245
This commit is contained in:
Jeremy Huddleston Sequoia 2014-01-01 12:23:50 -08:00 committed by Sebastian Dröge
parent c83ed4f61e
commit aeb3fa72b2

View file

@ -486,17 +486,17 @@ translit(dnm, m, l) AM_CONDITIONAL(USE_OSX_VIDEO, true)
HAVE_OSX_VIDEO="no"
AG_GST_CHECK_FEATURE(OSX_VIDEO, [OSX video], osxvideosink, [
AC_CHECK_HEADER(OpenGL/gl.h, HAVE_OSX_VIDEO="yes", HAVE_OSX_VIDEO="no")
])
dnl in case header OpenGL/gl.h is found on other platforms
case "$host" in
*-*darwin*)
dnl do nothing
;;
*)
HAVE_OSX_VIDEO="no"
;;
esac
dnl in case header OpenGL/gl.h is found on other platforms (or older, unsupported OS X)
case "$host" in
*-*darwin1*)
dnl do nothing on Snow Leopard or newer
;;
*)
HAVE_OSX_VIDEO="no"
;;
esac
])
dnl *** Video 4 Linux 2 ***
dnl for information about the header/define, see sys/v4l2/gstv4l2element.h