diff options
author | Francis Dupont <fdupont@isc.org> | 2021-05-25 18:07:50 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2021-05-25 18:07:50 +0200 |
commit | 2cbb8bdf0c059e2dad95d7c85d83dc3ae5592a36 (patch) | |
tree | 2b778d4e0bbeea23a293bb3b2620d3944be6f370 /m4macros | |
parent | [#1888] remove demangle for back compat with boost (diff) | |
download | kea-2cbb8bdf0c059e2dad95d7c85d83dc3ae5592a36.tar.xz kea-2cbb8bdf0c059e2dad95d7c85d83dc3ae5592a36.zip |
[#1884] Checkpoint: m4 macro file added
Diffstat (limited to 'm4macros')
-rw-r--r-- | m4macros/Makefile.am | 1 | ||||
-rw-r--r-- | m4macros/ax_gssapi.m4 | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/m4macros/Makefile.am b/m4macros/Makefile.am index e2ce764833..6ec34cb220 100644 --- a/m4macros/Makefile.am +++ b/m4macros/Makefile.am @@ -1 +1,2 @@ EXTRA_DIST = ax_boost_for_kea.m4 ax_isc_rpath.m4 ax_cpp11.m4 ax_gtest.m4 +EXTRA_DIST += ax_crypto.m4 ax_gssapi.m4 diff --git a/m4macros/ax_gssapi.m4 b/m4macros/ax_gssapi.m4 new file mode 100644 index 0000000000..aae9188d97 --- /dev/null +++ b/m4macros/ax_gssapi.m4 @@ -0,0 +1,37 @@ +AC_DEFUN([AX_GSS_API], [ + +gssapi_path="" + +AC_ARG_WITH([gssapi], + [AS_HELP_STRING([--with-gssapi=PATH], + [specify a path to krb5-config file])], + [gssapi_path="$withval"; enable_gssapi="yes"]) + +# +# Check availability of gssapi, which will be used for unit tests. +# +GSSAPI_CFLAGS= +GSSAPI_LIBS= + +AC_MSG_CHECKING([for gssapi support]) +if test "x$gssapi_path" = "x" ; then + AC_MSG_RESULT([no]) +else + AC_MSG_RESULT([yes]) + if test "$gssapi_path" = "yes"; then + AC_PATH_PROG([KRB5_CONFIG], [krb5-config]) + else + KRB5_CONFIG="$gssapi_path" + fi + if test -x "${KRB5_CONFIG}" ; then + GSSAPI_CFLAGS=`${KRB5_CONFIG} --cflags gssapi` + GSSAPI_LIBS=`${KRB5_CONFIG} --libs gssapi` + else + AC_MSG_ERROR([Unable to locate krb5-config.]) + fi +fi + +AC_SUBST(GSSAPI_CFLAGS) +AC_SUBST(GSSAPI_LIBS) + +])dnl AX_GSS_API |