From 5504a57deb3a6fe09e04a62319fc7301bdd29215 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 20 Aug 2007 20:42:53 +0000 Subject: [PATCH] Merge in freebsd patch (woot, our first conficted merge :p) git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7782 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 90badbd82..9cf4b87ea 100755 --- a/configure +++ b/configure @@ -12,7 +12,7 @@ # ################################################### -require 5.6.0; +require 5.8.0; use Socket; use Cwd; use Getopt::Long; @@ -1633,6 +1633,17 @@ sub write_dynamic_makefile { $se = "socketengine_ports"; } + if ($config{OSNAME} =~ /freebsd/i) + { + print "Ick, you are running FreeBSD 4.x. Enabling workaround. Get an upgrade.\n"; + $version = `uname -r`; + if ($version =~ /^4\./) + { + # ICKY ICKY ICK, FREEBSD 4.x! GET AN UPGRADE! + $freebsd4libs = "-L/usr/local/lib -lgnugetopt -DHAVE_DECL_GETOPT=1"; + } + } + open(FH,">src/Makefile") or die("Could not write src/Makefile"); print FH <