autoconf: added checks for libio.h, elf.h, curses.h,ncurses.h and
fixed includers.
This commit is contained in:
parent
af88f578ab
commit
592ba10565
|
@ -3235,7 +3235,7 @@ else
|
|||
fi
|
||||
done
|
||||
|
||||
for ac_hdr in wctype.h sys/syscall.h syscall.h sys/param.h sys/vfs.h sys/mount.h sys/statfs.h float.h linux/cdrom.h linux/ucdrom.h sys/cdio.h sys/filio.h sys/modem.h strings.h sys/strtio.h dlfcn.h unistd.h sys/sockio.h net/if.h netinet/in.h sys/file.h
|
||||
for ac_hdr in wctype.h sys/syscall.h syscall.h sys/param.h sys/vfs.h sys/mount.h sys/statfs.h float.h linux/cdrom.h linux/ucdrom.h sys/cdio.h sys/filio.h sys/modem.h strings.h sys/strtio.h dlfcn.h unistd.h sys/sockio.h net/if.h netinet/in.h sys/file.h libio.h curses.h ncurses.h elf.h
|
||||
do
|
||||
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||
|
|
|
@ -344,7 +344,7 @@ fi
|
|||
dnl **** Check for functions and header files ****
|
||||
|
||||
AC_CHECK_FUNCS(clone getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm usleep wait4 waitpid vfscanf)
|
||||
AC_CHECK_HEADERS(wctype.h sys/syscall.h syscall.h sys/param.h sys/vfs.h sys/mount.h sys/statfs.h float.h linux/cdrom.h linux/ucdrom.h sys/cdio.h sys/filio.h sys/modem.h strings.h sys/strtio.h dlfcn.h unistd.h sys/sockio.h net/if.h netinet/in.h sys/file.h)
|
||||
AC_CHECK_HEADERS(wctype.h sys/syscall.h syscall.h sys/param.h sys/vfs.h sys/mount.h sys/statfs.h float.h linux/cdrom.h linux/ucdrom.h sys/cdio.h sys/filio.h sys/modem.h strings.h sys/strtio.h dlfcn.h unistd.h sys/sockio.h net/if.h netinet/in.h sys/file.h libio.h curses.h ncurses.h elf.h)
|
||||
AC_HEADER_STAT()
|
||||
AC_C_CONST()
|
||||
AC_TYPE_SIZE_T()
|
||||
|
|
|
@ -21,7 +21,13 @@
|
|||
|
||||
#include "debug.h"
|
||||
#undef ERR /* Use ncurses's err() */
|
||||
#include <curses.h>
|
||||
#ifdef HAVE_CURSES_H
|
||||
# include <curses.h>
|
||||
#else
|
||||
# ifdef HAVE_NCURSES_H
|
||||
# include <ncurses.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
SCREEN *ncurses_screen;
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
* Copyright (C) 1996, Eric Youngdale.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -26,7 +28,9 @@
|
|||
#endif
|
||||
|
||||
#ifdef __ELF__
|
||||
#include <elf.h>
|
||||
#ifdef HAVE_ELF_H
|
||||
# include <elf.h>
|
||||
#endif
|
||||
#include <link.h>
|
||||
#include <sys/mman.h>
|
||||
#elif defined(__EMX__)
|
||||
|
|
|
@ -126,12 +126,21 @@
|
|||
/* Define if you have the waitpid function. */
|
||||
#undef HAVE_WAITPID
|
||||
|
||||
/* Define if you have the <curses.h> header file. */
|
||||
#undef HAVE_CURSES_H
|
||||
|
||||
/* Define if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define if you have the <elf.h> header file. */
|
||||
#undef HAVE_ELF_H
|
||||
|
||||
/* Define if you have the <float.h> header file. */
|
||||
#undef HAVE_FLOAT_H
|
||||
|
||||
/* Define if you have the <libio.h> header file. */
|
||||
#undef HAVE_LIBIO_H
|
||||
|
||||
/* Define if you have the <linux/cdrom.h> header file. */
|
||||
#undef HAVE_LINUX_CDROM_H
|
||||
|
||||
|
@ -141,6 +150,9 @@
|
|||
/* Define if you have the <machine/soundcard.h> header file. */
|
||||
#undef HAVE_MACHINE_SOUNDCARD_H
|
||||
|
||||
/* Define if you have the <ncurses.h> header file. */
|
||||
#undef HAVE_NCURSES_H
|
||||
|
||||
/* Define if you have the <net/if.h> header file. */
|
||||
#undef HAVE_NET_IF_H
|
||||
|
||||
|
|
|
@ -12,18 +12,18 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
/* Which libs can be used for wine's curses implementation... */
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
#define WINE_NCURSES
|
||||
/* Can we compile with curses/ncurses? */
|
||||
#if ( (defined(HAVE_LIBNCURSES) || defined(HAVE_LIBCURSES)) && \
|
||||
(defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H)) \
|
||||
)
|
||||
# define WINE_NCURSES
|
||||
#else
|
||||
#ifdef HAVE_LIBCURSES
|
||||
#define WINE_NCURSES
|
||||
#endif
|
||||
# undef WINE_NCURSES
|
||||
#endif
|
||||
|
||||
#define CONSOLE_DEFAULT_DRIVER "tty"
|
||||
/* If you have problems, try setting the next line to xterm */
|
||||
#define CONSOLE_XTERM_PROG "nxterm" /* We should check for this first... */
|
||||
#define CONSOLE_XTERM_PROG "xterm" /* We should check for this first... */
|
||||
|
||||
typedef struct CONSOLE_DRIVER
|
||||
{
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <termios.h>
|
||||
#include <libio.h>
|
||||
#ifdef HAVE_LIBIO_H
|
||||
# include <libio.h>
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_USLEEP
|
||||
#ifdef __EMX__
|
||||
|
|
Loading…
Reference in New Issue