Re: [INTERNALS-WIN] Handling missing required files in config.w32

From: Date: Fri, 06 Aug 2010 15:10:08 +0000
Subject: Re: [INTERNALS-WIN] Handling missing required files in config.w32
References: 1 2  Groups: php.internals.win 
Request: Send a blank email to internals-win+get-711@lists.php.net to get a copy of this message
On 6 August 2010 16:01, Kalle Sommer Nielsen <kalle@php.net> wrote: > Hello Richard > > 2010/8/6 Richard Quadling <rquadling@gmail.com>: >> Hi. >> >> Is it possible to have something like a ... >> >> CHECK_HEADER_ADD_INCLUDE('required.h', 'CFLAGS_MYEXT'); >> >> such that if required.h cannot be found then the extension isn't added >> to the list of extensions to build. >> > > CHECK_HEADER_ADD_INCLUDE() returns a boolean value, so you can use it > in a conditional like so: > > if(!CHECK_HEADER_ADD_INCLUDE('required.h', 'CFLAGS_MYEXT')) { >    WARNING('Unable to enable myext, headers/libraries not found'); > } else { >    EXTENSION(...); > } Thank you.

« previous php.internals.win (#711) next »