]> Savannah Git Hosting - gnulib.git/commitdiff
termcap: Fix link error when no suitable library is found.
authorBruno Haible <bruno@clisp.org>
Sat, 14 May 2022 19:59:58 +0000 (21:59 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 14 May 2022 19:59:58 +0000 (21:59 +0200)
* m4/termcap.m4 (gl_TERMCAP_BODY): If no suitable library is found,
set LIBTERMCAP and LTLIBTERMCAP to empty.

ChangeLog
m4/termcap.m4

index fe26d376186df7cfdfa8625afa5c45aab2ff070a..0bd1ad038853c540c1f497db4b8c3816e44c9dac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-05-14  Bruno Haible  <bruno@clisp.org>
+
+       termcap: Fix link error when no suitable library is found.
+       * m4/termcap.m4 (gl_TERMCAP_BODY): If no suitable library is found,
+       set LIBTERMCAP and LTLIBTERMCAP to empty.
+
 2022-05-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        dfa: fix bug with ‘.’ and UTF-8 Hangul Syllables
index 4817b5343c853809b0c8f451204401ca253791ee..89765a5352544dc9ea43052705158694d4abce65 100644 (file)
@@ -1,4 +1,4 @@
-# termcap.m4 serial 8
+# termcap.m4 serial 9
 dnl Copyright (C) 2000-2022 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -120,6 +120,11 @@ AC_DEFUN([gl_TERMCAP_BODY],
       ;;
     libtermcap)
       ;;
+    "not found"*)
+      LIBTERMCAP=
+      LTLIBTERMCAP=
+      INCTERMCAP=
+      ;;
   esac
   case "$gl_cv_termcap" in
     libc | libncurses | libtermcap)