From 862c35457d2cb95124d802d5dbeddb4815dc08c1 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 2 Mar 2019 15:45:37 -0800 Subject: Fix build of glibc 2.29 on systems with obsolete host programs - Force building make as a companion tool if host make is older than 4.0 (CentOS 7 currently has 3.82) - Disable 2.29 as a choice if host python is older than 3.4 (CentOS 7 has 2.6 unless python from EPEL is installed) - Python2 emits its version information to STDERR. Ugh. While there, also use the detected host Python for GDB configuration. Signed-off-by: Alexey Neyman --- m4/ctng_version_check.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm4') diff --git a/m4/ctng_version_check.m4 b/m4/ctng_version_check.m4 index fee522e2..fe80e732 100644 --- a/m4/ctng_version_check.m4 +++ b/m4/ctng_version_check.m4 @@ -18,7 +18,7 @@ AC_DEFUN([CTNG_PROG_VERSION], [ac_cv_path_$1="$$1" CTNG_PATH_ABSNAME([ac_cv_path_$1]) CTNG_MSG_LOG_ENVVAR([ac_cv_path_$1]) - ver=$(eval $ac_cv_path_$1 --version 2>/dev/null) + ver=$(eval $ac_cv_path_$1 --version 2>&1) CTNG_MSG_LOG([looking for '[$5]' regexp in]) CTNG_MSG_LOG_ENVVAR([ver], [version info for $ac_cv_path_$1]) ver=$(AS_ECHO(["$ver"]) | $EGREP '[$5]') @@ -26,7 +26,7 @@ AC_DEFUN([CTNG_PROG_VERSION], [AC_CACHE_CHECK([for $3], [ac_cv_path_$1], [AC_PATH_PROGS_FEATURE_CHECK([$1], [$4], [CTNG_MSG_LOG_ENVVAR([ac_path_$1], [checking $1 at]) - ver=$($ac_path_$1 --version 2>/dev/null) + ver=$($ac_path_$1 --version 2>&1) CTNG_MSG_LOG([looking for '[$5]' regexp in]) CTNG_MSG_LOG_ENVVAR([ver], [version info]) ver=$(AS_ECHO(["$ver"]) | $EGREP '[$5]') -- cgit v1.2.3