mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Checks for libgnugetopt in /usr/local/lib before continuing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7785 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
2a0f1441ef
commit
74f26a0375
8
configure
vendored
8
configure
vendored
@ -554,12 +554,20 @@ if ($config{OSNAME} =~ /FreeBSD/i)
|
|||||||
{
|
{
|
||||||
$version = `uname -r`;
|
$version = `uname -r`;
|
||||||
if ($version =~ /^4\./)
|
if ($version =~ /^4\./)
|
||||||
|
{
|
||||||
|
$foundit = `ls -l /usr/local/lib/libgnugetopt* | wc -l`;
|
||||||
|
if ($foundit > 0)
|
||||||
{
|
{
|
||||||
# ICKY ICKY ICK, FREEBSD 4.x! GET AN UPGRADE!
|
# ICKY ICKY ICK, FREEBSD 4.x! GET AN UPGRADE!
|
||||||
$config{CRAQ} = "-L/usr/local/lib -lgnugetopt -DHAVE_DECL_GETOPT=1";
|
$config{CRAQ} = "-L/usr/local/lib -lgnugetopt -DHAVE_DECL_GETOPT=1";
|
||||||
print "yes\n";
|
print "yes\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
print "\n\nERROR: You require libgnugetopt (from ports or packages) to build InspIRCd on FreeBSD 4.11.\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
$config{CRAQ} = " ";
|
$config{CRAQ} = " ";
|
||||||
print "no ($version)\n";
|
print "no ($version)\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user