summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-11-13 20:09:39 +0000
committerChristian Pointner <equinox@anytun.org>2009-11-13 20:09:39 +0000
commit49e88ebb5db987c44962800f04120f1029bd770c (patch)
treeb73c6d8efb005516b024a9ea10dba1f3f15b61e2 /src
parentfixed include guards, new format: UANYTUN_filename_h_INCLUDED (diff)
improved error handling at configure arguments
Diffstat (limited to 'src')
-rwxr-xr-xsrc/configure16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/configure b/src/configure
index 00944c7..075d8f5 100755
--- a/src/configure
+++ b/src/configure
@@ -110,15 +110,21 @@ do
exit 0
;;
*)
- if [ $EBUILD_COMPAT -ne 1 ]; then
- echo "Unknown argument: $arg"
- print_usage
- exit 1
- fi
+ ERRORS="$ERRORS $arg"
;;
esac
done
+if [ -n "$ERRORS" ] && [ $EBUILD_COMPAT -ne 1 ]; then
+ for error in $ERRORS; do
+ echo "Unknown argument: $error"
+ done
+
+ print_usage
+ exit 1
+fi
+
+
rm -f include.mk
case $TARGET in
Linux)