Commit 48957684 authored by Alexandre Julliard's avatar Alexandre Julliard

Link to the curses library only for the dlls that need it.

parent 966121cc
...@@ -363,13 +363,23 @@ else ...@@ -363,13 +363,23 @@ else
fi fi
dnl **** Check which curses lib to use *** dnl **** Check which curses lib to use ***
CURSESLIBS=""
if test "$CURSES" = "yes" if test "$CURSES" = "yes"
then then
AC_CHECK_HEADERS(ncurses.h, AC_CHECK_HEADERS(ncurses.h,
AC_CHECK_LIB(ncurses,waddch), AC_CHECK_LIB(ncurses,waddch,
[AC_CHECK_HEADERS(curses.h,[AC_CHECK_LIB(curses,waddch)])]) [AC_DEFINE(HAVE_LIBNCURSES, 1, [Define if you have the ncurses library (-lncurses)])
CURSESLIBS="-lncurses"],
[AC_CHECK_HEADERS(curses.h,
[AC_CHECK_LIB(curses,waddch,
[AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have the curses library (-lcurses)])
CURSESLIBS="-lcurses"])])]))
saved_libs="$LIBS"
LIBS="$CURSESLIBS $LIBS"
AC_CHECK_FUNCS(getbkgd resizeterm) AC_CHECK_FUNCS(getbkgd resizeterm)
LIBS="$saved_libs"
fi fi
AC_SUBST(CURSESLIBS)
CUPSLIBS="" CUPSLIBS=""
dnl **** Check for CUPS **** dnl **** Check for CUPS ****
......
...@@ -5,6 +5,7 @@ VPATH = @srcdir@ ...@@ -5,6 +5,7 @@ VPATH = @srcdir@
MODULE = ttydrv MODULE = ttydrv
SOVERSION = 1.0 SOVERSION = 1.0
IMPORTS = user32 gdi32 kernel32 ntdll IMPORTS = user32 gdi32 kernel32 ntdll
EXTRALIBS = @CURSESLIBS@
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o
......
...@@ -5,6 +5,7 @@ VPATH = @srcdir@ ...@@ -5,6 +5,7 @@ VPATH = @srcdir@
MODULE = winedos MODULE = winedos
SOVERSION = 1.0 SOVERSION = 1.0
IMPORTS = user32 kernel32 ntdll IMPORTS = user32 kernel32 ntdll
EXTRALIBS = @CURSESLIBS@
C_SRCS = \ C_SRCS = \
dosaspi.c \ dosaspi.c \
......
...@@ -409,9 +409,6 @@ ...@@ -409,9 +409,6 @@
/* Define if you have the <ucontext.h> header file. */ /* Define if you have the <ucontext.h> header file. */
#undef HAVE_UCONTEXT_H #undef HAVE_UCONTEXT_H
/* Define if you have the curses library (-lcurses). */
#undef HAVE_LIBCURSES
/* Define if you have the i386 library (-li386). */ /* Define if you have the i386 library (-li386). */
#undef HAVE_LIBI386 #undef HAVE_LIBI386
...@@ -421,9 +418,6 @@ ...@@ -421,9 +418,6 @@
/* Define if you have the mmap library (-lmmap). */ /* Define if you have the mmap library (-lmmap). */
#undef HAVE_LIBMMAP #undef HAVE_LIBMMAP
/* Define if you have the ncurses library (-lncurses). */
#undef HAVE_LIBNCURSES
/* Define if you have the ossaudio library (-lossaudio). */ /* Define if you have the ossaudio library (-lossaudio). */
#undef HAVE_LIBOSSAUDIO #undef HAVE_LIBOSSAUDIO
...@@ -469,6 +463,12 @@ ...@@ -469,6 +463,12 @@
/* Define if the OpenGL headers define extension typedefs */ /* Define if the OpenGL headers define extension typedefs */
#undef HAVE_GLEXT_PROTOTYPES #undef HAVE_GLEXT_PROTOTYPES
/* Define if you have the ncurses library (-lncurses) */
#undef HAVE_LIBNCURSES
/* Define if you have the curses library (-lcurses) */
#undef HAVE_LIBCURSES
/* Define if we have CUPS */ /* Define if we have CUPS */
#undef HAVE_CUPS #undef HAVE_CUPS
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
#ifdef HAVE_SYS_FILE_H #ifdef HAVE_SYS_FILE_H
# include <sys/file.h> # include <sys/file.h>
#endif #endif
...@@ -32,7 +33,6 @@ ...@@ -32,7 +33,6 @@
#include "miscemu.h" #include "miscemu.h"
#include "task.h" #include "task.h"
#include "debugtools.h" #include "debugtools.h"
#include "console.h"
DEFAULT_DEBUG_CHANNEL(int21); DEFAULT_DEBUG_CHANNEL(int21);
#if defined(__svr4__) || defined(_SCO_DS) #if defined(__svr4__) || defined(_SCO_DS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment