diff options
| author | Sascha Schumann <sas@php.net> | 1999-09-28 11:54:02 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 1999-09-28 11:54:02 +0000 |
| commit | 7ed68c0f5300a6d0345818d170780cf457e524ca (patch) | |
| tree | 260bb665f0f71797892e001415203fd3956269cf /Zend/configure.in | |
| parent | 74bc24d9d5d196a947aa2daabbc0d4874daf7e4e (diff) | |
| download | php-git-7ed68c0f5300a6d0345818d170780cf457e524ca.tar.gz | |
Provide alternative istdiostream.
This has been tested with Sun WorkShop 4.2 C++ which does not
contain class istdiostream.
Diffstat (limited to 'Zend/configure.in')
| -rw-r--r-- | Zend/configure.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Zend/configure.in b/Zend/configure.in index 670d263aeb..f02ddcbe8e 100644 --- a/Zend/configure.in +++ b/Zend/configure.in @@ -32,6 +32,7 @@ AC_PROG_CC_C_O AM_PROG_LEX AM_PROG_CC_STDC +AC_C_INLINE dnl Hack to work around a Mac OS X cpp problem dnl Known versions needing this workaround are 5.3 and 5.4 @@ -159,6 +160,25 @@ if test "$enable_thread_safety" = "yes" ; then AC_CHECK_LIB(C, cin) AC_CHECK_LIB(g++, cin) AC_CHECK_LIB(stdc++, cin) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS +AC_MSG_CHECKING(for class istdiostream) +AC_TRY_COMPILE([ +#include <sys/types.h> +#include <unistd.h> +#include <fstream.h> +#include <stdiostream.h> +],[ +istdiostream *foo = new istdiostream((FILE *) 0); +],[ + AC_DEFINE(HAVE_CLASS_ISTDIOSTREAM, 1) + AC_MSG_RESULT(yes) +],[ + AC_MSG_RESULT(no) +]) +AC_LANG_RESTORE + fi AC_SUBST(CXXFLAGS) |
