]> xenbits.xensource.com Git - libvirt.git/commitdiff
configure: Fix mpath check on non-Linux systems
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 13 May 2011 04:47:50 +0000 (06:47 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 14 May 2011 04:40:01 +0000 (06:40 +0200)
configure.ac

index a2ce97e3d76e4d18bbdf13c555e2c516770d8070..4f5c2d71bcea91fc6aecc93a7c701175e41f69b7 100644 (file)
@@ -1667,11 +1667,15 @@ if test "$with_storage_scsi" = "check"; then
 fi
 AM_CONDITIONAL([WITH_STORAGE_SCSI], [test "$with_storage_scsi" = "yes"])
 
-if test "$with_storage_mpath" = "check" && test "$with_linux" = "yes"; then
-   with_storage_mpath=yes
-
-   AC_DEFINE_UNQUOTED([WITH_STORAGE_MPATH], 1,
-     [whether mpath backend for storage driver is enabled])
+if test "$with_storage_mpath" = "check"; then
+   if test "$with_linux" = "yes"; then
+      with_storage_mpath=yes
+
+      AC_DEFINE_UNQUOTED([WITH_STORAGE_MPATH], 1,
+        [whether mpath backend for storage driver is enabled])
+   else
+      with_storage_mpath=no
+   fi
 fi
 AM_CONDITIONAL([WITH_STORAGE_MPATH], [test "$with_storage_mpath" = "yes"])