diff options
| author | Charles Karney <charles.karney@sri.com> | 2019-09-18 13:27:06 -0400 |
|---|---|---|
| committer | Charles Karney <charles.karney@sri.com> | 2019-09-18 13:27:06 -0400 |
| commit | 329e7a9be67c15936488ef37739df065a4b81bf7 (patch) | |
| tree | d336657044d2c7070eb7ba4b4a8c5ccd4b12fc3b /configure.ac | |
| parent | 9f41f427d0fe6966d187f746f523e84892f240a5 (diff) | |
| download | PROJ-329e7a9be67c15936488ef37739df065a4b81bf7.tar.gz PROJ-329e7a9be67c15936488ef37739df065a4b81bf7.zip | |
Get rid of dead code. The end result of this chain of commits is to
eliminate most of math.cpp. All that is left is the handling of
isnan (and I've this because math.cpp notes that gie.c uses pj_isnan).
geodesic.c now handles supplying C99 math functions internally and this
can go away once C99 support is mandated.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 76e45bc0..4db47b26 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) + log1p(2.0) + asinh(10.0) + - atanh(0.8) + cbrt(8.0) + remquo(100.0, 90.0, &q) + - remainder(100.0, 90.0) + copysign(1.0, -0.0) + - round(3.5)) + - (int)(lround(-3.5)) + 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)) + isnan(0.0);])], [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" |
