Skip to contentSkip to conversation

configure: fix Linux AIO detection

PATCH In review Luiz Capitulino 2 participants 2 messages Aug 31, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: fix Linux AIO detection

We should set $linux_aio to 'no' if detection failed, otherwise its contents will be empty, which is a bug as we test for 'yes' or 'no'.

configure +1 -0
index b805f10..4c60c4d 100755
@@ -1327,6 +1327,7 @@ EOF
     if test "$linux_aio" = "yes" ; then
       feature_not_found "linux AIO"
     fi
+    linux_aio=no
   fi
 fi
 
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Luiz Capitulino

We should set $linux_aio to 'no' if detection failed, otherwise its contents will be empty, which is a bug as we test for 'yes' or 'no'.

Good catch.

Quoted 12 lines
configure +1 -0
index b805f10..4c60c4d 100755
@@ -1327,6 +1327,7 @@ EOF
     if test "$linux_aio" = "yes" ; then
       feature_not_found "linux AIO"
     fi
+    linux_aio=no
   fi
 fi