Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

rm pkg-config dependency at autogen.sh time #1845

Merged
merged 1 commit into from
Feb 26, 2024
Merged

rm pkg-config dependency at autogen.sh time #1845

merged 1 commit into from
Feb 26, 2024

Conversation

reidpr
Copy link
Collaborator

@reidpr reidpr commented Feb 21, 2024

PR #1784 introduced a dependency on pkg-config at autogen.sh time. Even though it’s not great that we always require pkg-config to find libfuse3 (see issue #1844), we definitely don’t want to require it unconditionally at autogen.sh time. This PR moves the dependency to configure time and only if --with-libsquashfuse=yes (the default) or a path.

@reidpr reidpr added this to the 0.37 milestone Feb 21, 2024
@reidpr reidpr self-assigned this Feb 21, 2024
@reidpr reidpr requested a review from kchilleri February 22, 2024 00:10
Copy link
Contributor

@kchilleri kchilleri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be very useful. Looks good to me!

@reidpr reidpr merged commit 727000c into master Feb 26, 2024
6 checks passed
@reidpr reidpr deleted the pkg-config branch February 26, 2024 19:14
@reidpr
Copy link
Collaborator Author

reidpr commented Feb 29, 2024

The error message if the dependency is not met is quite misleading:

 configure.ac:304: error: possibly undefined macro: AC_CHECK_LIB
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:504: error: possibly undefined macro: AC_CHECK_HEADER
autoreconf: error: /usr/bin/autoconf failed with exit status: 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants