Source: sqsh Version: 2.5.16.1-1 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
sqsh fails to cross build from source, because it uses AC_TRY_RUN. It does provide cache variables, but caching ac_cv_bit_mode is rather useless, because it solely depends on the compiler and thus can be computed with AC_TRY_COMPILE. The attached patch implements that and makes sqsh cross buildable if one supply a cache variable for the signal behaviour (that one cannot be checked by compiling only and needs to stay AC_TRY_RUN). Please consider applying the patch. Helmut
Index: sqsh-2.5.16.1/aclocal.m4 =================================================================== --- sqsh-2.5.16.1.orig/aclocal.m4 2018-10-03 07:34:39.000000000 +0200 +++ sqsh-2.5.16.1/aclocal.m4 2018-10-03 07:36:05.440553841 +0200 @@ -120,13 +120,12 @@ AC_MSG_CHECKING(Compiling 32/64 bit mode) AC_CACHE_VAL(ac_cv_bit_mode, [ - AC_TRY_RUN( + AC_TRY_COMPILE( [ main() { #if defined (__LP64__) || defined (__LP64) || defined (_LP64) || defined (__arch64__) - exit (0); #else - exit (1); +# error not 64 bit #endif } ], ac_cv_bit_mode=64, ac_cv_bit_mode=32)