]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - config-scripts/cups-opsys.m4
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / config-scripts / cups-opsys.m4
index ed4dbbc5e48be4db3e93d07c1a13d4970414c37b..655a95dc74d248391551baf3e2a070be545c9a9e 100644 (file)
@@ -1,16 +1,14 @@
 dnl
-dnl "$Id: cups-opsys.m4 6649 2007-07-11 21:46:42Z mike $"
+dnl Operating system stuff for CUPS.
 dnl
-dnl   Operating system stuff for CUPS.
+dnl Copyright 2007-2012 by Apple Inc.
+dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
 dnl
-dnl   Copyright 2007-2012 by Apple Inc.
-dnl   Copyright 1997-2006 by Easy Software Products, all rights reserved.
-dnl
-dnl   These coded instructions, statements, and computer programs are the
-dnl   property of Apple Inc. and are protected by Federal copyright
-dnl   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
-dnl   which should have been included with this file.  If this file is
-dnl   file is missing or damaged, see the license at "http://www.cups.org/".
+dnl These coded instructions, statements, and computer programs are the
+dnl property of Apple Inc. and are protected by Federal copyright
+dnl law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+dnl which should have been included with this file.  If this file is
+dnl missing or damaged, see the license at "http://www.cups.org/".
 dnl
 
 dnl Get the operating system, version number, and architecture...
@@ -19,6 +17,13 @@ uversion=`uname -r | sed -e '1,$s/^[[^0-9]]*\([[0-9]]*\)\.\([[0-9]]*\).*/\1\2/'`
 uarch=`uname -m`
 
 case "$uname" in
+       Darwin*)
+               uname="Darwin"
+               if test $uversion -lt 120; then
+                       AC_MSG_ERROR([Sorry, this version of CUPS requires macOS 10.8 or higher.])
+               fi
+               ;;
+
        GNU* | GNU/*)
                uname="GNU"
                ;;
@@ -26,7 +31,3 @@ case "$uname" in
                uname="Linux"
                ;;
 esac
-
-dnl
-dnl "$Id: cups-opsys.m4 6649 2007-07-11 21:46:42Z mike $"
-dnl