Paul Eggert
2015-10-08 19:53:37 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=5ad3567c3cbd90b4faa6539c35bc4a8c6500f535
The branch, master has been updated
via 5ad3567c3cbd90b4faa6539c35bc4a8c6500f535 (commit)
from 244d3f9acb92e08b40699c572d15c44999bd41f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5ad3567c3cbd90b4faa6539c35bc4a8c6500f535
Author: Thomas Jahns <***@dkrz.de>
Date: Thu Oct 8 10:12:41 2015 +0200
Add -mdir flag for NAG Fortran compiler
* lib/autoconf/fortran.m4 (AC_FC_MODULE_OUTPUT_FLAG):
Also try -mdir. Also, prefer autoconf macros instead of verbatim shell
code and make tests safer.
Copyright-paperwork-exempt: yes
-----------------------------------------------------------------------
Summary of changes:
lib/autoconf/fortran.m4 | 22 +++++++++-------------
1 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index fd3d5b1..bd4245a 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -1818,7 +1818,7 @@ ac_cv_fc_module_output_flag=unknown
ac_fc_module_output_flag_FCFLAGS_save=$FCFLAGS
# Flag ordering is significant: put flags late which some compilers use
# for the search path.
-for ac_flag in -J '-J ' -fmod= -moddir= +moddir= -qmoddir= '-mod ' \
+for ac_flag in -J '-J ' -fmod= -moddir= +moddir= -qmoddir= '-mdir ' '-mod ' \
'-module ' -M '-Am -M' '-e m -J '; do
FCFLAGS="$ac_fc_module_output_flag_FCFLAGS_save ${ac_flag}sub"
AC_COMPILE_IFELSE([[
@@ -1834,25 +1834,21 @@ for ac_flag in -J '-J ' -fmod= -moddir= +moddir= -qmoddir= '-mod ' \
use conftest_module
call conftest_routine
end program]],
- [ac_cv_fc_module_output_flag="$ac_flag"])
+ [ac_cv_fc_module_output_flag=$ac_flag])
cd ..
- if test "$ac_cv_fc_module_output_flag" != unknown; then
- break
- fi])
+ AS_IF([test x"$ac_cv_fc_module_output_flag" != xunknown],[break])])
done
FCFLAGS=$ac_fc_module_output_flag_FCFLAGS_save
cd ..
rm -rf conftest.dir
AC_LANG_POP([Fortran])
])
-if test "$ac_cv_fc_module_output_flag" != unknown; then
- FC_MODOUT=$ac_cv_fc_module_output_flag
- $1
-else
- FC_MODOUT=
- m4_default([$2],
- [AC_MSG_ERROR([unable to find compiler flag to write module information to])])
-fi
+AS_IF([test x"$ac_cv_fc_module_output_flag" != xunknown],
+ [FC_MODOUT=$ac_cv_fc_module_output_flag
+ $1],
+ [FC_MODOUT=
+ m4_default([$2],
+ [AC_MSG_ERROR([unable to find compiler flag to write module information to])])])
AC_SUBST([FC_MODOUT])
# Ensure trailing whitespace is preserved in a Makefile.
AC_SUBST([ac_empty], [""])
hooks/post-receive
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=5ad3567c3cbd90b4faa6539c35bc4a8c6500f535
The branch, master has been updated
via 5ad3567c3cbd90b4faa6539c35bc4a8c6500f535 (commit)
from 244d3f9acb92e08b40699c572d15c44999bd41f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5ad3567c3cbd90b4faa6539c35bc4a8c6500f535
Author: Thomas Jahns <***@dkrz.de>
Date: Thu Oct 8 10:12:41 2015 +0200
Add -mdir flag for NAG Fortran compiler
* lib/autoconf/fortran.m4 (AC_FC_MODULE_OUTPUT_FLAG):
Also try -mdir. Also, prefer autoconf macros instead of verbatim shell
code and make tests safer.
Copyright-paperwork-exempt: yes
-----------------------------------------------------------------------
Summary of changes:
lib/autoconf/fortran.m4 | 22 +++++++++-------------
1 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index fd3d5b1..bd4245a 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -1818,7 +1818,7 @@ ac_cv_fc_module_output_flag=unknown
ac_fc_module_output_flag_FCFLAGS_save=$FCFLAGS
# Flag ordering is significant: put flags late which some compilers use
# for the search path.
-for ac_flag in -J '-J ' -fmod= -moddir= +moddir= -qmoddir= '-mod ' \
+for ac_flag in -J '-J ' -fmod= -moddir= +moddir= -qmoddir= '-mdir ' '-mod ' \
'-module ' -M '-Am -M' '-e m -J '; do
FCFLAGS="$ac_fc_module_output_flag_FCFLAGS_save ${ac_flag}sub"
AC_COMPILE_IFELSE([[
@@ -1834,25 +1834,21 @@ for ac_flag in -J '-J ' -fmod= -moddir= +moddir= -qmoddir= '-mod ' \
use conftest_module
call conftest_routine
end program]],
- [ac_cv_fc_module_output_flag="$ac_flag"])
+ [ac_cv_fc_module_output_flag=$ac_flag])
cd ..
- if test "$ac_cv_fc_module_output_flag" != unknown; then
- break
- fi])
+ AS_IF([test x"$ac_cv_fc_module_output_flag" != xunknown],[break])])
done
FCFLAGS=$ac_fc_module_output_flag_FCFLAGS_save
cd ..
rm -rf conftest.dir
AC_LANG_POP([Fortran])
])
-if test "$ac_cv_fc_module_output_flag" != unknown; then
- FC_MODOUT=$ac_cv_fc_module_output_flag
- $1
-else
- FC_MODOUT=
- m4_default([$2],
- [AC_MSG_ERROR([unable to find compiler flag to write module information to])])
-fi
+AS_IF([test x"$ac_cv_fc_module_output_flag" != xunknown],
+ [FC_MODOUT=$ac_cv_fc_module_output_flag
+ $1],
+ [FC_MODOUT=
+ m4_default([$2],
+ [AC_MSG_ERROR([unable to find compiler flag to write module information to])])])
AC_SUBST([FC_MODOUT])
# Ensure trailing whitespace is preserved in a Makefile.
AC_SUBST([ac_empty], [""])
hooks/post-receive
--
GNU Autoconf source repository
GNU Autoconf source repository