]> granicus.if.org Git - neomutt/commitdiff
Fail early if ncursesw cannot be found
authorPietro Cerutti <gahr@gahr.ch>
Fri, 26 May 2017 11:39:45 +0000 (11:39 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 30 May 2017 11:45:09 +0000 (12:45 +0100)
Also, remove a leftover of when we used to have m4/curslib.m4.

Issue: #585

configure.ac

index 35d62bbae8a3920fe24000fa230e753c69f7e966..43122a8310753053f1fe9e5223c447f22db02490 100644 (file)
@@ -357,6 +357,9 @@ main ()
        do
                AC_CHECK_LIB($lib, waddnwstr, [cf_ncurses="$lib"; break])
        done
+       if test -z $cf_ncurses; then
+               AC_MSG_ERROR([Unable to find ncursesw library])
+       fi
        AC_CHECK_LIB($cf_ncurses, initscr,
                [MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
 
@@ -374,7 +377,7 @@ main ()
                        [AC_CHECK_HEADERS(ncurses.h,[cf_cv_ncurses_header="ncurses.h"])])
                fi],
 
-               [CF_CURSES_LIBS])
+               )
                ])
 
        old_LIBS="$LIBS"