immutable: Add tests.
[gnulib.git] / m4 / ieee754-h.m4
blob68af3bd7ebe1e34277118817518867cf262834ab
1 # Configure ieee754-h module
3 dnl Copyright 2018-2021 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 AC_DEFUN([gl_IEEE754_H],
10   AC_REQUIRE([AC_C_BIGENDIAN])
11   AC_CHECK_HEADERS_ONCE([ieee754.h])
12   if test $ac_cv_header_ieee754_h = yes; then
13     IEEE754_H=
14   else
15     IEEE754_H=ieee754.h
16     AC_DEFINE([_GL_REPLACE_IEEE754_H], 1,
17               [Define to 1 if <ieee754.h> is missing.])
18   fi
19   AC_SUBST([IEEE754_H])
20   AM_CONDITIONAL([GL_GENERATE_IEEE754_H], [test -n "$IEEE754_H"])