Mercurial > sdl-ios-xcode
comparison configure.in @ 4279:42ad751f3192 SDL-1.2
SuSE 11.1 installs directfb-config without directfb-devel, so check to
make sure the development headers are actually available!
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 07 Oct 2009 06:11:19 +0000 |
parents | 803eeeeaa8a0 |
children | d62725f761a1 |
comparison
equal
deleted
inserted
replaced
4278:010efca83dfc | 4279:42ad751f3192 |
---|---|
1284 DIRECTFB_REQUIRED_VERSION=0.9.15 | 1284 DIRECTFB_REQUIRED_VERSION=0.9.15 |
1285 | 1285 |
1286 AC_PATH_PROG(DIRECTFBCONFIG, directfb-config, no) | 1286 AC_PATH_PROG(DIRECTFBCONFIG, directfb-config, no) |
1287 if test x$DIRECTFBCONFIG = xno; then | 1287 if test x$DIRECTFBCONFIG = xno; then |
1288 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | 1288 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
1289 AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support) | |
1290 if test x$PKG_CONFIG != xno; then | 1289 if test x$PKG_CONFIG != xno; then |
1291 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then | 1290 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then |
1292 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` | 1291 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` |
1293 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` | 1292 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` |
1294 video_directfb=yes | 1293 video_directfb=yes |
1295 fi | 1294 fi |
1296 fi | 1295 fi |
1297 AC_MSG_RESULT($video_directfb) | |
1298 else | 1296 else |
1299 AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support) | |
1300 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'` | 1297 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'` |
1301 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` | 1298 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` |
1302 set -- `directfb-config --version | sed 's/\./ /g'` | 1299 set -- `directfb-config --version | sed 's/\./ /g'` |
1303 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` | 1300 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` |
1304 if test $HAVE_VERSION -ge $NEED_VERSION; then | 1301 if test $HAVE_VERSION -ge $NEED_VERSION; then |
1305 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags` | 1302 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags` |
1306 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs` | 1303 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs` |
1307 video_directfb=yes | 1304 video_directfb=yes |
1308 fi | 1305 fi |
1309 AC_MSG_RESULT($video_directfb) | 1306 fi |
1310 fi | 1307 if test x$video_directfb = xyes; then |
1308 # SuSE 11.1 installs directfb-config without directfb-devel | |
1309 save_CFLAGS="$CFLAGS" | |
1310 CFLAGS="$CFLAGS $DIRECTFB_CFLAGS" | |
1311 AC_CHECK_HEADER(directfb.h, have_directfb_hdr=yes, have_directfb_hdr=no) | |
1312 CFLAGS="$save_CFLAGS" | |
1313 video_directfb=$have_directfb_hdr | |
1314 fi | |
1315 AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support) | |
1316 AC_MSG_RESULT($video_directfb) | |
1311 | 1317 |
1312 if test x$video_directfb = xyes; then | 1318 if test x$video_directfb = xyes; then |
1313 AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB) | 1319 AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB) |
1314 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" | 1320 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" |
1315 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS" | 1321 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS" |