summaryrefslogtreecommitdiff
path: root/sapi/cgi/config9.m4
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-02-20 20:11:11 +0000
committerAntony Dovgal <tony2001@php.net>2007-02-20 20:11:11 +0000
commit43d788ec330af2512408896c4325ce2144ba14a5 (patch)
treed624aa8d136db498301058510c7d6ffd98307c3e /sapi/cgi/config9.m4
parent748b6fdeb33ad3d9aec62cf0b14ca4fca719af67 (diff)
downloadphp-git-43d788ec330af2512408896c4325ce2144ba14a5.tar.gz
MFH: move PHP_TEST_WRITE_STDOUT to acinclude.m4 and use it in configure.in
Diffstat (limited to 'sapi/cgi/config9.m4')
-rw-r--r--sapi/cgi/config9.m432
1 files changed, 0 insertions, 32 deletions
diff --git a/sapi/cgi/config9.m4 b/sapi/cgi/config9.m4
index b31adabacc..816cec799d 100644
--- a/sapi/cgi/config9.m4
+++ b/sapi/cgi/config9.m4
@@ -50,36 +50,6 @@ AC_ARG_ENABLE(path-info-check,
PHP_ENABLE_PATHINFO_CHECK=yes
])
-AC_DEFUN([PHP_TEST_WRITE_STDOUT],[
- AC_CACHE_CHECK(whether writing to stdout works,ac_cv_write_stdout,[
- AC_TRY_RUN([
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#define TEXT "This is the test message -- "
-
-main()
-{
- int n;
-
- n = write(1, TEXT, sizeof(TEXT)-1);
- return (!(n == sizeof(TEXT)-1));
-}
- ],[
- ac_cv_write_stdout=yes
- ],[
- ac_cv_write_stdout=no
- ],[
- ac_cv_write_stdout=no
- ])
- ])
- if test "$ac_cv_write_stdout" = "yes"; then
- AC_DEFINE(PHP_WRITE_STDOUT, 1, [whether write(2) works])
- fi
-])
-
-
if test "$PHP_SAPI" = "default"; then
AC_MSG_CHECKING(for CGI build)
if test "$PHP_SAPI_CGI" != "no"; then
@@ -96,8 +66,6 @@ if test "$PHP_SAPI" = "default"; then
esac
PHP_SUBST(SAPI_CGI_PATH)
- PHP_TEST_WRITE_STDOUT
-
AC_MSG_CHECKING(whether to force Apache CGI redirect)
if test "$PHP_FORCE_CGI_REDIRECT" = "yes"; then
REDIRECT=1