Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordnobori <da.git@softether.co.jp>2014-01-04 17:00:08 +0400
committerdnobori <da.git@softether.co.jp>2014-01-04 17:00:08 +0400
commit749497dde0a1dd08c434a73b9d4e93dc3e3326d9 (patch)
tree7c83a55919c0f1aa1267c4dbcd008f1644f961ee /configure
parentd433e567a561f8ae094a535025b02c7dc47026c6 (diff)
v4.03-9408-rtm
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure76
1 files changed, 76 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 00000000..7b7c249e
--- /dev/null
+++ b/configure
@@ -0,0 +1,76 @@
+#!/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
+
+echo 'Welcome to the corner-cutting configure script !'
+echo
+echo 'Select your operating system below:'
+echo ' 1: Linux'
+echo ' 2: FreeBSD'
+echo ' 3: Solaris'
+echo ' 4: Mac OS X'
+echo
+echo -n 'Which is your operating system (1 - 4) ? : '
+read TMP
+echo
+OS=""
+if test "$TMP" = "1"
+then
+ OS="linux"
+fi
+if test "$TMP" = "2"
+then
+ OS="freebsd"
+fi
+if test "$TMP" = "3"
+then
+ OS="solaris"
+fi
+if test "$TMP" = "4"
+then
+ OS="macos"
+fi
+
+if test "$OS" = ""
+then
+ echo "Wrong number."
+ exit 1
+fi
+
+echo 'Select your CPU bits below:'
+echo ' 1: 32-bit'
+echo ' 2: 64-bit'
+echo
+echo -n 'Which is the type of your CPU (1 - 2) ? : '
+read TMP
+echo
+CPU=""
+if test "$TMP" = "1"
+then
+ CPU="32bit"
+fi
+if test "$TMP" = "2"
+then
+ CPU="64bit"
+fi
+
+if test "$CPU" = ""
+then
+ echo "Wrong number."
+ exit 1
+fi
+
+cp src/makefiles/${OS}_${CPU}.mak Makefile
+
+echo "The Makefile is generated. Run 'make' to build SoftEther VPN."
+