blob: 8eb5be6d39c767ca392e66dfb88090087a8187d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# This file is part of UltraStar Deluxe
# Created by the UltraStar Deluxe Team
# SYNOPSIS
#
# AC_MACOSX_VERSION
#
# DESCRIPTION
#
# Determines the Mac OS X and Darwin version.
#
# +----------+---------+
# | Mac OS X | Darwin |
# +----------+---------+
# | 10.4 | 8 |
# | 10.5 | 9 |
# | 10.6 | 10 |
# | 10.7 | 11 |
# | 10.8 | 12 |
# +----------+---------+
AC_DEFUN([AC_MACOSX_VERSION],
[
AC_MSG_CHECKING([for Mac OS X version])
MACOSX_VERSION=`sw_vers -productVersion`
AX_EXTRACT_VERSION(MACOSX, $MACOSX_VERSION)
AC_MSG_RESULT(@<:@$MACOSX_VERSION@:>@)
AC_SUBST(MACOSX_VERSION)
AC_MSG_CHECKING([for Darwin version])
DARWIN_VERSION=`uname -r | cut -f1 -d.`
AC_MSG_RESULT(@<:@$DARWIN_VERSION@:>@)
AC_SUBST(DARWIN_VERSION)
])
|