Mercurial > mplayer.hg
comparison configure @ 32278:0eef1045262c
Simplify Direct3D check with header_check().
author | diego |
---|---|
date | Sun, 26 Sep 2010 18:23:04 +0000 |
parents | ba416e78c273 |
children | 6de1c6d3c1cb |
comparison
equal
deleted
inserted
replaced
32277:ba416e78c273 | 32278:0eef1045262c |
---|---|
5334 fi | 5334 fi |
5335 echores "$_win32waveout" | 5335 echores "$_win32waveout" |
5336 | 5336 |
5337 echocheck "Direct3D" | 5337 echocheck "Direct3D" |
5338 if test "$_direct3d" = auto ; then | 5338 if test "$_direct3d" = auto ; then |
5339 cat > $TMPC << EOF | |
5340 #include <d3d9.h> | |
5341 int main(void) { return 0; } | |
5342 EOF | |
5343 _direct3d=no | 5339 _direct3d=no |
5344 cc_check && _direct3d=yes | 5340 header_check d3d9.h && _direct3d=yes |
5345 fi | 5341 fi |
5346 if test "$_direct3d" = yes ; then | 5342 if test "$_direct3d" = yes ; then |
5347 def_direct3d='#define CONFIG_DIRECT3D 1' | 5343 def_direct3d='#define CONFIG_DIRECT3D 1' |
5348 vomodules="direct3d $vomodules" | 5344 vomodules="direct3d $vomodules" |
5349 else | 5345 else |