From 283bc2d36c5ea0df3e047217b0392d9a1119cd6d Mon Sep 17 00:00:00 2001 From: vlefevre Date: Wed, 12 Sep 2018 13:39:57 +0000 Subject: [configure.ac] Do not check for CC and CFLAGS in gmp.h if mini-gmp is used, i.e. if --enable-mini-gmp (current option) or --with-mini-gmp (future option) is given. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13180 280ebfd0-de03-0410-8827-d642c229c3f4 --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 26ff9e60e..d2730f55b 100644 --- a/configure.ac +++ b/configure.ac @@ -216,7 +216,15 @@ dnl Warning! The following tests must be done before Autoconf selects dnl a compiler. This means that some macros such as AC_PROG_CC and dnl AM_PROG_AR must be put after the following code. -if test -z "$user_redefine_cc" && test "$cross_compiling" != yes ; then +dnl We do not do this check if mini-gmp is used. Note that the status of +dnl --enable-mini-gmp and --with-mini-gmp is already available even though +dnl these options will be handled later (at this time, --with-mini-gmp is +dnl not even handled yet). + +if test -z "$user_redefine_cc" && \ + test "$cross_compiling" != yes && \ + test "${enable_mini_gmp+set}" != set && \ + test "${with_mini_gmp+set}" != set ; then dnl We need to guess the C preprocessor instead of using AC_PROG_CPP, dnl since AC_PROG_CPP implies AC_PROG_CC, which chooses a compiler -- cgit v1.2.1