it is useless without those other files, and the installation is broken (cannot be compiled against).
This PR adds all of the listed headers, plus any #included by those headers, to the pkgconfigdir_HEADERS list, and sets pkgconfigdir = @includedir@/squashfuse. This means that all of the necessary headers will be installed in PREFIX/include/squashfuse/ and they can be referenced at that path to build software that links against the library.
The squashfuse.pc.in file is also updated to point includedir to the new subdirectory. (There may be a more clever way of writing the .pc.in file that makes use of @pkgconfigdir@ directly, but I couldn't find a way to make that work. It just kept passing through the template processing unreplaced.)
The install process currently installs only
squashfuse.h
andsquashfs_fs.h
, directly intoPREFIX/include/
.Unfortunately, because the contents of
squashfuse.h
is only: https://github.com/vasi/squashfuse/blob/0b48352ed7a89d920bb6792ac59f9f6775088f02/squashfuse.h#L28-L33it is useless without those other files, and the installation is broken (cannot be compiled against).
This PR adds all of the listed headers, plus any
#include
d by those headers, to thepkgconfigdir_HEADERS
list, and setspkgconfigdir = @includedir@/squashfuse
. This means that all of the necessary headers will be installed inPREFIX/include/squashfuse/
and they can be referenced at that path to build software that links against the library.The
squashfuse.pc.in
file is also updated to pointincludedir
to the new subdirectory. (There may be a more clever way of writing the.pc.in
file that makes use of@pkgconfigdir@
directly, but I couldn't find a way to make that work. It just kept passing through the template processing unreplaced.)