changeset 32154:e1619533325a

Simplify math function checks.
author diego
date Tue, 14 Sep 2010 11:03:54 +0000
parents 39d82e93c917
children 8f87bb876b97
files configure
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Sep 14 10:41:25 2010 +0000
+++ b/configure	Tue Sep 14 11:03:54 2010 +0000
@@ -3092,12 +3092,8 @@
 
 for func in exp2 exp2f llrint llrintf log2 log2f lrint lrintf round roundf truncf; do
 echocheck $func
-cat > $TMPC << EOF
-#include <math.h>
-int main(void) { long (*foo)(float); foo = $func; (void)(*foo)(0.0); return 0; }
-EOF
 eval _$func=no
-cc_check -D_ISOC99_SOURCE $_ld_lm && eval _$func=yes
+function_check math.h "${func}(2.0)" -D_ISOC99_SOURCE $_ld_lm && eval _$func=yes
 if eval test "x\$_$func" = "xyes"; then
   eval def_$func="\"#define HAVE_$(echo $func | tr '[a-z]' '[A-Z]') 1\""
   echores yes