[PATCH] Fix configure when /bin/sh is not bash

Andrew Savchenko <[email protected]> Sat, 5 Sep 2020 14:40:07 +0300
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
--===============2016569410483375278==
Content-Type: multipart/signed; protocol="application/pgp-signature";
 micalg="PGP-SHA512";
 boundary="Signature=_Sat__5_Sep_2020_14_40_08_+0300_w+XY/NnD8_G.Kd1s"

--Signature=_Sat__5_Sep_2020_14_40_08_+0300_w+XY/NnD8_G.Kd1s
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

When /bin/sh used by autoconf is not bash, e.g. dash, configure
fails because it uses bash-specific equality operator "=3D=3D".

Fix this problem by replacing "=3D=3D" with POSIX "=3D" which is
sufficient for test where it is being used.

Signed-off-by: Andrew Savchenko <[email protected]>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 05609f6e..f5fcd17d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -466,8 +466,8 @@ AX_COPY_IF_CHANGE(doc/xsl/catalog-1.xml, doc/xsl/catalo=
g.xml)

 if ! test "x$enable_account_check" =3D "xyes"; then
    :
-elif test "`getent passwd oprofile 2>/dev/null`" =3D=3D "" || \
-     test "`getent group oprofile 2>/dev/null`" =3D=3D ""; then
+elif test "`getent passwd oprofile 2>/dev/null`" =3D "" || \
+     test "`getent group oprofile 2>/dev/null`" =3D ""; then
    if test `id -u` !=3D "0"; then
        echo "Warning: The user account 'oprofile:oprofile' does not exist =
on the system."
        echo "         To profile JITed code, this special user account mus=
t exist."
--
2.24.0

Best regards,
Andrew Savchenko

--Signature=_Sat__5_Sep_2020_14_40_08_+0300_w+XY/NnD8_G.Kd1s
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE63ZIHsdeM+1XgNer9lNaM7oe5I0FAl9TeRgACgkQ9lNaM7oe
5I1d/w//f19maivaJFQCESnz+bV+Y7phtq55wiuwTjP9rzS0pGVMDFctfJkgN1Ln
664bPcHt26eUpmVL6tASjoifoXJLqPx2VJARa1UAtHs9Fxf+TEzkB/ARRbnrC/kH
Wtv8JNOtL18xue1To/UtjK8XQ/1lSBYBv9BiqUV5msnNAExu0RyeTEvunu98H/3b
ETqSdMs4tLzRIm66ppBHfxK8og0sKSBxT9pZr6qT23vOOG+Q7uJGvADNV/7Y16iS
xC0k4AtUAUeqBTMENEleYdmiMW6B7DvIU/p6VPvLJkDWIM9rsmPH8bLJPqDLTacQ
UWO6TXf2oFXrwikYM35e3VZrZa20Vkv8leUKW2m+p9lO7wxOj1rtIrFFx5gOAdyW
I1+HezEsw+56OmuapJVYW5xKx8o8FbRGtsm3vScyVB0lefHzHTOGCdATfFI2lVDD
fDciXqd5o/Yhk3jdFXi7J+fK7o0NhD0GLdioomLxa0WEbBz0lq08eZ9JNP74hDFb
2xIIws8sdE1DuHsUnbCuXQ2uItFNvYfb9BNpx8ucPCqJV989nXkv7mFlcakFh7nI
ptI7DNnSPzK+/7JFaT2m97V5WronTfmZpNLeY2AlA6BofVc1aqdmDs5fCPpYAefs
CMbK7ciViJvy8fiT2sm6+UpRj5HiGGQNT9edPBiSqrmpctl7E/8=
=i++B
-----END PGP SIGNATURE-----

--Signature=_Sat__5_Sep_2020_14_40_08_+0300_w+XY/NnD8_G.Kd1s--


--===============2016569410483375278==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============2016569410483375278==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list

--===============2016569410483375278==--