Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure.ac: Fix check for parted #574

Merged
merged 1 commit into from
May 6, 2024
Merged

configure.ac: Fix check for parted #574

merged 1 commit into from
May 6, 2024

Conversation

Polynomial-C
Copy link
Contributor

PKG_CHECK_MODULES needs all modules in a single list or else the following error message appears during configure run:

./configure: 6807: libconfig: not found

because the macro interprets "[libconfig]" as the action that needs to be done if parted was found.

Copy link
Collaborator

@PartialVolume PartialVolume left a comment

Choose a reason for hiding this comment

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

I think , [libconfig] on line 72 can be removed completely as checks for libconfig are performed earlier in the configure.ac file and with , [libconfig] on line 72 removed, configure will correctly abort if the libconfig library or libconfig dev is missing.

Line 72 can be changed from

PKG_CHECK_MODULES([PARTED], [libparted], [libconfig])

to

PKG_CHECK_MODULES([PARTED], [libparted])

PKG_CHECK_MODULES needs all modules in a single list or else the following
error message appears during configure run:

  ./configure: 6807: libconfig: not found

because the macro interprets "[libconfig]" as the action that needs to be
done if parted was found.

Removed superfluous check for libconfig as requested by PartialVolume
@Polynomial-C
Copy link
Contributor Author

I think , [libconfig] on line 72 can be removed completely as checks for libconfig are performed earlier in the configure.ac file and with , [libconfig] on line 72 removed, configure will correctly abort if the libconfig library or libconfig dev is missing.

Line 72 can be changed from

PKG_CHECK_MODULES([PARTED], [libparted], [libconfig])

to

PKG_CHECK_MODULES([PARTED], [libparted])

Done as requested.

@PartialVolume PartialVolume merged commit 1ae76b5 into martijnvanbrummelen:master May 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants