1*5e7646d2SAndroid Build Coastguard Workerdnl 2*5e7646d2SAndroid Build Coastguard Workerdnl Operating system stuff for CUPS. 3*5e7646d2SAndroid Build Coastguard Workerdnl 4*5e7646d2SAndroid Build Coastguard Workerdnl Copyright © 2007-2019 by Apple Inc. 5*5e7646d2SAndroid Build Coastguard Workerdnl Copyright © 1997-2006 by Easy Software Products, all rights reserved. 6*5e7646d2SAndroid Build Coastguard Workerdnl 7*5e7646d2SAndroid Build Coastguard Workerdnl Licensed under Apache License v2.0. See the file "LICENSE" for more 8*5e7646d2SAndroid Build Coastguard Workerdnl information. 9*5e7646d2SAndroid Build Coastguard Workerdnl 10*5e7646d2SAndroid Build Coastguard Worker 11*5e7646d2SAndroid Build Coastguard Workerdnl Get the build and host platforms and split the host_os value 12*5e7646d2SAndroid Build Coastguard WorkerAC_CANONICAL_BUILD 13*5e7646d2SAndroid Build Coastguard WorkerAC_CANONICAL_HOST 14*5e7646d2SAndroid Build Coastguard Worker 15*5e7646d2SAndroid Build Coastguard Worker[host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`] 16*5e7646d2SAndroid Build Coastguard Worker[host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'`] 17*5e7646d2SAndroid Build Coastguard Worker# Linux often does not yield an OS version we can use... 18*5e7646d2SAndroid Build Coastguard Workerif test "x$host_os_version" = x; then 19*5e7646d2SAndroid Build Coastguard Worker host_os_version="0" 20*5e7646d2SAndroid Build Coastguard Workerfi 21*5e7646d2SAndroid Build Coastguard Worker 22*5e7646d2SAndroid Build Coastguard Workerdnl Determine whether we are cross-compiling... 23*5e7646d2SAndroid Build Coastguard Workerif test "$build" = "$host"; then 24*5e7646d2SAndroid Build Coastguard Worker # No, build local targets 25*5e7646d2SAndroid Build Coastguard Worker LOCALTARGET="local" 26*5e7646d2SAndroid Build Coastguard Workerelse 27*5e7646d2SAndroid Build Coastguard Worker # Yes, don't build local targets 28*5e7646d2SAndroid Build Coastguard Worker LOCALTARGET="" 29*5e7646d2SAndroid Build Coastguard Workerfi 30*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(LOCALTARGET) 31*5e7646d2SAndroid Build Coastguard Worker 32*5e7646d2SAndroid Build Coastguard WorkerAC_PATH_PROGS(CODE_SIGN, codesign true) 33