summaryrefslogtreecommitdiff
path: root/ext/bcmath/config.m4
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-11-26 09:34:01 +0000
committerZeev Suraski <zeev@php.net>2000-11-26 09:34:01 +0000
commit8a03f3062f43a0a54cfcf935746d2ed9d9ab269a (patch)
treeecf6f8370fc733cedd40e9d65765a8d63d0c2293 /ext/bcmath/config.m4
parent203d67ea6be0dcc780a254072fa11fa82a34628d (diff)
downloadphp-git-8a03f3062f43a0a54cfcf935746d2ed9d9ab269a.tar.gz
- Add bcmath to the standard UNIX build
- Change a couple of malloc()'s and free()'s to emalloc()'s and efree()'s
Diffstat (limited to 'ext/bcmath/config.m4')
-rw-r--r--ext/bcmath/config.m412
1 files changed, 5 insertions, 7 deletions
diff --git a/ext/bcmath/config.m4 b/ext/bcmath/config.m4
index 697dca4df5..062dd7b555 100644
--- a/ext/bcmath/config.m4
+++ b/ext/bcmath/config.m4
@@ -1,16 +1,14 @@
dnl $Id$
-PHP_ARG_ENABLE(bcmath,whether to enable bc style precision math functions,
-[ --enable-bcmath Compile with bc style precision math functions.
- Read README-BCMATH for instructions on how to
- get this module installed. ])
+PHP_ARG_WITH(bcmath, for bc style precision math functions,
+[ --disable-bcmath Compile without bc style precision math functions. ], yes)
if test "$PHP_BCMATH" != "no"; then
AC_DEFINE(WITH_BCMATH, 1, [Whether you have bcmath])
PHP_EXTENSION(bcmath, $ext_shared)
- if test ! -f $ext_srcdir/number.c || grep "Dummy File" $ext_srcdir/number.c >/dev/null; then
- AC_MSG_ERROR(You do not have the bcmath package. Please read the README.BCMATH file.)
- fi
+ PHP_FAST_OUTPUT($ext_builddir/libbcmath/Makefile $ext_builddir/libbcmath/src/Makefile)
+ LIB_BUILD($ext_builddir/libbcmath,$ext_shared,yes)
+ LIB_BUILD($ext_builddir/libbcmath/src,$ext_shared,yes)
fi
dnl ## Local Variables: