mirror of https://github.com/mpv-player/mpv
Merge DirectFB header check into DirectFB check.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19316 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
79f3951cef
commit
0289359637
|
@ -3651,29 +3651,20 @@ else
|
||||||
fi
|
fi
|
||||||
echores "$_tga"
|
echores "$_tga"
|
||||||
|
|
||||||
echocheck "DirectFB headers presence"
|
|
||||||
for I in /usr/include/directfb /usr/local/include/directfb /usr/include \
|
|
||||||
/usr/local/include `echo $_inc_extra | sed s/-I//g`; do
|
|
||||||
if test -f "$I/directfb.h" ; then
|
|
||||||
_inc_directfb="-I$I"
|
|
||||||
_res_comment="using $_inc_directfb"
|
|
||||||
echores "yes"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if test -z "$_inc_directfb" ; then
|
|
||||||
_directfb=no
|
|
||||||
echores "not found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echocheck "DirectFB"
|
echocheck "DirectFB"
|
||||||
if test "$_directfb" = auto ; then
|
if test "$_directfb" = auto ; then
|
||||||
_directfb=no
|
_directfb=no
|
||||||
|
if linux && test -c /dev/fb0; then
|
||||||
cat > $TMPC <<EOF
|
cat > $TMPC <<EOF
|
||||||
#include <directfb.h>
|
#include <directfb.h>
|
||||||
int main(void) { IDirectFB *foo; DirectFBInit(0,0); return 0; }
|
int main(void) { IDirectFB *foo; DirectFBInit(0,0); return 0; }
|
||||||
EOF
|
EOF
|
||||||
linux && test -c /dev/fb0 && cc_check $_inc_directfb -ldirectfb && _directfb=yes
|
for _inc_directfb in $_inc_extra -I/usr/local/include/directfb \
|
||||||
|
-I/usr/include/directfb -I/usr/local/include -I/usr/include; do
|
||||||
|
cc_check $_inc_directfb -ldirectfb && _directfb=yes && break
|
||||||
|
done
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$_directfb" = yes; then
|
if test "$_directfb" = yes; then
|
||||||
|
|
Loading…
Reference in New Issue