summaryrefslogtreecommitdiff
path: root/json-c/src/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'json-c/src/autogen.sh')
-rw-r--r--json-c/src/autogen.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/json-c/src/autogen.sh b/json-c/src/autogen.sh
index c67b903..51d9e8e 100644
--- a/json-c/src/autogen.sh
+++ b/json-c/src/autogen.sh
@@ -1 +1,13 @@
-autoreconf -v --install || exit 1
+#!/bin/sh
+autoreconf -v --install || exit 1
+
+# If there are any options, assume the user wants to run configure.
+# To run configure w/o any options, use ./autogen.sh --configure
+if [ $# -gt 0 ] ; then
+ case "$1" in
+ --conf*)
+ shift 1
+ ;;
+ esac
+ exec ./configure "$@"
+fi