diff options
author | James Booth <boothj5@gmail.com> | 2014-03-06 21:21:54 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-03-06 21:21:54 +0000 |
commit | ca0a1e4d9dd757b915793f85f17c533f87523449 (patch) | |
tree | 0e9bdcc26d07debe9c1df9e6c41953550f5d0a22 /configure.ac | |
parent | e7b6d068a0ba1d0e8ee0ab40bad8496c7af7f300 (diff) | |
download | profani-tty-ca0a1e4d9dd757b915793f85f17c533f87523449.tar.gz |
Ncurses fixes for brew
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ed232524..114f6552 100644 --- a/configure.ac +++ b/configure.ac @@ -90,8 +90,10 @@ PKG_CHECK_MODULES([ncursesw], [ncursesw], [NCURSES_CFLAGS="$ncursesw_CFLAGS"; NCURSES_LIBS="$ncursesw_LIBS"; NCURSES="ncursesw"], [PKG_CHECK_MODULES([ncurses], [ncurses], [NCURSES_CFLAGS="$ncurses_CFLAGS"; NCURSES_LIBS="$ncurses_LIBS"; NCURSES="ncurses"], - [AC_CHECK_LIB([ncursesw], [main], [], + [AC_CHECK_LIB([ncursesw], [main], + [LIBS="-lncursesw $LIBS" AC_DEFINE([HAVE_LIBNCURSESW], [1], [have ncursesw]) NCURSES_CFLAGS="$ncursesw_CFLAGS" NCURSES_LIBS="$ncursesw_LIBS" NCURSES="ncursesw"], [AC_CHECK_LIB([ncurses], [main], [], + [LIBS="-lncurses $LIBS" AC_DEFINE([HAVE_LIBNCURSES], [1], [have ncurses]) NCURSES_CFLAGS="$ncurses_CFLAGS" NCURSES_LIBS="$ncurses_LIBS" NCURSES="ncurses"], [AC_MSG_ERROR([ncurses is required for profanity])])])])]) AM_CPPFLAGS="$AM_CPPFLAGS $NCURSES_CFLAGS" LIBS="$LIBS $NCURSES_LIBS" |