Bug #11007 "test == " in configure.in

Submitted: 1 Jun 2005 4:31 Modified: 17 Jun 2005 3:13
Reporter: Dan Nelson Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.6 OS:FreeBSD (FreeBSD)
Assigned to: Joerg Bruehe CPU Architecture:Any

[1 Jun 2005 4:31] Dan Nelson
Description:
The mysql-manager configure.in test uses == in a test operation, which is not a portable comparison operator. = should be used instead.

How to repeat:
Run ./configure on any OS where /bin/sh is a true bourne shell and not bash/ksh/zsh in disguise.

Suggested fix:
--- configure.in.orig       Tue May 31 23:20:25 2005
+++ configure.in        Tue May 31 23:20:25 2005
@@ -2268,7 +2268,7 @@
   [if test "x${withval}" != "xno"; then
     tools_dirs="$tools_dirs server-tools"
    fi],
-  [if test "x${with_server}" == "xyes"; then
+  [if test "x${with_server}" = "xyes"; then
      tools_dirs="$tools_dirs server-tools"
    fi]
 )
[16 Jun 2005 11:52] Joerg Bruehe
Changed as suggested.
[16 Jun 2005 15:13] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/26068
[17 Jun 2005 3:13] Paul DuBois
No changelog entry needed.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.