diff options
author | Damien Zammit <damien@zamaudio.com> | 2023-06-29 10:56:30 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-06-29 15:30:17 +0200 |
commit | 955544335bad2db9a1d30b17aead35ad1f5c83be (patch) | |
tree | 09086853c5375cb134654206743d5621751bc380 /configure.ac | |
parent | b17b96b9dd665687104c39c0d8559319c279d217 (diff) | |
download | hurd-955544335bad2db9a1d30b17aead35ad1f5c83be.tar.gz hurd-955544335bad2db9a1d30b17aead35ad1f5c83be.tar.bz2 hurd-955544335bad2db9a1d30b17aead35ad1f5c83be.zip |
configure.ac: Make test for acpica more robust
AC_CHECK_LIB does not work when -lpciaccess is also required.
Message-Id: <20230629105620.809091-1-damien@zamaudio.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 3ea1bc02..dd2481b0 100644 --- a/configure.ac +++ b/configure.ac @@ -408,10 +408,11 @@ AC_ARG_WITH([acpica], [AS_HELP_STRING([--without-acpica], [disable acpica])], , [with_acpica=yes]) AS_IF([test "x$with_acpica" != xno], [ - AC_CHECK_LIB(acpica, acpi_init, [ + AC_CHECK_HEADER([acpi/acpi_init.h], [ HAVE_LIBACPICA=yes libacpica_LIBS="-lacpica -lpciaccess" - libacpica_CFLAGS=""]) + libacpica_CFLAGS=""], + [HAVE_LIBACPICA=no]) ]) AC_SUBST([HAVE_LIBACPICA]) AC_SUBST([libacpica_CFLAGS]) |