? dfb_version.diff Index: configure =================================================================== RCS file: /cvsroot/mplayer/main/configure,v retrieving revision 1.1073 diff -u -r1.1073 configure --- configure 5 Oct 2005 19:52:13 -0000 1.1073 +++ configure 9 Oct 2005 15:41:38 -0000 @@ -3459,7 +3459,14 @@ } EOF if cc_check $_inc_directfb -ldirectfb && "$TMPO" >> "$TMPLOG" ; then - _directfb_version=`"$TMPO"` + cat > $TMPC < +int +dfb_ver = DIRECTFB_MAJOR_VERSION DIRECTFB_MINOR_VERSION DIRECTFB_MICRO_VERSION +; +EOF + if $_cc -E $TMPC $_inc_directfb > "$TMPO"; then + _directfb_version=`sed -n 's/^dfb_ver[^1-9]*\(.*\)/\1/p' "$TMPO" | tr -d '() '` _def_directfb_version="#define DIRECTFBVERSION $_directfb_version" if test "$_directfb_version" -ge 913; then _res_comment="$_directfb_version" @@ -3468,9 +3475,13 @@ _directfb=no _res_comment="version >=0.9.13 required" fi - else + else _directfb=no _res_comment="failed to get version" + fi + else + _directfb=no + _res_comment="failed to link with libdirectfb" fi fi echores "$_directfb"