Skip to content

Commit 9462e0e

Browse files
authored
Merge pull request #3678 from LinuxCNC/andypugh/libgpiod3
hal_gpio: Adapt to use libgpiod3 or libgpiod2 according to what is in…
2 parents ab1da99 + afae3a6 commit 9462e0e

File tree

2 files changed

+258
-69
lines changed

2 files changed

+258
-69
lines changed

src/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ install with "sudo apt-get install libusb-1.0-0-dev" or disable with
533533
#
534534
# check for libgpiod
535535
#
536-
PKG_CHECK_MODULES([LIBGPIOD], [libgpiod < 2.0.0],
536+
PKG_CHECK_MODULES([LIBGPIOD], [libgpiod < 3.0.0],
537537
[AC_DEFINE_UNQUOTED([LIBGPIOD_VER], `pkg-config libgpiod --modversion | awk -F. '{print ($1 * 100)+($2) }'`,
538538
[libgpiod version, undefined if not present])
539539
LDFLAGS="$LDFLAGS $LIBGPIOD_LIBS"

0 commit comments

Comments
 (0)