diff configure @ 16256:578e8b4c3e7f

use libvbe from vesautils
author alex
date Thu, 18 Aug 2005 11:26:04 +0000
parents aa8f80ce03a4
children 7949a0c4e5ad
line wrap: on
line diff
--- a/configure	Thu Aug 18 11:18:44 2005 +0000
+++ b/configure	Thu Aug 18 11:26:04 2005 +0000
@@ -4290,23 +4290,22 @@
 
 echocheck "VESA support"
 if test "$_vesa" = auto ; then
-if x86 && linux ; then
+  cat > $TMPC << EOF
+#include <vbe.h>
+int main(void) { vbeVersion(); return 0; }
+EOF
   _vesa=no
-  cat > $TMPC << EOF
-#include <sys/io.h>
-int main(void) { return 0; }
-EOF
-  cc_check && _vesa=yes
-fi
+  cc_check -lvbe -llrmi && _vesa=yes
 fi
 if test "$_vesa" = yes ; then
   _def_vesa='#define HAVE_VESA 1'
+  _ld_vesa="-lvbe -llrmi"
   _vosrc="$_vosrc vo_vesa.c vesa_lvo.c"
   _vomodules="vesa $_vomodules"
   echores "yes"
 else
   _def_vesa='#undef HAVE_VESA'
-  echores "no (not supported on this OS/architecture)"
+  echores "no"
   _novomodules="vesa $_novomodules"
 fi
 
@@ -7025,6 +7024,7 @@
 GIF_LIB = $_ld_gif
 SDL_LIB = $_ld_sdl
 SVGA_LIB = $_ld_svga
+VESA_LIB = $_ld_vesa
 AA_LIB = $_ld_aa
 CACA_INC = $_inc_caca
 CACA_LIB = $_ld_caca