]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
Fix segfault on 'cant open logfile' on startup, on trying to call Exit. instead just...
[user/henk/code/inspircd.git] / configure
index 90bfcd0b5287c10120ba3a8eab88db5913499618..bc81209d62ad70851f52e4b9eb8a5ec7077f40cc 100755 (executable)
--- a/configure
+++ b/configure
@@ -555,9 +555,17 @@ if ($config{OSNAME} =~ /FreeBSD/i)
        $version = `uname -r`;
        if ($version =~ /^4\./)
        {
-               # ICKY ICKY ICK, FREEBSD 4.x! GET AN UPGRADE!
-               $config{CRAQ} = "-L/usr/local/lib -lgnugetopt -DHAVE_DECL_GETOPT=1";
-               print "yes\n";
+               $foundit = `ls -l /usr/local/lib/libgnugetopt* | wc -l`;
+               if ($foundit > 0)
+               {
+                       # ICKY ICKY ICK, FREEBSD 4.x! GET AN UPGRADE!
+                       $config{CRAQ} = "-L/usr/local/lib -lgnugetopt -DHAVE_DECL_GETOPT=1";
+                       print "yes\n";
+               }
+               else
+               {
+                       print "\n\nERROR: You require libgnugetopt (from ports or packages) to build InspIRCd on FreeBSD 4.11.\n";
+               }
        }
        else
        {