Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 1 | Native pkg_config only return basename of the variable queried. Invoke `which` |
| 2 | to get the absolute path. |
| 3 | |
| 4 | Upstream-Status: Inappropriate [oe specific] |
| 5 | |
| 6 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 7 | --- |
| 8 | configure.ac | 6 +++--- |
| 9 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 10 | |
| 11 | diff --git a/configure.ac b/configure.ac |
| 12 | index 0f49e2b..a589147 100644 |
| 13 | --- a/configure.ac |
| 14 | +++ b/configure.ac |
| 15 | @@ -116,7 +116,7 @@ AC_MSG_CHECKING([for gdbus-codegen]) |
| 16 | if test x"$GDBUS_CODEGEN" = x""; then |
| 17 | GDBUS_CODEGEN=`$PKG_CONFIG --variable=gdbus_codegen gio-2.0` |
| 18 | fi |
| 19 | -if test -x "$GDBUS_CODEGEN"; then |
| 20 | +if test -x "$(which $GDBUS_CODEGEN)"; then |
| 21 | AC_MSG_RESULT([$GDBUS_CODEGEN]) |
| 22 | else |
| 23 | AC_MSG_ERROR([could not find gdbus-codegen in \$PATH. You can run |
| 24 | @@ -129,7 +129,7 @@ AC_MSG_CHECKING([for glib-compile-resources]) |
| 25 | if test x"$GLIB_COMPILE_RESOURCES" = x""; then |
| 26 | GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0` |
| 27 | fi |
| 28 | -if test -x "$GLIB_COMPILE_RESOURCES"; then |
| 29 | +if test -x "$(which $GLIB_COMPILE_RESOURCES)"; then |
| 30 | AC_MSG_RESULT([$GLIB_COMPILE_RESOURCES]) |
| 31 | else |
| 32 | AC_MSG_ERROR([could not find glib-compile-resources in \$PATH. You can run |
| 33 | @@ -142,7 +142,7 @@ AC_MSG_CHECKING([for glib-genmarshal]) |
| 34 | if test x"$GLIB_GENMARSHAL" = x""; then |
| 35 | GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` |
| 36 | fi |
| 37 | -if test -x "$GLIB_GENMARSHAL"; then |
| 38 | +if test -x "$(which $GLIB_GENMARSHAL)"; then |
| 39 | AC_MSG_RESULT([$GLIB_GENMARSHAL]) |
| 40 | else |
| 41 | AC_MSG_ERROR([could not find glib-genmarshal in \$PATH. You can run |