17 lines
791 B
Diff
17 lines
791 B
Diff
--- a/configure.ac 2022-11-17 08:33:40.000000000 -0300
|
|
+++ b/configure.ac 2023-03-08 19:36:38.120873732 -0300
|
|
@@ -279,12 +279,12 @@
|
|
AC_CHECK_FUNC(sigprocmask,have_sigprocmask=1,have_sigprocmask=0)
|
|
AC_SUBST(have_sigprocmask)
|
|
|
|
+AS_IF([test "$allow_popcnt" -eq 1],
|
|
dnl --check if popcnt instruction is available and desired
|
|
AC_MSG_CHECKING(if popcnt instruction is available and requested)
|
|
AC_RUN_IFELSE([AC_LANG_PROGRAM([],[[if (__builtin_cpu_supports("popcnt")) return 0; else return 1;]])],
|
|
popsup=1,popsup=0)
|
|
|
|
-AS_IF([test "$allow_popcnt" -eq 1],
|
|
[have_hwpopcnt=$popsup
|
|
test -f /proc/cpuinfo && grep -i popcnt /proc/cpuinfo >/dev/null && have_hwpopcnt=1
|
|
test $have_hwpopcnt -eq 0 && sysctl machdep.cpu.features 2>/dev/null | grep -i popcnt >/dev/null && have_hwpopcnt=1
|