Source: cxref
Version: 1.6e-3
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

cxref fails to cross build from source, because the configure script in
the cpp directory uses AC_TRY_RUN without a cross compilation
alternative. However, that particular check doesn't actually need to run
as all it tests are compile time constants. It can be turned into a
AC_TRY_COMPILE. Please consider applying the attached patch.

Helmut
--- cxref-1.6e.orig/cpp/configure.in
+++ cxref-1.6e/cpp/configure.in
@@ -44,13 +44,13 @@
 
    AC_MSG_CHECKING([if installed gcc is new enough to use instead of cxref-cpp])
 
-   AC_TRY_RUN([
+   AC_TRY_COMPILE([
    int main()
    {
    #if defined(__GNUC__) && ( ( __GNUC__==2 && __GNUC_MINOR__>=8 ) || __GNUC__>=3 )
     exit(0);
    #else
-    exit(1);
+    #error too old
    #endif
    }
    ],

Reply via email to