musl-obstack icon indicating copy to clipboard operation
musl-obstack copied to clipboard

bootstrap.sh fails

Open libTorrentUser opened this issue 1 year ago • 2 comments

I'm trying to build musl-obstack and I'm getting the following error when running bootstrap.sh

Makefile.am:9: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined

The error disappears If I edit Makefile.am and add something like

pkgconfigdir = $(libdir)/pkgconf

After that, boostrap.sh succeeds and I can execute configure and make without problems.

libTorrentUser avatar Apr 07 '23 18:04 libTorrentUser

The Makefile.am is kinda correct, the problem is, that the configure.ac uses the PKG_INSTALLDIR macro which is not provided by automake or autoconf but by pkg-config. Without any pkg.m4 provided bootstrap.sh fails the way you describe.

Johnnynator avatar Apr 13 '23 00:04 Johnnynator

This happens to me in an old distro, where pkg.m4 is installed but PKG_INSTALLDIR is not defined, so the solution provided in the first comment is the definitive fix and is exactly what pkg.m4 does when defining the missing macro in a later release

wdlkmpx avatar Jun 17 '23 02:06 wdlkmpx