| 9 |
|
builtin(include, ac-tools/AC_CXX_HAVE_STL.m4) |
| 10 |
|
builtin(include, ac-tools/AC_CXX_NAMESPACES.m4) |
| 11 |
|
builtin(include, ac-tools/AC_CXX_STD.m4) |
| 12 |
+ |
builtin(include, ac-tools/ACX_MPI.m4) |
| 13 |
|
builtin(include, ac-tools/CGAL.m4) |
| 14 |
|
|
| 15 |
|
# who am i |
| 57 |
|
AC_SUBST(USE_SINGLE_PRECISION) |
| 58 |
|
fi |
| 59 |
|
|
| 60 |
+ |
if test x"$CC" != x; then |
| 61 |
+ |
AC_CHECK_PROGS(ac_cc_set,[$CC],[no]) |
| 62 |
+ |
AS_IF([test AS_VAR_GET([ac_cc_set]) != no],[ |
| 63 |
+ |
AC_PATH_PROG(ac_cc_path,[$ac_cc_set],[no])],[ |
| 64 |
+ |
AC_ERROR([Specified C compiler $CC doesn't seem to exist!])]) |
| 65 |
+ |
|
| 66 |
+ |
AS_IF([test AS_VAR_GET([ac_cc_path]) != no],[ |
| 67 |
+ |
AC_MSG_NOTICE([Will attempt to use $CC as C compiler])],[ |
| 68 |
+ |
AC_ERROR([Can't find path to user-specified C compiler $CC])]) |
| 69 |
+ |
fi |
| 70 |
+ |
|
| 71 |
+ |
if test x"$CXX" != x; then |
| 72 |
+ |
AC_CHECK_PROGS(ac_cxx_set,[$CXX],[no]) |
| 73 |
+ |
AS_IF([test AS_VAR_GET([ac_cxx_set]) != no],[ |
| 74 |
+ |
AC_PATH_PROG(ac_cxx_path,[$ac_cxx_set],[no])],[ |
| 75 |
+ |
AC_ERROR([Specified C++ compiler $CXX doesn't seem to exist!])]) |
| 76 |
+ |
|
| 77 |
+ |
AS_IF([test AS_VAR_GET([ac_cxx_path]) != no],[ |
| 78 |
+ |
AC_MSG_NOTICE([Will attempt to use $CXX as C++ compiler])],[ |
| 79 |
+ |
AC_ERROR([Can't find path to user-specified C++ compiler $CXX])]) |
| 80 |
+ |
fi |
| 81 |
+ |
|
| 82 |
+ |
if test x"$FC" != x; then |
| 83 |
+ |
AC_CHECK_PROGS(ac_fc_set,[$FC],[no]) |
| 84 |
+ |
AS_IF([test AS_VAR_GET([ac_fc_set]) != no],[ |
| 85 |
+ |
AC_PATH_PROG(ac_fc_path,[$ac_fc_set],[no])],[ |
| 86 |
+ |
AC_ERROR([Specified Fortran compiler $FC doesn't seem to exist!])]) |
| 87 |
+ |
|
| 88 |
+ |
AS_IF([test AS_VAR_GET([ac_fc_path]) != no],[ |
| 89 |
+ |
AC_MSG_NOTICE([Will attempt to use $FC as Fortran compiler])],[ |
| 90 |
+ |
AC_ERROR([Can't find path to user-specified Fortran compiler $FC])]) |
| 91 |
+ |
fi |
| 92 |
+ |
|
| 93 |
+ |
|
| 94 |
+ |
dnl do MPI checks |
| 95 |
+ |
ACX_MPI([USE_MPI="yes"], |
| 96 |
+ |
[USE_MPI="no" |
| 97 |
+ |
AC_MSG_WARN([No suitable MPI implementation found. oopse_MPI will not be build.])]) |
| 98 |
+ |
AC_SUBST(USE_MPI) |
| 99 |
+ |
|
| 100 |
|
# Checks for programs. |
| 101 |
< |
AC_PROG_CXX([mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC]) |
| 102 |
< |
AC_PROG_CC([mpicc icc pathcc pgcc cc xlc gcc]) |
| 103 |
< |
AC_PROG_FC([mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort], 95) |
| 101 |
> |
AC_PROG_CXX([$CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC]) |
| 102 |
> |
AC_PROG_CC([$CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc]) |
| 103 |
> |
AC_PROG_FC([$FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort], 95) |
| 104 |
|
AC_PROG_CPP |
| 105 |
|
AC_PROG_EGREP |
| 106 |
|
AC_PROG_LN_S |
| 278 |
|
dnl OpenBabel needs this: |
| 279 |
|
AC_DEFINE([OBAPI], [], [Used to export symbols for DLL / shared library builds]) |
| 280 |
|
|
| 240 |
– |
|
| 241 |
– |
AC_ARG_WITH(mpi, |
| 242 |
– |
[AC_HELP_STRING([--with-mpi=<prefix>], |
| 243 |
– |
[compile with MPI installed in <prefix> [default=no]])], |
| 244 |
– |
with_mpi=$withval, |
| 245 |
– |
with_mpi="no") |
| 246 |
– |
|
| 247 |
– |
case "x$with_mpi" in |
| 248 |
– |
xyes | "x") USE_MPI=yes;; |
| 249 |
– |
xno) USE_MPI=no ;; |
| 250 |
– |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
| 251 |
– |
esac |
| 252 |
– |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
| 253 |
– |
MPI="/usr/local" |
| 254 |
– |
fi |
| 255 |
– |
if test "$USE_MPI" = "yes"; then |
| 256 |
– |
ACX_MPI |
| 257 |
– |
fi |
| 258 |
– |
AC_SUBST(USE_MPI) |
| 259 |
– |
|
| 281 |
|
dnl check for CGAL library |
| 282 |
|
ACX_CGAL |
| 283 |
|
USE_CGAL=no |