summaryrefslogtreecommitdiff
path: root/ext/bcmath/config.m4
blob: 472889f7992f1bf64fecc57df860a58e7617b5a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
dnl $Id$

AC_MSG_CHECKING(whether to enable bc style precision math functions)
AC_ARG_ENABLE(bcmath,
[  --enable-bcmath         Compile with bc style precision math functions.
                          Read README-BCMATH for instructions on how to
                          get this module installed. ],
[
  if test "$enableval" = "yes"; then
    AC_DEFINE(WITH_BCMATH, 1, [Whether you have bcmath])
    AC_MSG_RESULT(yes)
    PHP_EXTENSION(bcmath)
  else
    AC_DEFINE(WITH_BCMATH, 0)
    AC_MSG_RESULT(no)
  fi
],[
  AC_DEFINE(WITH_BCMATH, 0)
  AC_MSG_RESULT(no)
])