diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 44 |
1 files changed, 44 insertions, 0 deletions
@@ -2918,6 +2918,50 @@ else printf "no\n" fi +for fun in cbrt erf erfc exp10 exp2 expm1 \ + gamma j0 j1 lgamma log1p logb \ + nearbyint pow10 rint significand tgamma y0 y1 +do + printf "Checking for %s function ... " $fun + cat > conftest.c <<! +#include <math.h> + +int main(void) +{ + double a = $fun(0.5); + return 0; +} +! + if conftest ; then + printf "yes\n" + printf "#define HAVE_%s 1\n" $(echo $fun | tr '[a-z]' '[A-Z]') >> config.h + else + printf "no\n" + fi +done + +for fun in copysign drem fdim fmax fmin \ + frexp hypot jn ldexp modf \ + nextafter nexttoward remainder scalb scalbln yn +do + printf "Checking for %s function ... " $fun + cat > conftest.c <<! +#include <math.h> + +int main(void) +{ + double a = $fun(0.5, 0.5); + return 0; +} +! + if conftest ; then + printf "yes\n" + printf "#define HAVE_%s 1\n" $(echo $fun | tr '[a-z]' '[A-Z]') >> config.h + else + printf "no\n" + fi +done + printf "Checking for glob ... " cat > conftest.c <<! |