diff options
author | Tomas Mraz <tm@t8m.info> | 2005-10-20 17:01:06 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2005-10-20 17:01:06 +0000 |
commit | d9b712775c5f1962d3490b43465537c3e28a8c49 (patch) | |
tree | c9cf9e640727cd38b13f30b5b612d6da9357952a /configure.in | |
parent | 593ea15559fedf71fdb6e6fdc23a8f2532f7d571 (diff) | |
download | pam-d9b712775c5f1962d3490b43465537c3e28a8c49.tar.gz pam-d9b712775c5f1962d3490b43465537c3e28a8c49.tar.bz2 pam-d9b712775c5f1962d3490b43465537c3e28a8c49.zip |
Relevant BUGIDs: Red Hat bz 171164
Purpose of commit: new feature
Commit summary:
---------------
2005-10-20 Tomas Mraz <t8m@centrum.cz>
* configure.in: Added check for xauth binary and --with-xauth option.
* config.h.in: Added configurable PAM_PATH_XAUTH.
* modules/pam_xauth/README,
modules/pam_xauth/pam_xauth.8: Document where xauth is looked for.
* modules/pam_xauth/pam_xauth.c (pam_sm_open_session): Implement
searching xauth binary on multiple places.
(run_coprocess): Don't use execvp as it can be a security risk.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/configure.in b/configure.in index c24a8985..f6610f08 100644 --- a/configure.in +++ b/configure.in @@ -223,8 +223,8 @@ fi AC_CHECK_HEADERS(paths.h) AC_ARG_WITH(mailspool, -[ --with-mailspool path to mail spool directory - [default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]], +[ --with-mailspool path to mail spool directory + [default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]], with_mailspool=${withval}) if test x$with_mailspool != x ; then pam_mail_spool="\"$with_mailspool\"" @@ -244,6 +244,23 @@ fi AC_DEFINE_UNQUOTED(PAM_PATH_MAILDIR, $pam_mail_spool, [Path where mails are stored]) +AC_ARG_WITH(xauth, +[ --with-xauth additional path to check for xauth when it is called from pam_xauth + [added to the default of /usr/X11R6/bin/xauth, /usr/bin/xauth, /usr/bin/X11/xauth]], +pam_xauth_path=${withval}) +if test x$with_xauth == x ; then + AC_PATH_PROG(pam_xauth_path, xauth) +dnl There is no sense in adding the first default path + if test x$pam_xauth_path == x/usr/X11R6/bin/xauth ; then + unset pam_xauth_path + fi +fi + +if test x$pam_xauth_path != x ; then + AC_DEFINE_UNQUOTED(PAM_PATH_XAUTH, "$pam_xauth_path", + [Additional path of xauth executable]) +fi + dnl Checks for the existence of libdl - on BSD and Tru64 its part of libc AC_CHECK_LIB([dl], [dlopen], LIBDL="-ldl", LIBDL="") AC_SUBST(LIBDL) |