Make inih a mandatory package.

AC_CHECK_HEADERS and AC_SEARCH_LIBS do not abort when the header or
library respectively are not found. Since inih is a hard requirement,
make sure that the action-if-not-found fields call AC_MSG_ERROR.

Fixes #32
reverse-scroll
nirenjan 2021-08-11 21:53:57 -07:00
parent 874c46705a
commit ff10525028
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ AC_SUBST([LIBUSB_PC], [libusb-1.0])
PKG_CHECK_MODULES([INIH], [inih], [], PKG_CHECK_MODULES([INIH], [inih], [],
[ [
# Older versions of Ubuntu don't provide a .pc file # Older versions of Ubuntu don't provide a .pc file
AC_CHECK_HEADERS([ini.h]) AC_SEARCH_LIBS([ini_parse], [inih],, [AC_MSG_ERROR([Unable to find libinih, is it installed?])])
AC_SEARCH_LIBS([ini_parse], [inih]) AC_CHECK_HEADERS([ini.h],, [AC_MSG_ERROR([Unable to find ini.h, do you have libinih headers installed?])])
]) ])
# systemd support # systemd support