From b577df300f3fcf6e85b68e24337f6d19d091ac0f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 10 Jan 2009 00:27:52 +0000 Subject: added usage output and --help to configure script --- src/configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') 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 -- cgit v1.2.3