Commit 2f058899 authored by Sam Lantinga's avatar Sam Lantinga

Hopefully fixed up DirectFB detection

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401608
parent 73025412
...@@ -1063,15 +1063,9 @@ AC_HELP_STRING([--enable-video-directfb], [use DirectFB video driver [default=ye ...@@ -1063,15 +1063,9 @@ AC_HELP_STRING([--enable-video-directfb], [use DirectFB video driver [default=ye
if test x$DIRECTFBCONFIG = x -o x$DIRECTFBCONFIG = x'"$DIRECTFBCONFIG"'; then if test x$DIRECTFBCONFIG = x -o x$DIRECTFBCONFIG = x'"$DIRECTFBCONFIG"'; then
AC_PATH_PROG(PKG_CONFIG, pkg-config, no) AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test x$PKG_CONFIG != xno ; then if test x$PKG_CONFIG != xno ; then
AC_MSG_WARN([*** directfb-config or pkg-config are required to detect the DirectFB video driver.])
else
AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support) AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
if ! $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then then
AC_MSG_ERROR([*** pkg-config too old; version 0.7 or better required.])
fi
if $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then
DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
video_directfb=yes video_directfb=yes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment