diff configure.in @ 1602:cd97a8e39874

Fixed DirectFB detection
author Sam Lantinga <slouken@libsdl.org>
date Thu, 23 Mar 2006 17:31:12 +0000
parents a79200e79a61
children d91c02552377
line wrap: on
line diff
--- a/configure.in	Thu Mar 23 15:25:30 2006 +0000
+++ b/configure.in	Thu Mar 23 17:31:12 2006 +0000
@@ -1059,19 +1059,18 @@
 
         DIRECTFB_REQUIRED_VERSION=0.9.15
 
-        AC_PATH_PROG(DIRECTFBCONFIG, directfb-config)
-        if test x$DIRECTFBCONFIG = x -o x$DIRECTFBCONFIG = x'"$DIRECTFBCONFIG"'; then
+        AC_PATH_PROG(DIRECTFBCONFIG, directfb-config, no)
+        if test x$DIRECTFBCONFIG = xno; then
             AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-            if test x$PKG_CONFIG != xno ; then
-                AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
-
-                if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then then
+            AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
+            if test x$PKG_CONFIG != xno; then
+                if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
                     DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
                     DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
                     video_directfb=yes
                 fi
-                AC_MSG_RESULT($video_directfb)
             fi
+            AC_MSG_RESULT($video_directfb)
         else
             AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
             set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`