summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-03-19 11:05:29 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-03-19 11:05:29 +0000
commit2f4930851a92f9b4a8751193afad30377281284b (patch)
tree466458e70fa7ea3bc69de9310ce5d78ca0471582 /configure.ac
parentc3523782baac144662579d5c53c362cacf658d84 (diff)
downloadmpfr-2f4930851a92f9b4a8751193afad30377281284b.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 git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14481 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 11 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 6e119bc36..f5ed90f6e 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.2.0-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