[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:
Dana Robinson 2011-08-23 16:18:19 -05:00
parent dc09f2117c
commit be904e0eae
3 changed files with 8 additions and 11 deletions

9
configure vendored
View File

@ -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

View File

@ -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])

View File

@ -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