diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2005-06-04 22:53:21 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2005-06-04 22:53:21 +0000 |
commit | 588e30e9ec65fa6205a34be650b79d5e2243edec (patch) | |
tree | e56ba5791c82e53e7e1669b1bd4fe05300394498 | |
parent | a547afee2ef49cc41bbb67f9cff5a52a283c0854 (diff) |
Add --enable-secure-rpc flag and checks for needed functions for Secure RPC ("SUN-DES-1") authentication method
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.ac | 25 |
2 files changed, 31 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2005-06-04 Alan Coopersmith <alan.coopersmith@sun.com> + + * configure.ac: + Add --enable-secure-rpc flag and checks for needed functions for + Secure RPC ("SUN-DES-1") authentication method + 2005-05-27 Matthieu Herrb <matthieu.herrb@laas.fr> * nls/C/Makefile.am: diff --git a/configure.ac b/configure.ac index e0e22887..8ee999f4 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,31 @@ AC_SUBST(XDMCP_LIBS) # Transport selection macro from xtrans.m4 XTRANS_CONNECTION_FLAGS +# Check for Secure RPC functions - must come after XTRANS_CONNECTION_FLAGS +# so that any necessary networking libraries are already found +AC_ARG_ENABLE(secure-rpc, + AC_HELP_STRING([--enable-secure-rpc],[Enable Secure RPC]), + [SECURE_RPC=$enableval], [SECURE_RPC="try"]) + +if test "x$SECURE_RPC" == "xyes" -o "x$SECURE_RPC" == "xtry" ; then + FOUND_SECURE_RPC="no" + AC_CHECK_FUNCS([authdes_seccreate authdes_create], + [FOUND_SECURE_RPC="yes"]) + if test "x$FOUND_SECURE_RPC" == "xno" ; then + if test "x$SECURE_RPC" == "xyes" ; then + AC_MSG_ERROR([Secure RPC requested, but required functions not found]) + fi + SECURE_RPC="no" + else + SECURE_RPC="yes" + fi +fi +AC_MSG_CHECKING([if Secure RPC authentication ("SUN-DES-1") should be supported for X11 clients]) +if test "x$SECURE_RPC" == "xyes" ; then + AC_DEFINE(SECURE_RPC, 1, [Support Secure RPC ("SUN-DES-1") authentication for X11 clients]) +fi +AC_MSG_RESULT($SECURE_RPC) + # Check for dlopen AC_SEARCH_LIBS(dlopen,[dl svld]) if test "x$ac_cv_search_dlopen" = xno; then |