Source: kanatest
Version: 0.4.8-4
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

kanatest fails to cross build from source, because configure.ac 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.

Helmut
--- kanatest-0.4.8.orig/configure.ac
+++ kanatest-0.4.8/configure.ac
@@ -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)
-else
-	AC_MSG_RESULT(no)
-	AC_MSG_ERROR(GTK+ not found or too old (version < 2.12))
-fi
-
+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