Bug#582795: libmei: FTBFS: bashisms in configure script

Clint Adams schizo at debian.org
Sun May 23 18:06:37 UTC 2010


On Sun, May 23, 2010 at 08:00:15PM +0200, Jakub Wilk wrote:
 | checking for working strtod... yes
> | checking for memset... yes
> | checking for pow... yes
> | test: 12263: xnone: unexpected operator
> | checking for swig... no
> | test: 12263: xno: unexpected operator
> | checking for swig... (cached) no
> | checking for SWIG version... | configure: error: cannot determine SWIG 
> version

== is not a valid operator in POSIX `test`.

--- configure.ac.orig	2010-05-23 14:05:14.138864336 -0400
+++ configure.ac	2010-05-23 14:05:29.478880187 -0400
@@ -302,14 +302,14 @@
     # Checks for SWIG
     #----------------
 
-    if test "x${SWIG_EXE}" == "xnone" ; then
+    if test "x${SWIG_EXE}" = "xnone" ; then
         AC_PATH_PROG(SWIG, swig, "no")
     else
         AC_PATH_PROG(SWIG, swig, "no", [${SWIG_EXE}])
     fi
 
 
-    if test "x${SWIG}" == "xno" ; then
+    if test "x${SWIG}" = "xno" ; then
         AC_MSG_WARN([])
         AC_MSG_WARN([Swig executable not found])
         AC_MSG_WARN([Please install swig from http://www.swig.org])
@@ -323,7 +323,7 @@
     # Checks for Python
     #------------------
 
-    if test "x${PYTHON_EXE}" == "xnone" ; then
+    if test "x${PYTHON_EXE}" = "xnone" ; then
         AC_PATH_PROG([PYEXE], [python], ["no"])
     else
         AC_PATH_PROG([PYEXE], [python], ["no"], [${PYTHON_EXE}])
@@ -332,7 +332,7 @@
     PYTHON=${PYEXE}
     AM_PATH_PYTHON([2.4],, PYTHON="no")
 
-    if test "x${PYTHON}" == "xno" ; then
+    if test "x${PYTHON}" = "xno" ; then
         AC_MSG_WARN([])
         AC_MSG_WARN([Python interpreter not found])
         AC_MSG_WARN([Please install Python from http://www.python.org])





More information about the debian-science-maintainers mailing list