2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(vde, [1.5.11], renzo@cs.unibo.it)
7 AC_CONFIG_SRCDIR([vde.h])
8 AC_CONFIG_HEADER([config.h])
10 # Checks for programs.
17 # Checks for libraries.
18 AC_CHECK_LIB([dl], [dlopen])
20 # Checks for header files.
23 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termio.h termios.h unistd.h sys/filio.h sys/bitypes.h sys/wait.h sys/select.h sys/signal.h sys/stropts.h termios.h sys/type32.h])
25 # Checks for typedefs, structures, and compiler characteristics.
35 # Checks for library functions.
38 AC_PROG_GCC_TRADITIONAL
42 AC_FUNC_SELECT_ARGTYPES
45 AC_CHECK_FUNCS([atexit dup2 gethostbyname gethostname gettimeofday inet_ntoa memmove memset putenv select setenv socket strchr strdup strerror strstr uname inet_aton sprintf readv random srandom index bcmp drand48 memmove gethostid revoke fchmod])
47 # All other nice checks I have to make for recostructing missing parts of
48 # slirp's config.h file
50 AC_CHECK_SIZEOF(short)
52 AC_CHECK_SIZEOF(char *)
54 # Check of tuntap device
55 AC_ARG_ENABLE([tuntap],
56 AS_HELP_STRING([--disable-tuntap],
57 [Disable tuntap compilation]),
58 [if test $enableval != "no" ; then add_tuntap_support=yes ; else add_tuntap_support=no ; fi],
59 [add_tuntap_support=yes])
61 AM_CONDITIONAL(WANT_TUNTAP, test "$add_tuntap_support" = yes)
62 if test "$add_tuntap_support" = yes ; then
63 AC_CHECK_HEADER([linux/if_tun.h],
64 [AC_DEFINE([TUNTAP], 1, [If defined, tuntap support is compiled in])],
65 [AC_MSG_ERROR([Tuntap support seem to be not enabled on your kernel])])
68 #AC_CONFIG_FILES([doc/Makefile
71 # vdetaplib/Makefile])
72 AC_CONFIG_FILES([Makefile]