summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-07-09 15:45:55 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-07-09 15:45:55 +0000
commite4eb0cb7e756bcaa7479673b829892745a3d0433 (patch)
tree11e9d57fb70af7fa422cfac706cf2184676e25cc
parenteaf49f020a925277ba05a5f575ea0f218a7c52ee (diff)
downloadirssi-e4eb0cb7e756bcaa7479673b829892745a3d0433.zip
Check that -lncurses is actually found - if not, try -lcurses.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@453 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--curses.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/curses.m4 b/curses.m4
index 595c47b7..e92949e1 100644
--- a/curses.m4
+++ b/curses.m4
@@ -210,7 +210,14 @@ AC_DEFUN(AC_NCURSES, [
if test -f $1/$2
then
AC_MSG_RESULT(Found ncurses on $1/$2)
- CURSES_LIBS="$3"
+
+ CURSES_LIBS="$3"
+ AC_CHECK_LIB(ncurses, initscr,, [
+ CHECKLIBS=`echo "$3"|sed 's/-lncurses/-lcurses/g'`
+ AC_CHECK_LIB(curses, initscr, [
+ CURSES_LIBS="$CHECKLIBS"
+ ],, $CHECKLIBS)
+ ], $CURSES_LIBS)
CURSES_INCLUDEDIR="$4"
search_ncurses=false
screen_manager=$5