]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-opsys.m4
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / config-scripts / cups-opsys.m4
1 dnl
2 dnl Operating system stuff for CUPS.
3 dnl
4 dnl Copyright 2007-2012 by Apple Inc.
5 dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
6 dnl
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
11 dnl missing or damaged, see the license at "http://www.cups.org/".
12 dnl
13
14 dnl Get the operating system, version number, and architecture...
15 uname=`uname`
16 uversion=`uname -r | sed -e '1,$s/^[[^0-9]]*\([[0-9]]*\)\.\([[0-9]]*\).*/\1\2/'`
17 uarch=`uname -m`
18
19 case "$uname" in
20 Darwin*)
21 uname="Darwin"
22 if test $uversion -lt 120; then
23 AC_MSG_ERROR([Sorry, this version of CUPS requires macOS 10.8 or higher.])
24 fi
25 ;;
26
27 GNU* | GNU/*)
28 uname="GNU"
29 ;;
30 Linux*)
31 uname="Linux"
32 ;;
33 esac