$OpenBSD: patch-configure_ac,v 1.2 2021/02/20 07:56:48 kirby Exp $

Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -354,12 +354,6 @@ esac
 GLOBAL_CFLAGS="-include \"\$(top_builddir)/src/config.h\" -I\"\$(top_srcdir)/src\" -DPKGDATADIR=\\\"\$(pkgdatadir)\\\" -W -Wall -Wextra -Wunused -Wshadow -Wpointer-arith -Wmissing-prototypes -Winline -Wcast-align -Wmissing-declarations -Wredundant-decls -Wcast-align -Wformat -Wformat-security"
 GLOBAL_LIBS=
 
-# Checks for gnu11 flag support and applies it if found. (Needed for older GCC versions)
-AX_CHECK_COMPILE_FLAG([-std=gnu11],
-  [AX_APPEND_FLAG([-std=gnu11])],
-  [AC_MSG_WARN([-std=gnu11 not supported, you may have to set CFLAGS to enable C11 support.])
-])
-
 AS_IF([test "x$enable_debug" != "xno"], [
   GLOBAL_CFLAGS="$GLOBAL_CFLAGS -DLUA_USE_APICHECK"
 ])
@@ -386,7 +380,7 @@ NAEV_LIBS="$GLOBAL_LIBS $WIDGET_LIBS"
 case "$host" in
   *-mingw*)
     ;;
-  *)
+  *-linux-gnu)
     NAEV_LIBS="$NAEV_LIBS -ldl"
     ;;
 esac
@@ -611,7 +605,6 @@ AS_IF([test "x$have_docs" = "xyes"], [
   AC_CONFIG_FILES([docs/Makefile])
 ])
 AS_IF([test "x$used_lua" = "xinternal"], [
-  AC_CONFIG_FILES([lib/lua/Makefile])
 ])
 AS_IF([test "x$used_csparse" = "xinternal"], [
   AC_CONFIG_FILES([lib/csparse/Makefile])
