diff -ruw src.orig//configure src/configure
--- src.orig//configure	2013-01-09 15:45:06.178512286 +0100
+++ src/configure	2013-01-09 15:45:22.814513047 +0100
@@ -811,7 +811,7 @@
     check_ld "$@" <<EOF && enable $func
 #include <math.h>
 float foo(float f, float g) { return $func($args); }
-int main(void){ return 0; }
+int main(void){ return (int) foo; }
 EOF
 }
 
