xref: /aosp_15_r20/external/ltp/m4/ltp-host-cpu.m4 (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Workerdnl SPDX-License-Identifier: GPL-2.0-or-later
2*49cdfc7eSAndroid Build Coastguard Workerdnl Copyright (c) 2018 Petr Vorel <[email protected]>
3*49cdfc7eSAndroid Build Coastguard Worker
4*49cdfc7eSAndroid Build Coastguard WorkerAC_DEFUN([LTP_DETECT_HOST_CPU], [
5*49cdfc7eSAndroid Build Coastguard WorkerAC_SUBST([HOST_CPU], [$host_cpu])
6*49cdfc7eSAndroid Build Coastguard WorkerAS_CASE([$host_cpu],
7*49cdfc7eSAndroid Build Coastguard Worker  [amd64], [HOST_CPU=x86_64],
8*49cdfc7eSAndroid Build Coastguard Worker  [arm*], [HOST_CPU=arm],
9*49cdfc7eSAndroid Build Coastguard Worker  [i?86|x86], [HOST_CPU=x86],
10*49cdfc7eSAndroid Build Coastguard Worker  [s390*], [HOST_CPU=s390],
11*49cdfc7eSAndroid Build Coastguard Worker)
12*49cdfc7eSAndroid Build Coastguard WorkerAC_SUBST([HOST_CPU])
13*49cdfc7eSAndroid Build Coastguard Worker])
14