#include "match.h"
-#ifndef STATIC_MODULES
-
#include <ltdl.h>
struct module **modlist = NULL;
while ((ldirent = readdir(system_module_dir)) != NULL)
{
len = strlen(ldirent->d_name);
- if((len > 3) && !strcmp(ldirent->d_name+len-3, SHARED_SUFFIX))
+ if((len > 3) && !strcmp(ldirent->d_name+len-3, ".la"))
{
(void) rb_snprintf(module_fq_name, sizeof(module_fq_name), "%s/%s", AUTOMODPATH, ldirent->d_name);
(void) load_a_module(module_fq_name, warn, 0);
for (i = 0; core_module_table[i]; i++)
{
rb_snprintf(module_name, sizeof(module_name), "%s/%s%s", MODPATH,
- core_module_table[i], SHARED_SUFFIX);
+ core_module_table[i], ".la");
if(load_a_module(module_name, warn, 1) == -1)
{
ilog(L_MAIN,
"Error loading core module %s%s: terminating ircd",
- core_module_table[i], SHARED_SUFFIX);
+ core_module_table[i], ".la");
exit(0);
}
}
modlist = new_modlist;
max_mods += MODS_INCREMENT;
}
-
-#else /* STATIC_MODULES */
-
-/* load_all_modules()
- *
- * input -
- * output -
- * side effects - all the msgtabs are added for static modules
- */
-void
-load_all_modules(int warn)
-{
- load_static_modules();
-}
-
-#endif /* STATIC_MODULES */