diff options
author | hajny <hajny@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2005-05-25 21:13:00 +0000 |
---|---|---|
committer | hajny <hajny@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2005-05-25 21:13:00 +0000 |
commit | 74ea24391f3e3d7a0e962b726965fa05f77a47c3 (patch) | |
tree | 8898abb2ffadafe6e7ef1f37b34856def995a2c2 /installer/install.pas | |
parent | 4493e302463458adb05dcbd9d3cef44e2099cf39 (diff) | |
download | fpc-74ea24391f3e3d7a0e962b726965fa05f77a47c3.tar.gz |
* check for necessity to add path to BDF2E to LIBPATH under OS/2
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@108 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'installer/install.pas')
-rw-r--r-- | installer/install.pas | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/installer/install.pas b/installer/install.pas index b79ea32211..56a81c8e2e 100644 --- a/installer/install.pas +++ b/installer/install.pas @@ -880,6 +880,7 @@ program install; WLibPath: boolean; const EMXName: array [1..4] of char = 'EMX'#0; + BDF2EName: array [1..6] of char = 'BDF2E'#0; {$ENDIF} begin if haside then @@ -922,15 +923,21 @@ program install; DosFreeModule (Handle); end else - begin + if DosLoadModule (@ErrPath, SizeOf (ErrPath), @BDF2EName, Handle) = 0 then + begin + WLibPath := false; + DosFreeModule (Handle); + end + else + begin WLibPath := true; Inc (YB, 2); - end; + end; {$ENDIF} {$ENDIF} R.Assign(6, 6, 74, YB); - inherited init(r,'Installation Successful.'); + inherited init(r,'Installation successful.'); Options:=Options or ofCentered; {$IFNDEF UNIX} @@ -941,13 +948,6 @@ program install; insert(P); end; - if MixedCasePath then - begin - R.Assign(2, 5, 64, 6); - P:=new(pstatictext,init(r,'You need to use setpath.bat file if you want to use Makefiles')); - insert(P); - end; - {$IFDEF OS2} if WLibPath then begin @@ -959,7 +959,14 @@ program install; P := New (PStaticText, Init (R, S)); Insert (P); end; - {$ENDIF} + {$ELSE OS2} + if MixedCasePath then + begin + R.Assign(2, 5, 64, 6); + P:=new(pstatictext,init(r,'You need to use setpath.bat file if you want to use Makefiles')); + insert(P); + end; + {$ENDIF OS2} {$ENDIF} R.Assign(2, YB - 13, 64, YB - 12); |