From 238b77f0fa26a142c373a108ad93a338405b39f3 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Fri, 15 Apr 2022 21:07:40 +0900 Subject: [PATCH] Allow building without terminal library This reverts commit 0d3416e0c250a4f08206967634fb641e9c8e008c. cf. https://github.com/tats/w3m/pull/221 Bug-Chromium: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46629 --- acinclude.m4 | 4 +--- configure | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index becbb91..f514b8e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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 ]) # diff --git a/configure b/configure index b798e7d..6bf4c93 100755 --- a/configure +++ b/configure @@ -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