# HG changeset patch # User diego # Date 1285525384 0 # Node ID 0eef1045262ca2dc0c7c53b4be50d3b137935e6f # Parent ba416e78c273e5a5762c7d24a3b1c992be6b6148 Simplify Direct3D check with header_check(). diff -r ba416e78c273 -r 0eef1045262c configure --- a/configure Sun Sep 26 18:22:06 2010 +0000 +++ b/configure Sun Sep 26 18:23:04 2010 +0000 @@ -5336,12 +5336,8 @@ echocheck "Direct3D" if test "$_direct3d" = auto ; then - cat > $TMPC << EOF -#include -int main(void) { return 0; } -EOF _direct3d=no - cc_check && _direct3d=yes + header_check d3d9.h && _direct3d=yes fi if test "$_direct3d" = yes ; then def_direct3d='#define CONFIG_DIRECT3D 1'