]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-opsys.m4
Don't generate certificates that expire on Feb 29th (Issue #5643)
[thirdparty/cups.git] / config-scripts / cups-opsys.m4
1 dnl
2 dnl Operating system stuff for CUPS.
3 dnl
4 dnl Copyright © 2007-2019 by Apple Inc.
5 dnl Copyright © 1997-2006 by Easy Software Products, all rights reserved.
6 dnl
7 dnl Licensed under Apache License v2.0. See the file "LICENSE" for more
8 dnl information.
9 dnl
10
11 dnl Get the build and host platforms and split the host_os value
12 AC_CANONICAL_BUILD
13 AC_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...
18 if test "x$host_os_version" = x; then
19 host_os_version="0"
20 fi
21
22 dnl Determine whether we are cross-compiling...
23 if test "$build" = "$host"; then
24 # No, build local targets
25 LOCALTARGET="local"
26 else
27 # Yes, don't build local targets
28 LOCALTARGET=""
29 fi
30 AC_SUBST(LOCALTARGET)
31
32 AC_PATH_PROGS(CODE_SIGN, codesign true)