aboutsummaryrefslogtreecommitdiff
path: root/projects/build-openssl.bat
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-01-16 20:57:36 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-01-16 21:15:52 +0000
commit5f09947d28d5d8a26c813337f35e16e4c02e5513 (patch)
tree54c7d0ba6dcd97049e9b544eef6d153a6d58541f /projects/build-openssl.bat
parent224cf1c27455f872ddcbd1f4239c41d1ed3b9696 (diff)
build-openssl.bat: Added check for Perl installation
Diffstat (limited to 'projects/build-openssl.bat')
-rw-r--r--projects/build-openssl.bat15
1 files changed, 14 insertions, 1 deletions
diff --git a/projects/build-openssl.bat b/projects/build-openssl.bat
index 3703a3f2d..24410dc1b 100644
--- a/projects/build-openssl.bat
+++ b/projects/build-openssl.bat
@@ -6,7 +6,7 @@ rem * / __| | | | |_) | |
rem * | (__| |_| | _ <| |___
rem * \___|\___/|_| \_\_____|
rem *
-rem * Copyright (C) 2012 - 2014, Steve Holme, <steve_holme@hotmail.com>.
+rem * Copyright (C) 2012 - 2015, Steve Holme, <steve_holme@hotmail.com>.
rem *
rem * This software is licensed as described in the file COPYING, which
rem * you should have received as part of this distribution. The terms
@@ -105,6 +105,14 @@ rem ***************************************************************************
rem Check we have Visual Studio installed
if not exist "%PF%\%VC_PATH%" goto novc
+ rem Check we have Perl installed
+ echo %PATH% | findstr /I /C:"\Perl" 1>nul
+ if errorlevel 1 (
+ if not exist "%SystemDrive%\Perl" (
+ if not exist "%SystemDrive%\Perl64" goto noperl
+ )
+ )
+
rem Check the start directory exists
if not exist "%START_DIR%" goto noopenssl
@@ -308,6 +316,11 @@ rem ***************************************************************************
echo Error: %VC_DESC% is not installed
goto error
+:noperl
+ echo.
+ echo Error: Perl is not installed
+ goto error
+
:nox64
echo.
echo Error: %VC_DESC% does not support 64-bit builds