Bug #53175 test == in configure.in
Submitted: 26 Apr 2010 19:18 Modified: 27 Apr 2010 9:18
Reporter: Twang Li Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.19 OS:Other (NetBSD)
Assigned to: CPU Architecture:Any
Tags: configure, contributions, test

[26 Apr 2010 19:18] Twang Li
Description:
test == in configure.in

How to repeat:
bmake configure

Suggested fix:
$NetBSD$

--- configure.in.orig	2010-04-15 22:19:49.000000000 +0000
+++ configure.in
@@ -7,7 +7,7 @@ AC_CONFIG_HEADER(config.h)
 AC_ARG_ENABLE(debug,
 [  --disable-debug   do not compile with debugging symbols], enable_debug=$enableval, enable_debug=yes)
 
-if test x"$enable_debug" == xyes; then
+if test x"$enable_debug" = xyes; then
   debug_flags="-ggdb3 -DENABLE_DEBUG"
 #  optimize_flags="-O0"
 #else
@@ -18,7 +18,7 @@ fi
 AC_ARG_ENABLE(codecoverage,
 [  --enable-codecoverage   instrument code for code coverage stats], enable_codecoverage=yes, enable_codecoverage=no)
 
-if test x"$enable_codecoverage" == xyes; then
+if test x"$enable_codecoverage" = xyes; then
   codecoverage_flags="-fprofile-arcs -ftest-coverage"
 else
   codecoverage_flags=""
@@ -28,7 +28,7 @@ fi
 # Disable GRT header generation by default so that simple builds will not touch files in repo
 AC_ARG_ENABLE(grt-generation,
 [  --enable-grt-generation  regenerate headers used by GRT], generate_headers=$enableval, generate_headers=no)
-AM_CONDITIONAL(BUILD_GRT_HEADERS, test $generate_headers == yes)
+AM_CONDITIONAL(BUILD_GRT_HEADERS, test $generate_headers = yes)
 
 
 # Set some common flags for gcc
@@ -76,7 +76,7 @@ AC_CHECK_HEADERS([sys/select.h])
 AC_CHECK_HEADERS([tr1/unordered_set tr1/unordered_map])
 
 
-if test "$(uname -s)" == "Darwin"; then
+if test "$(uname -s)" = "Darwin"; then
 IS_MACOSX=yes
 else
 IS_MACOSX=no
@@ -100,7 +100,7 @@ if test x$enable_i18n = xyes; then
 fi
 
 have_zip="no"
-if test x"$ac_libzip_libs" == x"no"; then
+if test x"$ac_libzip_libs" = x"no"; then
     PKG_CHECK_MODULES(ZIP, [libzip])
     have_zip="yes"
 else
@@ -109,7 +109,7 @@ else
     have_zip="yes"
 fi
 
-if test x"$have_zip" == x"no"; then
+if test x"$have_zip" = x"no"; then
 echo "Libzip can not be found. Either add libzip.pc path to PKG_CONFIG_PATH, or specify includes and libs manually"
 exit 1
 fi
[26 Apr 2010 21:27] Alfredo Kojima
Thanks for the bug report, the incompatibilities have been fixed.
[26 Apr 2010 21:48] Johannes Taxacher
fix confirmed in repository
[27 Apr 2010 9:18] Tony Bedford
An entry has been added to the 5.2.20 changelog:

The MySQL Workbench configure script, configure.in, contained a construct incompatible with NetBSD. The script used test == instead of test =.