Avoid recursion when processing residual inbuf data.
[shim.git] / configure.in
blob9015e60dc85a0773227f7236047809ef766b0cf6
1 AC_INIT([shim], [0.1.0])
2 AM_INIT_AUTOMAKE
3 AC_CONFIG_SRCDIR([main.c])
5 AC_CONFIG_HEADER(config.h)
7 AC_PROG_CC
8 AC_PROG_INSTALL
9 AC_PROG_GCC_TRADITIONAL
10 AC_HEADER_STDC
12 if test "$GCC" = yes; then
13         CFLAGS="$CFLAGS -Wall"
16 AC_ARG_ENABLE(direct-connections,
17         AS_HELP_STRING(--disable-direct-connections,
18                        only make connections through a SOCKS proxy),
19         [],
20         [enable_direct_connections=yes])
22 PKG_CHECK_MODULES(LIBEVENT, libevent >= 2.0.0)
23 AC_SUBST(LIBEVENT_CFLAGS)
24 AC_SUBST(LIBEVENT_LIBS)
26 if test x$enable_direct_connections = xno; then
27         AC_DEFINE(DISABLE_DIRECT_CONNECTIONS, 1,
28           [Define if shim should only allow connections through a SOCKS proxy])
31 AC_OUTPUT(Makefile)