aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-22 05:31:31 +0000
committerYang Tse <yangsita@gmail.com>2009-11-22 05:31:31 +0000
commit3005e63b026bb934942f9f5594c0edb108946906 (patch)
tree283742f560ab5fec03710532a0e4629109c27940
parent65e628cc97cd467ce2d11f0d1aeddaed78a0ee96 (diff)
Make configure remove the ares_build.h file included in distribution tarballs.
-rw-r--r--ares/configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/ares/configure.ac b/ares/configure.ac
index 04c903f64..7321677be 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -60,6 +60,11 @@ if test -z "$AR" || test "$AR" = "not_found"; then
fi
AC_SUBST([AR])
+dnl Remove non-configure distributed ares_build.h
+if test -f ${srcdir}/ares_build.h; then
+ rm -f ${srcdir}/ares_build.h
+fi
+
dnl Fetch c-ares version from ares_version.h
VERSION=`$SED -ne 's/^#define ARES_VERSION_STR "\(.*\)"/\1/p' ${srcdir}/ares_version.h`
AM_INIT_AUTOMAKE([c-ares], [$VERSION])