summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-21 04:24:54 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-21 04:24:54 +0000
commit4a1755fe8c73c7d243f9eaa7a31aed0e0ebc81d9 (patch)
tree143ac76415cf4edc0d2ed2a385b8717f05d325ca /configure
parentdf0c429e4b1d177335a23770999cf4b00dd532d6 (diff)
Apply OSX patch from BuildSmart that fixes installation issues.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7398 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index b20e28da2..c00bb3ed8 100755
--- a/configure
+++ b/configure
@@ -224,9 +224,15 @@ chomp($config{GCCVER} = `g++ -dumpversion | cut -c 1`); # Major GCC Ver
$config{_SOMAXCONN} = SOMAXCONN; # Max connections in accept queue
$config{OSNAME} = $^O; # Operating System Name
$config{IS_DARWIN} = "NO"; # Is OSX?
+$config{STARTSCRIPT} = "inspircd"; # start script?
+$config{DESTINATION} = "BASE"; # Is target path.
+$config{EXTRA_DIR} = ""; # Is empty.
if ($config{OSNAME} =~ /darwin/i)
{
$config{IS_DARWIN} = "YES";
+ $config{STARTSCRIPT} = "org.inspircd.plist"; # start script for OSX.
+ $config{DESTINATION} = "LAUNCHDPATH"; # Is OSX target.
+ $config{EXTRA_DIR} = " launch_dir"; # Is OSX specific path.
}
$config{CC} = "g++"; # C++ compiler
if (defined $opt_cc)
@@ -1143,6 +1149,9 @@ EOF
$tmp =~ s/\@LIBRARY_DIR\@/$config{LIBRARY_DIR}/;
$tmp =~ s/\@LIBRARY_EXT\@/$LIBEXT/;
$tmp =~ s/\@MODULES\@/$modules/;
+ $tmp =~ s/\@STARTSCRIPT\@/$config{STARTSCRIPT}/;
+ $tmp =~ s/\@DESTINATION\@/$config{DESTINATION}/;
+ $tmp =~ s/\@EXTRA_DIR\@/$config{EXTRA_DIR}/;
$tmp =~ s/\@EXECUTABLE\@/$exe/;
$tmp =~ s/\@MAKEORDER\@/$config{MAKEORDER}/;
$tmp =~ s/\@STATICLIBS\@/$config{STATICLIBS}/;