From owner-freebsd-ports@FreeBSD.ORG Thu Sep 28 09:36:49 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 647E916A403 for ; Thu, 28 Sep 2006 09:36:49 +0000 (UTC) (envelope-from zaa@ulstu.ru) Received: from kernel.ulstu.ru (kernel.ulstu.ru [62.76.34.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA23E43D68 for ; Thu, 28 Sep 2006 09:36:40 +0000 (GMT) (envelope-from zaa@ulstu.ru) Received: from localhost (localhost [127.0.0.1]) by kernel.ulstu.ru (ulstuMail) with ESMTP id E51744AD51; Thu, 28 Sep 2006 13:36:25 +0400 (MSD) X-Virus-Scanned: by amavisd-new at ulstu.ru Received: from kernel.ulstu.ru ([127.0.0.1]) by localhost (kernel.ulstu.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3kegeTakmiHE; Thu, 28 Sep 2006 13:36:20 +0400 (MSD) Received: from wave.zaa.local (zaa.ulstu.ru [62.76.34.17]) by kernel.ulstu.ru (ulstuMail) with ESMTP id 049264AD45 for ; Thu, 28 Sep 2006 13:36:20 +0400 (MSD) Received: by wave.zaa.local (Postfix, from userid 3909) id DFF3AB819; Mon, 25 Sep 2006 13:21:11 +0400 (MSD) Date: Mon, 25 Sep 2006 13:21:11 +0400 From: Alexander Zhuravlev To: freebsd-ports@freebsd.org Message-ID: <20060925092111.GA70418@wave.zaa.local> Mail-Followup-To: freebsd-ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Subject: detect presence of threads support in sqlite3 port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Zhuravlev List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2006 09:36:49 -0000 Hello, My port depends on databases/sqlite3 one. But it does not compile if sqlite3 port has been compiled with WITH_THREADS option (pthreads support). I've tried to create databases/sqlite3-nonthreaded port and add dependancy on ths port, but as far as I can see sqlite3 and sqlite3-nothreads ports will be installing the same libsqlite3.so.8, so I can not use LIB_DEPENDS line like this: LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3-nothreaded So, how can I determine the fact that the port was compiled with such option, so I can rise an error in my port or compile it with bundled sqlite 3.2 library? Any help will be much appreciated. Thank you. -- Alexander Zhuravlev