1999-04-20 04:10:26 +08:00
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
dnl This file contains local autoconf functions.
|
|
|
|
|
2000-06-19 00:51:42 +08:00
|
|
|
AC_DEFUN(ZEND_FP_EXCEPT,[
|
|
|
|
AC_CACHE_CHECK(whether fp_except is defined, ac_cv_type_fp_except,[
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <floatingpoint.h>
|
|
|
|
],[
|
|
|
|
fp_except x = (fp_except) 0;
|
|
|
|
],[
|
|
|
|
ac_cv_type_fp_except=yes
|
|
|
|
],[
|
|
|
|
ac_cv_type_fp_except=no
|
|
|
|
],[
|
|
|
|
ac_cv_type_fp_except=no
|
|
|
|
])])
|
|
|
|
if test "$ac_cv_type_fp_except" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_FP_EXCEPT, 1, [whether floatingpoint.h defines fp_except])
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
1999-04-20 04:10:26 +08:00
|
|
|
dnl
|
|
|
|
dnl Check for broken sprintf()
|
|
|
|
dnl
|
1999-09-07 00:14:08 +08:00
|
|
|
AC_DEFUN(AC_ZEND_BROKEN_SPRINTF,[
|
1999-12-27 05:45:53 +08:00
|
|
|
AC_CACHE_CHECK(whether sprintf is broken, ac_cv_broken_sprintf,[
|
|
|
|
AC_TRY_RUN([main() {char buf[20];exit(sprintf(buf,"testing 123")!=11); }],[
|
|
|
|
ac_cv_broken_sprintf=no
|
|
|
|
],[
|
|
|
|
ac_cv_broken_sprintf=yes
|
|
|
|
],[
|
|
|
|
ac_cv_broken_sprintf=no
|
|
|
|
])
|
1999-04-20 04:10:26 +08:00
|
|
|
])
|
1999-12-27 05:45:53 +08:00
|
|
|
if test "$ac_cv_broken_sprintf" = "yes"; then
|
2000-01-02 04:49:34 +08:00
|
|
|
ac_result=1
|
1999-12-27 05:45:53 +08:00
|
|
|
else
|
2000-01-02 04:49:34 +08:00
|
|
|
ac_result=0
|
1999-12-27 05:45:53 +08:00
|
|
|
fi
|
2000-01-02 04:49:34 +08:00
|
|
|
AC_DEFINE_UNQUOTED(ZEND_BROKEN_SPRINTF, $ac_result, [Whether sprintf is broken])
|
1999-04-20 04:10:26 +08:00
|
|
|
])
|
1999-10-04 23:20:12 +08:00
|
|
|
|
|
|
|
AC_DEFUN(AM_SET_LIBTOOL_VARIABLE,[
|
|
|
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool $1'
|
|
|
|
])
|
|
|
|
|