generator: no type-setup for eventcopies anymore
[free-sw/xcb/libxcb] / autogen.sh
index d68a142..fc34bd5 100755 (executable)
@@ -1,3 +1,14 @@
 #! /bin/sh
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+
 autoreconf -v --install || exit 1
-./configure "$@"
+cd $ORIGDIR || exit $?
+
+if test -z "$NOCONFIGURE"; then
+    $srcdir/configure "$@"
+fi