From f6c9a57869036b93e912cb333057d6fc706ea4df Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 22 Oct 2004 18:46:18 +0000 Subject: figure out which thread implementation to use --- src/libthread/thread.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/libthread/thread.sh diff --git a/src/libthread/thread.sh b/src/libthread/thread.sh new file mode 100644 index 00000000..e3984b79 --- /dev/null +++ b/src/libthread/thread.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ `uname` = Linux ] +then + case "`uname | awk '{print $3}'`" in + *) + echo Linux-clone + ;; + 2.[6789]*) + echo pthread + ;; + esac +else + echo pthread +fi -- cgit v1.2.3