-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.m4
More file actions
27 lines (22 loc) · 825 Bytes
/
config.m4
File metadata and controls
27 lines (22 loc) · 825 Bytes
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
PHP_ARG_WITH(minicrawler, for minicrawler support,
Make sure that the comment is aligned:
[ --with-minicrawler Include minicrawler support])
if test "$PHP_MINICRAWLER" != "no"; then
AC_DEFINE(HAVE_MINICRAWLER, 1, [ ])
PHP_CHECK_LIBRARY([minicrawler-5], [mcrawler_go],
[
PHP_EVAL_INCLINE(`pkg-config --cflags-only-I libminicrawler-5`)
PHP_EVAL_LIBLINE(`pkg-config --libs libminicrawler-5`, MINICRAWLER_SHARED_LIBADD)
AC_DEFINE(HAVE_MINICRAWLERLIB, 1, [ ])
],[
AC_MSG_ERROR([wrong libminicrawler-5 version or lib not found])
],[
-L/usr/lib -lm
])
PHP_SUBST(MINICRAWLER_SHARED_LIBADD)
PHP_NEW_EXTENSION(minicrawler, minicrawler.c, $ext_shared)
fi
AC_PROG_CC_C99
if test "${ac_cv_prog_cc_c99}" = "no"; then
AC_MSG_ERROR([your compiler does not support ISO Standard C 99])
fi