aboutsummaryrefslogtreecommitdiffstats
path: root/config/ax_python_devel.m4
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-05-14 11:55:17 +0200
committerBrian Behlendorf <[email protected]>2021-06-08 14:45:03 -0700
commit59d91b4d10bac7597cb21394080b3f33b84e184a (patch)
treecb36445604228978f12ca96ec3607bb86eea8006 /config/ax_python_devel.m4
parentd53a6969c106cc06a8064dabc3161364e7e04ba9 (diff)
Fix SC2181 ("[ $?") outside tests/
Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12042
Diffstat (limited to 'config/ax_python_devel.m4')
-rw-r--r--config/ax_python_devel.m43
1 files changed, 1 insertions, 2 deletions
diff --git a/config/ax_python_devel.m4 b/config/ax_python_devel.m4
index c51b45b7d..faf6c2b0d 100644
--- a/config/ax_python_devel.m4
+++ b/config/ax_python_devel.m4
@@ -148,8 +148,7 @@ variable to configure. See ``configure --help'' for reference.
# Check if you have distutils, else fail
#
AC_MSG_CHECKING([for the distutils Python package])
- ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
- if test $? -eq 0; then
+ if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])