diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2004-01-24 03:36:43 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2004-01-24 03:36:43 +0000 |
commit | fc9cc5d066807eec1f29ca8c3d20358d161de21b (patch) | |
tree | 75c3d30c0480b80062f2e41dab456e159354b83b /devel/apr2/files | |
parent | e6b1822cd224cd28a5a2a5eb7d81298876bda84d (diff) | |
download | ports-fc9cc5d066807eec1f29ca8c3d20358d161de21b.tar.gz ports-fc9cc5d066807eec1f29ca8c3d20358d161de21b.zip |
Notes
Diffstat (limited to 'devel/apr2/files')
-rw-r--r-- | devel/apr2/files/patch-apr_hints.m4 | 8 | ||||
-rw-r--r-- | devel/apr2/files/patch-apr_threads.m4 | 40 |
2 files changed, 45 insertions, 3 deletions
diff --git a/devel/apr2/files/patch-apr_hints.m4 b/devel/apr2/files/patch-apr_hints.m4 index 9e01ac75f936..0421617617bb 100644 --- a/devel/apr2/files/patch-apr_hints.m4 +++ b/devel/apr2/files/patch-apr_hints.m4 @@ -1,6 +1,6 @@ ---- apr-0.9.4/build/apr_hints.m4.orig Mon Jun 2 11:52:28 2003 -+++ apr-0.9.4/build/apr_hints.m4 Sun Nov 9 18:15:30 2003 -@@ -130,14 +130,15 @@ +--- apr-0.9.4/build/apr_hints.m4.orig Tue Dec 23 08:26:10 2003 ++++ apr-0.9.4/build/apr_hints.m4 Fri Jan 23 12:23:36 2004 +@@ -129,14 +129,17 @@ APR_ADDTO(CPPFLAGS, [-DNETBSD]) ;; *-freebsd*) @@ -16,8 +16,10 @@ - APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_THREAD_SAFE]) + if test $os_version -lt "500016"; then + ac_cv_pthreads_cflags="-D_THREAD_SAFE -D_REENTRANT" ++ ac_cv_pthreads_lib="none" + LIBS="$LIBS -pthread" + else ++ ac_cv_pthreads_cflags="none" + ac_cv_pthreads_lib="c_r" + fi ;; diff --git a/devel/apr2/files/patch-apr_threads.m4 b/devel/apr2/files/patch-apr_threads.m4 new file mode 100644 index 000000000000..bda6cbb72f4e --- /dev/null +++ b/devel/apr2/files/patch-apr_threads.m4 @@ -0,0 +1,40 @@ +--- apr-0.9.4/build/apr_threads.m4.orig Sun Nov 16 08:42:33 2003 ++++ apr-0.9.4/build/apr_threads.m4 Fri Jan 23 12:25:00 2004 +@@ -110,6 +110,7 @@ + + AC_CACHE_CHECK([for CFLAGS needed for pthreads], [apr_cv_pthreads_cflags], + [apr_ptc_cflags=$CFLAGS ++ if test "x$ac_cv_pthreads_cflags" = "x"; then + for flag in none -kthread -pthread -pthreads -mthreads -Kthread -threads; do + CFLAGS=$apr_ptc_cflags + test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag" +@@ -118,6 +119,11 @@ + break + ]) + done ++ else ++ if test "$ac_cv_pthreads_cflags" != "none"; then ++ apr_cv_pthreads_cflags="$ac_cv_pthreads_cflags" ++ fi ++ fi + CFLAGS=$apr_ptc_cflags + ]) + +@@ -136,6 +142,7 @@ + + AC_CACHE_CHECK([for LIBS needed for pthreads], [apr_cv_pthreads_lib], [ + apr_ptc_libs=$LIBS ++ if test "x$ac_cv_pthreads_lib" = "x"; then + for lib in -lpthread -lpthreads -lc_r; do + LIBS="$apr_ptc_libs $lib" + APR_PTHREADS_TRY_RUN([ +@@ -143,6 +150,9 @@ + break + ]) + done ++ else ++ test "x$ac_cv_pthreads_lib" != "xnone" && apr_cv_pthreads_lib="-l$ac_cv_pthreads_lib" ++ fi + LIBS=$apr_ptc_libs + ]) + |