From 741ea38708d2ce12658e371240ea4ed996ec82e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonathan=20Sch=C3=B6bel?= <jonathan@xn--schbel-yxa.info>
Date: Tue, 5 Aug 2025 20:55:28 +0200
Subject: [PATCH 1/5] modernize Autoconf script and quote properly

The meaning the macros AC_INIT and AM_INIT_AUTOMAKE has changed.
See
https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation

Also the macro parameters are quoted and the common structure was added.
---
 configure.ac | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7b8e22a..2bf2514 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,14 +1,27 @@
-AC_INIT(cgi.c)
+#                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
 
-AM_INIT_AUTOMAKE(cgilib, 0.7)
-SO_VERSION=1:0:0
+AC_PREREQ([2.59])
+AC_INIT([cgilib], [0.7])
+AC_CONFIG_SRCDIR([cgi.c])
 
+AM_INIT_AUTOMAKE
+
+# Checks for programs.
 AC_PROG_CC
 AC_PROG_INSTALL
 AC_PROG_LIBTOOL
 
-AC_SUBST(SO_VERSION)
+# Checks for libraries.
+
+# Checks for header files.
+
+# Checks for typedefs, structures, and compiler characteristics.
+
+# Checks for library functions.
+AC_CHECK_FUNCS([strndup])
 
-AC_CHECK_FUNCS(strndup)
+AC_SUBST([SO_VERSION], [1:0:0])
 
-AC_OUTPUT(Makefile)
+# Makefiles
+AC_OUTPUT([Makefile])
-- 
2.39.2

