Bug#901986: imwheel FTCBFS: abuses AC_CHECK_FILE
Source: imwheel
Version: 1.0.0pre12-12
Tags: patch upstream
User: helmutg@debian.org
Usertags: rebootstrap
imwheel fails to cross build from source, because upstream's
configure.in uses AC_CHECK_FILE to check for source files. The
AC_CHECK_FILE macro is only meant for checking files on the host system
while it is clearly being used to check for a build system file here.
Please use "test -e" here. The atteched patch implements that and makes
imwheel cross buildable. Please consider applying it.
Helmut
--- imwheel-1.0.0pre12.orig/configure.in
+++ imwheel-1.0.0pre12/configure.in
@@ -211,7 +211,7 @@
NO_GPM_DOC=
GPM_DIR="gpm-1.19.3"
AC_SUBST(GPM_DIR)
-AC_CHECK_FILE($GPM_DIR/gpm.c,HAVE_GPM_SRC=yes,HAVE_GPM_SRC=no)
+AS_IF([test -e "$GPM_DIR/gpm.c"],[HAVE_GPM_SRC=yes],[HAVE_GPM_SRC=no])
AC_SUBST(HAVE_GPM_SRC)
AC_MSG_CHECKING(if we build gpm-imwheel)
gpm_enabled=no
Reply to: