Pthreads is on by default now for configure. Make client.mk do the same.

This commit is contained in:
slamm%netscape.com 1999-04-12 21:20:59 +00:00
Родитель 89b0093c37
Коммит fd3432b0fa
2 изменённых файлов: 14 добавлений и 13 удалений

Просмотреть файл

@ -37,9 +37,10 @@ ac_add_options() {
# and substitute '@<word>@' with '$(<word)'.
_opt=`echo $_opt | sed -e 's/\([\ \ \$\"\\]\)/\\\\\1/g; s/@\([^@]*\)@/\$(\1)/g;'`
case "$_opt" in
--with-nspr=* ) echo MOZ_WITH_NSPR=`expr $_opt : ".*=\(.*\)"` ;;
--with-pthreads* ) echo MOZ_WITH_PTHREADS=1 ;;
--*-* ) echo "# $_opt is not used by client.mk" ;;
--with-nspr=* ) echo MOZ_WITH_NSPR=`expr $_opt : ".*=\(.*\)"` ;;
--with-pthreads=no ) echo MOZ_WITHOUT_PTHREADS=1 ;;
--without-pthreads ) echo MOZ_WITHOUT_PTHREADS=1 ;;
--*-* ) echo "# $_opt is not used by client.mk" ;;
esac
done
}

Просмотреть файл

@ -46,14 +46,14 @@
# See http://www.mozilla.org/build/unix.html for more information.
#
# Options:
# MOZ_WITH_NSPR - Nspr directory for configure --with-nspr=
# MOZ_WITH_PTHREADS - Pthreads for nspr and configure
# MOZ_OBJDIR - Destination object directory
# MOZ_WITH_NSPR - Nspr directory for configure --with-nspr=
# MOZ_WITHOUT_PTHREADS - Turn off pthreads for nspr and configure
# MOZ_OBJDIR - Destination object directory
# also,
# MOZ_CO_BRANCH - Branch tag to use for checkout (default: HEAD)
# MOZ_CO_MODULE - Module to checkout (default: SeaMonkeyEditor)
# MOZ_CVS_FLAGS - Flags to pass cvs (default: -q -z3)
# MOZ_CO_FLAGS - Flags to pass after 'cvs co' (default: -P)
# MOZ_CO_BRANCH - Branch tag to use for checkout (default: HEAD)
# MOZ_CO_MODULE - Module to checkout (default: SeaMonkeyEditor)
# MOZ_CVS_FLAGS - Flags to pass cvs (default: -q -z3)
# MOZ_CO_FLAGS - Flags to pass after 'cvs co' (default: -P)
CWD := $(shell pwd)
ifeq (mozilla, $(notdir $(CWD)))
@ -149,7 +149,7 @@ CVSCO_LOGFILE := $(ROOTDIR)/cvsco.log
####################################
# NSPR
ifeq ($(MOZ_WITH_PTHREADS), 1)
ifneq ($(MOZ_WITHOUT_PTHREADS), 1)
NSPR_PTHREAD_FLAG := USE_PTHREADS=1
endif
@ -195,8 +195,8 @@ ifdef NEED_WITH_NSPR
CONFIG_FLAGS += --with-nspr=$(NSPR_INSTALL_DIR)
endif
ifeq "$(origin MOZ_WITH_PTHREADS)" "environment"
CONFIG_FLAGS += --with-pthreads
ifeq "$(origin MOZ_WITHOUT_PTHREADS)" "environment"
CONFIG_FLAGS += --without-pthreads
endif
#######################################################################