From b3cc8fe8f92598e49f0ccf9b54d9e2582fed4149 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 17 Nov 2018 01:37:24 +0000 Subject: [PATCH] configure fix for msys2 + mingw Python For some unknown reason msys2 and mingw adds trailing whitespace when running: python3-config --exec-prefix --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a515f8bed..c9241d0d8 100644 --- a/configure.ac +++ b/configure.ac @@ -826,7 +826,8 @@ else PY3PREFIX=`($PY3CONFIG --prefix) 2>/dev/null` AC_MSG_RESULT($PY3PREFIX) AC_MSG_CHECKING(for Python 3.x exec-prefix) - PY3EPREFIX=`($PY3CONFIG --exec-prefix) 2>/dev/null` + # Piped through xargs to strip trailing whitespace (bug in msys2 + mingw Python) + PY3EPREFIX=`($PY3CONFIG --exec-prefix | xargs) 2>/dev/null` AC_MSG_RESULT($PY3EPREFIX) # Note: I could not think of a standard way to get the version string from different versions.