Skip to content

Commit

Permalink
Hopefully fixed up DirectFB detection
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 23, 2006
1 parent ab48922 commit d8a3c3f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions configure.in
Expand Up @@ -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
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
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)

if ! $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; 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
if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then then
DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
video_directfb=yes
Expand Down

0 comments on commit d8a3c3f

Please sign in to comment.