forked from swoole/swoole-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.m4
36 lines (30 loc) · 1.01 KB
/
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
31
32
33
34
35
36
dnl $Id$
dnl config.m4 for extension swoole
dnl Comments in this file start with the string 'dnl'.
dnl Remove where necessary. This file will not work
dnl without editing.
dnl If your extension references something external, use with:
PHP_ARG_WITH(swoole, for swoole support,
[ --with-swoole Include swoole support])
dnl Otherwise use enable:
dnl PHP_ARG_ENABLE(swoole, whether to enable swoole support,
dnl Make sure that the comment is aligned:
dnl [ --enable-swoole Enable swoole support])
if test "$PHP_SWOOLE" != "no"; then
PHP_ADD_INCLUDE($SWOOLE_DIR/include)
AC_ARG_ENABLE(debug,
[--enable-debug, compile with debug symbols],
[PHP_DEBUG = $enableval],
[PHP_DEBUG = 0]
)
PHP_NEW_EXTENSION(swoole, swoole.c \
src/core/Base.c \
src/factory/Factory.c \
src/factory/FactoryThread.c \
src/factory/FactoryProcess.c \
src/reactor/ReactorBase.c \
src/reactor/ReactorSelect.c \
src/reactor/ReactorEpoll.c \
src/network/Server.c \
, $ext_shared)
fi