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
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf