-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.m4
40 lines (30 loc) · 1.71 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
37
38
39
dnl config.m4 for extension SeasIpUtils
dnl +----------------------------------------------------------------------+
dnl | SeasIpUtils |
dnl +----------------------------------------------------------------------+
dnl | This source file is subject to version 2.0 of the Apache license, |
dnl | that is bundled with this package in the file LICENSE, and is |
dnl | available through the world-wide-web at the following url: |
dnl | http://www.apache.org/licenses/LICENSE-2.0.html |
dnl | If you did not receive a copy of the Apache2.0 license and are unable|
dnl | to obtain it through the world-wide-web, please send a note to |
dnl | [email protected] so we can mail you a copy immediately. |
dnl +----------------------------------------------------------------------+
dnl | Author: Neeke.Gao <[email protected]> |
dnl +----------------------------------------------------------------------+
PHP_ARG_WITH(seasiputils, for seasiputils support,
[ --with-seasiputils Include seasiputils support])
dnl Otherwise use enable:
if test "$PHP_SEASIPUTILS" != "no"; then
dnl # --with-seasiputils -> add include path
dnl PHP_ADD_INCLUDE($SEASIPUTILS_DIR/include)
CXXFLAGS="$CXXFLAGS -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -lcap -lresolv -lgcrypt"
seasiputils_source_file="seasiputils.c \
src/ping_common.c \
src/ping.c"
dnl src/ping6.c"
PHP_NEW_EXTENSION(seasiputils, $seasiputils_source_file, $ext_shared)
PHP_ADD_INCLUDE([$ext_srcdir])
PHP_ADD_INCLUDE([$ext_srcdir/include])
PHP_ADD_BUILD_DIR($ext_builddir/src)
fi