1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00

Check for ncurses headers on cygwin

This commit is contained in:
James Booth 2012-09-08 16:51:09 +01:00
parent 86d1ff605c
commit 8e0d8d2a86
7 changed files with 44 additions and 0 deletions

View File

@ -35,6 +35,8 @@ AC_CHECK_LIB([headunit], [main], [],
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])
AC_CHECK_HEADERS([ncurses.h], [], [])
AC_CHECK_HEADERS([ncurses/ncurses.h], [], [])
PKG_CHECK_MODULES([DEPS], [openssl glib-2.0 libcurl])
PKG_CHECK_MODULES([NOTIFY], [libnotify], [],

View File

@ -39,10 +39,17 @@
* cols : 4
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#endif
#ifdef HAVE_NCURSES_NCURSES_H
#include <ncurses/ncurses.h>
#endif
#include "common.h"
#include "command.h"

View File

@ -20,11 +20,18 @@
*
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#endif
#ifdef HAVE_NCURSES_NCURSES_H
#include <ncurses/ncurses.h>
#endif
#include "log.h"
#include "prof_autocomplete.h"

View File

@ -23,8 +23,16 @@
#ifndef PREFERENCES_H
#define PREFERENCES_H
#include "config.h"
#include <glib.h>
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#endif
#ifdef HAVE_NCURSES_NCURSES_H
#include <ncurses/ncurses.h>
#endif
void prefs_load(void);
void prefs_close(void);

View File

@ -20,10 +20,17 @@
*
*/
#include "config.h"
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#endif
#ifdef HAVE_NCURSES_NCURSES_H
#include <ncurses/ncurses.h>
#endif
#include "ui.h"

View File

@ -23,8 +23,16 @@
#ifndef WINDOWS_H
#define WINDOWS_h
#include "config.h"
#include <glib.h>
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#endif
#ifdef HAVE_NCURSES_NCURSES_H
#include <ncurses/ncurses.h>
#endif
#include "jabber.h"

View File

@ -28,7 +28,12 @@
#ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h>
#endif
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#endif
#ifdef HAVE_NCURSES_NCURSES_H
#include <ncurses/ncurses.h>
#endif
#include "command.h"
#include "contact.h"