]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
configure: use pkg-config to find liburing
authorMark Harmstone <maharmstone@fb.com>
Mon, 6 Jan 2025 14:01:33 +0000 (14:01 +0000)
committerZorro Lang <zlang@kernel.org>
Sun, 12 Jan 2025 04:20:17 +0000 (12:20 +0800)
commit1ba4f6f4bcd2aaef18e9549da89c3f0976f3fd01
tree7f795c88b3ef05dec3ebe02e8797e430a4ba64cc
parent2fe8d7ccc993f03d91c984736b4f2fdb9377d067
configure: use pkg-config to find liburing

Change our autoconf macros so that instead of checking for the presence
of liburing.h, we use pkg-config.

The benefit of this is that we can then check the version of liburing,
and do conditional compilation based on this. There's a macro
IO_URING_CHECK_VERSION already, but it's only in relatively recent
versions of liburing.h.

This replaces HAVE_URING_H, defined by AC_CHECK_HEADERS, with
HAVE_URING. I also had to rename PKG_{MAJOR,MINOR,REVISION,BUILD} to
start with PACKAGE_, to avoid "possibly undefined macro" errors; it
looks like pkg-config assumes that anything called PKG_* is for its own
use.

Signed-off-by: Mark Harmstone <maharmstone@fb.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
VERSION
m4/package_globals.m4
m4/package_liburing.m4
release.sh
src/feature.c
src/vfs/idmapped-mounts.c
src/vfs/idmapped-mounts.h
src/vfs/tmpfs-idmapped-mounts.c
src/vfs/utils.c
src/vfs/utils.h
src/vfs/vfstest.c