|
From: <ho...@us...> - 2004-02-27 02:52:50
|
Update of /cvsroot/ganc/ganc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2928 Modified Files: config.h.in configure.in Log Message: Added considerations about math library that improve portability Index: config.h.in =================================================================== RCS file: /cvsroot/ganc/ganc/config.h.in,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** config.h.in 20 Jan 2004 01:33:40 -0000 1.5 --- config.h.in 27 Feb 2004 02:44:27 -0000 1.6 *************** *** 4,10 **** --- 4,20 ---- #undef BUILD_GUI + /* Define to one if isinf function is available */ + #undef HAVE_ISINF + /* Define to 1 if you have the `m' library (-lm). */ #undef HAVE_LIBM + /* Define to 1 if long double works and has more range or precision than + double. */ + #undef HAVE_LONG_DOUBLE + + /* Define to 1 if long double functions are available */ + #undef HAVE_LONG_DOUBLE_FUNCTIONS + /* Define to 1 if your C compiler doesn't accept -c and -o together. */ #undef NO_MINUS_C_MINUS_O Index: configure.in =================================================================== RCS file: /cvsroot/ganc/ganc/configure.in,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** configure.in 27 Feb 2004 00:34:07 -0000 1.19 --- configure.in 27 Feb 2004 02:44:27 -0000 1.20 *************** *** 22,25 **** --- 22,26 ---- AC_PROG_CC_C_O AC_PROG_CPP + AC_C_LONG_DOUBLE dnl Print debug status *************** *** 56,62 **** dnl if no GUI we need to include math library if test "$BUILD_GUI" = "no"; then ! AC_CHECK_LIB([m], [sin], [], AC_MSG_ERROR(Math library not found)) fi dnl pass BUILD_GUI to c code if test "$BUILD_GUI" = "yes"; then --- 57,71 ---- dnl if no GUI we need to include math library if test "$BUILD_GUI" = "no"; then ! AC_CHECK_LIB([m], [tan], [], AC_MSG_ERROR(Math library not found)) fi + dnl check that math lib has 'long double' math functions + if test "$ac_cv_c_long_double" = "yes"; then + AC_CHECK_LIB([m], [tanl], AC_DEFINE(HAVE_LONG_DOUBLE_FUNCTIONS, 1, [Define to 1 if long double functions are available]), []) + fi + + dnl check math lib has 'isinf' function + AC_CHECK_LIB([m], [isinf], AC_DEFINE(HAVE_ISINF, 1, [Define to one if isinf function is available]), []) + dnl pass BUILD_GUI to c code if test "$BUILD_GUI" = "yes"; then |