Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38168 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57737 invoked from network); 11 Jun 2008 20:04:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2008 20:04:27 -0000 Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:58150] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/F4-26183-ACF20584 for ; Wed, 11 Jun 2008 16:04:26 -0400 Received: from [192.168.1.34] (unknown [91.78.202.183]) by daylessday.org (Postfix) with ESMTP id 6DA786400E4; Thu, 12 Jun 2008 00:04:23 +0400 (MSD) Message-ID: <48502FC2.80001@daylessday.org> Date: Thu, 12 Jun 2008 00:04:18 +0400 User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Adam Klobukowski CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Writing extension: aditional library From: tony@daylessday.org (Antony Dovgal) On 11.06.2008 23:50, Adam Klobukowski wrote: > Hi > > I'm writing my custom extension, and I want to use library in it. > > Atm. I'm just compiling library files statically in extension, but thats > not very nice. > > I've tried to modify config.m4 to include it but even with all other > extensions, I miserably failed. > > This library is simple library in /lib (/lib/libsomething.a). It does > not have fancy autotools macros and stuff. Plese, help me with including it. There are tons of PECL extensions wrapping external libraries - pick whichever you like most and use as an example. Btw, pecl-dev@lists.php.net is a special list dedicated to PECL and writing PHP extensions, so I guess you might want to use it instead of internals@. -- Wbr, Antony Dovgal