Use configure scripts included in the tarball, if they exist.  This is to avoid problems caused by trying to re-generate the configure scripts using older versions of Autotools than the ones that were used to generate the scripts in the tarball.



git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3953 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/release/build-compat-osx b/release/build-compat-osx
index fd85bda..af492c5 100755
--- a/release/build-compat-osx
+++ b/release/build-compat-osx
@@ -15,7 +15,9 @@
 LDFLAGS=$CFLAGS
 CPPFLAGS=$CFLAGS
 export CFLAGS CXXFLAGS LDFLAGS CPPFLAGS CC CXX CPP
-autoreconf -fiv
+if [ ! -f ./configure ]; then
+    autoreconf -fiv
+fi
 configure --x-libraries=/usr/X11R6/lib/
 make
 popd