AC_INIT(lisp/liece.el) AM_INIT_AUTOMAKE(liece, 1.4.4) AM_PATH_LISPDIR AC_PROG_CC AC_ISC_POSIX AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_RANLIB AC_CHECK_HEADERS(sys/select.h libgen.h socks.h netinet6/in6.h) AC_CHECK_LIB(nsl, gethostbyname) AC_CHECK_LIB(socket, socket) AC_CHECK_FUNCS(strtoul memmove basename getaddrinfo) AC_CHECK_TYPE(fd_set, int) dnl checking if the system supports ipv6 address space or not AC_CACHE_CHECK([for struct in6_addr], ac_cv_struct_in6_addr, [AC_TRY_COMPILE([#include #include #include #include ], [struct in6_addr v6; v6.s6_addr32[3];], ac_cv_struct_in6_addr=yes, ac_cv_struct_in6_addr=no)]) test "x$ac_cv_struct_in6_addr" = "xyes" && AC_DEFINE(HAVE_IN6_ADDR) dnl checking if the system supports tcp over ipv6 support or not AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_struct_sockaddr_in6, [AC_TRY_COMPILE([#include #include #include #include ], [struct sockaddr_in6 v6; v6.sin6_addr;], ac_cv_struct_sockaddr_in6=yes, ac_cv_struct_sockaddr_in6=no)]) test "x$ac_cv_struct_sockaddr_in6" = "xyes" && AC_DEFINE(HAVE_SOCKADDR_IN6) # Check compile with IPv6 support AC_MSG_CHECKING(whether we compile with IPv6) AC_ARG_ENABLE(ipv6, \ [ --enable-ipv6 compile with IPv6 [default=no]],, \ enable_ipv6=no) test "x$enable_ipv6" = "xyes" && AC_DEFINE(INET6) AC_MSG_RESULT($enable_ipv6) # Check whether to retrieve APEL/FLIM distribution. AC_MSG_CHECKING(whether we retrieve APEL/FLIM distribution via CVS) AC_ARG_ENABLE(tm, \ [ --enable-tm retrieve APEL/FLIM distribution via CVS [default=no]],, \ enable_tm=no) if test "x$enable_tm" = "xyes"; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) fi AM_CONDITIONAL(USE_TM, test x$enable_tm = xyes) AC_OUTPUT(Makefile \ lisp/Makefile \ dcc/Makefile \ doc/Makefile \ etc/Makefile)