Source: gsmlib
Version: 1.10+20120414.gita5e5ae9a-0.3
Tags: patch upstream
gsmlib fails to cross build from source, because its configure uses
AC_TRY_RUN. The use is completely unnecessary and can very easily be
replaced with AC_TRY_COMPILE. Doing so makes gsmlib cross buildable.
Please consider applying the attached patch.
Helmut
--- gsmlib-1.10+20120414.gita5e5ae9a.orig/configure.in
+++ gsmlib-1.10+20120414.gita5e5ae9a/configure.in
@@ -60,16 +60,11 @@
AC_PROG_CXX
dnl check for gcc 2.95.x
-AC_TRY_RUN([
-#include <unistd.h>
-main()
-{
+AC_TRY_COMPILE([#include <unistd.h>],[
#if defined(__GNUC__) && \
! (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
- return 1;
+# error gcc too old
#endif
- return 0;
-}
],,
[echo "need at least gcc 2.95 to compile correctly"
exit 1])