Recognize NetBSD's terminfo implementation.
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 17 Aug 2013 11:06:00 +0000 (11:06 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Sat, 17 Aug 2013 11:06:00 +0000 (11:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188606 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
cmake/config-ix.cmake
configure

index ceb0b9a4a0c26e7b7feb04896b2388368a69fc19..31edd35792b01c04c4ae5c6d5a4d9c94f7415d1a 100644 (file)
@@ -1392,7 +1392,7 @@ AC_SEARCH_LIBS(clock_gettime,rt)
 dnl The curses library is optional; used for querying terminal info
 if test "$llvm_cv_enable_terminfo" = "yes" ; then
   dnl We need the has_color functionality in curses for it to be useful.
-  AC_SEARCH_LIBS(setupterm,tinfo curses ncurses ncursesw,
+  AC_SEARCH_LIBS(setupterm,tinfo terminfo curses ncurses ncursesw,
                  AC_DEFINE([HAVE_TERMINFO],[1],
                            [Define if the setupterm() function is supported this platform.]))
 fi
index 9162caf3c9b42292366fb492b40503d4429807ba..93046fe1b51d9c6be999742a0c40de9c8106e8e1 100755 (executable)
@@ -99,7 +99,7 @@ if( NOT PURE_WINDOWS )
   endif()
   if(LLVM_ENABLE_TERMINFO)
     set(HAVE_TERMINFO 0)
-    foreach(library tinfo curses ncurses ncursesw)
+    foreach(library tinfo terminfo curses ncurses ncursesw)
       string(TOUPPER ${library} library_suffix)
       check_library_exists(${library} setupterm "" HAVE_TERMINFO_${library_suffix})
       if(HAVE_TERMINFO_${library_suffix})
index 939822e4d217a0dd966952504e5f809d9bb82de1..739b150938e418bdddc49ed072a09b8c3836ef18 100755 (executable)
--- a/configure
+++ b/configure
@@ -12297,7 +12297,7 @@ return setupterm ();
   return 0;
 }
 _ACEOF
-for ac_lib in '' tinfo curses ncurses ncursesw; do
+for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
   if test -z "$ac_lib"; then
     ac_res="none required"
   else