Browse Source

Bugfix: configure: Use variable argument to roundl to prevent compilers from optimizing it out entirely

Luke Dashjr 13 years ago
parent
commit
f65ba3a18e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      configure.ac

+ 1 - 1
configure.ac

@@ -563,7 +563,7 @@ LIBS="$LIBS -lm"
 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 	#include <math.h>
 ]], [[
-	return (roundl(0.5) == 1.0);
+	return (roundl((long double)argc) == 1.0);
 ]])], [
 	AC_MSG_RESULT([yes])
 ], [