head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2002.03.12.18.16.07;	author sobomax;	state dead;
branches;
next	1.1;

1.1
date	2002.02.15.18.44.15;	author reg;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Long awaited 0.9.9 update. For some reason configure doesn't pick up our
request to enable chatzilla, therefore it is not enabled now - the issue
is under investigation, but anybody is free to smash maintainers with a
relevant patch.
@
text
@--- nsprpub/configure.orig	Tue Jan 22 23:57:37 2002
+++ nsprpub/configure	Thu Feb 14 01:13:13 2002
@@@@ -3288,8 +3288,9 @@@@
     else
         DLL_SUFFIX=so.1.0
     fi
+    MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@@'
     DSO_CFLAGS=-fPIC
-    DSO_LDOPTS=-Bshareable
+    DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@@)'
     MDCPUCFG_H=_freebsd.cfg
     PR_MD_CSRCS=freebsd.c
     ;;
@@@@ -5091,8 +5092,15 @@@@
    if test $? -eq 0; then
 	if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
 	    ac_cv_have_dash_pthread=yes
-	    CFLAGS="$CFLAGS -pthread"
-	    CXXFLAGS="$CXXFLAGS -pthread"
+		case "$target_os" in
+	    freebsd*)
+# Freebsd doesn't use -pthread for compiles, it uses them for linking
+            ;;
+	    *)
+            CFLAGS="$CFLAGS -pthread"
+            CXXFLAGS="$CXXFLAGS -pthread"
+            ;;
+        esac
 	fi
     fi
     rm -f conftest*
@@@@ -5123,11 +5131,17 @@@@
 	    ;;
     *-freebsd*|*-openbsd*|*-bsdi*|*-netbsd*)
 	    cat >> confdefs.h <<\EOF
+#define _REENTRANT 1
+EOF
+
+	    cat >> confdefs.h <<\EOF
 #define _THREAD_SAFE 1
 EOF
 
 	    	    if test "$ac_cv_have_dash_pthread" = "yes"; then
-	        _PTHREAD_LDFLAGS=
+	        _PTHREAD_LDFLAGS="-pthread"
+	    else
+	        _PTHREAD_LDFLAGS="-lc_r"
 	    fi
 	    ;;
     *-linux*)
@


1.1
log
@Clean up this port, including GCing old configure options and making patches
more acceptable to mozilla.org.  Hopefully these will make it into 0.9.9.

Add a hack to minimise the number of files extracted.

Merge in the patches from the mozilla+ipv6 port.

Submitted by:	sumikawa (mozilla+ipv6)
@
text
@@

