diff options
author | Vadim Zeitlin <vz-swig@zeitlins.org> | 2012-04-09 20:58:10 +0000 |
---|---|---|
committer | Vadim Zeitlin <vz-swig@zeitlins.org> | 2012-04-09 20:58:10 +0000 |
commit | faa6be3bd9f30722f4f46aba17e20928ad8ef6b0 (patch) | |
tree | 1f4e6df3d38bca7e48e686358d39bc93023a948c /Tools | |
parent | b874b14db87f787052d03cb7654389ec593eb7ef (diff) | |
download | swig-faa6be3bd9f30722f4f46aba17e20928ad8ef6b0.tar.gz |
Don't use non-portable "==" in shell tests.
Use POSIX "=" instead of "==" which is not supported at least by FreeBSD
/bin/sh.
Closes #3515925.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/config/ac_compare_version.m4 | 12 | ||||
-rw-r--r-- | Tools/config/ax_path_generic.m4 | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Tools/config/ac_compare_version.m4 b/Tools/config/ac_compare_version.m4 index 79e94cc83..0828f4789 100644 --- a/Tools/config/ac_compare_version.m4 +++ b/Tools/config/ac_compare_version.m4 @@ -22,19 +22,19 @@ AC_DEFUN([AC_COMPARE_VERSION], [ isolate_b_regex='\([[0-9]]\+\).*' for ver_part in $nodots_a ; do b_ver_part=`echo "$ver_b" | sed -e 's/'"$isolate_b_regex"'/\1/'` - if test \( "$ver_part" -lt "$b_ver_part" \) -a \( "x$condition" == "xequal" \) ; then + if test \( "$ver_part" -lt "$b_ver_part" \) -a \( "x$condition" = "xequal" \) ; then condition=less - elif test \( "$ver_part" -gt "$b_ver_part" \) -a \( "x$condition" == "xequal" \) ; then + elif test \( "$ver_part" -gt "$b_ver_part" \) -a \( "x$condition" = "xequal" \) ; then condition=greater fi isolate_b_regex='[[0-9]]\+\.'"$isolate_b_regex" done - if test "x$condition" == "xequal" ; then + if test "x$condition" = "xequal" ; then [$4] - elif test "x$condition" == "xless" ; then + elif test "x$condition" = "xless" ; then [$3] - elif test "x$condition" == "xgreater" ; then + elif test "x$condition" = "xgreater" ; then [$5] fi -])
\ No newline at end of file +]) diff --git a/Tools/config/ax_path_generic.m4 b/Tools/config/ax_path_generic.m4 index 351360dac..6960d612a 100644 --- a/Tools/config/ax_path_generic.m4 +++ b/Tools/config/ax_path_generic.m4 @@ -110,19 +110,19 @@ AC_DEFUN([AX_PATH_GENERIC],[ ]) AC_PATH_PROGS(UP[]_CONFIG,[$6 DOWN-config],[no]) - AS_IF([test "$UP[]_CONFIG" == "no"],[ + AS_IF([test "$UP[]_CONFIG" = "no"],[ : $5 ],[ dnl Get the CFLAGS from LIBRARY-config script - AS_IF([test x"$7" == x],[ + AS_IF([test x"$7" = x],[ UP[]_CFLAGS="`$UP[]_CONFIG $DOWN[]_config_args --cflags`" ],[ UP[]_CFLAGS="`$UP[]_CONFIG $DOWN[]_config_args $7`" ]) dnl Get the LIBS from LIBRARY-config script - AS_IF([test x"$8" == x],[ + AS_IF([test x"$8" = x],[ UP[]_LIBS="`$UP[]_CONFIG $DOWN[]_config_args --libs`" ],[ UP[]_LIBS="`$UP[]_CONFIG $DOWN[]_config_args $8`" |