configure.in
branchSDL-1.2-olpc
changeset 4404 b8de86ee2ad6
parent 3935 00959c391aa6
equal deleted inserted replaced
4403:6b794fb2060d 4404:b8de86ee2ad6
  1345             have_video=yes
  1345             have_video=yes
  1346         fi
  1346         fi
  1347     fi
  1347     fi
  1348 }
  1348 }
  1349 
  1349 
       
  1350 dnl Find the GTK+ includes
       
  1351 CheckGTK()
       
  1352 {
       
  1353     AC_ARG_ENABLE(video-gtk,
       
  1354 AC_HELP_STRING([--enable-video-gtk], [use GTK+ video driver [[default=no]]]),
       
  1355                   , enable_video_gtk=no)
       
  1356     if test x$enable_video = xyes -a x$enable_video_gtk = xyes; then
       
  1357         AC_PATH_PROG(HAVEPKGCONFIG, pkg-config, $PATH)
       
  1358         if test -z "$HAVEPKGCONFIG"; then
       
  1359             AC_MSG_ERROR([*** pkg-config not found. Cannot probe for gtk+-2.0.])
       
  1360         else
       
  1361             AC_MSG_CHECKING(for GTK+ support)
       
  1362             video_gtk=no
       
  1363             $HAVEPKGCONFIG --exists gtk+-2.0
       
  1364             if test $? -eq 0 ; then
       
  1365                 video_gtk=yes
       
  1366                 have_video=yes
       
  1367                 AC_DEFINE(SDL_VIDEO_DRIVER_GTK)
       
  1368                 SOURCES="$SOURCES $srcdir/src/video/gtk/*.c"
       
  1369                 GTK2_CFLAGS=`$HAVEPKGCONFIG --cflags libglade-2.0 gtk+-2.0`
       
  1370                 GTK2_LIBS=`$HAVEPKGCONFIG --libs libglade-2.0 gtk+-2.0`
       
  1371                 EXTRA_CFLAGS="$EXTRA_CFLAGS $GTK2_CFLAGS"
       
  1372                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $GTK2_LIBS"
       
  1373             fi
       
  1374             AC_MSG_RESULT($video_gtk)
       
  1375         fi
       
  1376     fi
       
  1377 }
       
  1378 
  1350 dnl Set up the QTopia video driver if enabled
  1379 dnl Set up the QTopia video driver if enabled
  1351 CheckQtopia()
  1380 CheckQtopia()
  1352 {
  1381 {
  1353     AC_ARG_ENABLE(video-qtopia,
  1382     AC_ARG_ENABLE(video-qtopia,
  1354 AC_HELP_STRING([--enable-video-qtopia], [use Qtopia video driver [[default=no]]]),
  1383 AC_HELP_STRING([--enable-video-qtopia], [use Qtopia video driver [[default=no]]]),
  2159         CheckGGI
  2188         CheckGGI
  2160         CheckSVGA
  2189         CheckSVGA
  2161         CheckVGL
  2190         CheckVGL
  2162         CheckWscons
  2191         CheckWscons
  2163         CheckAAlib
  2192         CheckAAlib
       
  2193         CheckGTK
  2164         CheckQtopia
  2194         CheckQtopia
  2165         CheckPicoGUI
  2195         CheckPicoGUI
  2166         CheckOpenGLX11
  2196         CheckOpenGLX11
  2167         CheckInputEvents
  2197         CheckInputEvents
  2168         CheckTslib
  2198         CheckTslib