added a uid_wrapper library
[samba.git] / source4 / autogen.sh
index 9984712caf81ce6130446cfa53d98c14776d0f27..2d995caeaecd79e7c72d9ecb600527d057007258 100755 (executable)
@@ -4,11 +4,11 @@
 
 while true; do
     case $1 in
-       (--version-file)
+       --version-file)
            VERSION_FILE=$2
            shift 2
            ;;
-       (*)
+       *)
            break
            ;;
     esac
@@ -22,7 +22,12 @@ TESTAUTOCONF="autoconf autoconf-2.53 autoconf2.50 autoconf259 autoconf253"
 AUTOHEADERFOUND="0"
 AUTOCONFFOUND="0"
 
-
+if which which > /dev/null 2>&1; then
+        echo -n
+else
+       echo "$0: need 'which' to figure out if we have the right autoconf to build samba from git" >&2
+       exit 1
+fi
 ##
 ## Look for autoheader
 ##