]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Print an error message if /usr/bin/getconf is not found.
authorBart Van Assche <bvanassche@acm.org>
Sat, 3 May 2008 08:34:52 +0000 (08:34 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sat, 3 May 2008 08:34:52 +0000 (08:34 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7996

exp-drd/tests/supported_libpthread

index ec3cfe98551693d31841a7264a0751d54fb550d2..662f52d2b7b94f84a586d60c47a3974b772a72f0 100755 (executable)
@@ -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