From 59e8364178f68f5f2308d1cbe2fa2975ca1d7f94 Mon Sep 17 00:00:00 2001 From: Joshua Pollack Date: Sun, 15 Apr 2012 13:07:20 -0700 Subject: Add support for Cygwin, which has curses headers in /usr/include/ncurses [keithw -- applied style change from kmcallister] Closes #181. --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 98f9b2b..d02062b 100644 --- a/configure.ac +++ b/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], -- cgit v1.2.3