Re: [PATCH] Regenerate autoconf/automake files

"Pietro Monteiro" <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
Hi Jeff,

On Mon, Aug 25, 2025, at 9:02 PM, Jeff Johnston wrote:
> Hi Pietro,
> 
> The current libgloss/configure and newlib/configure files in main are already generated with 2.69 (see comment at top).

Yes, but support for "--runstatedir" was added in autoconf 2.70, which is
present both in the toplevel and newlib configure scripts. Maybe they
were generated by an autoconf build from a snapshot or from git. You can
see the same change being done by running "autoconf -f" on both
directories using autoconf 2.69.

> Likewise, the current libgloss/Makefile.in and newlib/Makefile.in are both already generated with 1.15.1 (see comment on top).

Yup, but running "automake" on those directories updates those files.

For newlib/Makefile.in:

memset.c and memcpy.c are mentioned in libc/machine/mips/Makefile.inc
instead of of the .S files, so it makes sense that the .c files would be
the ones used as dependencies of the library objects.

For libgloss/Makefile.in:

clibrary_init.c was added to _libgloss_a_SOURCES in xtensa/Makefile.inc,
but that file is not mentioned in the Makefile.in. Again, the change
makes sense to me.

> Perhaps you have an older snapshot.

I don't think so. I just re-ran pretty much the same steps on top of the
current main branch and got the same changes:

---
$ git remote -v
origin	https://sourceware.org/git/newlib-cygwin (fetch)
origin	https://sourceware.org/git/newlib-cygwin (push)
$ git log --pretty=short HEAD~1..HEAD
commit 2934367c3d8096da72cac29e3404333fc2d3152f (HEAD -> main, origin/master, origin/main, origin/HEAD)
Author: Jeremy Drake <[email protected]>

    Cygwin: fix finding overlaps from F_SETLKW.
$ git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
$ autoconf --version | head -n1
autoconf (GNU Autoconf) 2.69
$ automake --version | head -n1
automake (GNU automake) 1.15.1
$ find ./ -name configure.ac | while read f; do d=$( dirname "$f" ) && ( cd "$d"/ && autoreconf -f ) ; done
$ git status
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   configure
	modified:   libgloss/Makefile.in
	modified:   newlib/Makefile.in
	modified:   newlib/configure
---

thanks,
pietro
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.