Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
27923cea
Commit
27923cea
authored
3 years ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
Update cfortran-related m4 macros: make them work when either FC or F77 is disabled.
parent
8dbaf838
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!34
Version 2.2.0
,
!13
Consolidation with CDI-PIO (develop)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
m4/acx_cfortran_flags.m4
+10
-6
10 additions, 6 deletions
m4/acx_cfortran_flags.m4
m4/acx_check_cfortran.m4
+1
-2
1 addition, 2 deletions
m4/acx_check_cfortran.m4
with
11 additions
and
8 deletions
m4/acx_cfortran_flags.m4
+
10
−
6
View file @
27923cea
...
...
@@ -150,13 +150,17 @@ dnl check f77 flag matches fc flag
AC_PROVIDE_IFELSE([AC_PROG_F77],
[AC_PROVIDE_IFELSE([AC_PROG_FC],
[dnl both FC and F77 are configured
AS_IF([test -z "$FC" -o X"$FC" != Xno],
[acx_cv_cf_flag="$acx_cv_fc_cf_flag (probed)"],
[test -z "$F77" -o X"$F77" != Xno],
[acx_cv_cf_flag="$acx_cv_f77_cf_flag (probed)"],
AS_IF([test -z "$FC" -o X"$FC" = Xno],
[dnl FC compiler is not available, take the flag for F77
acx_cv_cf_flag="$acx_cv_f77_cf_flag (probed)"],
[test -z "$F77" -o X"$F77" = Xno],
[dnl F77 compiler is not available, take the flag for FC
acx_cv_cf_flag="$acx_cv_fc_cf_flag (probed)"],
[AS_IF([test x"$acx_cv_f77_cf_flag" = x"$acx_cv_fc_cf_flag"],
[acx_cv_cf_flag="$acx_cv_f77_cf_flag (probed)"],
[AC_MSG_ERROR([cfortran.h flag for $F77 does not match the flag for $FC.
[dnl the flags for both compilers are the same
acx_cv_cf_flag="$acx_cv_f77_cf_flag (probed)"],
[dnl FC and F77 need different flags
AC_MSG_ERROR([cfortran.h flag for $F77 does not match the flag for $FC.
Have you configured compatible compilers?])])])
])],[acx_cv_cf_flag="$acx_cv_fc_cf_flag (probed)"])
])
...
...
This diff is collapsed.
Click to expand it.
m4/acx_check_cfortran.m4
+
1
−
2
View file @
27923cea
...
...
@@ -204,8 +204,7 @@ dnl
AC_DEFUN([ACX_CHECK_CFORTRAN],
[AC_CACHE_CHECK([if C externals constructed with cfortran.h work],
[acx_cv_cfortran_works],
[acx_cv_cfortran_works=no
save_CPPFLAGS=$CPPFLAGS
[save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="-I]m4_ifval([$1],[$1],[$srcdir/include])[ $CPPFLAGS"
dnl build C function
AC_LANG_PUSH([C])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment