Commit dc756dfe authored by Philip Carns's avatar Philip Carns

autoconf test for bake

parent dd5c9df4
...@@ -53,6 +53,18 @@ AC_CHECK_HEADERS(ssg-mpi.h,[], ...@@ -53,6 +53,18 @@ AC_CHECK_HEADERS(ssg-mpi.h,[],
[AC_MSG_ERROR([Could not find ssg-mpi.h for MPI support in [AC_MSG_ERROR([Could not find ssg-mpi.h for MPI support in
SSG])]) SSG])])
PKG_CHECK_MODULES([BAKESERVER],[bake-server],[],
AC_MSG_ERROR([Could not find working BAKE server installation!]) )
LIBS="$BAKESERVER_LIBS $LIBS"
CPPFLAGS="$BAKESERVER_CFLAGS $CPPFLAGS"
CFLAGS="$BAKESERVER_CFLAGS $CFLAGS"
PKG_CHECK_MODULES([BAKECLIENT],[bake-client],[],
AC_MSG_ERROR([Could not find working BAKE client installation!]) )
LIBS="$BAKECLIENT_LIBS $LIBS"
CPPFLAGS="$BAKECLIENT_CFLAGS $CPPFLAGS"
CFLAGS="$BAKECLIENT_CFLAGS $CFLAGS"
AC_MSG_CHECKING([If MPI programs can be compiled]) AC_MSG_CHECKING([If MPI programs can be compiled])
AC_LINK_IFELSE( AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[#include<mpi.h>]], [[MPI_Init(0,0);]])], [AC_LANG_PROGRAM([[#include<mpi.h>]], [[MPI_Init(0,0);]])],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment