configure.in
changeset 5199 164f20ba08eb
parent 5183 227d81a4b66c
child 5225 5d01d426f2ea
equal deleted inserted replaced
5198:7c3422025c35 5199:164f20ba08eb
  1310                   , enable_video_directfb=no)
  1310                   , enable_video_directfb=no)
  1311     if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  1311     if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  1312         video_directfb=no
  1312         video_directfb=no
  1313 
  1313 
  1314         DIRECTFB_REQUIRED_VERSION=1.0.0
  1314         DIRECTFB_REQUIRED_VERSION=1.0.0
  1315 
  1315         AC_PATH_PROGS(DIRECTFBCONFIG, directfb-config, no, [$prefix/bin:$PATH])
  1316         AC_PATH_PROG(DIRECTFBCONFIG, directfb-config, no)
       
  1317         if test x$DIRECTFBCONFIG = xno; then
  1316         if test x$DIRECTFBCONFIG = xno; then
  1318             AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
  1317             AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
  1319             if test x$PKG_CONFIG != xno; then
  1318             if test x$PKG_CONFIG != xno; then
  1320                 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  1319                 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  1321                     DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  1320                     DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  1351             AC_ARG_ENABLE(directfb-shared,
  1350             AC_ARG_ENABLE(directfb-shared,
  1352 AC_HELP_STRING([--enable-directfb-shared], [dynamically load directfb support [[default=yes]]]),
  1351 AC_HELP_STRING([--enable-directfb-shared], [dynamically load directfb support [[default=yes]]]),
  1353                               , enable_directfb_shared=yes)
  1352                               , enable_directfb_shared=yes)
  1354 
  1353 
  1355             AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB)
  1354             AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB)
       
  1355             AC_DEFINE(SDL_VIDEO_RENDER_DIRECTFB)
  1356             SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  1356             SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  1357             EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  1357             EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  1358 
  1358 
  1359             AC_MSG_CHECKING(for directfb dynamic loading support)
  1359             AC_MSG_CHECKING(for directfb dynamic loading support)
  1360             directfb_shared=no
  1360             directfb_shared=no
  1361             directfb_lib=[`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`]
  1361             directfb_lib=[`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`]
  1362 
  1362             # | sed 's/.*\/\(.*\)/\1/; q'`]
       
  1363 AC_MSG_WARN("directfb $directfb_lib")
  1363             if test x$have_loadso != xyes && \
  1364             if test x$have_loadso != xyes && \
  1364                test x$enable_directfb_shared = xyes; then
  1365                test x$enable_directfb_shared = xyes; then
  1365                 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic directfb loading])
  1366                 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic directfb loading])
  1366             fi
  1367             fi
  1367             if test x$have_loadso = xyes && \
  1368             if test x$have_loadso = xyes && \