Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
bb7ff3c2
Commit
bb7ff3c2
authored
Dec 07, 2009
by
Uwe Schulzweida
Browse files
added --enable-mpi to compile with MPI compiler (Luis Kornblueh)
parent
9dcde362
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
bb7ff3c2
...
...
@@ -341,6 +341,20 @@ if test "${enable_dap}" = "yes"; then
fi
fi
# ----------------------------------------------------------------------
# Compile with MPI support
AC_ARG_ENABLE(mpi,AS_HELP_STRING([--enable-mpi],[Compile with MPI compiler [[default=no]]]),enable_mpi=${enableval},enable_mpi=no)
if test "${enable_mpi}" = "yes"; then
if test "${host_os:0:3}" = "aix"; then
replace_cc="mpcc_r"
else
replace_cc="mpicc"
fi
else
replace_cc=$CC
fi
# ----------------------------------------------------------------------
# Is the netcdf present? It has a header file `netcdf.h' and a library
# `-lnetcdf' and their locations might be specified with the `--with-netcdf'
...
...
@@ -437,6 +451,10 @@ AC_SUBST([CFINT])
AC_SUBST([CPPFLAGS])
AC_SUBST([AR])
if test "${replace_cc}" != ""; then
CC=$replace_cc
fi
AC_OUTPUT(Makefile src/Makefile interfaces/Makefile app/Makefile tests/Makefile examples/Makefile)
if test "$ac_cv_prog_cc_c99" = "no" ; then
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment