1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

build: Use more gnulib modules.

* autogen.sh (GNULIB_MODULES): Add getopt-gnu.
Use directory gnulib-local.
* gnulib-local/lib/getopt-pfx-ext.h.diff: New file.
* Makefile.in (SOURCE_FILES): Add it.
(distdir): Use 'mkdir -p' instead of 'mkdir'.
* lib/getopt.h: Remove file.
* lib/getopt.c: Remove file.
* lib/getopt1.c: Remove file.
* lib/Makefile.am (libgp_a_SOURCES): Remove them.
This commit is contained in:
Bruno Haible
2025-04-16 22:07:02 +02:00
parent 6ca5ea1384
commit 46db237ecc
9 changed files with 45 additions and 1296 deletions

View File

@@ -65,11 +65,12 @@ if test $skip_gnulib = false; then
}
GNULIB_MODULES='
filename
getopt-gnu
read-file
package-version
'
$GNULIB_TOOL --lib=libgp --source-base=lib --m4-base=lib/gnulib-m4 \
--makefile-name=Makefile.gnulib \
--makefile-name=Makefile.gnulib --local-dir=gnulib-local \
--import \
$GNULIB_MODULES
$GNULIB_TOOL --copy-file build-aux/config.guess; chmod a+x build-aux/config.guess