projects
/
shibboleth
/
cpp-opensaml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fdf10fc
)
How many times am I gonna lose this fix?
author
Scott Cantor
<cantor.2@osu.edu>
Sat, 22 Sep 2007 03:42:42 +0000
(
03:42
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Sat, 22 Sep 2007 03:42:42 +0000
(
03:42
+0000)
acx_pthread.m4
patch
|
blob
|
history
diff --git
a/acx_pthread.m4
b/acx_pthread.m4
index
7ac8ffd
..
33f1d29
100644
(file)
--- a/
acx_pthread.m4
+++ b/
acx_pthread.m4
@@
-243,8
+243,15
@@
if test "x$acx_pthread_ok" = xyes; then
AC_MSG_CHECKING([if more special flags are required for pthreads])
flag=no
case "${host_cpu}-${host_os}" in
AC_MSG_CHECKING([if more special flags are required for pthreads])
flag=no
case "${host_cpu}-${host_os}" in
- *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
- *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
+ *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
+ *-osf* | *-hpux*) flag="-D_REENTRANT";;
+ *solaris*)
+ if test "$GCC" = "yes"; then
+ flag="-D_REENTRANT"
+ else
+ flag="-mt -D_REENTRANT"
+ fi
+ ;;
esac
AC_MSG_RESULT(${flag})
if test "x$flag" != xno; then
esac
AC_MSG_RESULT(${flag})
if test "x$flag" != xno; then