diff --git a/configure b/configure
index 284379463b18919375bee61c7c74bca4b28957ad..300852d83b2a41b3ad1800be984048d70ac9a157 100755
--- a/configure
+++ b/configure
@@ -708,7 +708,7 @@ check_mathfunc(){
     check_ld "$@" <<EOF && enable $func
 #include <math.h>
 float foo(float f) { return $func(f); }
-int main(void){ return 0; }
+int main(void){ return (int) foo; }
 EOF
 }