Commit bdf141335c59af7da331076127b72daf51edb8e3

Ozkan Sezer 2022-06-12T23:22:20

autotools: fixed d3d12 detection result report.

diff --git a/configure b/configure
index eb553fa..338d713 100755
--- a/configure
+++ b/configure
@@ -27183,10 +27183,12 @@ _ACEOF
 if ac_fn_c_try_compile "$LINENO"
 then :
   have_d3d12=yes
+else $as_nop
+  have_d3d12=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
-        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: have_d3d12" >&5
-printf "%s\n" "have_d3d12" >&6; }
+        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
+printf "%s\n" "$have_d3d12" >&6; }
         ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
 if test "x$ac_cv_header_ddraw_h" = xyes
 then :
diff --git a/configure.ac b/configure.ac
index 99c6fb7..807c22f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3277,8 +3277,8 @@ ID3D12Device5 *device;
 #if WDK_NTDDI_VERSION <= 0x0A000008
 asdf
 #endif
-            ]],[])], [have_d3d12=yes],[])
-        AC_MSG_RESULT(have_d3d12)
+            ]])], [have_d3d12=yes],[have_d3d12=no])
+        AC_MSG_RESULT($have_d3d12)
         AC_CHECK_HEADER(ddraw.h, have_ddraw=yes)
         AC_CHECK_HEADER(dsound.h, have_dsound=yes)
         AC_CHECK_HEADER(dinput.h, have_dinput=yes)