Back to the Vavoom Forum Archives


Forum

[Fixed] test(1) does not know about ==

Wed, 04 Jul 2007 18:31:14

sjamaan

The POSIX test(1) program has no == operator. This is a bash-specific operator. Please change this to =, because the current code will break on systems that have /bin/sh != /bin/bash. These lines occur in the configure script. Here's a patch for this:
--- configure.ac.orig   2007-06-10 13:36:44.000000000 +0200
+++ configure.ac
@@ -54,7 +54,7 @@ if test "x$AR" = "x"; then
 fi
 AC_SUBST([AR])
 
-if test "x$enable_debug" == "xyes"; then
+if test "x$enable_debug" = "xyes"; then
        CFLAGS="$CFLAGS -W -Wall"
        CXXFLAGS="$CXXFLAGS -W -Wall"
        LDFLAGS="$LDFLAGS -W -Wall"
@@ -219,7 +219,7 @@ dnl
 dnl  **** Add debug / development flags ****
 dnl
 
-if test "x$enable_zone_debug" == "xyes"; then
+if test "x$enable_zone_debug" = "xyes"; then
        CPPFLAGS="$CPPFLAGS -W -Wall -DZONE_DEBUG=1"
 fi
PS could you configure the forum to support .patch and .txt files for upload? This would make it easier for you to download and apply patches and other stuff submitted by people.
Thu, 05 Jul 2007 17:48:01

Janis Legzdinsh

Fixed.

Back to the Vavoom Forum Archives