Fix configry for modflag.
psblas-3.4-maint
Salvatore Filippone 9 years ago
parent 3ee0891b1f
commit 7871ffc824

@ -26,6 +26,7 @@ while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do
done done
mkdir tmpdir_$i mkdir tmpdir_$i
cd tmpdir_$i cd tmpdir_$i
ac_ext='f90';
AC_COMPILE_IFELSE([ AC_COMPILE_IFELSE([
module conftest_module module conftest_module
contains contains
@ -34,7 +35,7 @@ AC_COMPILE_IFELSE([
end subroutine conftest_routine end subroutine conftest_routine
end module conftest_module end module conftest_module
],[],[]) ],[],[])
cd .. cd ..;
ax_cv_f90_modflag="not found" ax_cv_f90_modflag="not found"
for ax_flag in "-I " "-M" "-p"; do for ax_flag in "-I " "-M" "-p"; do
if test "$ax_cv_f90_modflag" = "not found" ; then if test "$ax_cv_f90_modflag" = "not found" ; then
@ -50,8 +51,8 @@ for ax_flag in "-I " "-M" "-p"; do
fi fi
done done
rm -fr tmpdir_$i rm -fr tmpdir_$i
if test "$ax_flag" = "not found" ; then if test "$ax_cv_f90_modflag" = "not found" ; then
AC_MSG_ERROR([unable to find compiler flag for modules inclusion]) AC_MSG_ERROR([unable to find compiler flag for modules inclusion])
fi fi
AC_LANG_POP(Fortran) AC_LANG_POP(Fortran)
])]) ])])

7
configure vendored

@ -6711,6 +6711,7 @@ while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do
done done
mkdir tmpdir_$i mkdir tmpdir_$i
cd tmpdir_$i cd tmpdir_$i
ac_ext='f90';
cat > conftest.$ac_ext <<_ACEOF cat > conftest.$ac_ext <<_ACEOF
module conftest_module module conftest_module
@ -6725,7 +6726,7 @@ if ac_fn_fc_try_compile "$LINENO"; then :
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cd .. cd ..;
ax_cv_f90_modflag="not found" ax_cv_f90_modflag="not found"
for ax_flag in "-I " "-M" "-p"; do for ax_flag in "-I " "-M" "-p"; do
if test "$ax_cv_f90_modflag" = "not found" ; then 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 fi
done done
rm -fr tmpdir_$i rm -fr tmpdir_$i
if test "$ax_flag" = "not found" ; then if test "$ax_cv_f90_modflag" = "not found" ; then
as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" 5 as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" 5
fi fi
ac_ext=c ac_ext=c
ac_cpp='$CPP $CPPFLAGS' ac_cpp='$CPP $CPPFLAGS'

Loading…
Cancel
Save