aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-29 02:26:21 +0000
committerYang Tse <yangsita@gmail.com>2008-07-29 02:26:21 +0000
commit52d9a3c34f4dbc6e9372d87a357efeb7fd6ce1ae (patch)
treeb31d1cdf59e887297c6c2ea2787e4bb7dc5334e5 /ares
parentd785ed2588b4bd5cceacec9a59bc5e56b6f30f2d (diff)
Tests done using 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4
in top Makefile.am triggered a problem that prevented aclocal from running successfully on SunOS 5.10 with GNU m4 1.4.5 and GNU Autoconf 2.61 A tarball which reproduces mentioned problem is the one dated July-28-2008 http://cool.haxx.se/curl-daily/curl-7.19.0-20080728.tar.gz We actually don't need all the bells and whistles that the above mechanism provides. We only need to include our m4/reentrant.m4 file in acinclude.m4 so here we go with this simpler mechanism.
Diffstat (limited to 'ares')
-rw-r--r--ares/Makefile.am2
-rw-r--r--ares/acinclude.m48
-rwxr-xr-xares/buildconf8
3 files changed, 8 insertions, 10 deletions
diff --git a/ares/Makefile.am b/ares/Makefile.am
index 04db9ecc9..a9433abdb 100644
--- a/ares/Makefile.am
+++ b/ares/Makefile.am
@@ -1,7 +1,5 @@
AUTOMAKE_OPTIONS = foreign
-ACLOCAL_AMFLAGS = -I m4
-
lib_LTLIBRARIES = libcares.la
man_MANS = $(MANPAGES)
diff --git a/ares/acinclude.m4 b/ares/acinclude.m4
index 18fac9a3e..13d1b08c4 100644
--- a/ares/acinclude.m4
+++ b/ares/acinclude.m4
@@ -2120,3 +2120,11 @@ AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
fi
])
+dnl Tests done using 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4'
+dnl in top Makefile.am triggered a problem that prevented aclocal from running
+dnl successfully on SunOS 5.10 with GNU m4 1.4.5 and GNU Autoconf 2.61
+dnl We actually don't need all the bells and whistles that the above mechanism
+dnl provides. We only need to include our m4/reentrant.m4 file here.
+
+m4_include([m4/reentrant.m4])
+
diff --git a/ares/buildconf b/ares/buildconf
index bfaf39e87..364d5a06e 100755
--- a/ares/buildconf
+++ b/ares/buildconf
@@ -1,13 +1,5 @@
#!/bin/sh
-if test -z "$ACLOCAL_FLAGS"; then
- ACLOCAL_FLAGS="-I m4"
-else
- ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4"
-fi
-export ACLOCAL_FLAGS
-echo "cares buildconf: using ACLOCAL_FLAGS: $ACLOCAL_FLAGS"
-
${LIBTOOLIZE:-libtoolize} --copy --automake --force
${ACLOCAL:-aclocal} $ACLOCAL_FLAGS
${AUTOHEADER:-autoheader}