1 ?RCS: Copyright (c) 2005-2007 H.Merijn Brand
3 ?RCS: You may distribute under the terms of either the GNU General Public
4 ?RCS: License or the Artistic License, as specified in the README file.
6 ?MAKE:d_libm_lib_version: Compile cat run rm_try i_math
9 ?S: This variable conditionally defines the LIBM_LIB_VERSION symbol,
10 ?S: which indicates to the C program that math.h defines _LIB_VERSION
11 ?S: being available in libm
14 ?C: This symbol, if defined, indicates that libm exports _LIB_VERSION
15 ?C: and that math.h defines the enum to manipulate it.
17 ?H:#$d_libm_lib_version LIBM_LIB_VERSION /**/
21 : check to see if math.h defines _LIB_VERSION
22 d_libm_lib_version="$undef"
26 echo "Checking to see if your libm supports _LIB_VERSION..." >&4
30 int main (int argc, char *argv[])
32 printf ("%d\n", _LIB_VERSION);
37 if eval $compile; then
39 echo "Yes, it does ($foo)" >&4
40 d_libm_lib_version="$define"
42 echo "No, it does not (probably harmless)" >&4