summaryrefslogtreecommitdiff
path: root/ext/ncurses
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2002-01-20 02:30:18 +0000
committerEdin Kadribasic <edink@php.net>2002-01-20 02:30:18 +0000
commitf5790b0a7c1af118db4009dbbf89660bf5a2f097 (patch)
treeaf7a89d064009001fbd39c90c4a06ecbeb397a05 /ext/ncurses
parent7de51385c26f434727c6da30dbae3d0abe58496e (diff)
downloadphp-git-f5790b0a7c1af118db4009dbbf89660bf5a2f097.tar.gz
Modified the build system to make certain extensions (pcntl, ncurses,
pcntl) only with cgi/cli sapi's. This was done by adding 3rd optional parameter to PHP_EXTENSION macro which should be set to "cli" if the extension only makes sense for that class of api's.
Diffstat (limited to 'ext/ncurses')
-rw-r--r--ext/ncurses/config.m45
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/ncurses/config.m4 b/ext/ncurses/config.m4
index 1cdda4fd0b..120d3bb449 100644
--- a/ext/ncurses/config.m4
+++ b/ext/ncurses/config.m4
@@ -3,10 +3,9 @@ dnl $Id$
dnl
PHP_ARG_WITH(ncurses, for ncurses support,
-[ --with-ncurses[=DIR] Include ncurses support.])
+[ --with-ncurses[=DIR] Include ncurses support (CLI/CGI only).])
if test "$PHP_NCURSES" != "no"; then
- PHP_CHECK_INTERACTIVE(ncurses)
# --with-ncurses -> check with-path
SEARCH_PATH="/usr/local /usr"
@@ -50,7 +49,7 @@ if test "$PHP_NCURSES" != "no"; then
AC_CHECK_LIB(ncurses, asume_default_colors, [AC_DEFINE(HAVE_NCURSES_ASSUME_DEFAULT_COLORS, 1, [ ])])
AC_CHECK_LIB(ncurses, use_extended_names, [AC_DEFINE(HAVE_NCURSES_USE_EXTENDED_NAMES, 1, [ ])])
- PHP_EXTENSION(ncurses, $ext_shared)
+ PHP_EXTENSION(ncurses, $ext_shared, cli)
PHP_SUBST(NCURSES_SHARED_LIBADD)
fi