Fixed a build problem for those building in a different dir from
[rsync.git] / configure
index 811a9d2fb447ac7d22d314c126dfa1ba5db318fa..813ca5e41c0af1a775c9217017d5b967bf58d439 100755 (executable)
--- a/configure
+++ b/configure
@@ -6,27 +6,20 @@
 dir=`dirname $0`
 realconfigure="$dir/configure.sh"
 
-if [ ! -f "$realconfigure" ]; then
-    if test x"$dir" != x -a x"$dir" != x.; then
-       curdir=`pwd`
-       cd "$dir"
+if test ! -f "$realconfigure"; then
+    if test -f "$HOME/build_farm/build_test.fns"; then
+       # Allow the build farm to grab latest files via rsync.
+       fetch=fetch
     else
-       curdir=''
+       fetch=''
     fi
-    make -f prepare-source.mak proto.h
-    if make -f prepare-source.mak conf; then
+    if "$dir/prepare-source" $fetch; then
        :
-    elif [ -f "$HOME/build_farm/build_test.fns" ]; then
-       # Allow the build farm to grab latest files via rsync.
-       rsync -avz rsync://rsync.samba.org/rsyncftp/generated-files/'c*' .
     else
        echo 'Failed to build configure.sh and/or config.h.in -- giving up.' >&2
        rm -f "$realconfigure"
        exit 1
     fi
-    if test x"$curdir" != x; then
-       cd "$curdir"
-    fi
 fi
 
 exec "$realconfigure" "${@}"