build: Check whether we need libperfstat on AIX

The getentropy() implementation makes use of this library on AIX.
This commit is contained in:
Guillem Jover 2023-04-18 03:56:16 +02:00
parent 1186cf8822
commit d08163b4fe

View File

@ -159,6 +159,15 @@ AS_CASE([$host_os],
]) ])
LIBS="$saved_LIBS" LIBS="$saved_LIBS"
], ],
[aix*], [
saved_LIBS="$LIBS"
AC_SEARCH_LIBS([perfstat_cpu_total], [perfstat], [
AS_IF([test "x$ac_cv_search_perfstat_cpu_total" != "xnone required"], [
LIBBSD_LIBS="$LIBBSD_LIBS $ac_cv_search_perfstat_cpu_total"
])
])
LIBS="$saved_LIBS"
],
) )
# Checks for header files. # Checks for header files.