Skip to content
Snippets Groups Projects
Commit cc276dfa authored by Jussi Kukkonen's avatar Jussi Kukkonen Committed by Pekka Paalanen
Browse files

configure.ac: Don't use AC_CANONICAL_* macro calls


Check autoconfs $cross_compiling instead as AC_CANONICAL_HOST call
will fail if the host cpu is not recognised (which can happen when
e.g. Yocto builds for "allarch").

Signed-off-by: default avatarJussi Kukkonen <jussi.kukkonen@intel.com>
Reviewed-by: default avatarQuentin Glidic <sardemff7+git@sardemff7.net>
parent aaafffe0
No related merge requests found
......@@ -15,13 +15,10 @@ AC_CONFIG_MACRO_DIR([m4])
AC_SUBST([WAYLAND_PROTOCOLS_VERSION], [wayland_protocols_version])
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
AC_ARG_VAR([wayland_scanner], [The wayland-scanner executable])
AC_PATH_PROG([wayland_scanner], [wayland-scanner])
if test x$wayland_scanner = x; then
if test x$host = x$build; then
if test "x$cross_compiling" != "xyes"; then
PKG_CHECK_MODULES(WAYLAND_SCANNER, [wayland-scanner])
wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment