Home My Page Projects MPC (Multiple Precision Complex)
Summary Activity Tracker Lists Tasks SCM

[#14669] configure: Use of (__GMP_)CC from gmp.h broken [MPC 1.0]

Date:
2012-07-27 21:10
Priority:
3
State:
Closed
Submitted by:
Leif Leonhardy (leif)
Assigned to:
Andreas Enge (enge)
Category:
None
Group:
None
Resolution:
Fixed
 
Summary:
configure: Use of (__GMP_)CC from gmp.h broken [MPC 1.0]

Detailed description
Due to the added call to AM_PROG_AR in configure.ac, the CC setting from gmp.h is never used, since it gets overridden by the then already set ac_cv_prog_CC (previously cached value). (Using AM_PROG_AR triggers a lot of compiler checks, in this case too early.)

The attached patch simply moves the call to AM_PROG_AR past the one of MPC_GMP_CC_CFLAGS.

See http://trac.sagemath.org/sage_trac/ticket/13290#comment:13 ff. for some more details.


-leif

Followup

Message
Date: 2012-07-27 21:51
Sender: Leif Leonhardy

> I applied the patch to the trunk and the 1.0 branch. A bug fix release 1.0.1 is planned for the end of August.

Thanks!
Date: 2012-07-27 21:39
Sender: Andreas Enge

I confirm the problem and admit I tested only the propagation of the CFLAGS, which seems to work. This part of the configuration is really tricky.

Thanks for working this out. I applied the patch to the trunk and the 1.0 branch. A bug fix release 1.0.1 is planned for the end of August.

Attached Files:

Attachments:
configure.ac.patch

Changes:

Field Old Value Date By
ResolutionNone2012-07-27 21:39enge
status_idOpen2012-07-27 21:39enge
close_dateNone2012-07-27 21:39enge
assigned_tonone2012-07-27 21:39enge
File Added2525: configure.ac.patch2012-07-27 21:10leif