--- layout: fc_discuss_archives title: Message 56 from Frama-C-discuss on February 2010 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] [PATCH 4/4] Remove uses of == in share/configure.ac



index 3b574dd..792a5bf 100644
--- a/share/configure.ac
+++ b/share/configure.ac
@@ -92,7 +92,7 @@ define([KNOWN_SRC_DIRS],KNOWN_SRC_DIRS PLUGIN_FILE PLUGIN_ADDITIONAL_DIR)
 #)
 #eval ENABLE_DYNAMIC_$up=\$ENABLE
 
-if test "$plugin_present" == "no" -a "$FORCE" == "yes"; then
+if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
   AC_MSG_ERROR([PLUGIN_NAME is not available])
 fi
 up=`upper PLUGIN_NAME`
@@ -103,7 +103,7 @@ define([PLUGINS_LIST],PLUGINS_LIST upup)
 eval ENABLE_$up=\$ENABLE
 eval NAME_$up=PLUGIN_NAME
 
-if test "$default" == "no" -a "$FORCE" == "no"; then
+if test "$default" = "no" -a "$FORCE" = "no"; then
   # [JS 2009/03/27] don't know why that doesn't work in one single line
   tmp=" (not available by default)"
   eval INFO_$up=\$tmp
@@ -120,7 +120,7 @@ m4_if("PLUGIN_DYNAMIC","yes",
    undefine([STATIC_HELP])],
    [is_static=yes])
 
-if test "$is_static" == "no"; then
+if test "$is_static" = "no"; then
   USE_NATIVE_DYNLINK="${USE_NATIVE_DYNLINK} PLUGIN_NAME"
   eval DYNAMIC_$up=yes
 else
@@ -154,23 +154,23 @@ m4_define([configure_library],
 # [JS 2009/06/02] sh tests and m4 variables do not mix well together.
 # It works by chance but it is not robust enough.
 # Should be rewritten
-  if test -n "require" -o -n "use" -o "$4" == "yes"; then
+  if test -n "require" -o -n "use" -o "$4" = "yes"; then
     has=no
     m4_foreach(file,[PROG],
        [if test "$has" != "yes"; then
           AC_CHECK_FILE(file,has=yes,has=no)
-          if test "$has" == "yes"; then SELECTED_VAR=file
+          if test "$has" = "yes"; then SELECTED_VAR=file
           fi
        fi]
        )
-    if test "$has" == "no"; then
+    if test "$has" = "no"; then
       AC_MSG_WARN(msg)
       if test "require" != ""; then
         echo "plug-ins disabled:
  require"
         for p in require; do
 	  fp=FORCE_`upper "$p"`
-	  if eval test "\$$fp" == "yes"; then
+	  if eval test "\$$fp" = "yes"; then
 	    AC_MSG_ERROR($p requested but PROG missing.)
 	  fi
           ep=ENABLE_`upper "$p"`
@@ -223,20 +223,20 @@ m4_ifdef(HAS_$1,,
   define([has],[HAS_$1])
   define([force_check],[$4])
 
-  if test -n "require" -o -n "use" -o "$force_check" == "yes"; then
+  if test -n "require" -o -n "use" -o "$force_check" = "yes"; then
     for file in PROG; do
      has=
     AC_CHECK_PROG(has,$file,yes,no)
-      if test "$has" == "yes"; then SELECTED_VAR=$file break; fi
+      if test "$has" = "yes"; then SELECTED_VAR=$file break; fi
       done
-    if test "$has" == "no"; then
+    if test "$has" = "no"; then
       AC_MSG_WARN([msg])
       if test "require" != ""; then
         echo "plug-ins disabled:
  require"
         for p in require; do
 	  fp=FORCE_`upper "$p"`
-	  if eval test "\$$fp" == "yes"; then
+	  if eval test "\$$fp" = "yes"; then
 	    AC_MSG_ERROR([$p requested but PROG missing.])
 	  fi
           ep=ENABLE_`upper "$p"`
-- 
1.6.5.3