@@ -4,12 +4,33 @@ PHP_ARG_ENABLE([bcmath],
4
4
[ Enable bc style precision math functions] ) ] )
5
5
6
6
if test "$PHP_BCMATH" != "no"; then
7
- PHP_NEW_EXTENSION(bcmath, bcmath.c \
8
- libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/raisemod.c libbcmath/src/sub.c \
9
- libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/recmul.c \
10
- libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/doaddsub.c libbcmath/src/floor_or_ceil.c libbcmath/src/nearzero.c libbcmath/src/num2str.c \
11
- libbcmath/src/raise.c libbcmath/src/rmzero.c libbcmath/src/round.c libbcmath/src/str2num.c libbcmath/src/convert.c,
12
- $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
7
+ PHP_NEW_EXTENSION([ bcmath] , [ m4_normalize ( [
8
+ bcmath.c
9
+ libbcmath/src/add.c
10
+ libbcmath/src/compare.c
11
+ libbcmath/src/convert.c
12
+ libbcmath/src/div.c
13
+ libbcmath/src/divmod.c
14
+ libbcmath/src/doaddsub.c
15
+ libbcmath/src/floor_or_ceil.c
16
+ libbcmath/src/init.c
17
+ libbcmath/src/int2num.c
18
+ libbcmath/src/nearzero.c
19
+ libbcmath/src/neg.c
20
+ libbcmath/src/num2long.c
21
+ libbcmath/src/num2str.c
22
+ libbcmath/src/raise.c
23
+ libbcmath/src/raisemod.c
24
+ libbcmath/src/recmul.c
25
+ libbcmath/src/rmzero.c
26
+ libbcmath/src/round.c
27
+ libbcmath/src/sqrt.c
28
+ libbcmath/src/str2num.c
29
+ libbcmath/src/sub.c
30
+ libbcmath/src/zero.c
31
+ ] ) ] ,
32
+ [ $ext_shared] ,,
33
+ [ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1] )
13
34
PHP_ADD_BUILD_DIR($ext_builddir/libbcmath/src)
14
35
AC_DEFINE ( HAVE_BCMATH , 1 , [ Whether you have bcmath] )
15
36
fi
0 commit comments