Commit Diff
Diff:
3448adb0f01bad31cb91429d5f480f4bbf9c2c87
a7d562e2639cef770b9482636a1395c7cac8aec0
Commit:
a7d562e2639cef770b9482636a1395c7cac8aec0
Tree:
8a35b5164225ccd7d2227738f26eb4c62a4284d1
Author:
Omar Polo <op@omarpolo.com>
Date:
Wed Nov 2 20:10:55 2022 UTC
Message:
use pkg-config for libgrapheme
commit - 3448adb0f01bad31cb91429d5f480f4bbf9c2c87
commit + a7d562e2639cef770b9482636a1395c7cac8aec0
blob - a27cd8159cf6150c97ebf4c578b6a900f87df128
blob + 4473cb9179ae177702bf0e89c0be7e18647a51c4
--- configure.ac
+++ configure.ac
@@ -82,9 +82,10 @@ AC_CHECK_LIB([grapheme], [grapheme_next_line_break_utf
AC_MSG_ERROR([requires libtls])
])
-AC_CHECK_LIB([grapheme], [grapheme_next_line_break_utf8], [
+PKG_CHECK_MODULES([libgrapheme], [libgrapheme], [
AC_SUBST([LIBGRAPHEME], [])
- LIBS="-lgrapheme $LIBS"
+ CFLAGS="$libgrapheme_CFLAGS $CFLAGS"
+ LIBS="$libgrapheme_LIBS $LIBS"
], [
# build the bundled version.
AC_SUBST([LIBGRAPHEME], "$srcdir/libgrapheme/libgrapheme.a")
Omar Polo