X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=configure;h=0a9c2b6fbfac9b7abcc59510931fc0fecf6f6fda;hb=0155dd1e97f323668442d3fc07b927e8f9004dbe;hp=d9ed2e48d2ba20f13b5647780632656be4a05d2d;hpb=819147178db00008a215670992d0f532dd57f9e5;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index d9ed2e48d..0a9c2b6fb 100755 --- a/configure +++ b/configure @@ -44,7 +44,7 @@ use make::opensslcert; our ($opt_use_gnutls, $opt_rebuild, $opt_use_openssl, $opt_nointeractive, $opt_ports, $opt_epoll, $opt_kqueue, $opt_noports, $opt_noepoll, $opt_nokqueue, - $opt_ipv6, $opt_maxbuf, $opt_disable_debug, $opt_freebsd_port); + $opt_noipv6, $opt_maxbuf, $opt_disable_debug, $opt_freebsd_port); our ($opt_cc, $opt_base_dir, $opt_config_dir, $opt_module_dir, $opt_binary_dir, $opt_library_dir); @@ -69,7 +69,7 @@ GetOptions ( 'disable-ports' => \$opt_noports, 'disable-epoll' => \$opt_noepoll, 'disable-kqueue' => \$opt_nokqueue, - 'enable-ipv6' => \$opt_ipv6, + 'disable-ipv6' => \$opt_noipv6, 'with-cc=s' => \$opt_cc, 'with-maxbuf=i' => \$opt_maxbuf, 'enable-freebsd-ports-openssl' => \$opt_freebsd_port, @@ -109,7 +109,7 @@ our $non_interactive = ( (defined $opt_binary_dir) || (defined $opt_nointeractive) || (defined $opt_cc) || - (defined $opt_ipv6) || + (defined $opt_noipv6) || (defined $opt_kqueue) || (defined $opt_epoll) || (defined $opt_ports) || @@ -234,10 +234,10 @@ if (defined $opt_noports) { $config{USE_PORTS} = "n"; } -$config{IPV6} = "n"; # IPv6 support (experimental) -if (defined $opt_ipv6) +$config{IPV6} = "y"; # IPv6 support +if (defined $opt_noipv6) { - $config{IPV6} = "y"; + $config{IPV6} = "n"; } chomp($config{GCCVER} = `g++ -dumpversion | cut -c 1`); # Major GCC Version chomp($config{GCCMINOR} = `g++ -dumpversion | cut -c 3`); @@ -523,8 +523,10 @@ if ($config{OSNAME} =~ /FreeBSD/i) my $version = `uname -r`; if ($version =~ /^4\./) { - print "yes\n"; - exit 1; + print "yes.\n"; + print "FreeBSD 4.x is no longer supported. By ANYONE.\n"; + print "To build, you will need to add the following to CXXFLAGS:\n"; + print "\t-L/usr/local/lib -lgnugetopt -DHAVE_DECL_GETOPT=1\n"; } else { @@ -934,7 +936,6 @@ sub writefiles { #define CONFIG_FILE "$config{CONFIG_DIR}/inspircd.conf" #define MOD_PATH "$config{MODULE_DIR}" #define SOMAXCONN_S "$config{_SOMAXCONN}" -#define OPTIMISATION $config{OPTIMITEMP} #define LIBRARYDIR "$config{LIBRARY_DIR}" #define ENTRYPOINT int main(int argc, char** argv)