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

[email protected] (Richard Quadling)
Newsgroups php.internals.win
Message-ID <[email protected]>
On 6 August 2010 16:01, Kalle Sommer Nielsen <[email protected]> wrote:
> Hello Richard
>
> 2010/8/6 Richard Quadling <[email protected]>:
>> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.