summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-10 00:27:52 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-10 00:27:52 +0000
commitb577df300f3fcf6e85b68e24337f6d19d091ac0f (patch)
tree8c8c7aae306b7e6e1e744b434bfd4cc828f57d9b
parentno crypto wokrs now with new build scripts (diff)
added usage output and --help to configure script
-rwxr-xr-xsrc/configure14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/configure b/src/configure
index 1664f30..fbbe771 100755
--- a/src/configure
+++ b/src/configure
@@ -42,6 +42,15 @@ CRYPTO_LIB='gcrypt'
ANYTUN_02_COMPAT=0
V4_MAPPED=1
+print_usage() {
+ echo "configure --help print this"
+ echo " --use-ssl-crypto use ssl crypto library instead of libgcrypt"
+ echo " --disable-crypto disable crypto at all (only NULL cipher)"
+ echo " --enable-anytun02-compat enable compatiblity mode for anytun 0.2"
+ echo " --disable-v4-mapped disable V4-Mapped addresses (until now this means"
+ echo " to disable IPv6 as outer protocol)"
+}
+
for arg
do
case $arg in
@@ -57,8 +66,13 @@ do
--disable-v4-mapped)
V4_MAPPED=0
;;
+ --help)
+ print_usage
+ exit 0
+ ;;
*)
echo "Unknown argument: $arg"
+ print_usage
exit 1
;;
esac