AC_CHECK_LIB(cxx, cin)
AC_CHECK_LIB(cxxstd, __array_delete)
-AC_MSG_CHECKING(for class istdiostream)
+AC_CACHE_CHECK(for class istdiostream,ac_cv_class_istdiostream,[
AC_TRY_COMPILE([
#include <sys/types.h>
#include <unistd.h>
],[
istdiostream *foo = new istdiostream((FILE *) 0);
],[
- AC_DEFINE(HAVE_CLASS_ISTDIOSTREAM, 1, [Whether you have class istdiostream])
- AC_MSG_RESULT(yes)
+ ac_cv_class_istdiostream=yes
],[
- AC_MSG_RESULT(no)
+ ac_cv_class_istdiostream=no
])
+])
+ if test "$ac_cv_class_istdiostream" = "yes"; then
+ AC_DEFINE(HAVE_CLASS_ISTDIOSTREAM, 1, [Whether you have class istdiostream])
+ fi
AC_LANG_C
fi
])
-#undef HAVE_CLASS_ISTDIOSTREAM
-
#define ZEND_API
@TOP@
/* Define if you want to enable memory limit support */
#define MEMORY_LIMIT 0
-/* Define if you have broken sprintf function like SunOS 4 */
-#define ZEND_BROKEN_SPRINTF 0
-
/* Define to compile Zend thread safe */
#undef ZTS
])
])
if test "$ac_cv_broken_sprintf" = "yes"; then
- AC_DEFINE(ZEND_BROKEN_SPRINTF, 1, [Whether sprintf is broken])
+ ac_result=1
else
- AC_DEFINE(ZEND_BROKEN_SPRINTF, 0, [Whether sprintf is broken])
+ ac_result=0
fi
+ AC_DEFINE_UNQUOTED(ZEND_BROKEN_SPRINTF, $ac_result, [Whether sprintf is broken])
])
AC_DEFUN(AM_SET_LIBTOOL_VARIABLE,[