From 1aff5cbf9c7c79c1deb58d6b985f2bd03c51a4ba Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 25 Feb 2017 05:09:34 -0800 Subject: Adding round function. * arith.c (round1): New static function. (roundiv): New function. * configure: New test for C99 round function. * eval.c (eval_init): Register round intrinsic. * txr.1: Documented. --- configure | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'configure') diff --git a/configure b/configure index fe9aa954..7f7686df 100755 --- a/configure +++ b/configure @@ -2128,6 +2128,25 @@ else printf "no\n" fi +printf "Checking for round ... " +cat > conftest.c < + +int main(void) +{ + double x = round(0.5); + return 0; +} +! +if conftest ; then + printf "yes\n" + printf "#define HAVE_ROUND 1\n" >> $config_h +else + printf "no\n" +fi + + + printf "Checking for glob ... " cat > conftest.c <