diff options
author | foobar <sniper@php.net> | 2003-10-04 00:43:06 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-10-04 00:43:06 +0000 |
commit | 708dee922c2b23328a4efeff0b9d8a42076821cc (patch) | |
tree | 09c9f7b12ca1e769ec06d5f4857d4e157464b719 /ext/ncurses | |
parent | ddbc673eb3afd5966e80031fe969e6d7023058ae (diff) | |
download | php-git-708dee922c2b23328a4efeff0b9d8a42076821cc.tar.gz |
ws
Diffstat (limited to 'ext/ncurses')
-rw-r--r-- | ext/ncurses/config.m4 | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/ext/ncurses/config.m4 b/ext/ncurses/config.m4 index afdf58830b..f69fb62fe8 100644 --- a/ext/ncurses/config.m4 +++ b/ext/ncurses/config.m4 @@ -11,7 +11,7 @@ if test "$PHP_NCURSES" != "no"; then SEARCH_PATH="/usr/local /usr" SEARCH_FOR="/include/curses.h" - if test -r $PHP_NCURSES/; then # path given as parameter + if test -d $PHP_NCURSES/; then # path given as parameter NCURSES_DIR=$PHP_NCURSES else # search default path list AC_MSG_CHECKING(for ncurses files in default path) @@ -37,17 +37,14 @@ if test "$PHP_NCURSES" != "no"; then PHP_CHECK_LIBRARY($LIBNAME, $LIBSYMBOL, [ AC_DEFINE(HAVE_NCURSESLIB,1,[ ]) - - PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $NCURSES_DIR/lib, NCURSES_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $NCURSES_DIR/lib, NCURSES_SHARED_LIBADD) PHP_CHECK_LIBRARY(panel, new_panel, [ - AC_DEFINE(HAVE_NCURSES_PANEL,1,[ ]) - PHP_ADD_LIBRARY_WITH_PATH(panel, $NCURSES_DIR/lib, NCURSES_SHARED_LIBADD) - ], [ - ], [ -L$NCURSES_DIR/lib -l$LIBNAME -lm + AC_DEFINE(HAVE_NCURSES_PANEL,1,[ ]) + PHP_ADD_LIBRARY_WITH_PATH(panel, $NCURSES_DIR/lib, NCURSES_SHARED_LIBADD) + ], [], [ + -L$NCURSES_DIR/lib -l$LIBNAME -lm ]) - - ], [ AC_MSG_ERROR(Wrong ncurses lib version or lib not found) ], [ |