pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/db3 Add case for DragonFly and modify -lpthr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/188de6c8b434
branches:  trunk
changeset: 503989:188de6c8b434
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Dec 02 19:39:23 2005 +0000

description:
Add case for DragonFly and modify -lpthread detection to check for
-pthread as well. This can be simplified once PTHREAD_* on NetBSD
is fixed.

diffstat:

 databases/db3/distinfo         |   4 +-
 databases/db3/patches/patch-ab |  84 +++++++++++++++++++++++++++++++++++++++---
 2 files changed, 80 insertions(+), 8 deletions(-)

diffs (135 lines):

diff -r 37c3efa35579 -r 188de6c8b434 databases/db3/distinfo
--- a/databases/db3/distinfo    Fri Dec 02 18:47:58 2005 +0000
+++ b/databases/db3/distinfo    Fri Dec 02 19:39:23 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2005/02/27 21:50:26 jschauma Exp $
+$NetBSD: distinfo,v 1.15 2005/12/02 19:39:23 joerg Exp $
 
 SHA1 (db-3.3.11.tar.gz) = d6871c7e6008eb726d6fc28e3debc44d34570f93
 RMD160 (db-3.3.11.tar.gz) = 08092e2cd6d67e767ed5c3f7ff55726c3f6a7d45
@@ -10,6 +10,6 @@
 RMD160 (patch.3.3.11.2) = 45d70f870b69552fd76a44c00c41d891de4d3b24
 Size (patch.3.3.11.2) = 325 bytes
 SHA1 (patch-aa) = fec159b70b9da369a5b95b3e74488b07c87a8bfb
-SHA1 (patch-ab) = a2739c9dccc4564a34e71e6f830b609d057f0155
+SHA1 (patch-ab) = ae1a963bd0ec26555718c1696b56914834a25ffc
 SHA1 (patch-ac) = 38b3eda1e70dbf6d27ae09affc4b570e4190788e
 SHA1 (patch-ad) = 750da0d7561f74d88d5a008e8eb8f59636cb5f47
diff -r 37c3efa35579 -r 188de6c8b434 databases/db3/patches/patch-ab
--- a/databases/db3/patches/patch-ab    Fri Dec 02 18:47:58 2005 +0000
+++ b/databases/db3/patches/patch-ab    Fri Dec 02 19:39:23 2005 +0000
@@ -1,8 +1,17 @@
-$NetBSD: patch-ab,v 1.5 2004/04/07 15:13:06 jmmv Exp $
+$NetBSD: patch-ab,v 1.6 2005/12/02 19:39:23 joerg Exp $
 
 --- ../dist/configure.orig     2001-07-13 03:34:11.000000000 +0200
 +++ ../dist/configure  2004-04-07 17:02:25.000000000 +0200
-@@ -4329,6 +4329,7 @@
+@@ -2819,6 +2819,8 @@ bsdi*)      optimize_def="-O2";;
+ freebsd*)  optimize_def="-O2"
+          CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
+            LIBS="-pthread";;
++dragonfly*)optimize_def="-O2"
++           LIBS="-pthread";;
+ hpux*)           CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
+ irix*)           optimize_def="-O2"
+          CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";;
+@@ -4329,6 +4331,7 @@ fi
  if test "$GXX" = "yes"; then
        CXXVERSION=`${MAKEFILE_CXX} --version`
        case ${CXXVERSION} in
@@ -10,7 +19,7 @@
        1.*|2.[01234567].*|*-1.*|*-2.[01234567].*)
                CXXFLAGS="-fhandle-exceptions $CXXFLAGS";;
        *)
-@@ -8439,7 +8440,7 @@
+@@ -8439,7 +8442,7 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtoo
  # Prevent multiple expansion
  
  LIBTOOL="\$(SHELL) ./libtool"
@@ -19,7 +28,7 @@
  SOFLAGS="-rpath \$(libdir)"
  
  SAVE_CC="${MAKEFILE_CC}"
-@@ -8449,7 +8450,7 @@
+@@ -8449,7 +8452,7 @@ MAKEFILE_CXX="\$(LIBTOOL) --mode=compile
  MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${SAVE_CC}"
  MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${SAVE_CXX}"
  
@@ -28,11 +37,74 @@
  INSTALLER="\$(LIBTOOL) --mode=install cp"
  
  # Configure for shared libraries, static libraries, or both.  If both are
-@@ -9165,6 +9166,7 @@
+@@ -9165,6 +9168,7 @@ if test "${ac_cv_lib_pthread_pthread_cre
  else
    ac_check_lib_save_LIBS=$LIBS
  LIBS="-lpthread  $LIBS"
-+LIBSO_LIBS="-lpthread  $LIBSO_LIBS"
++LIBSO_LIBS="-lpthread"
  cat >conftest.$ac_ext <<_ACEOF
  #line 9169 "configure"
  #include "confdefs.h"
+@@ -9211,6 +9215,62 @@ if test $ac_cv_lib_pthread_pthread_creat
+   TEST_LIBS="-lpthread $TEST_LIBS"
+ fi
+ 
++if test $ac_cv_lib_pthread_pthread_create != yes; then
++echo "$as_me:9161: checking for pthread_create in -pthread" >&5
++echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6
++if test "${ac_cv_pthread_pthread_create+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-pthread  $LIBS"
++LIBSO_LIBS="-pthread"
++cat >conftest.$ac_ext <<_ACEOF
++#line 9169 "configure"
++#include "confdefs.h"
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char pthread_create ();
++int
++main ()
++{
++pthread_create ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:9188: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:9191: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++         { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:9194: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:9197: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_pthread_pthread_create=yes
++else
++  echo "$as_me: failed program was:" >&5
++cat conftest.$ac_ext >&5
++ac_cv_pthread_pthread_create=no
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:9208: result: $ac_cv_pthread_pthread_create" >&5
++echo "${ECHO_T}$ac_cv_pthread_pthread_create" >&6
++if test $ac_cv_pthread_pthread_create = yes; then
++  TEST_LIBS="-pthread $TEST_LIBS"
++fi
++fi
++
+ # Checks for system/compiler characteristics.
+ echo "$as_me:9215: checking whether byte ordering is bigendian" >&5
+ echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6



Home | Main Index | Thread Index | Old Index