Browse files

Add support for Cygwin, which has curses headers in /usr/include/ncurses

[keithw -- applied style change from kmcallister]

Closes #181.
  • Loading branch information...
1 parent 25b0e0e commit 59e8364178f68f5f2308d1cbe2fa2975ca1d7f94 @jpollack jpollack committed with keithw Apr 15, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 configure.ac
View
5 configure.ac
@@ -201,7 +201,7 @@ AM_CONDITIONAL([COND_THIRD_LIBSTDDJB],
[test x"$have_signalfd" = xno && test x"$with_skalibs" = xno])
# Checks for header files.
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h langinfo.h limits.h locale.h netinet/in.h stddef.h stdint.h inttypes.h stdlib.h string.h sys/ioctl.h sys/resource.h sys/socket.h sys/time.h term.h termios.h unistd.h wchar.h wctype.h], [], [AC_MSG_ERROR([Missing required header file.])])
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h langinfo.h limits.h locale.h netinet/in.h stddef.h stdint.h inttypes.h stdlib.h string.h sys/ioctl.h sys/resource.h sys/socket.h sys/time.h termios.h unistd.h wchar.h wctype.h], [], [AC_MSG_ERROR([Missing required header file.])])
AC_CHECK_HEADERS([pty.h util.h libutil.h])
AC_CHECK_HEADERS([endian.h sys/endian.h])
@@ -227,6 +227,9 @@ AC_CHECK_FUNCS([gettimeofday setrlimit inet_ntoa iswprint memchr memset nl_langi
AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Define if clock_gettime is available.])])
+AS_IF([test x"$__CYGWIN__" != x && test x"$TINFO_CPPFLAGS" = x],
+ [TINFO_CPPFLAGS="-I/usr/include/ncurses"])
+
PKG_CHECK_MODULES([TINFO], [tinfo], ,
[PKG_CHECK_MODULES([TINFO], [ncurses], ,
[AX_CHECK_LIBRARY([TINFO], [curses.h], [tinfo],

0 comments on commit 59e8364

Please sign in to comment.