From 48cba31e58a8507c275d749af6ade54fbac9cce4 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Fri, 4 Jan 2002 12:26:27 +0000 Subject: [PATCH] two new check functions for use in config.m4 file --- acinclude.m4 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 7fb579d1b8..014478e5cb 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1154,3 +1154,18 @@ AC_DEFUN(PHP_CHECK_LIBRARY, [ ])dnl ]) + + +dnl +AC_DEFUN(PHP_CHECK_INTERACTIVE, [ + if test "$PHP_SAPI" != "cgi"; then + AC_MSG_ERROR([$1 extension can only be used with CGI build!]) + fi +]) + +dnl +AC_DEFUN(PHP_CHECK_STANDALONE, [ + if test "$PHP_SAPI" != "cgi"; then + AC_MSG_ERROR([$1 extension may affect webserver operation internals, so it can only be used with CGI build!]) + fi +]) -- 2.50.1