Skip to content

Commit

Permalink
Default autogen.sh to not running configure, unless some command line…
Browse files Browse the repository at this point in the history
… options are specified.
  • Loading branch information
hawicz committed Jul 29, 2012
1 parent 77c6239 commit 8fcfeb6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8fcfeb6

Please sign in to comment.