From: Yang Tse Date: Mon, 28 Jul 2008 16:17:51 +0000 (+0000) Subject: Ensure that buildconf runs from the subdirectory where configure.ac lives X-Git-Tag: cares-1_5_3~292 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57d13c770ae32f5f760a7d060003b6d8a58f96bc;p=curl Ensure that buildconf runs from the subdirectory where configure.ac lives --- diff --git a/buildconf b/buildconf index 78e2fd1c0..6bc1e9ed9 100755 --- 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 #