1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-01-11 23:52:54 +00:00

Offer configure option to disable VDE.

This commit is contained in:
Olaf Seibert 2016-01-24 11:45:32 +01:00
parent 06d8ca1a56
commit 8cfece4ef4
2 changed files with 19 additions and 1 deletions

View File

@ -184,6 +184,24 @@ then
echo 'Compiling without bridge support'
fi
# -------------------------------------------------------------------------
# Check whether we want VDE support
# -------------------------------------------------------------------------
AC_ARG_ENABLE(vde,
AC_HELP_STRING([--disable-vde],[disable vde networking]),
[ case "${enableval}" in
yes) vde=true ;;
no) vde=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-vde) ;;
esac ],
[ vde=true ] )
if test x$vde = xfalse
then
AC_DEFINE(KLH10_NET_VDE, 0, [Set to 0 to disable VDE networking])
echo 'Compiling without VDE support'
fi
# -------------------------------------------------------------------------
# Check large file support and the sizes of related types
# -------------------------------------------------------------------------

View File

@ -42,7 +42,7 @@
# error "A bridge is useless without a TAP device... configuration error!"
#endif
#if HAVE_LIBVDEPLUG_H && HAVE_LIBVDEPLUG
#if HAVE_LIBVDEPLUG_H && HAVE_LIBVDEPLUG && (!defined(KLH10_NET_VDE) || KLH10_NET_VDE)
# include <libvdeplug.h>
# define KLH10_NET_VDE 1
#endif