2014-01-04 17:00:08 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo '---------------------------------------------------------------------'
|
|
|
|
echo 'SoftEther VPN for Unix'
|
|
|
|
echo
|
|
|
|
echo 'Copyright (c) SoftEther VPN Project at University of Tsukuba, Japan.'
|
|
|
|
echo 'Copyright (c) Daiyuu Nobori. All Rights Reserved.'
|
|
|
|
echo
|
|
|
|
echo 'This program is free software; you can redistribute it and/or'
|
|
|
|
echo 'modify it under the terms of the GNU General Public License'
|
|
|
|
echo 'version 2 as published by the Free Software Foundation.'
|
2014-01-07 00:40:52 +04:00
|
|
|
echo
|
|
|
|
echo 'Read and understand README.TXT, LICENSE.TXT and WARNING.TXT before use.'
|
2014-01-04 17:00:08 +04:00
|
|
|
echo '---------------------------------------------------------------------'
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo 'Welcome to the corner-cutting configure script !'
|
|
|
|
echo
|
2014-08-18 15:48:08 +04:00
|
|
|
|
2018-05-22 23:20:41 +03:00
|
|
|
if [ ! -d "tmp" ]; then
|
|
|
|
mkdir tmp
|
|
|
|
fi
|
2014-01-04 17:00:08 +04:00
|
|
|
|
2018-06-28 14:23:21 +03:00
|
|
|
if [ ! -z ${CMAKE_INSTALL_PREFIX+x} ]; then
|
|
|
|
CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
|
|
|
|
fi
|
|
|
|
|
2018-07-31 12:49:55 +03:00
|
|
|
if [ -z ${OPENSSL_ROOT_DIR} ]; then
|
|
|
|
unameOut="$(uname -s)"
|
|
|
|
if [ "$unameOut" = "Darwin" ]; then
|
|
|
|
echo "Environment variable OPENSSL_ROOT_DIR not set, using default Homebrew path: /usr/local/opt/openssl/"
|
|
|
|
export OPENSSL_ROOT_DIR="/usr/local/opt/openssl/"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2018-06-28 14:23:21 +03:00
|
|
|
(cd tmp && cmake ${CMAKE_FLAGS} .. || exit 1)
|
|
|
|
|
2014-01-04 17:00:08 +04:00
|
|
|
|
2018-05-22 23:20:41 +03:00
|
|
|
echo ""
|
2014-01-04 17:00:08 +04:00
|
|
|
|
2018-05-22 23:20:41 +03:00
|
|
|
echo "The Makefile is generated. Run 'make -C tmp' to build SoftEther VPN."
|