• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl
2dnl Operating system stuff for CUPS.
3dnl
4dnl Copyright © 2007-2019 by Apple Inc.
5dnl Copyright © 1997-2006 by Easy Software Products, all rights reserved.
6dnl
7dnl Licensed under Apache License v2.0.  See the file "LICENSE" for more
8dnl information.
9dnl
10
11dnl Get the build and host platforms and split the host_os value
12AC_CANONICAL_BUILD
13AC_CANONICAL_HOST
14
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}'`]
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
21
22dnl Determine whether we are cross-compiling...
23if test "$build" = "$host"; then
24        # No, build local targets
25	LOCALTARGET="local"
26else
27        # Yes, don't build local targets
28	LOCALTARGET=""
29fi
30AC_SUBST(LOCALTARGET)
31
32AC_PATH_PROGS(CODE_SIGN, codesign true)
33