aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2016-04-25 11:27:11 +0200
committerChristophe Lyon <christophe.lyon@linaro.org>2016-05-19 12:08:40 +0000
commit380581ddb579c92f51761c80948b24fa186d834a (patch)
treef0f97ff25859e9f2a236f57cdd14d3955df3682f
parentf7d365b72fb2ed988af2f8a60c1fa04d7db37a17 (diff)
Print information about the build machine:
- hostname - uname -a - lsb_release -a - cat /proc/cpuinfo - cat /proc/meminfo This is useful when debugging build problems. Change-Id: I3143804885d40711dd846446da9e05317984bb00
-rwxr-xr-xconfigure16
-rw-r--r--configure.ac11
2 files changed, 27 insertions, 0 deletions
diff --git a/configure b/configure
index b696bcaf..68f1c56c 100755
--- a/configure
+++ b/configure
@@ -5544,6 +5544,22 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+# Print some information about the build machine
+{ $as_echo "$as_me:${as_lineno-$LINENO}: Running on: $HOSTNAME" >&5
+$as_echo "$as_me: Running on: $HOSTNAME" >&6;}
+UNAME="`uname -a`"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: $UNAME" >&5
+$as_echo "$as_me: $UNAME" >&6;}
+LSBINFO="`lsb_release -a`"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: $LSBINFO" >&5
+$as_echo "$as_me: $LSBINFO" >&6;}
+CPUINFO="`cat /proc/cpuinfo`"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: $CPUINFO" >&5
+$as_echo "$as_me: $CPUINFO" >&6;}
+MEMINFO="`cat /proc/meminfo`"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: $MEMINFO" >&5
+$as_echo "$as_me: $MEMINFO" >&6;}
+
if test x"${missing}" != x; then
as_fn_error $? "You need to install these packages: ${missing}" "$LINENO" 5
fi
diff --git a/configure.ac b/configure.ac
index e4f3fad7..399817db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -480,6 +480,17 @@ AC_SUBST(NEWWORKDIR)
AC_OUTPUT(host.conf)
+# Print some information about the build machine
+AC_MSG_NOTICE([Running on: $HOSTNAME])
+UNAME="`uname -a`"
+AC_MSG_NOTICE([$UNAME])
+LSBINFO="`lsb_release -a`"
+AC_MSG_NOTICE([$LSBINFO])
+CPUINFO="`cat /proc/cpuinfo`"
+AC_MSG_NOTICE([$CPUINFO])
+MEMINFO="`cat /proc/meminfo`"
+AC_MSG_NOTICE([$MEMINFO])
+
if test x"${missing}" != x; then
AC_MSG_ERROR([You need to install these packages: ${missing}])
fi