X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=configure;h=0b6742efdf3bfdd11dccad5fdf21fb48fe33331d;hb=f6103acd925a1dc878728885bad32fbf76f62cea;hp=7a9b4372c71ba46e449ddd918a00e4bda46b74c5;hpb=db5e5a9184bdaaaef09759da3bcbc7c2c29e00e2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index 7a9b4372c..0b6742efd 100755 --- a/configure +++ b/configure @@ -34,6 +34,7 @@ $config{MAX_CHANNE} = "20"; # Default Max. $config{MAX_OPERCH} = "60"; # Default Max. Channels per oper $config{MAXI_MODES} = "20"; # Default Max. Number of Modes set at once. $config{HAS_STRLCPY} = "false"; # strlcpy Check. +$config{HAS_STDINT} = "false"; # stdint.h check $config{HAS_EXECINFO} = "0"; # execinfo.h Check. $config{USE_KQUEUE} = "y"; # kqueue enabled $config{USE_EPOLL} = "y"; # epoll enabled @@ -160,6 +161,17 @@ if (!$config{MAX_CLIENT}) { $config{MAX_CLIENT} = $config{MAX_CLIENT_T}; } +printf "Checking if stdint.h exists... "; +$config{HAS_STDINT} = "true"; +my $fail = 0; +open(STDINT, "src/modules/m_".$i."_static.cpp") or die("Could not create m_".$i."_static.cpp"); + open(MUNGED,">src/modules/.m_".$i."_static.cpp") or die("Could not create .m_".$i."_static.cpp"); while (chomp($a = )) { $a =~ s/init_module/$i\_init/g; print MUNGED "$a\n"; @@ -1355,20 +1370,20 @@ EOM if ($config{OSNAME} =~ /CYGWIN/) { print FH <