New vdetelweb tag 1.2.1
[vde.git] / 1.2.1 / configure.ac
blob1c0aba8aab7a52520c2e7c77f912b156cc9f51d7
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.60)
5 AC_INIT([vdetelweb], [1.2.1], [info@v2.cs.unibo.it])
6 AM_INIT_AUTOMAKE([foreign dist-bzip2])
7 AC_CONFIG_SRCDIR([vdetelweb.c])
8 AC_CONFIG_HEADER([config.h])
10 # Checks for programs.
11 AC_PROG_CC
12 AC_PROG_INSTALL
14 # Checks for header files.
15 AC_HEADER_STDC
16 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h string.h sys/ioctl.h sys/socket.h syslog.h lwipv6.h],, AC_MSG_ERROR([required header file missing]))
18 # Checks for typedefs, structures, and compiler characteristics.
19 AC_C_CONST
21 # Checks for library functions.
22 AC_FUNC_MALLOC
23 AC_TYPE_SIGNAL
24 AC_FUNC_VPRINTF
25 AC_CHECK_FUNCS([atexit bzero getcwd memset socket strdup strerror strndup strstr uname])
27 # Checks for libraries.
28 AC_CHECK_LIB([lwipv6], [lwip_init],, AC_MSG_ERROR([liblwipv6 missing]), [-lpthread])
29 AC_CHECK_LIB([mhash], [mhash_init],, AC_MSG_ERROR([mhash missing]), [-lmhash])
31 AC_CONFIG_FILES([Makefile])
32 AC_OUTPUT