mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r21303] Removed duplicated INSTALL_SCRIPT_FILES macro from fortran/examples and fixed an autotools warning from the Fortran 2003 configure.in changes. Tested on jam (minor changes).
This commit is contained in:
parent
dc09f2117c
commit
be904e0eae
9
configure
vendored
9
configure
vendored
@ -6337,20 +6337,19 @@ fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports ISO_C_BINDING module" >&5
|
||||
$as_echo_n "checking if Fortran compiler supports ISO_C_BINDING module... " >&6; }
|
||||
|
||||
|
||||
cat > conftest.$ac_ext <<_ACEOF
|
||||
program main
|
||||
|
||||
USE iso_c_binding
|
||||
|
||||
USE iso_c_binding
|
||||
end
|
||||
_ACEOF
|
||||
if ac_fn_fc_try_compile "$LINENO"; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
HAVE_ISO_C_BINDING="yes"
|
||||
$as_echo "yes" >&6; } HAVE_ISO_C_BINDING="yes"
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
|
||||
|
@ -529,11 +529,10 @@ if test "X$HDF_FORTRAN" = "Xyes"; then
|
||||
|
||||
AC_MSG_CHECKING([if Fortran compiler supports ISO_C_BINDING module])
|
||||
|
||||
AC_TRY_COMPILE(,[
|
||||
USE iso_c_binding
|
||||
], [AC_MSG_RESULT(yes)
|
||||
HAVE_ISO_C_BINDING="yes"],
|
||||
AC_MSG_RESULT(no))
|
||||
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([],[USE iso_c_binding]),
|
||||
[AC_MSG_RESULT(yes) HAVE_ISO_C_BINDING="yes"],
|
||||
AC_MSG_RESULT(no)
|
||||
)
|
||||
|
||||
if test "X$HAVE_ISO_C_BINDING" = "Xno"; then
|
||||
AC_MSG_ERROR([Fortran compiler does not have ISO_C_BINDING; unsupported Fortran 2003 compiler, remove --enable-fortran2003])
|
||||
|
@ -42,7 +42,6 @@ INSTALL_FILES=dsetexample.f90 fileexample.f90 rwdsetexample.f90 \
|
||||
hyperslab.f90 selectele.f90 grpit.f90 refobjexample.f90 \
|
||||
refregexample.f90 mountexample.f90 compound.f90 ph5example.f90
|
||||
INSTALL_SCRIPT_FILES = run-fortran-ex.sh
|
||||
INSTALL_SCRIPT_FILES = run-fortran-ex.sh
|
||||
|
||||
|
||||
# Add attention tests for Fortran 2003 features
|
||||
|
Loading…
Reference in New Issue
Block a user