]> git.sesse.net Git - mlt/commitdiff
Fix version detection in vid.stab configure
authorBrian Matherly <pez4brian@yahoo.com>
Sun, 12 Jan 2014 04:25:46 +0000 (22:25 -0600)
committerBrian Matherly <pez4brian@yahoo.com>
Sun, 12 Jan 2014 04:25:46 +0000 (22:25 -0600)
src/modules/vid.stab/configure

index 37c205a4ffde9dfbc002571cb38592226e442cde..855b1313b8c1e7cacbcff74f13a1dd9097b18cfc 100755 (executable)
@@ -11,7 +11,8 @@ then
        
        minver="0.98"
        modver=$(pkg-config --modversion vidstab)
-       if [ 0 == $(expr $modver \>= $minver) ]
+       pkg-config --exists 'vidstab >= $minver'
+       if [ $? -ne 0 ]
        then
                echo "- vid.stab $modver found, but $minver or newer is required: disabling"
                touch ../disable-vid.stab
@@ -29,3 +30,4 @@ then
        esac
        exit 0
 fi
+