summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 38c926c..938db10 100755
--- a/configure
+++ b/configure
@@ -29,8 +29,11 @@ for arg; do
 		prefix="$(printf "%s" "$arg" | cut -d= -f2-)"
 	elif printf "%s" "$arg" | grep -q "^--bindir="; then
 		bindir="$(printf "%s" "$arg" | cut -d= -f2-)"
-	else
+	elif printf "%s" "$arg" | grep -q "^--"; then
 		unrecognized="$unrecognized $arg"
+	else
+		echo "Error: unexpected argument: $arg" >&2
+		exit 64 # EX_USAGE
 	fi
 done