aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCharles Karney <charles@karney.com>2019-09-19 08:30:21 -0400
committerGitHub <noreply@github.com>2019-09-19 08:30:21 -0400
commit8948068deaa8b1b9cf14e7e509d06abc3a0b8dcf (patch)
treed27e655be51c44ef5d2c26dee0cc22547a36b029 /configure.ac
parent72203ca68e123a237c8c748d39131b702ea4b646 (diff)
parent21c6d9cccde9318dd38c60b8bc559508bcee1a91 (diff)
downloadPROJ-8948068deaa8b1b9cf14e7e509d06abc3a0b8dcf.tar.gz
PROJ-8948068deaa8b1b9cf14e7e509d06abc3a0b8dcf.zip
Merge pull request #1618 from cffk/c99-math-update
Remove unneeded C99 compatibility functions from math.cpp and proj_math.h I'll do the clean up of the -std=c89 flags etc. as a separate pull request.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 3 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index a5edd13c..7287b207 100644
--- a/configure.ac
+++ b/configure.ac
@@ -204,11 +204,9 @@ AC_MSG_CHECKING([for C99 math functions])
AC_LINK_IFELSE([AC_LANG_PROGRAM(
[#include <math.h>],
[int q;
- return (int)(hypot(3.0, 4.0) + atanh(0.8) + cbrt(8.0) +
- remquo(100.0, 90.0, &q) +
- remainder(100.0, 90.0) + copysign(1.0, -0.0) +
- log1p(0.1) + asinh(0.1)) +
- isnan(0.0);])],
+ return (int)(hypot(3.0, 4.0) + atanh(0.8) + copysign(1.0, -0.0) +
+ cbrt(8.0) + remainder(100.0, 90.0) +
+ remquo(100.0, 90.0, &q));])],
[AC_MSG_RESULT([yes]);C99_MATH="-DHAVE_C99_MATH=1"],
[AC_MSG_RESULT([no]);C99_MATH="-DHAVE_C99_MATH=0"])
CFLAGS="$save_CFLAGS $C99_MATH"