-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.m4
More file actions
25 lines (21 loc) · 799 Bytes
/
Copy pathconfig.m4
File metadata and controls
25 lines (21 loc) · 799 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
PHP_ARG_ENABLE(shoco, whether to enable shoco,
[AS_HELP_STRING([--enable-shoco], [Enable shoco])])
PHP_ARG_ENABLE(shoco-coverage, whether to enable shoco coverage support,
[AS_HELP_STRING([--enable-shoco-coverage], [Enable shoco coverage support])], [no], [no])
if test "$PHP_SHOCO" != "no"; then
if test "$PHP_SHOCO_COVERAGE" == "yes"; then
CFLAGS="-fprofile-arcs -ftest-coverage $CFLAGS"
LDFLAGS="--coverage $LDFLAGS"
fi
AH_BOTTOM([
#ifdef __clang__
#include "main/php_config.h"
#/**/undef/**/ HAVE_ASM_GOTO
#endif
])
dnl PHP_ADD_LIBRARY(shoco, 1, SHOCO_SHARED_LIBADD)
PHP_ADD_INCLUDE(shoco)
PHP_NEW_EXTENSION(shoco, php_shoco.c shoco/shoco.c, $ext_shared, , $PHP_SHOCO_FLAGS)
PHP_SUBST(SHOCO_SHARED_LIBADD)
CFLAGS="$CFLAGS -std=c99"
fi