diff options
author | Andres Freund | 2025-03-18 18:40:05 +0000 |
---|---|---|
committer | Andres Freund | 2025-03-26 23:45:32 +0000 |
commit | 8eadd5c73c44708ecd45b9fd3ac54a550511d16f (patch) | |
tree | 45074275a931018bf5854dcae95b64a22ee16da0 /configure.ac | |
parent | f056f75dafd0025d26efaca026a87f14c079a130 (diff) |
aio: Add liburing dependency
Will be used in a subsequent commit, to implement io_method=io_uring. Kept
separate for easier review.
Reviewed-by: Noah Misch <noah@leadboat.com>
Discussion: https://postgr.es/m/uvrtrknj4kdytuboidbhwclo4gxhswwcpgadptsjvjqcluzmah%40brqs62irg4dt
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b6d02f5ecc7..ecbc2734829 100644 --- a/configure.ac +++ b/configure.ac @@ -975,6 +975,18 @@ AC_SUBST(with_readline) PGAC_ARG_BOOL(with, libedit-preferred, no, [prefer BSD Libedit over GNU Readline]) +# +# liburing +# +AC_MSG_CHECKING([whether to build with liburing support]) +PGAC_ARG_BOOL(with, liburing, no, [build with io_uring support, for asynchronous I/O], + [AC_DEFINE([USE_LIBURING], 1, [Define to build with io_uring support. (--with-liburing)])]) +AC_MSG_RESULT([$with_liburing]) +AC_SUBST(with_liburing) + +if test "$with_liburing" = yes; then + PKG_CHECK_MODULES(LIBURING, liburing) +fi # # UUID library |