AC_CHECK_FUNCS([statx], [have_statx=yes], [have_statx=no])
AM_CONDITIONAL([HAVE_OPENAT], [test "x$have_openat" = xyes])
+AM_CONDITIONAL([HAVE_SYS_PRCTL_H], [test "x$ac_cv_header_sys_prctl_h" = xyes])
AM_CONDITIONAL([HAVE_LINUX_LANDLOCK_H], [test "x$ac_cv_header_linux_landlock_h" = xyes])
have_setns_syscall="yes"
test_threads_create_SOURCES = tests/helpers/test_threads_create.c
test_threads_create_LDADD = $(LDADD) libcommon.la $(PTHREAD_LIBS)
+if HAVE_SYS_PRCTL_H
check_PROGRAMS += test_child_create
test_child_create_SOURCES = tests/helpers/test_child_create.c
test_child_create_LDADD = $(LDADD) libcommon.la
+endif