configure
changeset 8104 2e4f1bd21196
parent 8091 a65f28a04224
child 8124 5226058345bf
equal deleted inserted replaced
8103:d4a88c49247e 8104:2e4f1bd21196
   817 enable_sndio_shared
   817 enable_sndio_shared
   818 enable_diskaudio
   818 enable_diskaudio
   819 enable_dummyaudio
   819 enable_dummyaudio
   820 enable_video_wayland
   820 enable_video_wayland
   821 enable_video_wayland_qt_touch
   821 enable_video_wayland_qt_touch
       
   822 enable_wayland_shared
   822 enable_video_x11
   823 enable_video_x11
   823 with_x
   824 with_x
   824 enable_x11_shared
   825 enable_x11_shared
   825 enable_video_x11_xcursor
   826 enable_video_x11_xcursor
   826 enable_video_x11_xinerama
   827 enable_video_x11_xinerama
  1536   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
  1537   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
  1537   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1538   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1538   --enable-video-wayland-qt-touch
  1539   --enable-video-wayland-qt-touch
  1539                           QtWayland server support for Wayland video driver
  1540                           QtWayland server support for Wayland video driver
  1540                           [[default=yes]]
  1541                           [[default=yes]]
       
  1542   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1541   --enable-video-x11      use X11 video driver [[default=yes]]
  1543   --enable-video-x11      use X11 video driver [[default=yes]]
  1542   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
  1544   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
  1543   --enable-video-x11-xcursor
  1545   --enable-video-x11-xcursor
  1544                           enable X11 Xcursor support [[default=yes]]
  1546                           enable X11 Xcursor support [[default=yes]]
  1545   --enable-video-x11-xinerama
  1547   --enable-video-x11-xinerama
 18703         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
 18705         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
 18704 $as_echo_n "checking for Wayland support... " >&6; }
 18706 $as_echo_n "checking for Wayland support... " >&6; }
 18705         video_wayland=no
 18707         video_wayland=no
 18706         if test x$PKG_CONFIG != xno; then
 18708         if test x$PKG_CONFIG != xno; then
 18707             if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
 18709             if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
 18708                 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor egl xkbcommon`
 18710                 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
 18709                 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor egl xkbcommon`
 18711                 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
 18710                 video_wayland=yes
 18712                 video_wayland=yes
 18711             fi
 18713             fi
 18712         fi
 18714         fi
 18713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
 18715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
 18714 $as_echo "$video_wayland" >&6; }
 18716 $as_echo "$video_wayland" >&6; }
 18722 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
 18724 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
 18723 
 18725 
 18724             fi
 18726             fi
 18725             SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
 18727             SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
 18726             EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
 18728             EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
 18727                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
 18729             # Check whether --enable-wayland-shared was given.
       
 18730 if test "${enable_wayland_shared+set}" = set; then :
       
 18731   enableval=$enable_wayland_shared;
       
 18732 else
       
 18733   enable_wayland_shared=maybe
       
 18734 fi
       
 18735 
       
 18736 
       
 18737                         case "$host" in
       
 18738                 *)
       
 18739                     wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
       
 18740                     wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
       
 18741                     if test x$wayland_egl_lib = x; then
       
 18742                                                 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
       
 18743                     fi
       
 18744                     wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
       
 18745                     xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
       
 18746                     ;;
       
 18747             esac
       
 18748 
       
 18749             if test x$enable_wayland_shared = xmaybe; then
       
 18750                 enable_wayland_shared=yes
       
 18751             fi
       
 18752             if test x$have_loadso != xyes && \
       
 18753                test x$enable_wayland_shared = xyes; then
       
 18754                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic WAYLAND loading" >&5
       
 18755 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic WAYLAND loading" >&2;}
       
 18756                 enable_wayland_shared=no
       
 18757             fi
       
 18758             if test x$have_loadso = xyes && \
       
 18759                test x$enable_wayland_shared = xyes && \
       
 18760                test x$wayland_client_lib != x && \
       
 18761                test x$wayland_egl_lib != x && \
       
 18762                test x$wayland_cursor_lib != x && \
       
 18763                test x$xkbcommon_lib != x; then
       
 18764                 echo "-- dynamic libwayland-client -> $wayland_client_lib"
       
 18765                 echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
       
 18766                 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
       
 18767                 echo "-- dynamic xkbcommon -> $xkbcommon_lib"
       
 18768 
       
 18769 cat >>confdefs.h <<_ACEOF
       
 18770 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
       
 18771 _ACEOF
       
 18772 
       
 18773 
       
 18774 cat >>confdefs.h <<_ACEOF
       
 18775 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
       
 18776 _ACEOF
       
 18777 
       
 18778 
       
 18779 cat >>confdefs.h <<_ACEOF
       
 18780 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
       
 18781 _ACEOF
       
 18782 
       
 18783 
       
 18784 cat >>confdefs.h <<_ACEOF
       
 18785 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
       
 18786 _ACEOF
       
 18787 
       
 18788             else
       
 18789                 enable_wayland_shared=no
       
 18790                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
       
 18791             fi
 18728             have_video=yes
 18792             have_video=yes
 18729         fi
 18793         fi
 18730     fi
 18794     fi
 18731 }
 18795 }
 18732 
 18796