X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=configure;h=eed6353c2239bf6e8885450b022a662c8eb3826a;hb=e74bb16a4fcf67a44d1b63bc13d205717a38bb96;hp=d13a078523a149f5a708b2fa0928a0bcb56d377c;hpb=5454b47bd5d5ce5fb08aed83bac0148eabab620e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index d13a07852..eed6353c2 100755 --- a/configure +++ b/configure @@ -62,7 +62,7 @@ $config{HAS_OPENSSL} = $1; if ($config{GCCVER} eq "") { print "g++ was not found! You require g++ (the GNU C++ compiler, part of GCC) to build InspIRCd!\n"; - return 0; + exit; } # Minihack! Convert Cygwin to 'Cyg-Static' so i can @@ -360,10 +360,10 @@ if (!$chose_hiperf) { print "not to enable one. Defaulting to select() engine.\n\n"; } -yesno(THREADED_DNS,"Would you like to enable the experimental multi-threaded DNS lookup?"); +yesno(THREADED_DNS,"InspIRCd supports multi-threaded DNS lookups,\nwhich can improve the efficiency on a multiple-processor machine.\n\nDo you want to enable this feature?"); print "\n"; -yesno(IPV6,"Would you like to enable IPv6 support?"); +yesno(IPV6,"Would you like to enable experimental IPv6 support?"); print "\n"; if (($config{HAS_GNUTLS} eq "y") && ($config{HAS_OPENSSL} eq "y")) { @@ -1022,21 +1022,40 @@ EOF my $use_hiperf = 0; if (($has_kqueue) && ($config{USE_KQUEUE} eq "y")) { print FILEHANDLE "#define USE_KQUEUE\n"; + $se = "socketengine_kqueue"; $use_hiperf = 1; } if (($has_epoll) && ($config{USE_EPOLL} eq "y")) { print FILEHANDLE "#define USE_EPOLL\n"; + $se = "socketengine_epoll"; $use_hiperf = 1; } # user didn't choose either epoll or select for their OS. # default them to USE_SELECT (ewwy puke puke) if (!$use_hiperf) { print FILEHANDLE "#define USE_SELECT\n"; + $se = "socketengine_select"; } print FILEHANDLE "\n#endif\n"; close(FILEHANDLE); } + if ($writeheader) + { + open(FILEHANDLE, ">include/inspircd_se_config.h"); + print FILEHANDLE <src/Makefile") or die("Could not write src/Makefile"); print FH <