From owner-freebsd-questions@FreeBSD.ORG Wed May 19 11:20:56 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA35B16A4CE for ; Wed, 19 May 2004 11:20:56 -0700 (PDT) Received: from smtp1.experience.com (shields.experience.com [64.94.244.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DAD743D31 for ; Wed, 19 May 2004 11:20:56 -0700 (PDT) (envelope-from cs@ctzen.com) Received: from [10.50.4.40] (rpaushter.experience.com [10.50.4.40]) by smtp1.experience.com (Postfix) with ESMTP id A13E01003D for ; Wed, 19 May 2004 14:20:55 -0400 (EDT) Message-ID: <40ABA587.7020604@ctzen.com> Date: Wed, 19 May 2004 14:20:55 -0400 From: Chiang Seng Chang User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: defining knobs in pkgtools.conf question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2004 18:20:56 -0000 Hi, This is from the lang/python Makefile === quote === OPTIONS= THREADS "Enable thread support" on \ HUGE_STACK_SIZE "Use a larger thread stack" off \ UCS2 "Use UCS2 instead of UCS4 for unicode support" off \ PYMALLOC "Uses python's internal malloc" on .include .if defined(WITH_THREADS) CONFIGURE_ARGS+= --with-threads CFLAGS+= ${PTHREAD_CFLAGS} .if defined(WITHOUT_HUGE_STACK_SIZE) CFLAGS+= -DTHREAD_STACK_SIZE=0x20000 .else CFLAGS+= -DTHREAD_STACK_SIZE=0x100000 .endif # defined(WITHOUT_HUGE_STACK_SIZE) CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}" .else CONFIGURE_ARGS+= --without-threads .if defined(LDFLAGS) CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" .endif # defined(LDFLAGS) .endif # defined(WITH_THREADS) .if defined(WITHOUT_UCS2) CONFIGURE_ARGS+= --enable-unicode=ucs4 .endif .if defined(WITHOUT_PYMALLOC) CONFIGURE_ARGS+= --without-pymalloc .endif === end quote === So if I wish to put the knobs into pkgtools.conf so that it can build it batch mode, do I: WITH_THREADS=1 WITHOUT_HUGE_STACK_SIZE=1 WITH_UCS2=1 WITH_PYMALLOC=1 or WITH_THREADS=1 WITHOUT_HUGE_STACK_SIZE=1 WITHOUT_UCS2=0 WITHOUT_PYMALLOC=0 I guess my question is how to decide wheather to use WITH_XXX=1 or WITHOUT_XXX=0 ? does WITH_XXX=0 result in #defined(WITH_XXX) returning false ? Regards. -cs