X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=configure;h=f3aea791f38a5b8aa29998d1d2680669d3060413;hb=39ddf2fb7a4d030fc29a7d421e09394cd70dc9bf;hp=b380b5700046cad908714e057d3370ae2cc080e4;hpb=ad8625919378ffbdbf0993d56e16a75a47c4715e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index b380b5700..f3aea791f 100755 --- a/configure +++ b/configure @@ -368,8 +368,8 @@ $has_epoll = test_compile('epoll'); print $has_epoll ? "yes\n" : "no\n"; printf "Checking for eventfd support... "; -$config{HAS_EVENTFD} = test_compile('eventfd') ? 'true' : 'false'; -print $config{HAS_EVENTFD} eq 'true' ? "yes\n" : "no\n"; +$config{HAS_EVENTFD} = test_compile('eventfd'); +print $config{HAS_EVENTFD} ? "yes\n" : "no\n"; printf "Checking if Solaris I/O completion ports are available... "; $has_ports = 0; @@ -716,7 +716,7 @@ if (($config{USE_GNUTLS} eq "y") || ($config{USE_OPENSSL} eq "y")) { print "Please note: for \e[1;32mSSL support\e[0m you will need to load required\n"; print "modules in your config. This configure script has added those modules to the\n"; print "build process. For more info, please refer to:\n"; - print "\e[1;32mhttp://wiki.inspircd.org/Installation_From_Tarball\e[0m\n"; + print "\e[1;32mhttps://wiki.inspircd.org/Installation_From_Tarball\e[0m\n"; } print "*** \e[1;32mRemember to edit your configuration files!!!\e[0m ***\n\n\n"; if (($config{OSNAME} eq "OpenBSD") && ($config{CC} ne "eg++")) { @@ -733,6 +733,14 @@ to a newer 3.x or 4.x (or whatever is available currently) version. FOO2 } +if ($^O eq 'openbsd') { + print <<__OPENBSD_WARNING__; +\e[1;32mWARNING!\e[0m OpenBSD 6.5 changed Make to no longer look for BSDmakefile when +searching for the makefile. If the version of OpenBSD you are using is 6.5 or +newer then you will need to run '\e[1;32mmake -f BSDmakefile\e[0m' or '\e[1;32mgmake\e[0m' instead. +__OPENBSD_WARNING__ +} + ################################################################################ # HELPER FUNCTIONS # ################################################################################ @@ -865,13 +873,13 @@ print FILEHANDLE "#define MAXBUF " . ($config{MAXBUF}+2) . "\n"; if ($config{GCCVER} >= 3) { print FILEHANDLE "#define GCC3\n"; } - if ($config{HAS_STRLCPY} eq "true") { + if ($config{HAS_STRLCPY}) { print FILEHANDLE "#define HAS_STRLCPY\n"; } - if ($config{HAS_STDINT} eq "true") { + if ($config{HAS_STDINT}) { print FILEHANDLE "#define HAS_STDINT\n"; } - if ($config{HAS_EVENTFD} eq 'true') { + if ($config{HAS_EVENTFD}) { print FILEHANDLE "#define HAS_EVENTFD\n"; } if ($config{OSNAME} !~ /DARWIN/i) {