use api suffix
[m6w6/repo-template] / presets / config.m4
1 <?php extract($_ENV) ?>
2 PHP_ARG_ENABLE(<?=$PECL?>, whether to enable <?=$PECL?> support,
3 [ --enable-<?=$PECL?> Enable <?=$PECL?> support])
4
5 if test "$PHP_<?=strtoupper($PECL)?>" != "no"; then
6 PHP_<?=strtoupper($PECL)?>_SRCDIR=PHP_EXT_SRCDIR(<?=$PECL?>)
7 PHP_<?=strtoupper($PECL)?>_BUILDDIR=PHP_EXT_BUILDDIR(<?=$PECL?>)
8
9 PHP_ADD_INCLUDE($PHP_<?=strtoupper($PECL)?>_SRCDIR/src)
10 PHP_ADD_BUILD_DIR($PHP_<?=strtoupper($PECL)?>_BUILDDIR/src)
11
12 PHP_<?=strtoupper($PECL)?>_HEADERS=`(cd $PHP_<?=strtoupper($PECL)?>_SRCDIR/src && echo *.h)`
13 PHP_<?=strtoupper($PECL)?>_SOURCES=`(cd $PHP_<?=strtoupper($PECL)?>_SRCDIR && echo src/*.c)`
14
15 PHP_NEW_EXTENSION(<?=$PECL?>, $PHP_<?=strtoupper($PECL)?>_SOURCES, $ext_shared)
16 PHP_INSTALL_HEADERS(ext/<?=$PECL?>, php_<?=$PECL?>.h $PHP_<?=strtoupper($PECL)?>_HEADERS)
17
18 PHP_SUBST(PHP_<?=strtoupper($PECL)?>_HEADERS)
19 PHP_SUBST(PHP_<?=strtoupper($PECL)?>_SOURCES)
20
21 PHP_SUBST(PHP_<?=strtoupper($PECL)?>_SRCDIR)
22 PHP_SUBST(PHP_<?=strtoupper($PECL)?>_BUILDDIR)
23
24 PHP_ADD_MAKEFILE_FRAGMENT
25 fi