mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-11 04:46:18 +03:00
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #18077
32 lines
777 B
Plaintext
32 lines
777 B
Plaintext
dnl # SPDX-License-Identifier: CDDL-1.0
|
|
dnl #
|
|
dnl # Set the target system
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_SYSTEM], [
|
|
AC_MSG_CHECKING([for system type ($host_os)])
|
|
case $host_os in
|
|
*linux*)
|
|
AC_DEFINE([SYSTEM_LINUX], [1],
|
|
[True if ZFS is to be compiled for a Linux system])
|
|
ac_system="Linux"
|
|
ac_system_l="linux"
|
|
;;
|
|
*freebsd*)
|
|
AC_DEFINE([SYSTEM_FREEBSD], [1],
|
|
[True if ZFS is to be compiled for a FreeBSD system])
|
|
ac_system="FreeBSD"
|
|
ac_system_l="freebsd"
|
|
;;
|
|
*)
|
|
ac_system="unknown"
|
|
ac_system_l="unknown"
|
|
;;
|
|
esac
|
|
AC_MSG_RESULT([$ac_system])
|
|
AC_SUBST([ac_system])
|
|
AC_SUBST([ac_system_l])
|
|
|
|
AM_CONDITIONAL([BUILD_LINUX], [test "x$ac_system" = "xLinux"])
|
|
AM_CONDITIONAL([BUILD_FREEBSD], [test "x$ac_system" = "xFreeBSD"])
|
|
])
|