summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-09-07 07:22:32 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-09-07 07:22:32 +0000
commit633be2bc19b790bf3b5d83573a500594f028f687 (patch)
treee52a0fb71adda89f68c05206032b13ef3ffd02c7
parent8a127af3dc24b663a40d18af558cc5ec7032cf9b (diff)
downloadmpfr-633be2bc19b790bf3b5d83573a500594f028f687.tar.gz
[configure.ac] Avoid an issue with ordering of macros we don't use
explicitly, which appears with ax_pthread.m4 29, i.e. with https://github.com/autoconf-archive/autoconf-archive/commit/2567e0ce0f3a11b535c6b527386197fb49ff172b (merged changeset r14481 from the trunk) git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/branches/4.1@14572 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--configure.ac13
1 files changed, 11 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index d46a1fbd3..245acd2eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,6 +28,17 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
dnl Add check-news when it checks for more than 15 lines
AC_INIT([MPFR],[4.1.1-dev])
+dnl AC_CANONICAL_HOST is needed by this configure.ac file.
+dnl AC_CANONICAL_TARGET is not explicitly needed, but may be required by
+dnl some other macros (e.g. AX_PTHREAD 29, committed on 2021-02-19) and
+dnl must be called quite early in order to avoid the following warning:
+dnl warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
+dnl (we don't use AC_ARG_PROGRAM explicitly, but again, it is invoked by
+dnl another macro, apparently AM_INIT_AUTOMAKE).
+dnl So we need to call AC_CANONICAL_TARGET here, even if we don't use it.
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+
dnl Older Automake versions than 1.13 may still be supported, but no longer
dnl tested, and many things have changed in 1.13. Moreover the INSTALL file
dnl and MPFR manual assume that MPFR has been built using Automake 1.13+
@@ -69,8 +80,6 @@ fi
dnl Basic Autoconf macros. At this point, they must not make Autoconf
dnl choose a compiler because of the CC and CFLAGS setup from gmp.h!
-AC_CANONICAL_HOST
-
AC_PROG_EGREP
AC_PROG_SED