forked from fntlnz/cld2-php-ext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.m4
More file actions
26 lines (17 loc) · 675 Bytes
/
config.m4
File metadata and controls
26 lines (17 loc) · 675 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
dnl config.m4 for extension cld2
PHP_ARG_WITH(cld2, whether to enable cld2 support,
[ --with-cld2[=DIR] Include cld2 support])
if test "$PHP_CLD2" != "no"; then
if test "$PHP_CLD2" = "yes"; then
AC_MSG_ERROR([cld2 path not provided])
fi
if ! test -r $PHP_CLD2/internal/compact_lang_det_impl.h; then
AC_MSG_ERROR([cld2 not found at provided path])
fi
PHP_REQUIRE_CXX()
PHP_ADD_INCLUDE($PHP_CLD2)
PHP_ADD_LIBRARY(stdc++, 1, CLD2_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(cld2, $PHP_CLD2/internal, CLD2_SHARED_LIBADD)
PHP_SUBST(CLD2_SHARED_LIBADD)
PHP_NEW_EXTENSION(cld2, cld2.cc, $ext_shared,,,1)
fi