Skip to content

Commit

Permalink
m4/nut_check_lib*.m4: use AC_REQUIRE([NUT_CHECK_PKGCONFIG]) etc, not …
Browse files Browse the repository at this point in the history
…plain macro calls

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
  • Loading branch information
jimklimov committed Dec 19, 2024
1 parent 006e879 commit 5723ab6
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion m4/nut_check_libavahi.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AC_DEFUN([NUT_CHECK_LIBAVAHI],
[
if test -z "${nut_have_avahi_seen}"; then
nut_have_avahi_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down
2 changes: 1 addition & 1 deletion m4/nut_check_libfreeipmi.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AC_DEFUN([NUT_CHECK_LIBFREEIPMI],
[
if test -z "${nut_have_libfreeipmi_seen}"; then
nut_have_libfreeipmi_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down
2 changes: 1 addition & 1 deletion m4/nut_check_libgd.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AC_DEFUN([NUT_CHECK_LIBGD],
[
if test -z "${nut_have_libgd_seen}"; then
nut_have_libgd_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
CFLAGS_ORIG="${CFLAGS}"
LDFLAGS_ORIG="${LDFLAGS}"
Expand Down
2 changes: 1 addition & 1 deletion m4/nut_check_libgpiod.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AC_DEFUN([NUT_CHECK_LIBGPIO],
[
if test -z "${nut_have_gpio_seen}"; then
nut_have_gpio_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down
4 changes: 2 additions & 2 deletions m4/nut_check_libmodbus.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AC_DEFUN([NUT_CHECK_LIBMODBUS],
[
if test -z "${nut_have_libmodbus_seen}"; then
nut_have_libmodbus_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down Expand Up @@ -85,7 +85,7 @@ if test -z "${nut_have_libmodbus_seen}"; then
dnl know we are not opposed to pulling it in.
dnl Static libmodbus builds do not refer to
dnl (shared) libusb for example.
NUT_CHECK_LIBUSB
AC_REQUIRE([NUT_CHECK_LIBUSB])
AC_MSG_NOTICE([Retry detection of libmodbus USB support])
CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
LIBS="$LIBS $LIBUSB_LIBS"
Expand Down
2 changes: 1 addition & 1 deletion m4/nut_check_libneon.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AC_DEFUN([NUT_CHECK_LIBNEON],
[
if test -z "${nut_have_neon_seen}"; then
nut_have_neon_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down
2 changes: 1 addition & 1 deletion m4/nut_check_libnetsnmp.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AC_DEFUN([NUT_CHECK_LIBNETSNMP],
[
if test -z "${nut_have_libnetsnmp_seen}"; then
nut_have_libnetsnmp_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
AC_LANG_PUSH([C])
dnl save CFLAGS and LIBS
Expand Down
2 changes: 1 addition & 1 deletion m4/nut_check_libnss.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AC_DEFUN([NUT_CHECK_LIBNSS],
[
if test -z "${nut_have_libnss_seen}"; then
nut_have_libnss_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down
2 changes: 1 addition & 1 deletion m4/nut_check_libopenssl.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AC_DEFUN([NUT_CHECK_LIBOPENSSL],
[
if test -z "${nut_have_libopenssl_seen}"; then
nut_have_libopenssl_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down
2 changes: 1 addition & 1 deletion m4/nut_check_libpowerman.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AC_DEFUN([NUT_CHECK_LIBPOWERMAN],
[
if test -z "${nut_have_libpowerman_seen}"; then
nut_have_libpowerman_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down
2 changes: 1 addition & 1 deletion m4/nut_check_libregex.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AC_DEFUN([NUT_CHECK_LIBREGEX],
[
if test -z "${nut_have_libregex_seen}"; then
nut_have_libregex_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down
2 changes: 1 addition & 1 deletion m4/nut_check_libsystemd.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AC_DEFUN([NUT_CHECK_LIBSYSTEMD],
[
if test -z "${nut_have_libsystemd_seen}"; then
nut_have_libsystemd_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down
4 changes: 2 additions & 2 deletions m4/nut_check_libusb.m4
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ AC_DEFUN([NUT_CHECK_LIBUSB],
[
if test -z "${nut_have_libusb_seen}"; then
nut_have_libusb_seen=yes
NUT_CHECK_PKGCONFIG
AC_REQUIRE([NUT_CHECK_PKGCONFIG])
dnl Our USB matching relies on regex abilities
NUT_CHECK_LIBREGEX
AC_REQUIRE([NUT_CHECK_LIBREGEX])
dnl save CFLAGS and LIBS
CFLAGS_ORIG="${CFLAGS}"
Expand Down

0 comments on commit 5723ab6

Please sign in to comment.