]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | dnl |
503b54c9 | 2 | dnl Operating system stuff for CUPS. |
ef416fc2 | 3 | dnl |
503b54c9 MS |
4 | dnl Copyright 2007-2012 by Apple Inc. |
5 | dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. | |
ef416fc2 | 6 | dnl |
503b54c9 MS |
7 | dnl These coded instructions, statements, and computer programs are the |
8 | dnl property of Apple Inc. and are protected by Federal copyright | |
9 | dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
10 | dnl which should have been included with this file. If this file is | |
57b7b66b | 11 | dnl missing or damaged, see the license at "http://www.cups.org/". |
ef416fc2 | 12 | dnl |
13 | ||
b86bc4cf | 14 | dnl Get the operating system, version number, and architecture... |
ef416fc2 | 15 | uname=`uname` |
fa73b229 | 16 | uversion=`uname -r | sed -e '1,$s/^[[^0-9]]*\([[0-9]]*\)\.\([[0-9]]*\).*/\1\2/'` |
b86bc4cf | 17 | uarch=`uname -m` |
fa73b229 | 18 | |
ef416fc2 | 19 | case "$uname" in |
c1420c87 MS |
20 | Darwin*) |
21 | uname="Darwin" | |
22 | if test $uversion -lt 120; then | |
8072030b | 23 | AC_MSG_ERROR([Sorry, this version of CUPS requires macOS 10.8 or higher.]) |
c1420c87 MS |
24 | fi |
25 | ;; | |
26 | ||
ef416fc2 | 27 | GNU* | GNU/*) |
28 | uname="GNU" | |
29 | ;; | |
ef416fc2 | 30 | Linux*) |
31 | uname="Linux" | |
32 | ;; | |
33 | esac |