Unportable test(1) construct
Posted: 2014-08-21T14:46:11-07:00
The configure script uses in two places "==" as a comparison operator for test(1).
This is only supported by bash, not even by GNU coreutils. The standard comparison operator is "=".
This patch, against 6.8.9-7, fixes this:
This is only supported by bash, not even by GNU coreutils. The standard comparison operator is "=".
This patch, against 6.8.9-7, fixes this:
Code: Select all
--- configure.ac.orig 2014-08-13 11:58:49.000000000 +0000
+++ configure.ac
@@ -3273,12 +3273,12 @@ AC_PATH_PROG(LaunchDelegate, "$LaunchDel
AC_PATH_PROG(MANDelegate, "$MANDelegateDefault", "$MANDelegateDefault")
AC_PATH_PROG(MogrifyDelegate, "$MogrifyDelegateDefault", "$MogrifyDelegateDefault")
AC_PATH_PROG(MPEGDecodeDelegate, "$MPEGDecodeDelegateDefault", "$MPEGDecodeDelegateDefault")
-if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
+if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
MPEGDecodeDelegateDefault='ffmpeg'
AC_PATH_PROG(MPEGDecodeDelegate, "$MPEGDecodeDelegateDefault", "$MPEGDecodeDelegateDefault")
fi;
AC_PATH_PROG(MPEGEncodeDelegate, "$MPEGEncodeDelegateDefault", "$MPEGEncodeDelegateDefault")
-if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
+if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
MPEGEncodeDelegateDefault='ffmpeg'
AC_PATH_PROG(MPEGEncodeDelegate, "$MPEGEncodeDelegateDefault", "$MPEGEncodeDelegateDefault")
fi;