configure
changeset 9127 a8c38ed1a674
parent 9121 00d99eff96a6
child 9165 9cd9e1491227
     1.1 --- a/configure	Mon Sep 08 01:36:22 2014 -0400
     1.2 +++ b/configure	Wed Sep 10 08:54:01 2014 -0700
     1.3 @@ -832,6 +832,7 @@
     1.4  enable_video_x11_scrnsaver
     1.5  enable_video_x11_xshape
     1.6  enable_video_x11_vm
     1.7 +enable_video_mx6
     1.8  enable_video_cocoa
     1.9  enable_video_directfb
    1.10  enable_directfb_shared
    1.11 @@ -1561,6 +1562,7 @@
    1.12    --enable-video-x11-xshape
    1.13                            enable X11 XShape support [[default=yes]]
    1.14    --enable-video-x11-vm   use X11 VM extension for fullscreen [[default=yes]]
    1.15 +  --enable-video-mx6      use Freescale i.MX6 video driver [[default=no]]
    1.16    --enable-video-cocoa    use Cocoa video driver [[default=yes]]
    1.17    --enable-video-directfb use DirectFB video driver [[default=no]]
    1.18    --enable-directfb-shared
    1.19 @@ -20591,6 +20593,53 @@
    1.20      fi
    1.21  }
    1.22  
    1.23 +CheckMX6Video()
    1.24 +{
    1.25 +    # Check whether --enable-video-mx6 was given.
    1.26 +if test "${enable_video_mx6+set}" = set; then :
    1.27 +  enableval=$enable_video_mx6;
    1.28 +else
    1.29 +  enable_video_mx6=no
    1.30 +fi
    1.31 +
    1.32 +    if test x$enable_video = xyes -a x$enable_video_mx6 = xyes; then
    1.33 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante GPU SDK" >&5
    1.34 +$as_echo_n "checking for Vivante GPU SDK... " >&6; }
    1.35 +        have_viv_sdk=no
    1.36 +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.37 +/* end confdefs.h.  */
    1.38 +
    1.39 +          #define EGL_API_FB
    1.40 +          #include <EGL/eglvivante.h>
    1.41 +
    1.42 +int
    1.43 +main ()
    1.44 +{
    1.45 +
    1.46 +
    1.47 +  ;
    1.48 +  return 0;
    1.49 +}
    1.50 +_ACEOF
    1.51 +if ac_fn_c_try_compile "$LINENO"; then :
    1.52 +
    1.53 +        have_viv_sdk=yes
    1.54 +
    1.55 +fi
    1.56 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.57 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_viv_sdk" >&5
    1.58 +$as_echo "$have_viv_sdk" >&6; }
    1.59 +        if test x$have_viv_sdk = xyes; then
    1.60 +
    1.61 +$as_echo "#define SDL_VIDEO_DRIVER_MX6 1" >>confdefs.h
    1.62 +
    1.63 +            SOURCES="$SOURCES $srcdir/src/video/mx6/*.c"
    1.64 +            SUMMARY_video="${SUMMARY_video} mx6"
    1.65 +            have_video=yes
    1.66 +        fi
    1.67 +    fi
    1.68 +}
    1.69 +
    1.70  CheckHaikuVideo()
    1.71  {
    1.72      if test x$enable_video = xyes; then
    1.73 @@ -21044,6 +21093,7 @@
    1.74          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.75  /* end confdefs.h.  */
    1.76  
    1.77 +         #define EGL_API_FB
    1.78           #include <EGL/egl.h>
    1.79           #include <EGL/eglext.h>
    1.80  
    1.81 @@ -22818,6 +22868,7 @@
    1.82          CheckClockGettime
    1.83          CheckLinuxVersion
    1.84          CheckRPATH
    1.85 +        CheckMX6Video
    1.86          # Set up files for the audio library
    1.87          if test x$enable_audio = xyes; then
    1.88            case $ARCH in