5 # This file is part of mbed TLS (https://tls.mbed.org)
7 # Copyright (c) 2016, ARM Limited, All Rights Reserved
11 # To print out all the relevant information about the development environment.
14 # - architecture of the system
15 # - type and version of the operating system
16 # - version of armcc, clang, gcc-arm and gcc compilers
17 # - version of libc, clang, asan and valgrind if installed
18 # - version of gnuTLS and OpenSSL
29 if ! `type "$BIN" > /dev/null 2>&1`; then
35 VERSION_STR=`$BIN $ARGS 2>&1`
38 while [ $# -gt 0 ]; do
41 VERSION_STR=`echo "$VERSION_STR" | $FILTER`
44 echo "* ${BIN##*/}: $BIN: $VERSION_STR"
47 print_version "uname" "-a" ""
50 if [ "${RUN_ARMCC:-1}" -ne 0 ]; then
51 : "${ARMC5_CC:=armcc}"
52 print_version "$ARMC5_CC" "--vsn" "armcc not found!" "head -n 2"
55 : "${ARMC6_CC:=armclang}"
56 print_version "$ARMC6_CC" "--vsn" "armclang not found!" "head -n 2"
60 print_version "arm-none-eabi-gcc" "--version" "gcc-arm not found!" "head -n 1"
63 print_version "gcc" "--version" "gcc not found!" "head -n 1"
66 print_version "clang" "--version" "clang not found" "head -n 2"
69 print_version "ldd" "--version" \
70 "No ldd present: can't determine libc version!" \
74 print_version "valgrind" "--version" "valgrind not found!"
78 print_version "$OPENSSL" "version" "openssl not found!"
81 if [ -n "${OPENSSL_LEGACY+set}" ]; then
82 print_version "$OPENSSL_LEGACY" "version" "openssl legacy version not found!"
86 if [ -n "${OPENSSL_NEXT+set}" ]; then
87 print_version "$OPENSSL_NEXT" "version" "openssl next version not found!"
91 : ${GNUTLS_CLI:=gnutls-cli}
92 print_version "$GNUTLS_CLI" "--version" "gnuTLS client not found!" "head -n 1"
95 : ${GNUTLS_SERV:=gnutls-serv}
96 print_version "$GNUTLS_SERV" "--version" "gnuTLS server not found!" "head -n 1"
99 if [ -n "${GNUTLS_LEGACY_CLI+set}" ]; then
100 print_version "$GNUTLS_LEGACY_CLI" "--version" \
101 "gnuTLS client legacy version not found!" \
106 if [ -n "${GNUTLS_LEGACY_SERV+set}" ]; then
107 print_version "$GNUTLS_LEGACY_SERV" "--version" \
108 "gnuTLS server legacy version not found!" \
113 if `hash dpkg > /dev/null 2>&1`; then
115 dpkg -s libasan2 2> /dev/null | grep -i version
116 dpkg -s libasan1 2> /dev/null | grep -i version
117 dpkg -s libasan0 2> /dev/null | grep -i version
119 echo "* No dpkg present: can't determine asan version!"