From: Bart Van Assche Date: Sat, 3 May 2008 08:34:52 +0000 (+0000) Subject: Print an error message if /usr/bin/getconf is not found. X-Git-Tag: svn/VALGRIND_3_4_0~641 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9977e2ee9214aa15e53f0c4bd09f70a525e2b735;p=thirdparty%2Fvalgrind.git Print an error message if /usr/bin/getconf is not found. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7996 --- diff --git a/exp-drd/tests/supported_libpthread b/exp-drd/tests/supported_libpthread index ec3cfe9855..662f52d2b7 100755 --- a/exp-drd/tests/supported_libpthread +++ b/exp-drd/tests/supported_libpthread @@ -5,6 +5,11 @@ # libpthread is found (LinuxThreads). if [ "$(uname)" = "Linux" ]; then + if [ ! -x /usr/bin/getconf ]; then + echo "Error: could not find the program /usr/bin/getconf." + # Assume NPTL. + exit 0 + fi libpthread_version="$(/usr/bin/getconf GNU_LIBPTHREAD_VERSION 2>/dev/null)" if [ "${libpthread_version#NPTL}" != "${libpthread_version}" ]; then # NPTL