aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-22 05:31:57 +0000
committerYang Tse <yangsita@gmail.com>2009-11-22 05:31:57 +0000
commitf9e55c99087f879e2ad8113f8b26ebc2e24a0910 (patch)
tree2195bd8899617194633d114db2779738966ffd3f /configure.ac
parent3005e63b026bb934942f9f5594c0edb108946906 (diff)
Make configure remove the curlbuild.h file included in distribution tarballs
for use by non-configure systems. As intended, configure would overwrite the distributed one when doing in-tree builds. But VPATH builds would end having two curlbuild.h files, one in the source tree and another in the build tree.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 42c09c6eb..7f051d637 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,11 @@ AC_SUBST([AR])
AC_SUBST(libext)
+dnl Remove non-configure distributed curlbuild.h
+if test -f ${srcdir}/include/curl/curlbuild.h; then
+ rm -f ${srcdir}/include/curl/curlbuild.h
+fi
+
dnl figure out the libcurl version
VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
AM_INIT_AUTOMAKE(curl,$VERSION)