$OpenBSD: patch-autotools_ac_c_compile_flags_m4,v 1.1 2017/09/25 09:16:13 robert Exp $

Index: autotools/ac_c_compile_flags.m4
--- autotools/ac_c_compile_flags.m4.orig
+++ autotools/ac_c_compile_flags.m4
@@ -4,7 +4,7 @@ for ac_flag in $1
 do
  AC_MSG_CHECKING(whether compiler supports $ac_flag)
  CFLAGS="$NEW_CFLAGS $ac_flag"
- AC_TRY_COMPILE(,[
+ AC_LANG_SOURCE(,[
   void f() {};
  ],[
   NEW_CFLAGS="$CFLAGS"
