sub getlinkerflags {
my ($file) = @_;
- open(FLAGS, $file);
+ open(FLAGS, $file) or return "";
while (<FLAGS>) {
if ($_ =~ /^\/\* \$LinkerFlags: (.+) \*\/$/) {
close(FLAGS);
sub getdependencies {
my ($file) = @_;
- open(FLAGS, $file);
+ open(FLAGS, $file) or return "";
while (<FLAGS>) {
if ($_ =~ /^\/\* \$ModDep: (.+) \*\/$/) {
close(FLAGS);
sub nopedantic {
my ($file) = @_;
- open(FLAGS, $file);
+ open(FLAGS, $file) or return "";
while (<FLAGS>) {
if ($_ =~ /^\/\* \$NoPedantic \*\/$/) {
close(FLAGS);
{
my $i = 0;
print "Detecting modules ";
- opendir(DIRHANDLE, "src/modules");
+ opendir(DIRHANDLE, "src/modules") or die("WTF, missing src/modules!");
foreach my $name (sort readdir(DIRHANDLE))
{
if ($name =~ /^m_(.+)\.cpp$/)
print "\e[0mConfig path:\e[1;32m\t\t\t$main::config{CONFIG_DIR}\e[0m\n";
print "\e[0mModule path:\e[1;32m\t\t\t$main::config{MODULE_DIR}\e[0m\n";
print "\e[0mLibrary path:\e[1;32m\t\t\t$main::config{LIBRARY_DIR}\e[0m\n";
- print "\e[0mMax connections:\e[1;32m\t\t$main::config{MAX_CLIENT}\e[0m\n";
print "\e[0mMax nickname length:\e[1;32m\t\t$main::config{NICK_LENGT}\e[0m\n";
print "\e[0mMax channel length:\e[1;32m\t\t$main::config{CHAN_LENGT}\e[0m\n";
print "\e[0mMax mode length:\e[1;32m\t\t$main::config{MAXI_MODES}\e[0m\n";
--enable-openssl Enable OpenSSL module [no]
--with-nick-length=[n] Specify max. nick length [32]
--with-channel-length=[n] Specify max. channel length [64]
- --with-max-clients=[n] Specify maximum number of users
- which may connect locally
--enable-optimization=[n] Optimize using -O[n] gcc flag
--enable-epoll Enable epoll() where supported [set]
--enable-kqueue Enable kqueue() where supported [set]