From 799258ed87c526ab0ff1375bcb45df7ae28556ee Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 25 Nov 2020 18:03:12 -0800 Subject: build: introduce rudimentary autotools Now it's easy to build even --- configure.ac | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..3a88409 --- /dev/null +++ b/configure.ac @@ -0,0 +1,25 @@ +AC_INIT([jio], [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_SUBDIRS([ + libiou +]) + +AC_CONFIG_FILES([ + Makefile + src/Makefile +]) + +AC_OUTPUT -- cgit v1.2.3