summaryrefslogtreecommitdiffstats
path: root/boehm-gc/configure
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-07 01:02:31 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-07 01:02:31 +0000
commit4b04d5da9664071707b4d123f361fe50de22fb9a (patch)
tree743d9a439c476b1312d603f747bf02782d271c50 /boehm-gc/configure
parentdb21128ecc6870fbcd060be3d869dc0114ce37d7 (diff)
downloadppe42-gcc-4b04d5da9664071707b4d123f361fe50de22fb9a.tar.gz
ppe42-gcc-4b04d5da9664071707b4d123f361fe50de22fb9a.zip
2006-02-06 Jakub Jelinek <jakub@redhat.com>
Anthony Green <green@redhat.com> Tom Tromey <tromey@redhat.com> * include/gc_ext_config.h.in: Added GC_PTHREAD_SYM_VERSION. * include/gc_config.h.in: Rebuilt. * include/gc_pthread_redirects.h (pthread_create): Conditionally define. * pthread_support.c (pthread_create_): New global. (constr): New function. (pthread_create): Conditionally renamed. * configure: Rebuilt. * configure.ac (GC_PTHREAD_SYM_VERSION): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110682 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/configure')
-rwxr-xr-xboehm-gc/configure23
1 files changed, 23 insertions, 0 deletions
diff --git a/boehm-gc/configure b/boehm-gc/configure
index a4aeaa8f43d..e0223dd7ea3 100755
--- a/boehm-gc/configure
+++ b/boehm-gc/configure
@@ -6627,6 +6627,29 @@ _ACEOF
fi
+symver=
+case "$target" in
+ *-*-linux* )
+ cat > conftest.c <<EOF
+#include <pthread.h>
+void *tf (void *arg) { (void) arg; return NULL; }
+int main (void) { pthread_t th; pthread_create (&th, NULL, tf, NULL); return 0; }
+EOF
+ if $CC $CFLAGS -pthread -o conftest conftest.c > /dev/null 2>&1; then
+ symver=`readelf -s conftest 2> /dev/null | sed -n '/UND pthread_create@/{s/^.*@//;s/ .*$//;p;q}'`
+ fi
+ rm -f conftest conftest.c
+ ;;
+esac
+if test -n "$symver"; then
+
+cat >>confdefs.h <<_ACEOF
+#define GC_PTHREAD_SYM_VERSION "$symver"
+_ACEOF
+
+fi
+
+
if test -n "$with_cross_host" &&
test x"$with_cross_host" != x"no"; then
toolexecdir='$(exec_prefix)/$(target_noncanonical)'
OpenPOWER on IntegriCloud