configure: Require OSX >= 10.9

https://bugzilla.gnome.org/show_bug.cgi?id=747146
This commit is contained in:
Patrick Griffis 2015-04-13 13:39:28 -04:00 committed by Matthias Clasen
parent 9e8f4d4736
commit 89058e8a9b

View File

@ -223,6 +223,15 @@ AS_IF([test "x$glib_have_cocoa" = "xyes"], [
AC_DEFINE(HAVE_COCOA, 1, [define to 1 if Cocoa is available])
COCOA_LIBS="-Wl,-framework,Foundation"
LDFLAGS="$LDFLAGS $COCOA_LIBS"
osx_version=`sw_vers -productVersion`
osx_min_version="10.9.0"
AC_MSG_CHECKING([OSX version >= $osx_min_version])
AS_VERSION_COMPARE([$osx_version], [$osx_min_version], [
AC_MSG_RESULT([no])
AC_MSG_ERROR([OSX version is too old!])
])
AC_MSG_RESULT([yes])
], [COCOA_LIBS=""])
AC_SUBST([COCOA_LIBS])