2014-02-04 05:38:45 +04:00
|
|
|
dnl -*- shell-script -*-
|
|
|
|
dnl
|
|
|
|
dnl Copyright (c) 2014 Intel, Inc. All rights reserved.
|
|
|
|
dnl $COPYRIGHT$
|
|
|
|
dnl
|
|
|
|
dnl Additional copyrights may follow
|
|
|
|
dnl
|
|
|
|
dnl $HEADER$
|
|
|
|
dnl
|
|
|
|
|
|
|
|
# MCA_sec_keystone_CONFIG([action-if-found], [action-if-not-found])
|
|
|
|
# -----------------------------------------------------------
|
|
|
|
AC_DEFUN([MCA_opal_sec_keystone_CONFIG], [
|
|
|
|
AC_CONFIG_FILES([opal/mca/sec/keystone/Makefile])
|
|
|
|
|
|
|
|
AC_ARG_WITH([keystone],
|
|
|
|
[AC_HELP_STRING([--with-keystone],
|
|
|
|
[Build keystone support (default: no)])],
|
|
|
|
[], with_keystone=no)
|
|
|
|
|
|
|
|
# do not build if support not requested
|
2014-02-13 02:06:44 +04:00
|
|
|
AC_MSG_CHECKING([want keystone security])
|
2014-02-04 05:38:45 +04:00
|
|
|
AS_IF([test "$with_keystone" != "no"],
|
2014-02-13 02:06:44 +04:00
|
|
|
[AC_MSG_RESULT([yes])
|
|
|
|
AS_IF([test ! -z "$with_keystone" -a "$with_keystone" != "yes"],
|
2014-02-04 05:38:45 +04:00
|
|
|
[opal_check_keystone_dir="$with_keystone"])
|
2014-05-01 18:24:56 +04:00
|
|
|
OPAL_CHECK_PACKAGE([sec_keystone],
|
2014-02-13 02:06:44 +04:00
|
|
|
[curl/curl.h],
|
|
|
|
[curl],
|
|
|
|
[curl_easy_init],
|
|
|
|
[],
|
2014-02-04 05:38:45 +04:00
|
|
|
[],
|
|
|
|
[],
|
|
|
|
[$1],
|
|
|
|
[AC_MSG_WARN([KEYSTONE SUPPORT REQUESTED])
|
2014-02-13 02:06:44 +04:00
|
|
|
AC_MSG_WARN([BUT REQUIRED CURL LIBRARY OR HEADER NOT FOUND])
|
2014-02-04 05:38:45 +04:00
|
|
|
AC_MSG_ERROR([CANNOT CONTINUE])
|
|
|
|
$2])],
|
2014-02-13 02:06:44 +04:00
|
|
|
[AC_MSG_RESULT([no])
|
|
|
|
$2])
|
2014-02-04 05:38:45 +04:00
|
|
|
|
|
|
|
AC_SUBST(sec_keystone_CPPFLAGS)
|
|
|
|
AC_SUBST(sec_keystone_LDFLAGS)
|
|
|
|
AC_SUBST(sec_keystone_LIBS)
|
|
|
|
])dnl
|