Re: newlib: require autoconf-2.69

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <YdaHu/2RqLqHnrD2@vapier>
On 05 Jan 2022 20:46, Mike Frysinger wrote:
> do you want me to update newlib/ & libgloss/ to leverage this macro ?

looks like it's just as easy as passing -I to the top-level config dir when
running aclocal.  since override.m4 overrides AC_INIT, it forces the version
lock logic.  example diff for newlib/ is below.

lmk what you prefer here.

$ autoconf-2.71
aclocal.m4:17: warning: this file was generated for autoconf 2.69.
You have another version of autoconf.  It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically 'autoreconf'.
configure.ac:5: error: Please use exactly Autoconf 2.69 instead of 2.71.
../config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from...
configure.ac:5: the top level
autom4te-2.71: error: /usr/bin/m4 failed with exit status: 1
-mike

--- a/newlib/Makefile.am
+++ b/newlib/Makefile.am
@@ -1,7 +1,7 @@
 ## Process this file with automake to generate Makefile.in
 
 AUTOMAKE_OPTIONS = dejagnu subdir-objects
-ACLOCAL_AMFLAGS = -I . -I ..
+ACLOCAL_AMFLAGS = -I . -I .. -I ../config
 
 # Variables that will accumulate in subdirs.
 PHONY =
--- a/newlib/Makefile.in
+++ b/newlib/Makefile.in
@@ -99,10 +99,13 @@ host_triplet = @host@
 @HAVE_ICONVDATA_TRUE@am__append_5 = iconvdata/EUC-JP.la
 subdir = .
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/../libtool.m4 \
-	$(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
-	$(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \
-	$(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
+am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
+	$(top_srcdir)/../config/lead-dot.m4 \
+	$(top_srcdir)/../config/override.m4 \
+	$(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltoptions.m4 \
+	$(top_srcdir)/../ltsugar.m4 $(top_srcdir)/../ltversion.m4 \
+	$(top_srcdir)/../lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
@@ -416,7 +419,7 @@ top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 AUTOMAKE_OPTIONS = dejagnu subdir-objects
-ACLOCAL_AMFLAGS = -I . -I ..
+ACLOCAL_AMFLAGS = -I . -I .. -I ../config
 
 # Variables that will accumulate in subdirs.
 
--- a/newlib/aclocal.m4
+++ b/newlib/aclocal.m4
@@ -626,25 +626,6 @@ if test x"${install_sh+set}" != xset; then
 fi
 AC_SUBST([install_sh])])
 
-# Copyright (C) 2003-2017 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# Check whether the underlying file-system supports filenames
-# with a leading dot.  For instance MS-DOS doesn't.
-AC_DEFUN([AM_SET_LEADING_DOT],
-[rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
-  am__leading_dot=.
-else
-  am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-AC_SUBST([am__leading_dot])])
-
 # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 # From Jim Meyering
 
@@ -1186,6 +1167,9 @@ AC_SUBST([am__tar])
 AC_SUBST([am__untar])
 ]) # _AM_PROG_TAR
 
+m4_include([../config/depstand.m4])
+m4_include([../config/lead-dot.m4])
+m4_include([../config/override.m4])
 m4_include([../libtool.m4])
 m4_include([../ltoptions.m4])
 m4_include([../ltsugar.m4])
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmHWh7sACgkQQWM7n+g3
9YEXcw//cSs7xORRjMd7+mNHVd3flmE2MH/JLMfyFLff5bYsmlNaj5BoyfSTxpip
UNWylCO42ntYjXrlJ0LvFlJkaI5rOEIr8SKzy3vEcRExoiEFPeGVFUPz3ruzuWUV
gLxy5GJ/cDivuhDt7EmyaAFjVS/l5791+Baljb10njup/L2iFTk4veTDOU/L/Ij3
8bTB7aCUaJAEbmfH2qfKaz+YEry5n2YtR8B3Ax2cm9sGpxLTyFZQ5l+M4tMNJlAK
xCj2v6wwmuBpRwUZYS0113vEjhMVWCABPjKNeADwhwjMn6j5zob1VqfQKnkAPHk/
yBUk9lURwMS+vN0TUUl6z+N75foBxQOKXvxEUgE8i36kCNGpaQWya2asEE1sgcfh
Ezi01ruZDpfp/QYEf1kJE66jhjHkbjlKAaZwqXPs+xPcv5H9LutzHTIw0gwP2af/
iyvwrpiqc05dwVrf4wCidZbJTy2KHCm9L4fko1C2ooAoL3UnhZZQlscGLzTrXHpC
rdaDgLs7TMkMGyCuieETslaGsRG9B2oe0Ot/Q57QoULtO3A+sR120TjGwF0iF9xp
M/4nkbETMDokjJRcfDNgJMZMZHU2GWEG35jgUEDXW0A78KcR8lzs0gtgN7mCyb6u
gdDfm2g9TdERbiyx5iVLUWn5pcqc/mqyFYSZZLO15mhkSY9slGw=
=NOSl
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.