Next Up Previous Contents
Next: A.16 STAR_DECLARE_DEPENDENCIES
Up: A The Starconf macros and variables
Previous: A.14 STAR_CHECK_PROGS
[ID index][Keyword index]

A.15 STAR_CNF_COMPATIBLE_SYMBOLS

STAR_CNF_COMPATIBLE_SYMBOLS

Work out what is required to have the Fortran compiler produce library symbols which are compatible with those expected by the CNF package. If you are building a library which includes Fortran code, then you should call this macro, which possibly adjusts the FCFLAGS variable.

At present, all this macro has to do is simply work out whether it needs to stop g77 adding a second underscore to generated symbol names (it adds a single underscore to most Fortran symbols, but by default adds two when the symbol name already contains an underscore); the other Fortran compilers we use don't need any extra options, as it happens. However this could potentially be much more complicated. The autoconf AC_F77_WRAPPERS macro detects more possibilities, but probably not a completely exhaustive set. In future it might be necessary to extend the CNF macros, by somehow merging the results of AC_F77_WRAPPERS into it, and at that point it might be necessary to extend this macro.

This macro is designed to work with CNF, however it does not require the cnf.h headers to be installed, because it should remain callable at configuration time before anything has been installed. Instead we fake the functionality of the definition F77_EXTERNAL_NAME in cnf.h, which appends an underscore (just one) to the end of C symbols.


Next Up Previous Contents
Next: A.16 STAR_DECLARE_DEPENDENCIES
Up: A The Starconf macros and variables
Previous: A.14 STAR_CHECK_PROGS
[ID index][Keyword index]
The Starlink Build System
Starlink System Note 78
Norman Gray, Peter W Draper, Mark B Taylor, Steven E Rankin
11 April 2005. Release snapshot: $Revision: 1.116 $. Last updated 28 May 2006