Source: iipimage
Version: 1.0-3
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap

iipimage fails to cross build from source, because it abuses
AC_CHECK_FILE. The macro is meant to check for files on the host system,
but it uses it to find development components on the build system.
Please use a simple "test -f" for the latter. The attached patch fixes
that and makes iipimage cross buildable. Please consider applying it.

Helmut
--- iipimage-1.0.orig/configure.ac
+++ iipimage-1.0/configure.ac
@@ -214,7 +214,7 @@
    kakadu_path=$withval)
 
 
-AC_CHECK_FILE( $kakadu_path/managed/all_includes/jpx.h,
+AS_IF([test -f "$kakadu_path/managed/all_includes/jpx.h"],
 	AC_MSG_RESULT([configure: Found Kakadu sources. Will compile JPEG2000 support]); KAKADU=true,
 	AC_MSG_RESULT([configure: No Kakadu JPEG2000 Sources Found]); KAKADU=false
 )
@@ -228,7 +228,7 @@
 	LIBS="$LIBS $kakadu_path/apps/make/jpx.o $kakadu_path/apps/make/jp2.o $kakadu_path/apps/make/kdu_stripe_decompressor.o -L$kakadu_path/apps/make -l$kakadu_lib_name -lpthread"
 
 	# Check for SSSE3 support in Kakadu
-	AC_CHECK_FILE( $kakadu_path/apps/make/ssse3_stripe_transfer.o,
+	AS_IF([test -f "$kakadu_path/apps/make/ssse3_stripe_transfer.o"],
 		KDU_SSSE3=true
 	)
 	if test "x${KDU_SSSE3}" = xtrue; then
@@ -236,7 +236,7 @@
 	fi
 
 	# Check for AVX2 support in Kakadu
-	AC_CHECK_FILE( $kakadu_path/apps/make/avx2_stripe_transfer.o,
+	AS_IF([test -f "$kakadu_path/apps/make/avx2_stripe_transfer.o"],
 		AC_MSG_RESULT([configure: Kakadu is >= v7.5.]);
 		KDU_75=true,
 		AC_MSG_RESULT([configure: Kakadu is < v7.5])

Reply via email to