From b081a168976b74db032f981e2303d2087b0f1004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 11 Dec 2012 15:00:15 +0000 Subject: [PATCH] configure: Use AC_LANG_PROGRAM to make autoconf happy --- configure.ac | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 13dd94588c..ff49c457b6 100644 --- a/configure.ac +++ b/configure.ac @@ -584,17 +584,12 @@ AG_GST_CHECK_FEATURE(DIRECT3D9, [Direct3D9], winscreencap, [ LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS" LIBS="$LIBS -ld3d9 -lgdi32" AC_MSG_CHECKING(for Direct3D9 LDFLAGS) - AC_LINK_IFELSE([ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include #include - -int main () -{ +]], [[ Direct3DCreate9(D3D_SDK_VERSION); - - return 0; -} -], +]])], [HAVE_DIRECT3D9="yes"], [HAVE_DIRECT3D9="no"]) AC_MSG_RESULT($HAVE_DIRECT3D9)