projects/aports·blob master · refs

22 lines · 646 B

1diff --git a/configure.ac b/configure.ac
2index 990a59db2a..57a187aa11 100644
3--- a/configure.ac
4+++ b/configure.ac
5@@ -1765,7 +1765,7 @@ then
6
7 AC_MSG_CHECKING([for python distutils])
8 python_result="`$PYTHON -c 'import distutils;' 2>&1`"
9- if test -z "$python_result" ; then
10+ if test $? -eq 0; then
11 python_has_distutils="yes"
12 else
13 python_has_distutils="no"
14@@ -1886,7 +1886,7 @@ then
15
16 AC_MSG_CHECKING([for python3 distutils])
17 python3_result="`$PYTHON3 -c 'import distutils;' 2>&1`"
18- if test -z "$python3_result" ; then
19+ if test $? -eq 0 ; then
20 python3_has_distutils="yes"
21 else
22 python3_has_distutils="no"