Source: kanatest
Version: 0.4.8-4
Tags: patch upstream
Usertags: rebootstrap

kanatest fails to cross build from source, because hard
codes the build architecture pkg-config. The best way to fix that is
using the PKG_CHECK_MODULES macro. The attached patch should fix that,
but I couldn't test that, because configure is not built from source and
autoreconf doesn't work. Please consider applying the attached patch and
regenerating configure somehow.

--- kanatest-0.4.8.orig/
+++ kanatest-0.4.8/
@@ -12,18 +12,7 @@
 # Checks for libraries.
-AC_MSG_CHECKING(whether GTK+ version >= 2.12)
-if pkg-config --exists 'gtk+-2.0 >= 2.12'; then
-    gtk_CFLAGS=`pkg-config --cflags gtk+-2.0`
-	gtk_LIBS=`pkg-config --libs gtk+-2.0`
-    AC_MSG_RESULT(yes)
-	AC_MSG_ERROR(GTK+ not found or too old (version < 2.12))
+PKG_CHECK_MODULES([gtk],[gtk+-2.0 >= 2.12])
 AC_CHECK_PROG([var], [xml2-config], [yes], [no])
 if test ! "$var" = "yes"; then

Reply via email to