]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Configure UML support only if sys/inotify.h present
authorMaximilian Wilhelm <max@rfc2324.org>
Wed, 5 Aug 2009 08:47:18 +0000 (10:47 +0200)
committerDaniel Veillard <veillard@redhat.com>
Wed, 5 Aug 2009 08:47:18 +0000 (10:47 +0200)
* configure.in: UML support requires sys/inotify.h so make it check
  by default.

configure.in

index 284a1c6a5b8298acb966267ae255b10e3afb0caf..0cab6275c65b3dd0335c5ee124dbb9ba10c1bbd5 100644 (file)
@@ -184,7 +184,7 @@ AC_ARG_WITH([xen-inotify],
 AC_ARG_WITH([qemu],
 [  --with-qemu             add QEMU/KVM support (on)],[],[with_qemu=yes])
 AC_ARG_WITH([uml],
-[  --with-uml              add UML support (on)],[],[with_uml=yes])
+[  --with-uml              add UML support (on)],[],[with_uml=check])
 AC_ARG_WITH([openvz],
 [  --with-openvz           add OpenVZ support (on)],[],[with_openvz=yes])
 AC_ARG_WITH([libssh],
@@ -780,6 +780,29 @@ AM_CONDITIONAL([HAVE_NUMACTL], [test "$with_numactl" != "no"])
 AC_SUBST([NUMACTL_CFLAGS])
 AC_SUBST([NUMACTL_LIBS])
 
+
+dnl
+dnl Checks for the UML driver
+dnl
+
+if test "$with_uml" = "yes" -o "$with_uml" = "check"; then
+    AC_CHECK_HEADER([sys/inotify.h], [
+        with_uml=yes
+    ], [
+        if test "$with_uml" = "check"; then
+            with_uml=no
+            AC_MSG_NOTICE([<sys/inotify.h> is required for the UML driver, disabling it])
+        else
+            AC_MSG_ERROR([The <sys/inotify.h> is required for the UML driver. Upgrade your libc6.])
+        fi
+    ])
+fi
+
+
+dnl
+dnl libssh checks
+dnl
+
 if test "$with_libssh" != "yes" -a "$with_libssh" != "no"; then
                libssh_path="$with_libssh"
 elif test "$with_libssh" = "yes"; then