16 gl_CONDITIONAL_HEADER([float.h])
18 gl_CONDITIONAL([GL_COND_OBJ_FLOAT],
19 [test $REPLACE_FLOAT_LDBL = 1 || test $REPLACE_FLOAT_SNAN = 1])
20 gl_CONDITIONAL([GL_COND_OBJ_ITOLD], [test $REPLACE_ITOLD = 1])
21 dnl Prerequisites of lib/float.c.
22 AC_REQUIRE([gl_BIGENDIAN])
25 BUILT_SOURCES += $(FLOAT_H)
27 # We need the following in order to create <float.h> when the system
28 # doesn't have one that works with the given compiler.
29 if GL_GENERATE_FLOAT_H
30 float.h: float.in.h $(top_builddir)/config.status
31 @NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
32 $(gl_V_at)$(SED_HEADER_STDOUT) \
33 -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
34 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
35 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
36 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
37 -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
38 -e 's|@''REPLACE_ITOLD''@|$(REPLACE_ITOLD)|g' \
39 $(srcdir)/float.in.h > $@-t
42 float.h: $(top_builddir)/config.status
45 MOSTLYCLEANFILES += float.h float.h-t
48 lib_SOURCES += float.c
51 lib_SOURCES += itold.c