]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-opsys.m4
Code signing changes.
[thirdparty/cups.git] / config-scripts / cups-opsys.m4
CommitLineData
ef416fc2 1dnl
503b54c9 2dnl Operating system stuff for CUPS.
ef416fc2 3dnl
137fa9a8 4dnl Copyright 2007-2018 by Apple Inc.
503b54c9 5dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 6dnl
137fa9a8
MS
7dnl Licensed under Apache License v2.0. See the file "LICENSE" for more
8dnl information.
ef416fc2 9dnl
10
105922ec
MS
11dnl Get the build and host platforms and split the host_os value
12AC_CANONICAL_BUILD
13AC_CANONICAL_HOST
fa73b229 14
105922ec
MS
15[host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`]
16[host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'`]
bb719eb3
MS
17# Linux often does not yield an OS version we can use...
18if test "x$host_os_version" = x; then
19 host_os_version="0"
20fi
c1420c87 21
105922ec
MS
22if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
23 AC_MSG_ERROR([Sorry, this version of CUPS requires macOS 10.8 or higher.])
24fi
25
26dnl Determine whether we are cross-compiling...
27if test "$build" = "$host"; then
28 # No, build local targets
29 LOCALTARGET="local"
30else
31 # Yes, don't build local targets
32 LOCALTARGET=""
33fi
34AC_SUBST(LOCALTARGET)
137fa9a8
MS
35
36AC_MSG_CHECKING(for codesign utility)
37CODE_SIGN="/usr/bin/true"
38AC_SUBST(CODE_SIGN)
39if test "$host_os_name" = darwin; then
40 CODE_SIGN="/usr/bin/codesign"
41fi
42AC_MSG_RESULT(using $CODE_SIGN)