mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 10:49:34 +03:00
c9c0d073da
Add autoconf style build infrastructure to the ZFS tree. This includes autogen.sh, configure.ac, m4 macros, some scripts/*, and makefiles for all the core ZFS components.
20 lines
390 B
Plaintext
20 lines
390 B
Plaintext
dnl #
|
|
dnl # Set the target arch for libspl atomic implementation
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_CONFIG_USER_ARCH], [
|
|
AC_MSG_CHECKING(for target asm dir)
|
|
TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
|
|
|
|
case $TARGET_ARCH in
|
|
i386|x86_64)
|
|
TARGET_ASM_DIR=asm-${TARGET_ARCH}
|
|
;;
|
|
*)
|
|
TARGET_ASM_DIR=asm-generic
|
|
;;
|
|
esac
|
|
|
|
AC_SUBST([TARGET_ASM_DIR])
|
|
AC_MSG_RESULT([$TARGET_ASM_DIR])
|
|
])
|