python: Removed threadpool handler again.
[ashd.git] / configure.in
CommitLineData
f0bbedf7 1AC_INIT(src/htparser.c)
7ec03c2b 2AM_INIT_AUTOMAKE([ashd], [0.13])
0b26618e
FT
3AM_CONFIG_HEADER(config.h)
4
5AC_PROG_CC
f0bbedf7 6AM_PROG_CC_C_O
0b26618e 7AC_PROG_INSTALL
f0bbedf7 8AC_PROG_RANLIB
0b26618e
FT
9
10dnl Add for libtool:
11dnl AM_PROG_LIBTOOL
12
13AC_HEADER_STDC
14
5518f5b5
FT
15HAS_MAGIC=yes
16AC_CHECK_LIB(magic, magic_open, [:], [HAS_MAGIC=no])
17AC_CHECK_HEADER(magic.h, [], [HAS_MAGIC=no])
18if test "$HAS_MAGIC" = no; then
19 AC_MSG_ERROR([*** cannot find libmagic on this system])
20fi
21
28260620
FT
22AH_TEMPLATE(HAVE_VALGRIND, [define to include debugging support for Valgrind])
23AC_CHECK_HEADER(valgrind/memcheck.h, [AC_DEFINE(HAVE_VALGRIND)], [])
24
16accb88
FT
25AH_TEMPLATE(HAVE_EPOLL, [define to enable epoll support])
26AC_ARG_WITH(epoll, [ --with-epoll Enable epoll(2) support])
27HAS_EPOLL=""
28if test "$with_epoll" = no; then HAS_EPOLL=no; fi
29if test -z "$HAS_EPOLL"; then
30 AC_CHECK_LIB(c, epoll_ctl, [:], [HAS_EPOLL=no])
31fi
32if test -z "$HAS_EPOLL"; then
33 AC_CHECK_HEADER(sys/epoll.h, [], [HAS_EPOLL=no])
34fi
35if test "$HAS_EPOLL" != no; then HAS_EPOLL=yes; fi
36if test "$with_epoll" = yes -a "$HAS_EPOLL" = no; then
37 AC_MSG_ERROR([*** cannot find epoll support on this system])
38fi
39if test "$HAS_EPOLL" = yes; then
40 AC_DEFINE(HAVE_EPOLL)
41fi
a6cda4dd 42AM_CONDITIONAL(USE_EPOLL, [test "$HAS_EPOLL" = yes ])
16accb88 43
0328ac04
FT
44AH_TEMPLATE(HAVE_XATTR, [define to compile support for filesystem extended attributes])
45AC_ARG_WITH(xattr, [ --with-xattr Enable XATTR support])
46HAS_XATTR=""
47if test "$with_xattr" = no; then HAS_XATTR=no; fi
48if test -z "$HAS_XATTR"; then
49 AC_CHECK_LIB(attr, getxattr, [:], [HAS_XATTR=no])
50fi
51if test -z "$HAS_XATTR"; then
52 AC_CHECK_HEADER(attr/xattr.h, [], [HAS_XATTR=no])
53fi
54if test "$HAS_XATTR" != no; then HAS_XATTR=yes; fi
55if test "$with_xattr" = yes -a "$HAS_XATTR" = no; then
56 AC_MSG_ERROR([*** cannot find xattr support on this system])
57fi
58if test "$HAS_XATTR" = yes; then
59 XATTR_LIBS=-lattr
60 AC_DEFINE(HAVE_XATTR)
61fi
62AC_SUBST(XATTR_LIBS)
63
6ca53b2e
FT
64AH_TEMPLATE(HAVE_GNUTLS, [define to use the GnuTLS library for SSL support])
65AC_ARG_WITH(gnutls, [ --with-gnutls Enable SSL support with the GnuTLS library])
66HAS_GNUTLS=""
67if test "$with_gnutls" = no; then HAS_GNUTLS=no; fi
68if test -z "$HAS_GNUTLS"; then
69 AC_CHECK_LIB(gnutls, gnutls_global_init, [:], [HAS_GNUTLS=no])
70fi
71if test -z "$HAS_GNUTLS"; then
72 AC_CHECK_HEADER(gnutls/gnutls.h, [], [HAS_GNUTLS=no])
73fi
74if test "$HAS_GNUTLS" != no; then HAS_GNUTLS=yes; fi
75if test "$with_gnutls" = yes -a "$HAS_GNUTLS" = no; then
76 AC_MSG_ERROR([*** cannot find GnuTLS on this system])
77fi
78if test "$HAS_GNUTLS" = yes; then
79 GNUTLS_LIBS=-lgnutls
80 GNUTLS_CPPFLAGS=-D_GNU_SOURCE
81 AC_DEFINE(HAVE_GNUTLS)
82fi
83AC_SUBST(GNUTLS_CPPFLAGS)
84AC_SUBST(GNUTLS_LIBS)
85
0b26618e
FT
86AC_OUTPUT([
87Makefile
88src/Makefile
600a1ce7 89src/dirplex/Makefile
f0bbedf7 90lib/Makefile
5c9badda 91doc/Makefile
0b26618e 92])