mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
configure: Require OSX >= 10.9
https://bugzilla.gnome.org/show_bug.cgi?id=747146
This commit is contained in:
parent
9e8f4d4736
commit
89058e8a9b
@ -223,6 +223,15 @@ AS_IF([test "x$glib_have_cocoa" = "xyes"], [
|
|||||||
AC_DEFINE(HAVE_COCOA, 1, [define to 1 if Cocoa is available])
|
AC_DEFINE(HAVE_COCOA, 1, [define to 1 if Cocoa is available])
|
||||||
COCOA_LIBS="-Wl,-framework,Foundation"
|
COCOA_LIBS="-Wl,-framework,Foundation"
|
||||||
LDFLAGS="$LDFLAGS $COCOA_LIBS"
|
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=""])
|
], [COCOA_LIBS=""])
|
||||||
|
|
||||||
AC_SUBST([COCOA_LIBS])
|
AC_SUBST([COCOA_LIBS])
|
||||||
|
Loading…
Reference in New Issue
Block a user