diff mbox

w32: Add support for curses

Message ID 1298834610-6232-1-git-send-email-weil@mail.berlios.de
State Accepted
Headers show

Commit Message

Stefan Weil Feb. 27, 2011, 7:23 p.m. UTC
MinGW optionally includes pdcurses, so add support for it.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 configure |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Comments

Paolo Bonzini Feb. 28, 2011, 9:09 a.m. UTC | #1
On 02/27/2011 08:23 PM, Stefan Weil wrote:
> MinGW optionally includes pdcurses, so add support for it.
>
> Signed-off-by: Stefan Weil<weil@mail.berlios.de>
> ---
>   configure |    6 +++++-
>   1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index 47779b6..ca15632 100755
> --- a/configure
> +++ b/configure
> @@ -1562,7 +1562,11 @@ fi
>
>   ##########################################
>   # curses probe
> -curses_list="-lncurses -lcurses"
> +if test "$mingw32" = "yes" ; then
> +    curses_list="-lpdcurses"
> +else
> +    curses_list="-lncurses -lcurses"
> +fi
>
>   if test "$curses" != "no" ; then
>     curses_found=no

ACK

Paolo
Aurelien Jarno March 6, 2011, 7:22 p.m. UTC | #2
On Sun, Feb 27, 2011 at 08:23:30PM +0100, Stefan Weil wrote:
> MinGW optionally includes pdcurses, so add support for it.
> 
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
> ---
>  configure |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)

Thanks, applied.

> diff --git a/configure b/configure
> index 47779b6..ca15632 100755
> --- a/configure
> +++ b/configure
> @@ -1562,7 +1562,11 @@ fi
>  
>  ##########################################
>  # curses probe
> -curses_list="-lncurses -lcurses"
> +if test "$mingw32" = "yes" ; then
> +    curses_list="-lpdcurses"
> +else
> +    curses_list="-lncurses -lcurses"
> +fi
>  
>  if test "$curses" != "no" ; then
>    curses_found=no
> -- 
> 1.7.2.3
> 
> 
>
diff mbox

Patch

diff --git a/configure b/configure
index 47779b6..ca15632 100755
--- a/configure
+++ b/configure
@@ -1562,7 +1562,11 @@  fi
 
 ##########################################
 # curses probe
-curses_list="-lncurses -lcurses"
+if test "$mingw32" = "yes" ; then
+    curses_list="-lpdcurses"
+else
+    curses_list="-lncurses -lcurses"
+fi
 
 if test "$curses" != "no" ; then
   curses_found=no