Greetings,
I've added two new macros to the Starlink autoconf.
# AC_FC_CHECK_INTRINSICS(function ...)
# ------------------------------------
#
# Like AC_CHECK_FUNCS, but instead determine the intrinsics available
# to the Fortran compiler. For each intrinsic in the
# (whitespace-separated and case-insensitive) argument list, define
# HAVE_INTRINSIC_intrinsic if it is available. For example,
# AC_FC_CHECK_INTRINSICS(sin) would define HAVE_INTRINSIC_SIN if the
# `sin' intrinsic function were available (there are probably rather
# few Fortrans which don't have this function).
#
# AC_FC_RECL_UNIT
# ----------------
#
# When opening a file for direct access, you must specify
# the record length with the @samp{OPEN} specifier @samp{RECL};
# however in the case of unformatted direct access files, the
# @emph{units} of this specifier are processor dependent, and may be
# words or bytes. This macro determines the units and defines
# @samp{FC_RECL_UNIT} to contain the number of bytes (1, 2, 4, 8, ...)
# in
# the processor's unit of measurement.
#
# Note that unformatted files are not themselves portable, and should
# only be used as either temporary files, or as data files which will
# be read by a program or library compiled with the same Fortran
# processor. With this macro, however, you can read and write such
# files in a portable way.
The first is the nonce function that was in libraries/prm/configure.ac,
now promoted to a general one, and the second is one that Tim wanted.
Both of these are in the set of macros that I will be submitting to the
autoconf list, once we've tested this lot out by using it on a wider
range of platforms.
These will appear in the next release of SSN/78.
Norman
--
---------------------------------------------------------------------------
Norman Gray http://www.astro.gla.ac.uk/users/norman/
Physics and Astronomy, University of Glasgow, UK [log in to unmask]
|