1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

m4: Improve portability for non-bash shells

= and == are both operators to test for string equality in bash,
but only = is required by POSIX.

Signed-off-by: Maya Rashish <coypu@sdf.org>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Maya Rashish 2019-10-19 11:46:33 +00:00 committed by Andrea Bolognani
parent 7530ebc7b4
commit 417bd1e716

View File

@ -26,7 +26,7 @@ AC_DEFUN([LIBVIRT_CHECK_NLS],[
then
AC_CHECK_FUNC([gettext], [], [
AC_CHECK_LIB([intl], [gettext], [], [
if test "x$enable_nls" == "xcheck"
if test "x$enable_nls" = "xcheck"
then
enable_nls=no
else
@ -39,7 +39,7 @@ AC_DEFUN([LIBVIRT_CHECK_NLS],[
if test "x$enable_nls" != "xno"
then
AC_CHECK_HEADERS([libintl.h], [enable_nls=yes],[
if test "x$enable_nls" == "xcheck"
if test "x$enable_nls" = "xcheck"
then
enable_nls=no
else