]> git.sesse.net Git - vlc/commitdiff
Configure.ac: fix check for 32 bit luac on some platforms
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 6 Mar 2014 15:38:48 +0000 (16:38 +0100)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 8 Mar 2014 20:07:59 +0000 (21:07 +0100)
configure.ac

index ee788fc7dbd29773b617b0ddc49f83d86f90d62c..e9defb851a0fc2516fe91511a309ea3e926ad141 100644 (file)
@@ -1528,7 +1528,7 @@ then
   AS_IF([test "${LUAC}" = "false"], [
     AC_MSG_ERROR([Could not find the LUA byte compiler.])
   ])
-  AS_IF([test -d "${CONTRIB_DIR}" -a -f "${CONTRIB_DIR}"/lib/liblua.a -a `echo|${LUAC} -o - -|od -j 8 -N 2 -t x2|head -n 1|cut -d' ' -f2` != 0404], [
+  AS_IF([test -d "${CONTRIB_DIR}" -a -f "${CONTRIB_DIR}"/lib/liblua.a -a `echo|${LUAC} -o - -|od -j 8 -N 2 -t x2|head -n 1|tr -s ' '|cut -d' ' -f2` != 0404], [
     AC_MSG_ERROR([You need 32-bits luac when using using lua from contrib.])
   ])
 fi