martijnvanbrummelen / nwipe

nwipe secure disk eraser
GNU General Public License v2.0
631 stars 71 forks source link

configure.ac: Fix check for parted #574

Closed Polynomial-C closed 2 months ago

Polynomial-C commented 2 months ago

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.

Polynomial-C commented 2 months ago

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.