3 ?RCS: Copyright (c) 1999, Jarkko Hietaniemi
5 ?RCS: You may redistribute only under the terms of the Artistic License,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic License; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.0.
11 ?MAKE:d_ldbl_dig: Myread contains cat rm Setvar i_limits i_float \
12 cppstdin cppflags cppminus
13 ?MAKE: -pick add $@ %<
15 ?S: This variable conditionally defines d_ldbl_dig if this system's
16 ?S: header files provide LDBL_DIG, which is the number of significant
17 ?S: digits in a long double precision number.
20 ?C: This symbol, if defined, indicates that this system's <float.h>
21 ?C: or <limits.h> defines the symbol LDBL_DIG, which is the number
22 ?C: of significant digits in a long double precision number. Unlike
23 ?C: for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
25 ?H:#$d_ldbl_dig HAS_LDBL_DIG /* */
29 : See if number of significant digits in a double precision number is known
31 $cat >ldbl_dig.c <<EOM
41 printf("Contains LDBL_DIG");
44 $cppstdin $cppflags $cppminus < ldbl_dig.c >ldbl_dig.E 2>/dev/null
45 if $contains 'LDBL_DIG' ldbl_dig.E >/dev/null 2>&1; then
46 echo "LDBL_DIG found." >&4
49 echo "LDBL_DIG NOT found." >&4