]> granicus.if.org Git - curl/commitdiff
Ensure that buildconf runs from the subdirectory where configure.ac lives
authorYang Tse <yangsita@gmail.com>
Mon, 28 Jul 2008 16:17:51 +0000 (16:17 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 28 Jul 2008 16:17:51 +0000 (16:17 +0000)
buildconf

index 78e2fd1c0678ed83739c3728a0134efa20448900..6bc1e9ed9396a275fc2d1daca251c2173945bfae 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -43,6 +43,18 @@ findtool(){
   done
 }
 
+#--------------------------------------------------------------------------
+# Ensure that buildconf runs from the subdirectory where configure.ac lives
+#
+if test ! -f configure.ac ||
+  test ! -f src/main.c ||
+  test ! -f lib/urldata.h ||
+  test ! -f include/curl/curl.h; then
+  echo "Can not run buildconf from outside of curl's source subdirectory!"
+  echo "Change to the subdirectory where buildconf is found, and try again."
+  exit 1
+fi
+
 #--------------------------------------------------------------------------
 # autoconf 2.57 or newer
 #