2012-05-23 05:34:07 +02:00
|
|
|
PHP_ARG_ENABLE(uv, Whether to enable the "uv" extension,
|
|
|
|
[ --enable-uv Enable "uv" extension support])
|
|
|
|
|
|
|
|
if test $PHP_UV != "no"; then
|
|
|
|
PHP_NEW_EXTENSION(uv, php_uv.c uv.c, $ext_shared)
|
|
|
|
|
|
|
|
PHP_CHECK_LIBRARY(uv, uv_run, [
|
|
|
|
AC_MSG_RESULT(found)
|
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(uv, libuv, MRUBY_SHARED_LIBADD)
|
2012-05-23 06:35:28 +02:00
|
|
|
PHP_ADD_INCLUDE([$ext_srcdir/libuv/include])
|
2012-05-23 05:34:07 +02:00
|
|
|
],[
|
|
|
|
AC_MSG_RESULT([not found])
|
|
|
|
AC_MSG_ERROR([Please make libuv first])
|
|
|
|
],[
|
|
|
|
-Llibuv
|
|
|
|
])
|
|
|
|
|
|
|
|
PHP_SUBST(UV_SHARED_LIBADD)
|
2012-05-25 01:07:12 +02:00
|
|
|
CFLAGS=" -g -O0 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Wl,libuv/uv.a"
|
2012-05-23 05:34:07 +02:00
|
|
|
PHP_SUBST([CFLAGS])
|
|
|
|
fi
|