Index: /trunk/configure
===================================================================
--- /trunk/configure	(revision 6156)
+++ /trunk/configure	(revision 6157)
@@ -39,4 +39,5 @@
 WITH_X11=1
 WITH_PULSE=1
+WITH_KMODS=1
 CC="gcc"
 CC32=""
@@ -1290,4 +1291,5 @@
   --disable-sdl-ttf        disable SDL_ttf detection
   --disable-pulse          disable PulseAudio detection
+  --disable-kmods          don't build Linux kernel modules (host and guest)
   --build-libxml2          build libxml2 from sources (not OSE!)
   --setup-wine             setup a Wine directory and register the hhc hack
@@ -1359,4 +1361,7 @@
     --disable-pulse)
       WITH_PULSE=0
+      ;;
+    --disable-kmods)
+      WITH_KMODS=0
       ;;
     --build-debug|-d)
@@ -1497,5 +1502,11 @@
 if [ "$OS" = "linux" ]; then
   check_staticlibstdcxx
-  check_linux
+  if [ $WITH_KMODS -eq 1 ]; then
+    check_linux
+  else
+    cnf_append "VBOX_LINUX_SRC" ""
+    cnf_append "VBOX_WITH_VBOXDRV" ""
+    cnf_append "VBOX_WITH_LINUX_ADDITIONS_32BIT_R0" ""
+  fi
   check_alsa
   if [ $WITH_PULSE -eq 1 ]; then
