]> git.proxmox.com Git - mirror_zfs.git/blame - config/always-arch.m4
Improve performance for zpool trim on linux
[mirror_zfs.git] / config / always-arch.m4
CommitLineData
0b04990a 1dnl #
70835c5b
BB
2dnl # Set the target cpu architecture. This allows the
3dnl # following syntax to be used in a Makefile.am.
4dnl #
70835c5b
BB
5dnl # if TARGET_CPU_POWERPC
6dnl # ...
7dnl # else
8dnl # ...
9dnl # endif
0b04990a
TC
10dnl #
11AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_ARCH], [
70835c5b
BB
12 case $target_cpu in
13 i?86)
14 TARGET_CPU=i386
15 ;;
9f0a21e6 16 amd64|x86_64)
70835c5b 17 TARGET_CPU=x86_64
0b04990a 18 ;;
70835c5b
BB
19 powerpc*)
20 TARGET_CPU=powerpc
21 ;;
22 aarch64*)
23 TARGET_CPU=aarch64
24 ;;
6723d111
TR
25 armv*)
26 TARGET_CPU=arm
27 ;;
70835c5b
BB
28 sparc64)
29 TARGET_CPU=sparc64
0b04990a 30 ;;
bd0955cd
AZ
31 *)
32 TARGET_CPU=$target_cpu
33 ;;
0b04990a
TC
34 esac
35
985c33b1 36 AM_CONDITIONAL([TARGET_CPU_AARCH64], test $TARGET_CPU = aarch64)
6723d111 37 AM_CONDITIONAL([TARGET_CPU_X86_64], test $TARGET_CPU = x86_64)
70835c5b 38 AM_CONDITIONAL([TARGET_CPU_POWERPC], test $TARGET_CPU = powerpc)
985c33b1 39 AM_CONDITIONAL([TARGET_CPU_SPARC64], test $TARGET_CPU = sparc64)
6723d111 40 AM_CONDITIONAL([TARGET_CPU_ARM], test $TARGET_CPU = arm)
0b04990a 41])