Skip to content

Commit

Permalink
JBR-6158 Cannot build jbr21 with wayland toolkit on wsl2
Browse files Browse the repository at this point in the history
Added --with-wayland-lib option to provide custom library path
  • Loading branch information
avu authored and jbrbot committed Nov 8, 2024
1 parent c155acb commit cdc2b1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions make/autoconf/lib-wayland.m4
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ AC_DEFUN_ONCE([LIB_SETUP_WAYLAND],
(expecting the headers under PATH/include)])])
AC_ARG_WITH(wayland-include, [AS_HELP_STRING([--with-wayland-include],
[specify directory for the wayland include files])])
AC_ARG_WITH(wayland-lib, [AS_HELP_STRING([--with-wayland-lib],
[specify directory for the wayland library files])])
if test "x$NEEDS_LIB_WAYLAND" = xfalse; then
if (test "x${with_wayland}" != x && test "x${with_wayland}" != xno) || \
Expand Down Expand Up @@ -73,6 +76,10 @@ AC_DEFUN_ONCE([LIB_SETUP_WAYLAND],
AC_MSG_ERROR([Can't find 'wayland-client.h' and 'wayland-cursor.h' under ${with_wayland_include} given with the --with-wayland-include option.])
fi
fi
if test "x${with_wayland_lib}" != x; then
WAYLAND_LIBS="-L${with_wayland_lib} -lwayland-client -lwayland-cursor"
fi
if test "x$WAYLAND_FOUND" = xno; then
# Are the wayland headers installed in the default /usr/include location?
AC_CHECK_HEADERS([wayland-client.h wayland-cursor.h],
Expand Down

0 comments on commit cdc2b1b

Please sign in to comment.