From 3d813204260b372894110031cde8595e700ecc85 Mon Sep 17 00:00:00 2001
From: Guenter Knauf <lists@gknw.net>
Date: Tue, 11 Jan 2011 18:22:42 +0100
Subject: [PATCH] Instead of exiting with error lets set BCCDIR self.

---
 lib/Makefile.b32 | 10 +++-------
 src/Makefile.b32 | 10 +++-------
 2 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/lib/Makefile.b32 b/lib/Makefile.b32
index 1f5d3fac2..77404a160 100644
--- a/lib/Makefile.b32
+++ b/lib/Makefile.b32
@@ -4,16 +4,12 @@
 #
 #  'lib' directory
 #
-#  'BCCDIR' has to be set up to point to the base directory
-#  of the compiler, i.e. SET BCCDIR = c:\Borland\BCC55
-#  where c:\Borland\BCC55 is the compiler is installed
-#
 #  Written by Jaepil Kim, pit@paradise.net.nz
 ############################################################
 
-# Check if BCCDIR is set.
-!if !$d(BCCDIR)
-!error BCCDIR isn't defined
+# Check if BCCDIR is set and guess if not set.
+!ifndef BCCDIR
+BCCDIR = $(MAKEDIR)/..
 !endif
 
 # Edit the path below to point to the base of your Zlib sources.
diff --git a/src/Makefile.b32 b/src/Makefile.b32
index c418f1b47..e67c549bb 100644
--- a/src/Makefile.b32
+++ b/src/Makefile.b32
@@ -4,16 +4,12 @@
 #
 #  'src' directory
 #
-#  'BCCDIR' has to be set up to point to the base directory
-#  of the compiler, i.e. SET BCCDIR = c:\Borland\BCC55
-#  where c:\Borland\BCC55 is the compiler is installed
-#
 #  Written by Jaepil Kim, pit@paradise.net.nz
 ############################################################
 
-# Check if BCCDIR is set.
-!if !$d(BCCDIR)
-!error BCCDIR isn't defined
+# Check if BCCDIR is set and guess if not set.
+!ifndef BCCDIR
+BCCDIR = $(MAKEDIR)/..
 !endif
 
 # Edit the path below to point to the base of your Zlib sources.
-- 
2.40.0