I do have the same problem here. I try to configure with directFB. The directfb I want to use is provided by the vendor of the system I want to use, and it works well.

So here is the configure line I'm using :
./configure -embedded arm-gnueabi -qt-freetype -embedded arm-gnueabi -plugin-gfx-directfb -xplatform qws/linux-arm-gnueabi-g++

The compiler I what to use is in the PATH and I precise the name of the binary in qmake.conf.

Here is how I set QT_CFLAGS_DIRECTFB and QT_LIBS_DIRECTFB at the end of qws/linux-arm-gnueabi-g++/qmake.conf :


QT_CFLAGS_DIRECTFB=-I/opt/SDK/inc/directfb -D_REENTRANT
QT_LIBS_DIRECTFB=-L/opt/SDK/lib -ldirectfb -lfusion -ldirect -lpthread

But I get this whatever I'm doing :

Do you accept the terms of either license? yes

Creating qmake. Please wait...
make: Rien à faire pour « first ».
/home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
(many like theses)
/home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")

The DirectFB screen driver functionality test failed!
You might need to modify the include and library search paths by editing
QT_CFLAGS_DIRECTFB and QT_LIBS_DIRECTFB in
/home/devel-arm/libs/qt-everywhere-opensource-src-4.7.1/mkspecs/qws/linux-arm-gnueabi-g++.

Do I miss something ?