diff options
author | James Booth <boothj5@gmail.com> | 2014-02-02 17:59:22 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-02-02 17:59:22 +0000 |
commit | 42300fdc181edfd0072b8c15501e973e25edfff1 (patch) | |
tree | a623106354782c5b7996ff05626a7461fa99c946 | |
parent | 9394091f04e862fae4b4a55d4bc95c144a98d76e (diff) | |
download | profani-tty-42300fdc181edfd0072b8c15501e973e25edfff1.tar.gz |
Added AC_CHECK_LIB fallback for brew
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b457eed1..3ffb8ccf 100644 --- a/configure.ac +++ b/configure.ac @@ -82,7 +82,8 @@ 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_MSG_ERROR([ncurses is required for profanity])])]) + [AC_CHECK_LIB([ncurses], [main], [], + [AC_MSG_ERROR([ncurses is required for profanity])])])]) AM_CPPFLAGS="$AM_CPPFLAGS $NCURSES_CFLAGS" LIBS="$LIBS $NCURSES_LIBS" |