File 0011-autoconf-2.73-compatibility.patch of Package krb5
From 7aabc5996e909381a0e138ad4447e408728dfa50 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero <scabrero@suse.com> Date: Tue, 17 Feb 2026 16:57:40 +0100 Subject: [PATCH] Prepare for autoconf 2.73, move version computation to version.m4 configure.ac must now contain AC_INIT macro. Signed-off-by: Samuel Cabrero <scabrero@suse.com> --- src/aclocal.m4 | 23 ----------------------- src/configure.ac | 4 +++- src/version.m4 | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 24 deletions(-) create mode 100644 src/version.m4 diff --git a/src/aclocal.m4 b/src/aclocal.m4 index b3f273e28d..f6dc817bfb 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -16,30 +16,6 @@ ac_config_fragdir=$ac_reltopdir/config AC_CONFIG_AUX_DIR(K5_TOPDIR/config) ])dnl dnl -dnl Version info. -dnl -pushdef([x],esyscmd([sed -n 's/#define \([A-Z0-9_]*\)[ \t]*\(.*\)/\1=\2/p' < ]K5_TOPDIR/patchlevel.h)) -define([PL_KRB5_MAJOR_RELEASE],regexp(x,[KRB5_MAJOR_RELEASE=\(.*\)],[\1])) -ifelse(PL_KRB5_MAJOR_RELEASE,,[errprint([Can't determine KRB5_MAJOR_RELEASE value from patchlevel.h. -]) m4exit(1) dnl sometimes that does not work? -builtin(m4exit,1)]) -define([PL_KRB5_MINOR_RELEASE],regexp(x,[KRB5_MINOR_RELEASE=\(.*\)],[\1])) -ifelse(PL_KRB5_MINOR_RELEASE,,[errprint([Can't determine KRB5_MINOR_RELEASE value from patchlevel.h. -]) m4exit(1) dnl sometimes that does not work? -builtin(m4exit,1)]) -define([PL_KRB5_PATCHLEVEL],regexp(x,[KRB5_PATCHLEVEL=\(.*\)],[\1])) -ifelse(PL_KRB5_PATCHLEVEL,,[errprint([Can't determine KRB5_PATCHLEVEL value from patchlevel.h. -]) m4exit(1) dnl sometimes that does not work? -builtin(m4exit,1)]) -define([PL_KRB5_RELTAIL],regexp(x,[KRB5_RELTAIL="\(.*\)"],[\1])) -dnl RELTAIL is allowed to not be defined. -popdef([x]) -define([K5_VERSION],PL_KRB5_MAJOR_RELEASE.PL_KRB5_MINOR_RELEASE[]ifelse(PL_KRB5_PATCHLEVEL,0,,.PL_KRB5_PATCHLEVEL)ifelse(PL_KRB5_RELTAIL,,,-PL_KRB5_RELTAIL)) -define([K5_BUGADDR],krb5-bugs@mit.edu) -define([K5_AC_INIT],[AC_INIT(Kerberos 5, K5_VERSION, K5_BUGADDR, krb5) -AC_CONFIG_SRCDIR($1) -build_dynobj=no]) -dnl dnl drop in standard rules for all configure files -- CONFIG_RULES dnl AC_DEFUN(CONFIG_RULES,[dnl diff --git a/src/configure.ac b/src/configure.ac index 7313bc5528..8a16548cd2 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -1,4 +1,6 @@ -K5_AC_INIT([aclocal.m4]) +m4_include([version.m4]) +AC_INIT(Kerberos 5, K5_VERSION, K5_BUGADDR, krb5) +AC_CONFIG_SRCDIR([aclocal.m4]) # If $runstatedir isn't set by autoconf (<2.70), set it manually. if test x"$runstatedir" = x; then diff --git a/src/version.m4 b/src/version.m4 new file mode 100644 index 0000000000..9bcef99adf --- /dev/null +++ b/src/version.m4 @@ -0,0 +1,20 @@ +define([K5_TOPDIR],[.])dnl +dnl +pushdef([x],esyscmd([sed -n 's/#define \([A-Z0-9_]*\)[ \t]*\(.*\)/\1=\2/p' < ]K5_TOPDIR/patchlevel.h)) +define([PL_KRB5_MAJOR_RELEASE],regexp(x,[KRB5_MAJOR_RELEASE=\(.*\)],[\1])) +ifelse(PL_KRB5_MAJOR_RELEASE,,[errprint([Can't determine KRB5_MAJOR_RELEASE value from patchlevel.h. +]) m4exit(1) dnl sometimes that does not work? +builtin(m4exit,1)]) +define([PL_KRB5_MINOR_RELEASE],regexp(x,[KRB5_MINOR_RELEASE=\(.*\)],[\1])) +ifelse(PL_KRB5_MINOR_RELEASE,,[errprint([Can't determine KRB5_MINOR_RELEASE value from patchlevel.h. +]) m4exit(1) dnl sometimes that does not work? +builtin(m4exit,1)]) +define([PL_KRB5_PATCHLEVEL],regexp(x,[KRB5_PATCHLEVEL=\(.*\)],[\1])) +ifelse(PL_KRB5_PATCHLEVEL,,[errprint([Can't determine KRB5_PATCHLEVEL value from patchlevel.h. +]) m4exit(1) dnl sometimes that does not work? +builtin(m4exit,1)]) +define([PL_KRB5_RELTAIL],regexp(x,[KRB5_RELTAIL="\(.*\)"],[\1])) +dnl RELTAIL is allowed to not be defined. +popdef([x]) +m4_define([K5_VERSION],PL_KRB5_MAJOR_RELEASE.PL_KRB5_MINOR_RELEASE[]ifelse(PL_KRB5_PATCHLEVEL,0,,.PL_KRB5_PATCHLEVEL)ifelse(PL_KRB5_RELTAIL,,,-PL_KRB5_RELTAIL)) +m4_define([K5_BUGADDR],krb5-bugs@mit.edu)