mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
use crosscompile-friendly AC_PATH_TOOL to find pkg-config
This commit is contained in:
@@ -207,8 +207,13 @@ _TUXBOX_APPS_LIB_CONFIG($1,$2,WARN)
|
|||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([TUXBOX_APPS_PKGCONFIG],[
|
AC_DEFUN([TUXBOX_APPS_PKGCONFIG],[
|
||||||
AC_PATH_PROG(PKG_CONFIG, pkg-config,no)
|
m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
||||||
if test "$PKG_CONFIG" = "no" ; then
|
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
|
||||||
|
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
|
||||||
|
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
||||||
|
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
||||||
|
fi
|
||||||
|
if test x"$PKG_CONFIG" = x"" ; then
|
||||||
AC_MSG_ERROR([could not find pkg-config]);
|
AC_MSG_ERROR([could not find pkg-config]);
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user