[MPlayer-cvslog] r32238 - trunk/configure

diego subversion at mplayerhq.hu
Tue Sep 14 13:03:55 CEST 2010


Author: diego
Date: Tue Sep 14 13:03:54 2010
New Revision: 32238

Log:
Simplify math function checks.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Sep 14 12:41:25 2010	(r32237)
+++ trunk/configure	Tue Sep 14 13:03:54 2010	(r32238)
@@ -3092,12 +3092,8 @@ echores "$_posix4"
 
 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


More information about the MPlayer-cvslog mailing list