Skip to content

Commit 62a1162

Browse files
autoconf cleanup
1 parent 6f63ca6 commit 62a1162

2 files changed

Lines changed: 0 additions & 46 deletions

File tree

acinclude.m4

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,5 @@
11
dnl UD macros for netcdf configure
22

3-
dnl
4-
dnl UD_CHECK_IEEE
5-
dnl If the 'double' is not an IEEE double
6-
dnl or the 'float' is not and IEEE single,
7-
dnl define NO_IEEE_FLOAT
8-
dnl
9-
AC_DEFUN([UD_CHECK_IEEE],
10-
[
11-
AC_MSG_CHECKING(for IEEE floating point format)
12-
AC_TRY_RUN([#ifndef NO_FLOAT_H
13-
#include <float.h>
14-
#endif
15-
16-
#define EXIT_NOTIEEE 1
17-
#define EXIT_MAYBEIEEE 0
18-
19-
int
20-
main()
21-
{
22-
#if defined(FLT_RADIX) && FLT_RADIX != 2
23-
return EXIT_NOTIEEE;
24-
#elif defined(DBL_MAX_EXP) && DBL_MAX_EXP != 1024
25-
return EXIT_NOTIEEE;
26-
#elif defined(DBL_MANT_DIG) && DBL_MANT_DIG != 53
27-
return EXIT_NOTIEEE;
28-
#elif defined(FLT_MAX_EXP) && !(FLT_MAX_EXP == 1024 || FLT_MAX_EXP == 128)
29-
return EXIT_NOTIEEE;
30-
#elif defined(FLT_MANT_DIG) && !(FLT_MANT_DIG == 53 || FLT_MANT_DIG == 24)
31-
return EXIT_NOTIEEE;
32-
#else
33-
/* (assuming eight bit char) */
34-
if(sizeof(double) != 8)
35-
return EXIT_NOTIEEE;
36-
if(!(sizeof(float) == 4 || sizeof(float) == 8))
37-
return EXIT_NOTIEEE;
38-
39-
return EXIT_MAYBEIEEE;
40-
#endif
41-
}],ac_cv_c_ieeefloat=yes, ac_cv_c_ieeefloat=no, :)
42-
AC_MSG_RESULT($ac_cv_c_ieeefloat)
43-
if test "$ac_cv_c_ieeefloat" = no; then
44-
AC_DEFINE([NO_IEEE_FLOAT], [], [no IEEE float on this platform])
45-
fi
46-
])
47-
483

494
dnl
505
dnl Print which compilers are going to be used, the flags, and their

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,6 @@ AC_SUBST(USEPLUGINS, [${enable_plugins}])
14921492
AC_FUNC_ALLOCA
14931493
AC_CHECK_DECLS([isnan, isinf, isfinite],,,[#include <math.h>])
14941494
AC_CHECK_MEMBERS([struct stat.st_blksize])
1495-
UD_CHECK_IEEE
14961495
AC_CHECK_TYPES([size_t, ssize_t, schar, uchar, longlong, ushort, uint, int64, uint64, size64_t, ssize64_t, _off64_t, uint64_t, ptrdiff_t])
14971496
AC_TYPE_OFF_T
14981497
AC_TYPE_UINTPTR_T

0 commit comments

Comments
 (0)