Skip to content

Commit

Permalink
Make configure remove the curlbuild.h file included in distribution t…
Browse files Browse the repository at this point in the history
…arballs

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.
  • Loading branch information
yangtse committed Nov 22, 2009
1 parent 3005e63 commit f9e55c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configure.ac
Expand Up @@ -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)
Expand Down

0 comments on commit f9e55c9

Please sign in to comment.