~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to packages/rythmos/config/tac_arg_check_mpi.m4

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Johannes Ring
  • Date: 2009-12-13 12:53:22 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213125322-in0nrdjc55deqsw9
Tags: 10.0.3.dfsg-1
[Christophe Prud'homme]
* New upstream release

[Johannes Ring]
* debian/patches/libname.patch: Add prefix 'libtrilinos_' to all
  libraries. 
* debian/patches/soname.patch: Add soversion to libraries.
* debian/watch: Update download URL.
* debian/control:
  - Remove python-numeric from Build-Depends (virtual package).
  - Remove automake and autotools from Build-Depends and add cmake to
    reflect switch to CMake.
  - Add python-support to Build-Depends.
* debian/rules: 
  - Cleanup and updates for switch to CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl @synopsis TAC_ARG_CHECK_MPI
2
 
dnl
3
 
dnl Check to make sure any definitions set in TAC_ARG_CONFIG_MPI
4
 
dnl are valid, set the MPI flags.  Test MPI compile using C++ compiler.
5
 
dnl
6
 
dnl @author Mike Heroux <mheroux@cs.sandia.gov>
7
 
dnl
8
 
AC_DEFUN([TAC_ARG_CHECK_MPI],
9
 
[
10
 
 
11
 
if test "X${HAVE_PKG_MPI}" = "Xyes"; then
12
 
 
13
 
  if test -n "${MPI_DIR}" && test -z "${MPI_INC}"; then
14
 
    MPI_INC="${MPI_DIR}/include"
15
 
  fi
16
 
 
17
 
  if test -n "${MPI_INC}"; then
18
 
    CPPFLAGS="${CPPFLAGS} -I${MPI_INC}"
19
 
  fi
20
 
 
21
 
  AC_LANG_CPLUSPLUS 
22
 
  AC_MSG_CHECKING(for mpi.h)
23
 
  AC_TRY_CPP([#include "mpi.h"],
24
 
    [AC_MSG_RESULT(yes)], 
25
 
    [
26
 
     AC_MSG_RESULT(no)  
27
 
     echo "-----"
28
 
     echo "Cannot link simple MPI program."
29
 
     echo "Try --with-mpi-compilers to specify MPI compilers."
30
 
     echo "Or try --with-mpi-libs, --with-mpi-incdir, --with-mpi-libdir"
31
 
     echo "to specify all the specific MPI compile options."
32
 
     echo "-----"
33
 
     AC_MSG_ERROR(MPI cannot link)
34
 
    ])
35
 
 
36
 
  if test -n "${MPI_DIR}" && test -z "${MPI_LIBDIR}"; then
37
 
    MPI_LIBDIR="${MPI_DIR}/lib"
38
 
  fi
39
 
 
40
 
  if test -n "${MPI_LIBDIR}"; then
41
 
    LDFLAGS="${LDFLAGS} -L${MPI_LIBDIR}"
42
 
  fi
43
 
 
44
 
  if test -z "${MPI_LIBS}" && test -n "${MPI_LIBDIR}"; then
45
 
    MPI_LIBS="-lmpi"
46
 
  fi
47
 
 
48
 
  if test -n "${MPI_LIBS}"; then
49
 
    LIBS="${MPI_LIBS} ${LIBS}"
50
 
  fi
51
 
 
52
 
#   AC_LANG_CPLUSPLUS 
53
 
#   AC_MSG_CHECKING(whether MPI will link using C++ compiler)
54
 
#   AC_TRY_LINK([#include <mpi.h>],
55
 
#   [int c; char** v; MPI_Init(&c,&v);],
56
 
#   [AC_MSG_RESULT(yes)], 
57
 
#   [AC_MSG_RESULT(no)  
58
 
#    echo "-----"
59
 
#    echo "Cannot link simple MPI program."
60
 
#    echo "Try --with-mpi-cxx to specify MPI C++ compile script."
61
 
#    echo "Or try --with-mpi-libs, --with-mpi-incdir, --with-mpi-libdir"
62
 
#    echo "to specify all the specific MPI compile options."
63
 
#    echo "-----"
64
 
#    AC_MSG_ERROR(MPI cannot link)]
65
 
#   )
66
 
 
67
 
fi
68
 
])