Fixed DirectFB detection
authorSam Lantinga <slouken@libsdl.org>
Thu, 23 Mar 2006 17:31:12 +0000
changeset 1602cd97a8e39874
parent 1601 a79200e79a61
child 1603 64710b9f3eeb
Fixed DirectFB detection
configure.in
     1.1 --- a/configure.in	Thu Mar 23 15:25:30 2006 +0000
     1.2 +++ b/configure.in	Thu Mar 23 17:31:12 2006 +0000
     1.3 @@ -1059,19 +1059,18 @@
     1.4  
     1.5          DIRECTFB_REQUIRED_VERSION=0.9.15
     1.6  
     1.7 -        AC_PATH_PROG(DIRECTFBCONFIG, directfb-config)
     1.8 -        if test x$DIRECTFBCONFIG = x -o x$DIRECTFBCONFIG = x'"$DIRECTFBCONFIG"'; then
     1.9 +        AC_PATH_PROG(DIRECTFBCONFIG, directfb-config, no)
    1.10 +        if test x$DIRECTFBCONFIG = xno; then
    1.11              AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
    1.12 -            if test x$PKG_CONFIG != xno ; then
    1.13 -                AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
    1.14 -
    1.15 -                if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then then
    1.16 +            AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
    1.17 +            if test x$PKG_CONFIG != xno; then
    1.18 +                if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
    1.19                      DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
    1.20                      DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
    1.21                      video_directfb=yes
    1.22                  fi
    1.23 -                AC_MSG_RESULT($video_directfb)
    1.24              fi
    1.25 +            AC_MSG_RESULT($video_directfb)
    1.26          else
    1.27              AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
    1.28              set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`