From 3729d7d62b9973baa60d253fe0463d6d607dd815 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 12 Aug 2013 10:40:11 +0000 Subject: Remove all checking for the various terminfo headers (term.h and curses.h). Finding these headers is next to impossible. For example, on Debian systems libtinfo-dev provides the terminfo reading library we want, but *not* term.h. For the header, you have to use libncurses-dev. And libncursesw-dev provides a *different* term.h in a different location! These headers aren't worth it. We want two functions the signatures of which are clearly spec'ed in sys-v and other documentation. Just declare them ourselves and call them. This should fix some debian builders and provide better support for "minimal" debian systems that do want color autodetection. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188165 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/config-ix.cmake | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'cmake') diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 13bd40d..9162caf 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -74,13 +74,6 @@ check_symbol_exists(FE_INEXACT "fenv.h" HAVE_DECL_FE_INEXACT) check_include_file(mach/mach.h HAVE_MACH_MACH_H) check_include_file(mach-o/dyld.h HAVE_MACH_O_DYLD_H) -check_include_file(term.h HAVE_TERM_H) -check_include_file(curses.h HAVE_CURSES_H) -check_include_file(ncurses.h HAVE_NCURSES_H) -check_include_file(ncursesw.h HAVE_NCURSESW_H) -check_include_file(ncurses/curses.h HAVE_NCURSES_CURSES_H) -check_include_file(ncursesw/curses.h HAVE_NCURSESW_CURSES_H) - # library checks if( NOT PURE_WINDOWS ) check_library_exists(pthread pthread_create "" HAVE_LIBPTHREAD) @@ -104,9 +97,7 @@ if( NOT PURE_WINDOWS ) else() set(HAVE_LIBZ 0) endif() - if(LLVM_ENABLE_TERMINFO AND - (HAVE_TERM_H OR HAVE_CURSES_H OR HAVE_NCURSES_H OR HAVE_NCURSESW_H OR - HAVE_NCURSES_CURSES_H OR HAVE_NCURSESW_CURSES_H)) + if(LLVM_ENABLE_TERMINFO) set(HAVE_TERMINFO 0) foreach(library tinfo curses ncurses ncursesw) string(TOUPPER ${library} library_suffix) -- cgit v1.1