forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From f51bf1114bee6d56a950dcc6ebb46d6138b3faed Mon Sep 17 00:00:00 2001
From: Ross Burton <ross.burton@intel.com>
Date: Wed, 16 Aug 2017 02:06:45 -0400
Subject: [PATCH 4/7] python import
 
Don't check for output on stderr to know if an import worked, host inputrc and
sysroot readline can cause warnings on stderr.
 
Upstream-Status: Backport (from autoconf-archive 883a2abd)
Signed-off-by: Ross Burton <ross.burton@intel.com>
 
Rebase to 1.9.0
 
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 m4/ax_python_devel.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4
index b990d5b..318b089 100644
--- a/m4/ax_python_devel.m4
+++ b/m4/ax_python_devel.m4
@@ -137,7 +137,7 @@ variable to configure. See ``configure --help'' for reference.
     #
     AC_MSG_CHECKING([for the distutils Python package])
     ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
-    if test -z "$ac_distutils_result"; then
+    if test $? -eq 0; then
         AC_MSG_RESULT([yes])
     else
         AC_MSG_RESULT([no])
-- 
2.7.4