1
dnl $Id: config.m4,v 1.3 2002/09/19 20:14:33 derick Exp $
3
PHP_ARG_WITH(hwapi, for hwapi support,
4
[ --with-hwapi[=DIR] Include official Hyperwave API support])
6
if test "$PHP_HWAPI" != "no"; then
7
if test -r $PHP_HWAPI/include/sdk/api/object.h; then
10
AC_MSG_CHECKING(for HWAPI in default path)
11
for i in /usr/local /usr; do
12
if test -r $i/include/hwapi/sdk/api/object.h; then
14
AC_MSG_RESULT(found in $i)
19
if test -z "$HWAPI_DIR"; then
20
AC_MSG_RESULT(not found)
21
AC_MSG_ERROR(Please install the hwapi >= 1.0.0 distribution)
24
PHP_ADD_INCLUDE($HWAPI_DIR/include/hwapi)
25
PHP_SUBST(HWAPI_SHARED_LIBADD)
26
PHP_ADD_LIBRARY_WITH_PATH(hwapi, $HWAPI_DIR/lib, HWAPI_SHARED_LIBADD)
27
AC_DEFINE(HAVE_HWAPI,1,[ ])
30
PHP_NEW_EXTENSION(hwapi, hwapi.cpp, $ext_shared)
31
PHP_ADD_LIBRARY(hwapi)
32
PHP_ADD_LIBRARY(pthread)
33
PHP_ADD_LIBRARY(stdc++)
34
PHP_ADD_INCLUDE($HWAPI_DIR/include)