]> git.proxmox.com Git - qemu.git/blobdiff - configure
hw/9pfs: Add st_gen support in getattr reply
[qemu.git] / configure
index f8f7a072b79bd6284995c67b1051692aa02853bf..4f87e0a43ba114266d321d4c9702a9f3b79f6625 100755 (executable)
--- a/configure
+++ b/configure
@@ -2568,6 +2568,19 @@ if compile_prog "" "" ; then
     open_by_handle_at=yes
 fi
 
+########################################
+# check if we have linux/magic.h
+
+linux_magic_h=no
+cat > $TMPC << EOF
+#include <linux/magic.h>
+int main(void) {
+}
+EOF
+if compile_prog "" "" ; then
+    linux_magic_h=yes
+fi
+
 ##########################################
 # End of CC checks
 # After here, no more $cc or $ld runs
@@ -3051,6 +3064,10 @@ if test "$open_by_handle_at" = "yes" ; then
   echo "CONFIG_OPEN_BY_HANDLE=y" >> $config_host_mak
 fi
 
+if test "$linux_magic_h" = "yes" ; then
+  echo "CONFIG_LINUX_MAGIC_H=y" >> $config_host_mak
+fi
+
 # USB host support
 case "$usb" in
 linux)