-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.m4
30 lines (22 loc) · 926 Bytes
/
config.m4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
dnl $Id: php4.cxx,v 1.10 2004/12/01 00:50:06 marcelomatus Exp $
dnl ***********************************************************************
dnl ** THIS config.m4 is provided for PHPIZE and PHP's consumption NOT
dnl ** for any part of the rest of the lwes build system
dnl ***********************************************************************
if test -z "$PKG_CONFIG"; then
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
fi
if test "$PKG_CONFIG" = "no" ; then
echo "pkg-config not found."
fi
PHP_ARG_ENABLE(lwes, whether to enable lwes support,
[ --enable-lwes Enable lwes support])
if test "$PHP_LWES" != "no"; then
PHP_SUBST(LWES_SHARED_LIBADD)
AC_DEFINE(HAVE_LWES, 1, [ ])
dnl AC_DEFINE_UNQUOTED(PHP_LWES_DIR, "$LWES_DIR", [ ])
dnl PHP_EXTENSION(lwes, $ext_shared)
CFLAGS=`$PKG_CONFIG --cflags lwes-0`
LDFLAGS=`$PKG_CONFIG --libs lwes-0`
PHP_NEW_EXTENSION(lwes, lwes_wrap.c, $ext_shared)
fi