Blob


1 AC_INIT([lstun], [0.1.0], [op@omarpolo.com])
2 AC_CONFIG_LIBOBJ_DIR([compat])
3 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
4 AC_PROG_CC_C99
5 AC_USE_SYSTEM_EXTENSIONS
7 AC_REPLACE_FUNCS([
8 getprogname \
9 strtonum \
10 ])
12 AC_CHECK_LIB([event2], [event_init], [], [
13 AC_CHECK_LIB([event], [event_init], [], [
14 AC_MSG_ERROR([requires libevent])
15 ])
16 ])
18 AM_CFLAGS="${AM_CFLAGS} -Wall -Wextra -Wmissing-prototypes"
19 AM_CFLAGS="${AM_CFLAGS} -Wstrict-prototypes -Wwrite-strings"
20 AM_CFLAGS="${AM_CFLAGS} -Wno-unused-parameter"
22 AC_CONFIG_HEADERS([config.h])
23 AC_CONFIG_FILES([Makefile])
24 AC_OUTPUT