mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
configure: Use AC_LANG_PROGRAM to make autoconf happy
This commit is contained in:
parent
eeab001bc2
commit
b081a16897
1 changed files with 3 additions and 8 deletions
11
configure.ac
11
configure.ac
|
@ -584,17 +584,12 @@ AG_GST_CHECK_FEATURE(DIRECT3D9, [Direct3D9], winscreencap, [
|
||||||
LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
|
LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
|
||||||
LIBS="$LIBS -ld3d9 -lgdi32"
|
LIBS="$LIBS -ld3d9 -lgdi32"
|
||||||
AC_MSG_CHECKING(for Direct3D9 LDFLAGS)
|
AC_MSG_CHECKING(for Direct3D9 LDFLAGS)
|
||||||
AC_LINK_IFELSE([
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <d3d9.h>
|
#include <d3d9.h>
|
||||||
|
]], [[
|
||||||
int main ()
|
|
||||||
{
|
|
||||||
Direct3DCreate9(D3D_SDK_VERSION);
|
Direct3DCreate9(D3D_SDK_VERSION);
|
||||||
|
]])],
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[HAVE_DIRECT3D9="yes"],
|
[HAVE_DIRECT3D9="yes"],
|
||||||
[HAVE_DIRECT3D9="no"])
|
[HAVE_DIRECT3D9="no"])
|
||||||
AC_MSG_RESULT($HAVE_DIRECT3D9)
|
AC_MSG_RESULT($HAVE_DIRECT3D9)
|
||||||
|
|
Loading…
Reference in a new issue