krytarowski created this revision.
krytarowski added a reviewer: joerg.
krytarowski added subscribers: lldb-commits, llvm-commits.
krytarowski set the repository for this revision to rL LLVM.

This change is required to get proper ncurses handling on NetBSD.


Repository:
  rL LLVM

http://reviews.llvm.org/D12995

Files:
  autoconf/configure.ac

Index: autoconf/configure.ac
===================================================================
--- autoconf/configure.ac
+++ autoconf/configure.ac
@@ -1810,6 +1810,7 @@
 AC_CHECK_HEADERS([sys/ioctl.h malloc/malloc.h mach/mach.h])
 AC_CHECK_HEADERS([valgrind/valgrind.h])
 AC_CHECK_HEADERS([fenv.h])
+AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h])
 AC_CHECK_DECLS([FE_ALL_EXCEPT, FE_INEXACT], [], [], [[#include <fenv.h>]])
 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   AC_CHECK_HEADERS(pthread.h,
@@ -2213,6 +2214,18 @@
   AC_CONFIG_FILES([tools/clang/${doxy}:${clang_src_root}/${doxy}.in])
 fi
 
+dnl Configure lldb, if present
+if test "${lldb_src_root}" = ""; then
+  lldb_src_root="$srcdir/tools/lldb"
+fi
+if test -f ${lldb_src_root}/INSTALL.txt; then
+  dnl Use variables to stay under 80 columns.
+  configh="include/lldb/Config/config.h"
+  doxy="docs/doxygen.cfg"
+  AC_CONFIG_HEADERS([tools/lldb/${configh}:${lldb_src_root}/${configh}.in])
+  AC_CONFIG_FILES([tools/lldb/${doxy}:${lldb_src_root}/${doxy}.in])
+fi
+
 dnl OCaml findlib META file
 AC_CONFIG_FILES([bindings/ocaml/llvm/META.llvm])
 


Index: autoconf/configure.ac
===================================================================
--- autoconf/configure.ac
+++ autoconf/configure.ac
@@ -1810,6 +1810,7 @@
 AC_CHECK_HEADERS([sys/ioctl.h malloc/malloc.h mach/mach.h])
 AC_CHECK_HEADERS([valgrind/valgrind.h])
 AC_CHECK_HEADERS([fenv.h])
+AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h])
 AC_CHECK_DECLS([FE_ALL_EXCEPT, FE_INEXACT], [], [], [[#include <fenv.h>]])
 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
   AC_CHECK_HEADERS(pthread.h,
@@ -2213,6 +2214,18 @@
   AC_CONFIG_FILES([tools/clang/${doxy}:${clang_src_root}/${doxy}.in])
 fi
 
+dnl Configure lldb, if present
+if test "${lldb_src_root}" = ""; then
+  lldb_src_root="$srcdir/tools/lldb"
+fi
+if test -f ${lldb_src_root}/INSTALL.txt; then
+  dnl Use variables to stay under 80 columns.
+  configh="include/lldb/Config/config.h"
+  doxy="docs/doxygen.cfg"
+  AC_CONFIG_HEADERS([tools/lldb/${configh}:${lldb_src_root}/${configh}.in])
+  AC_CONFIG_FILES([tools/lldb/${doxy}:${lldb_src_root}/${doxy}.in])
+fi
+
 dnl OCaml findlib META file
 AC_CONFIG_FILES([bindings/ocaml/llvm/META.llvm])
 
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to