diff options
author | Andreas Tobler <a.tobler@schweiz.ch> | 2006-03-24 18:59:29 +0100 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2006-03-24 18:59:29 +0100 |
commit | d0c03515ba316fc4875d12dd219cc6c21891ef4a (patch) | |
tree | 1c791519af09cf9a78419751751cd48e970233eb /boehm-gc | |
parent | 2d67effa4665b11b52b585311263609e6ece0d47 (diff) | |
download | gcc-d0c03515ba316fc4875d12dd219cc6c21891ef4a.zip gcc-d0c03515ba316fc4875d12dd219cc6c21891ef4a.tar.gz gcc-d0c03515ba316fc4875d12dd219cc6c21891ef4a.tar.bz2 |
configure.ac (THREADS): Add REENTRANT for *-*-hpux11*.
2006-03-24 Andreas Tobler <a.tobler@schweiz.ch>
John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* configure.ac (THREADS): Add REENTRANT for *-*-hpux11*.
Warn about POSIX threads not being supported for *-*-hpux10*.
* configure: Regenerate.
Co-Authored-By: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
From-SVN: r112355
Diffstat (limited to 'boehm-gc')
-rw-r--r-- | boehm-gc/ChangeLog | 7 | ||||
-rwxr-xr-x | boehm-gc/configure | 16 | ||||
-rw-r--r-- | boehm-gc/configure.ac | 9 |
3 files changed, 27 insertions, 5 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 81bf9f6..1195d7e 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,10 @@ +2006-03-24 Andreas Tobler <a.tobler@schweiz.ch> + John David Anglin <dave.anglin@nrc-cnrc.gc.ca> + + * configure.ac (THREADS): Add REENTRANT for *-*-hpux11*. + Warn about POSIX threads not being supported for *-*-hpux10*. + * configure: Regenerate. + 2006-02-09 Tom Tromey <tromey@redhat.com> * pthread_support.c: Conditionally include dlfcn.h. diff --git a/boehm-gc/configure b/boehm-gc/configure index e0223dd..65575a5 100755 --- a/boehm-gc/configure +++ b/boehm-gc/configure @@ -5409,9 +5409,9 @@ _ACEOF _ACEOF ;; - *-*-hpux*) - { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5 -echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;} + *-*-hpux11*) + { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5 +echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;} cat >>confdefs.h <<\_ACEOF #define GC_HPUX_THREADS 1 @@ -5433,6 +5433,16 @@ _ACEOF _ACEOF THREADLIBS="-lpthread -lrt" + # HPUX needs REENTRANT for the _r calls. + +cat >>confdefs.h <<\_ACEOF +#define _REENTRANT 1 +_ACEOF + + ;; + *-*-hpux10*) + { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5 +echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;} ;; *-*-freebsd*) { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5 diff --git a/boehm-gc/configure.ac b/boehm-gc/configure.ac index 2b9663d..69ad5cd 100644 --- a/boehm-gc/configure.ac +++ b/boehm-gc/configure.ac @@ -140,8 +140,8 @@ case "$THREADS" in AC_DEFINE(GC_AIX_THREADS,1,[support AIX threads]) AC_DEFINE(_REENTRANT,1) ;; - *-*-hpux*) - AC_MSG_WARN("Only HP/UX 11 threads are supported.") + *-*-hpux11*) + AC_MSG_WARN("Only HP-UX 11 POSIX threads are supported.") AC_DEFINE(GC_HPUX_THREADS,1,[enables support for HP/UX 11 pthreads]) AC_DEFINE(_POSIX_C_SOURCE,199506L,[POSIX version of C Source]) if test "${enable_parallel_mark}" = yes; then @@ -149,6 +149,11 @@ case "$THREADS" in fi AC_DEFINE(THREAD_LOCAL_ALLOC,1) THREADLIBS="-lpthread -lrt" + # HPUX needs REENTRANT for the _r calls. + AC_DEFINE(_REENTRANT, 1, [Required define if using POSIX threads]) + ;; + *-*-hpux10*) + AC_MSG_WARN("Only HP-UX 11 POSIX threads are supported.") ;; *-*-freebsd*) AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.") |