]> granicus.if.org Git - json-c/commitdiff
Default autogen.sh to not running configure, unless some command line options are...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 29 Jul 2012 17:18:37 +0000 (12:18 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 29 Jul 2012 17:18:37 +0000 (12:18 -0500)
autogen.sh

index 169d6899771e0dd321d053667da90e65548576c7..69e765a602787ef0c915c105c500440ec32dfb35 100755 (executable)
@@ -1,5 +1,13 @@
 #!/bin/sh
 autoreconf -v --install || exit 1
-if test -z "$NOCONFIGURE"; then
+
+# 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