#!/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.'
echo
echo 'Read and understand README.TXT, LICENSE.TXT and WARNING.TXT before use.'
echo '---------------------------------------------------------------------'
echo

echo 'Welcome to the corner-cutting configure script !'
echo

if [ ! -d "tmp" ]; then
  mkdir tmp
fi

(cd tmp && cmake .. || exit 1)

echo ""

echo "The Makefile is generated. Run 'make -C tmp' to build SoftEther VPN."