$NetBSD: patch-ad,v 1.7 2012/08/26 19:42:09 marino Exp $

--- configure.orig	2011-04-28 12:07:28.000000000 +0000
+++ configure
@@ -8425,7 +8425,7 @@ $as_echo "#define IDE 1" >>confdefs.h
 
     fi
 
-if [ "$WANT_IDE" == "yes" ]; then
+if [ "$WANT_IDE" = "yes" ]; then
     # Check whether --enable-largefile was given.
 if test "${enable_largefile+set}" = set; then :
   enableval=$enable_largefile;
@@ -8878,10 +8878,8 @@ case "$a8_target" in
         LIBS="$LIBS $SDL_LIBS"
         CFLAGS="$CFLAGS $SDL_CFLAGS"
         if [ "$a8_host" = "win" ]; then
-            LIBS=${LIBS/-lSDLmain/}
             OBJS="$OBJS SDL_win32_main.o"
             CFLAGS="$CFLAGS -DNO_STDIO_REDIRECT"
-            LIBS=${LIBS/-mwindows/}
         fi
         ;;
 esac
