Index: trunk/scconfig/hooks.c =================================================================== --- trunk/scconfig/hooks.c (revision 30888) +++ trunk/scconfig/hooks.c (revision 30889) @@ -106,24 +106,7 @@ /* Runs when things should be detected for the host system */ int hook_detect_host() { - pup_hook_detect_host(); - fungw_hook_detect_host(); - - require("fstools/ar", 0, 1); - require("fstools/mkdir", 0, 1); - require("fstools/rm", 0, 1); - require("fstools/cp", 0, 1); - require("fstools/ln", 0, 1); - -/* until we rewrite the generators in C */ - require("fstools/awk", 0, 1); - - require("cc/argstd/*", 0, 0); - - require("cc/func_attr/unused/*", 0, 0); - require("cc/inline", 0, 0); - - return 0; + return rnd_hook_detect_host(); } /* figure if we need the dialogs plugin */ Index: trunk/scconfig/librnd/scconfig/rnd_hook_detect.h =================================================================== --- trunk/scconfig/librnd/scconfig/rnd_hook_detect.h (revision 30888) +++ trunk/scconfig/librnd/scconfig/rnd_hook_detect.h (revision 30889) @@ -328,4 +328,26 @@ } +static int rnd_hook_detect_host(void) +{ + pup_hook_detect_host(); + fungw_hook_detect_host(); + require("fstools/ar", 0, 1); + require("fstools/mkdir", 0, 1); + require("fstools/rm", 0, 1); + require("fstools/cp", 0, 1); + require("fstools/ln", 0, 1); + +/* until we rewrite the generators in C */ + require("fstools/awk", 0, 1); + + require("cc/argstd/*", 0, 0); + + require("cc/func_attr/unused/*", 0, 0); + require("cc/inline", 0, 0); + + return 0; +} + +