summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-09-04 09:12:33 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2013-09-04 19:22:21 -0400
commit14854e76470aa8022df8a5a070661cf4f15010a9 (patch)
treee86c36bf80979592529aa0bd9e3782ddd276a79f /autogen.sh
parent4df1b7d6db7303f21953e3349e226238bcfd74dc (diff)
downloadlibnice-14854e76470aa8022df8a5a070661cf4f15010a9.tar.gz
autogen.sh: Honor NOCONFIGURE=1
This is adapted from telepathy-logger's autogen.sh. See http://people.gnome.org/~walters/docs/build-api.txt for rationale behind NOCONFIGURE=1.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh25
1 files changed, 15 insertions, 10 deletions
diff --git a/autogen.sh b/autogen.sh
index d58c834..2f58146 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,16 +6,21 @@ gtkdocize || exit 1
autoreconf -fi
-run_configure=true
-for arg in $*; do
- case $arg in
- --no-configure)
- run_configure=false
- ;;
- *)
- ;;
- esac
-done
+# Honor NOCONFIGURE for compatibility with gnome-autogen.sh
+if test x"$NOCONFIGURE" = x; then
+ run_configure=true
+ for arg in $*; do
+ case $arg in
+ --no-configure)
+ run_configure=false
+ ;;
+ *)
+ ;;
+ esac
+ done
+else
+ run_configure=false
+fi
if test $run_configure = true; then
./configure "$@"