-# LB_CONFIG_PORTALS
-#
-# configure support for Cray Portals
-#
-AC_DEFUN([LB_CONFIG_PORTALS],
-[AC_MSG_CHECKING([for external Portals])
-AC_ARG_WITH([portals],
- AC_HELP_STRING([--with-portals=path],
- [set path to portals]),
- [
- case $with_portals in
- no) PORTALS=""
- enable_portals=no
- ;;
- *) if test x$with_portals != x ; then
- PORTALS="$with_portals"
- enable_portals=yes
- else
- AC_MSG_ERROR([Path to portals must be specified])
- enable_portals=no
- fi
- ;;
- esac
-
- ], [enable_portals=no])
-AC_MSG_CHECKING([location of portals])
-case x$enable_portals in
- xyes)
- AC_MSG_RESULT([$PORTALS])
- LB_CHECK_FILE([$PORTALS/include/portals/api.h],[],
- AC_MSG_ERROR([Cannot find portals headers]))
- ;;
- *)
- AC_MSG_RESULT([no external portals])
- ;;
-esac
-
-AC_SUBST(PORTALS)
-])
-
-#
-# LB_CONFIG_LUSTRE_PORTALS
-#
-# configure support for Lustre Portals
-#
-AC_DEFUN([LB_CONFIG_LUSTRE_PORTALS],
-[AC_MSG_CHECKING([for Lustre Portals])
-AC_ARG_WITH([lustre-portals],
- AC_HELP_STRING([--with-lustre-portals=path],
- [set path to Lustre portals]),
- [
- case $with_lustre_portals in
- yes) LUSTRE_PORTALS="$PWD/portals"
- enable_lustre_portals=yes
- ;;
- no) LUSTRE_PORTALS=""
- enable_lustre_portals=no
- ;;
- *) if test x$with_lustre_portals != x ; then
- LUSTRE_PORTALS="$with_lustre_portals"
- else
- LUSTRE_PORTALS="$PWD/portals"
- fi
- enable_lustre_portals=yes
- ;;
- esac
-
- ], [enable_lustre_portals=no])
-
-AC_MSG_CHECKING([location of Lustre portals])
-case x$enable_lustre_portals in
- xyes)
- AC_MSG_RESULT([$LUSTRE_PORTALS])
- LB_CHECK_FILE([$LUSTRE_PORTALS/include/portals/api.h],[LUSTRE_PORTALS_SUBDIR="portals"],
- AC_MSG_ERROR([Cannot find Lustre portals headers]))
- ;;
- *)
- AC_MSG_RESULT([disable Lustre portals])
- ;;
-esac
-
-AC_SUBST(LUSTRE_PORTALS_SUBDIR)
-AC_SUBST(LUSTRE_PORTALS)
-])
-
-#