Simplify autogen.sh
[platform/core/uifw/at-spi2-atk.git] / autogen.sh
index e1cbd26..78dabeb 100755 (executable)
@@ -1,10 +1,15 @@
 #!/bin/sh
 #!/bin/sh
-# Run this to generate all the initial makefiles, etc.
 
 
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
 
 
-PKG_NAME="at-spi"
-REQUIRED_AUTOMAKE_VERSION=1.9
+olddir=`pwd`
+cd "$srcdir"
+
+# gnome-autogen.sh runs configure, so do likewise.
+autoreconf -vif
+
+cd "$olddir"
+
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
 
 
-USE_GNOME2_MACROS=1 . gnome-autogen.sh