diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-11-07 12:40:07 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-11-07 12:42:59 -0800 |
commit | c7d7e01bf5da362c4a8065efedc6dc7836471f61 (patch) | |
tree | c80eddf7d22565ca1e6ec402362497e5de590ea9 /configure.ac | |
parent | 2753df9cffba6805355ec37145280fd5607c7492 (diff) |
autotools: setup rudimentary build system
This is arguably overkill for such a small .a, but it's
convenient for embedding in other autotools projects.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..cfe6dca --- /dev/null +++ b/configure.ac @@ -0,0 +1,20 @@ +AC_INIT([libiou], [0.1], [vcaputo@pengaru.com]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AC_PROG_CC +AM_PROG_CC_C_O +AM_PROG_AR +AC_PROG_RANLIB +AM_SILENT_RULES([yes]) + +CFLAGS="$CFLAGS -Wall" + +dnl Check for liburing +PKG_CHECK_MODULES(URING, liburing) +CFLAGS="$CFLAGS $URING_CFLAGS" +LIBS="$LIBS $URING_LIBS" + +AC_CONFIG_FILES([ + Makefile + src/Makefile +]) +AC_OUTPUT |