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