Index: trunk/config.auto.h.in =================================================================== --- trunk/config.auto.h.in (revision 2550) +++ trunk/config.auto.h.in (revision 2551) @@ -6,8 +6,6 @@ /* Define to 1 if you have the header file. */ #define HAVE_PWD_H 1 -/* Define to 1 if you have the `realpath' function. */ -#define HAVE_REALPATH 1 /* Define to 1 if you have the `rint' function. */ #define HAVE_RINT 1 @@ -101,6 +99,9 @@ print {\n\n/* Define to 1 if we should use mkdtemp for creating temp files. */\n} print_ternary ?libs/fs/mkdtemp/presents {#define HAVE_MKDTEMP 1} {/* #undef HAVE_MKDTEMP */} +print {\n\n/* Define to 1 if you have the `realpath' function. */\n} +print_ternary ?libs/fs/realpath/presents {#define HAVE_REALPATH 1} {/* #undef HAVE_REALPATH */} + print {\n\n/* Select which mechanism to use for running child processes. */\n} print_ternary ?/target/libs/proc/wait/presents {#define USE_FORK_WAIT 1} {/* #undef USE_FORK_WAIT */} print {\n} Index: trunk/scconfig/hooks.c =================================================================== --- trunk/scconfig/hooks.c (revision 2550) +++ trunk/scconfig/hooks.c (revision 2551) @@ -166,6 +166,7 @@ require("cc/fpic", 0, 1); require("libs/fs/mkdtemp/*", 0, 0); + require("libs/fs/realpath/*", 0, 0); require("libs/userpass/getpwuid/*", 0, 0); if (require("libs/ldl", 0, 0) != 0) {