autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xlf95 does not accept "-D" from autoconf


From: Christoffer Hirth
Subject: Re: xlf95 does not accept "-D" from autoconf
Date: Tue, 21 Jun 2011 21:25:43 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110601 Lightning/1.0b2 Thunderbird/3.1.10

Den 21. juni 2011 20:55, skrev Ralf Wildenhues:
* Christoffer Hirth wrote on Tue, Jun 21, 2011 at 03:00:12PM CEST:
Jim Edwards wrote:
    However on machines using IBM's fortran compiler (xlf90 or 95)
    compilation fails due to unsupported defined variables "-DPACKAGENAME"
    etc.
    On ibm this should be passed as -WF,-DPACKAGENAME.

    How can I modify autotools behaviour, or simply skip these definitions
    (they are not used)?

AC_FC_PP_DEFINE()  in recent autoconf versions handles this correctly.
AC_FC_PP_DEFINE seems to be included in commit
8c2db1c128fbcee77530b813f45a575c37a0f10f
at 2. apr. 2011.

The latest version however is dated 22. sep. 2010, so I would have to
build this from git?
Right.

Are there no known solutions in latest stable?
No, sorry; but the Autoconf Macro Archive has a similar macro IIRC.
Also note that AC_FC_PP_DEFINE is not a full solution to the
problem.  Automake still uses $(DEFS) instead of switching to a new
variable like $(FCDEFS) or so, which Autoconf still needs to export.
Ok. I have currently just set
"DEFS = "
in every Makefile.am to ensure it is empty.

If possible it would perhaps be cleaner to include AC_FC_PP_DEFINE as a local macro (simply copy from commit),
and then set:
"FCDEFS = $DEFS
AC_SUBST([$DEFS])"

Would this work as a better solution?


-- Christoffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]