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