Skip to content

Commit

Permalink
Allow building without terminal library
Browse files Browse the repository at this point in the history
  • Loading branch information
tats committed Apr 15, 2022
1 parent 6338651 commit 238b77f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,7 @@ AC_ARG_WITH(termlib,
AC_MSG_RESULT($with_termlib)
test x"$with_termlib" = xyes && with_termlib="terminfo mytinfo termlib termcap tinfo ncurses curses"
for lib in $with_termlib; do
AC_CHECK_LIB($lib, tgetent,
[W3M_LIBS="$W3M_LIBS -l$lib"; break],
[test "$lib" = curses && AC_MSG_ERROR([No terminal library found])])
AC_CHECK_LIB($lib, tgetent, [W3M_LIBS="$W3M_LIBS -l$lib"; break])
done
])
#
Expand Down
2 changes: 0 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -8803,8 +8803,6 @@ eval ac_res=\$$as_ac_Lib
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
W3M_LIBS="$W3M_LIBS -l$lib"; break
else
test "$lib" = curses && as_fn_error $? "No terminal library found" "$LINENO" 5
fi

done
Expand Down

0 comments on commit 238b77f

Please sign in to comment.