build: fix compile errors on platforms without getopt.h

* bootstrap.conf (gnulib_modules): Add getopt-gnu.
* lib/.gitignore: Update from gnulib-tool --import.
* m4/.gitignore: Likewise.
* NEWS: Mention the fix.
This commit is contained in:
Collin Funk 2025-03-02 22:09:47 -08:00 committed by Jim Meyering
parent 0f74c04668
commit 587cfe1716
4 changed files with 81 additions and 0 deletions

5
NEWS
View File

@ -18,6 +18,11 @@ GNU sed NEWS -*- outline -*-
apostrophes) instead of `like this' (with a grave accent and an
apostrophe). This tracks the GNU coding standards.
** Build-related
builds no longer fail on platforms without the <getoph.h> header or
getopt_long function.
[bug introduced in sed 4.9]
* Noteworthy changes in release 4.9 (2022-11-06) [stable]

View File

@ -30,6 +30,7 @@ eloop-threshold
extensions
fwriting
getdelim
getopt-gnu
gettext-h
git-version-gen
gitlog-to-changelog

37
lib/.gitignore vendored
View File

@ -209,7 +209,9 @@
/time.h
/time.in.h
/uchar.h
/unicase
/unicase.h
/unictype
/unictype.h
/uninorm.h
/unistd.c
@ -245,3 +247,38 @@
/xalloc.h
/xmalloc.c
/stdlib.c
/c32is-impl.h
/c32isprint.c
/c32isspace.c
/c32rtomb.c
/c32to-impl.h
/c32tob.c
/c32tolower.c
/c32toupper.c
/iswblank.c
/iswctype-impl.h
/iswctype.c
/iswdigit.c
/iswpunct.c
/iswxdigit.c
/mbrtoc32.c
/mbszero.c
/obstack.in.h
/same-inode.c
/setlocale_null-unlocked.c
/uchar.in.h
/unicase.in.h
/unictype.in.h
/uninorm.in.h
/unitypes.in.h
/wctype-impl.h
/wctype.c
/getopt-cdefs.in.h
/getopt-core.h
/getopt-ext.h
/getopt-pfx-core.h
/getopt-pfx-ext.h
/getopt.c
/getopt.in.h
/getopt1.c
/getopt_int.h

38
m4/.gitignore vendored
View File

@ -235,3 +235,41 @@
/semaphore.m4
/sys_cdefs_h.m4
/yield.m4
/build-to-host.m4
/c32rtomb.m4
/exponentd.m4
/exponentf.m4
/exponentl.m4
/extensions-aix.m4
/fclose.m4
/float_h.m4
/fpieee.m4
/gnulib-i18n.m4
/init-package-version.m4
/isnand.m4
/isnanf.m4
/isnanl.m4
/iswblank.m4
/iswctype.m4
/iswdigit.m4
/iswpunct.m4
/iswxdigit.m4
/libunistring-base.m4
/locale-en.m4
/math_h.m4
/mbrtoc32.m4
/nan-mips.m4
/once.m4
/signbit.m4
/snan.m4
/stpcpy.m4
/time.m4
/uchar_h.m4
/unicase_h.m4
/unictype_h.m4
/uninorm_h.m4
/wctype.m4
/windows-rc.m4
/xgetcwd.m4
/getlocalename_l.m4
/getopt.m4