termux-packages/packages/gcal/gcal-4.1-configure-clang16....

25 lines
878 B
Diff

https://github.com/termux/termux-packages/issues/15852
https://lists.gnu.org/archive/html/bug-gcal/2022-12/msg00000.html
--- a/configure.ac
+++ b/configure.ac
@@ -319,7 +319,7 @@ if test "$gcal_cv_use_term" = yes; then
AC_MSG_CHECKING(for working terminal libraries)
SAVE_LIBS=$LIBS
LIBS="$LIBS $TTYLIBS"
- AC_TRY_LINK(,
+ AC_TRY_LINK([#include <term.h>],
[tgetent(0); tgetflag(0); tgetnum(0); tgetstr(0);],
[gcal_ttylibs_ok=yes])
if test "$gcal_ttylibs_ok" = yes; then
@@ -334,7 +334,7 @@ if test "$gcal_cv_use_term" = yes; then
[TTYLIBS="-ltermcap"])
AC_MSG_CHECKING(for working terminal libraries again)
LIBS="$LIBS $TTYLIBS"
- AC_TRY_LINK(,
+ AC_TRY_LINK([#include <term.h>],
[tgetent(0); tgetflag(0); tgetnum(0); tgetstr(0);],
[gcal_ttylibs_ok=yes])
if test "$gcal_ttylibs_ok" = yes; then