summary refs log tree commit diff stats
path: root/nim/nimconf.pas
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2009-06-08 08:06:25 +0200
committerAndreas Rumpf <rumpf_a@web.de>2009-06-08 08:06:25 +0200
commit4d4b3b1c04d41868ebb58bd9ccba7b303007e900 (patch)
tree909ed0aad0b145733521f4ac2bfb938dd4b43785 /nim/nimconf.pas
parentce88dc3e67436939b03f97e624c11ca6058fedce (diff)
downloadNim-4d4b3b1c04d41868ebb58bd9ccba7b303007e900.tar.gz
version0.7.10
Diffstat (limited to 'nim/nimconf.pas')
-rw-r--r--nim/nimconf.pas13
1 files changed, 10 insertions, 3 deletions
diff --git a/nim/nimconf.pas b/nim/nimconf.pas
index 8f908bf62..842446ae9 100644
--- a/nim/nimconf.pas
+++ b/nim/nimconf.pas
@@ -335,12 +335,19 @@ end;
 
 procedure LoadConfig(const project: string);
 var
-  conffile: string;
+  conffile, prefix: string;
 begin
   // set default value (can be overwritten):
-  if libpath = '' then
+  if libpath = '' then begin
     // choose default libpath:
-    libpath := joinPath(getPrefixDir(), 'lib');
+    prefix := getPrefixDir();
+    if (prefix = '/usr') then
+      libpath := '/usr/lib/nimrod'
+    else if (prefix = '/usr/local') then
+      libpath := '/usr/local/lib/nimrod'
+    else
+      libpath := joinPath(prefix, 'lib')
+  end;
   // read default config file:
   LoadSpecialConfig('nimrod.cfg');
   // read project config file: