mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-07 07:04:57 +00:00
psblas3:
Fix configry for modflag.
This commit is contained in:
@@ -26,6 +26,7 @@ while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do
|
||||
done
|
||||
mkdir tmpdir_$i
|
||||
cd tmpdir_$i
|
||||
ac_ext='f90';
|
||||
AC_COMPILE_IFELSE([
|
||||
module conftest_module
|
||||
contains
|
||||
@@ -34,7 +35,7 @@ AC_COMPILE_IFELSE([
|
||||
end subroutine conftest_routine
|
||||
end module conftest_module
|
||||
],[],[])
|
||||
cd ..
|
||||
cd ..;
|
||||
ax_cv_f90_modflag="not found"
|
||||
for ax_flag in "-I " "-M" "-p"; do
|
||||
if test "$ax_cv_f90_modflag" = "not found" ; then
|
||||
@@ -50,8 +51,8 @@ for ax_flag in "-I " "-M" "-p"; do
|
||||
fi
|
||||
done
|
||||
rm -fr tmpdir_$i
|
||||
if test "$ax_flag" = "not found" ; then
|
||||
AC_MSG_ERROR([unable to find compiler flag for modules inclusion])
|
||||
if test "$ax_cv_f90_modflag" = "not found" ; then
|
||||
AC_MSG_ERROR([unable to find compiler flag for modules inclusion])
|
||||
fi
|
||||
AC_LANG_POP(Fortran)
|
||||
])])
|
||||
|
||||
@@ -6711,6 +6711,7 @@ while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do
|
||||
done
|
||||
mkdir tmpdir_$i
|
||||
cd tmpdir_$i
|
||||
ac_ext='f90';
|
||||
cat > conftest.$ac_ext <<_ACEOF
|
||||
|
||||
module conftest_module
|
||||
@@ -6725,7 +6726,7 @@ if ac_fn_fc_try_compile "$LINENO"; then :
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
cd ..
|
||||
cd ..;
|
||||
ax_cv_f90_modflag="not found"
|
||||
for ax_flag in "-I " "-M" "-p"; do
|
||||
if test "$ax_cv_f90_modflag" = "not found" ; then
|
||||
@@ -6747,8 +6748,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
fi
|
||||
done
|
||||
rm -fr tmpdir_$i
|
||||
if test "$ax_flag" = "not found" ; then
|
||||
as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" 5
|
||||
if test "$ax_cv_f90_modflag" = "not found" ; then
|
||||
as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" 5
|
||||
fi
|
||||
ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
|
||||
Reference in New Issue
Block a user