Added autodetection of libpthread. Defaults to USE_PTHREADS if libpthread is detected. Can be overridden via --enable-user-pthread, --with-native-threads or --with-bthreads depending upon the platform. unlabeled-3.19.12
authorcls%seawood.org
Thu, 05 Aug 1999 01:09:51 +0000
branchunlabeled-3.19.12
changeset 740 7f5799584bd24f35e449f6c9098585aa4455e05b
parent 668 6533834ee327d34c2030d46402ce03b7bb414220
child 741 fab3284cf2d36ffeae936ac092c7b3e54c4eb5c6
child 783 38fb81d8f88d4a242240f363d2030079b8653c51
push idunknown
push userunknown
push dateunknown
Added autodetection of libpthread. Defaults to USE_PTHREADS if libpthread is detected. Can be overridden via --enable-user-pthread, --with-native-threads or --with-bthreads depending upon the platform. Sets MOD_VERSION & MOD_NAME to get the nspr version suffix. Gcc under win32 uses standard gcc extensions for OBJ_SUFFIX, DLL_SUFFIX & LIB_SUFFIX. Requires pr/src/md/platform/objs.mk to set md object files. Added objs.mk for windows.
pr/src/md/unix/objs.mk
--- a/pr/src/md/unix/objs.mk
+++ b/pr/src/md/unix/objs.mk
@@ -25,17 +25,22 @@ CSRCS =          \
 	uxwrap.c \
 	uxpoll.c \
 	$(NULL)
 
 PTH_USER_CSRCS =          \
 	pthreads_user.c \
 	$(NULL)
 
-ifndef USE_AUTOCONF
+ifdef USE_AUTOCONF
+
+CSRCS	+= $(PR_MD_CSRCS)
+ASFILES += $(PR_MD_ASFILES)
+
+else # ! USE_AUTOCONF
 IRIX_CSRCS =	 \
 	irix.c	 \
 	$(NULL)
 
 SUNOS4_CSRCS =	 \
 	sunos4.c	 \
 	$(NULL)
 
@@ -220,21 +225,16 @@ endif
 ifeq ($(OS_ARCH), IRIX)
     ASFILES   = os_Irix.s
 endif
 
 ifeq ($(OS_ARCH)$(OS_RELEASE),BSD_OS2.1)
     ASFILES = os_BSD_386_2.s
 endif
 
-else # USE_AUTOCONF
-
-CSRCS	+= $(PR_MD_CSRCS)
-ASFILES += $(PR_MD_ASFILES)
-
 endif # !USE_AUTOCONF
 
 ifeq ($(PTHREADS_USER),1)
 CSRCS += $(PTH_USER_CSRCS)
 endif
 
 OBJS += $(addprefix md/unix/$(OBJDIR)/,$(CSRCS:.c=.$(OBJ_SUFFIX)))  \
 	$(addprefix md/unix/$(OBJDIR)/,$(ASFILES:.s=.$(OBJ_SUFFIX)))