Index: trunk/config.auto.h.in =================================================================== --- trunk/config.auto.h.in (revision 2558) +++ trunk/config.auto.h.in (revision 2559) @@ -2,8 +2,6 @@ /**** TODO ****/ -/* Define to 1 if you have the `rint' function. */ -#define HAVE_RINT 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 @@ -73,6 +71,9 @@ print {\n\n/* Define to 1 if you have the `getpwuid' function. */\n} print_ternary libs/userpass/getpwuid/presents {#define HAVE_GETPWUID 1} {/* #undef HAVE_GETPWUID */} +print {\n\n/* Define to 1 if you have the `rint' function. */\n} +print_ternary libs/math/rint/presents {#define HAVE_RINT 1} {/* #undef HAVE_RINT */} + print {\n\n/* Wrapper for S_ISLNK(x); always return 0 if S_ISLNK doesn't exist */\n} switch ?/target/libs/fs/stat/macros/S_ISLNK case {^$} print {#define WRAP_S_ISLNK(x) 0}; end; Index: trunk/scconfig/hooks.c =================================================================== --- trunk/scconfig/hooks.c (revision 2558) +++ trunk/scconfig/hooks.c (revision 2559) @@ -167,6 +167,7 @@ require("cc/fpic", 0, 1); require("libs/fs/mkdtemp/*", 0, 0); require("libs/fs/realpath/*", 0, 0); + require("libs/math/rint/*", 0, 0); require("libs/userpass/getpwuid/*", 0, 0); if (require("libs/ldl", 0, 0) != 0) {