mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
Simplify handling of NetBSD atomic ops discovery.
Instead of having a parameter to enable/disable them (which was also ignored by the source code side), simply identify NetBSD 5 (when the atomic ops were implemented the first time) in a $host switch and ignore checking for libatomic_ops.
This commit is contained in:
parent
40aee60bfa
commit
ca637e5ba4
1 changed files with 6 additions and 23 deletions
25
configure.ac
25
configure.ac
|
|
@ -166,27 +166,12 @@ AC_ARG_ENABLE([atomic-arm-memory-barrier],
|
||||||
esac
|
esac
|
||||||
],)
|
],)
|
||||||
|
|
||||||
AC_ARG_ENABLE([netbsd-atomic-ops],
|
|
||||||
AS_HELP_STRING([--enable-netbsd-atomic-ops],[Use the native NetBSD atomic_ops implementation]),
|
|
||||||
[
|
|
||||||
case "${enableval}" in
|
|
||||||
yes) atomic_netbsd_helpers=yes ;;
|
|
||||||
no) atomic_netbsd_helpers=no ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-netbsd-atomic-ops) ;;
|
|
||||||
esac
|
|
||||||
],
|
|
||||||
[atomic_netbsd_helpers=auto])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([target operating system])
|
AC_MSG_CHECKING([target operating system])
|
||||||
case $host in
|
case $host in
|
||||||
*-*-linux*)
|
*-*-linux*)
|
||||||
AC_MSG_RESULT([linux])
|
AC_MSG_RESULT([linux])
|
||||||
pulse_target_os=linux
|
pulse_target_os=linux
|
||||||
;;
|
;;
|
||||||
*-*-netbsd*)
|
|
||||||
AC_MSG_RESULT([netbsd])
|
|
||||||
pulse_target_os=netbsd
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
AC_MSG_RESULT([unknown])
|
AC_MSG_RESULT([unknown])
|
||||||
pulse_target_os=unknown
|
pulse_target_os=unknown
|
||||||
|
|
@ -210,7 +195,7 @@ if test "$pulseaudio_cv_sync_bool_compare_and_swap" = "yes" ; then
|
||||||
else
|
else
|
||||||
# HW specific atomic ops stuff
|
# HW specific atomic ops stuff
|
||||||
AC_MSG_CHECKING([architecture for native atomic operations])
|
AC_MSG_CHECKING([architecture for native atomic operations])
|
||||||
case $host_cpu in
|
case $host in
|
||||||
arm*)
|
arm*)
|
||||||
AC_MSG_RESULT([arm])
|
AC_MSG_RESULT([arm])
|
||||||
AC_MSG_CHECKING([whether we can use Linux kernel helpers])
|
AC_MSG_CHECKING([whether we can use Linux kernel helpers])
|
||||||
|
|
@ -246,14 +231,12 @@ else
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*-netbsdelf5*)
|
||||||
if test "x$pulse_target_os" = "xnetbsd" && test "x$atomic_netbsd_helpers" = "xyes"; then
|
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE_UNQUOTED(NETBSD_ATOMIC_OPS, 1, [netbsd implementation])
|
|
||||||
need_libatomic_ops=no
|
need_libatomic_ops=no
|
||||||
else
|
;;
|
||||||
|
*)
|
||||||
AC_MSG_RESULT([unknown])
|
AC_MSG_RESULT([unknown])
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue