update.
[elisp/liece.git] / configure.in
1 AC_INIT(lisp/liece.el)
2 AM_INIT_AUTOMAKE(liece, 1.4.5)
3
4 AM_PATH_LISPDIR
5
6 AC_PROG_CC
7 AC_ISC_POSIX
8 AC_PROG_INSTALL
9 AC_PROG_MAKE_SET
10 AC_PROG_RANLIB
11
12 AC_CHECK_HEADERS(sys/select.h libgen.h socks.h netinet6/in6.h)
13
14 AC_CHECK_LIB(nsl, gethostbyname)
15 AC_CHECK_LIB(socket, socket)
16
17 AC_CHECK_FUNCS(strtoul memmove basename getaddrinfo)
18
19 AC_CHECK_TYPE(fd_set, int)
20
21 dnl checking if the system supports ipv6 address space or not
22 AC_CACHE_CHECK([for struct in6_addr], ac_cv_struct_in6_addr,
23 [AC_TRY_COMPILE([#include <sys/types.h>
24 #include <sys/socket.h>
25 #include <netinet/in.h>
26 #include <netinet6/in6.h>], [struct in6_addr v6; v6.s6_addr32[3];],
27 ac_cv_struct_in6_addr=yes, ac_cv_struct_in6_addr=no)])
28 test "x$ac_cv_struct_in6_addr" = "xyes" && AC_DEFINE(HAVE_IN6_ADDR)
29
30 dnl checking if the system supports tcp over ipv6 support or not
31 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_struct_sockaddr_in6,
32 [AC_TRY_COMPILE([#include <sys/types.h>
33 #include <sys/socket.h>
34 #include <netinet/in.h>
35 #include <netinet6/in6.h>], [struct sockaddr_in6 v6; v6.sin6_addr;],
36 ac_cv_struct_sockaddr_in6=yes, ac_cv_struct_sockaddr_in6=no)])
37 test "x$ac_cv_struct_sockaddr_in6" = "xyes" && AC_DEFINE(HAVE_SOCKADDR_IN6)
38
39 # Check compile with IPv6 support
40 AC_MSG_CHECKING(whether we compile with IPv6)
41 AC_ARG_ENABLE(ipv6, \
42  [ --enable-ipv6           compile with IPv6 [default=no]],, \
43     enable_ipv6=no)
44 test "x$enable_ipv6" = "xyes" && AC_DEFINE(INET6)
45 AC_MSG_RESULT($enable_ipv6)
46
47 # Check whether to retrieve APEL/FLIM distribution.
48 AC_MSG_CHECKING(whether we retrieve APEL/FLIM distribution via CVS)
49 AC_ARG_ENABLE(tm, \
50  [ --enable-tm             retrieve APEL/FLIM distribution via CVS [default=no]],, \
51     enable_tm=no)
52 if test "x$enable_tm" = "xyes"; then
53     AC_MSG_RESULT(yes)
54 else 
55     AC_MSG_RESULT(no)
56 fi
57 AM_CONDITIONAL(USE_TM, test x$enable_tm = xyes)
58
59 AC_OUTPUT(Makefile \
60 lisp/Makefile \
61 dcc/Makefile \
62 doc/Makefile \
63 etc/Makefile)