version 1.5, 2000/03/27 03:44:38 |
version 1.6, 2000/11/21 17:58:44 |
|
|
;; |
;; |
esac]) |
esac]) |
|
|
AC_ARG_WITH(logincap, [ --with-logincap enable login class support], |
AC_ARG_WITH(logincap, [ --with-logincap enable BSD login class support], |
[case $with_logincap in |
[case $with_logincap in |
yes) AC_DEFINE(HAVE_LOGINCAP) |
yes|no) ;; |
AC_MSG_CHECKING(whether to try BSD login capabilities database) |
*) AC_MSG_ERROR(["--with-logincap does not take an argument."]) |
AC_MSG_RESULT(yes) |
|
;; |
;; |
|
esac]) |
|
|
|
AC_ARG_WITH(bsdauth, [ --with-bsdauth enable BSD authentication support], |
|
[case $with_bsdauth in |
|
yes) with_logincap=yes |
|
;; |
no) ;; |
no) ;; |
*) AC_MSG_ERROR(["--with-logincap does not take an argument."]) |
*) AC_MSG_ERROR(["--with-bsdauth does not take an argument."]) |
;; |
;; |
esac]) |
esac]) |
|
|
|
|
fi |
fi |
;; |
;; |
*-*-freebsd*) |
*-*-freebsd*) |
|
if test "$with_logincap" = "yes"; then |
|
SUDO_LIBS="${SUDO_LIBS} -lutil" |
|
fi |
if test "$with_skey" = "yes"; then |
if test "$with_skey" = "yes"; then |
SUDO_LIBS="${SUDO_LIBS} -lmd" |
SUDO_LIBS="${SUDO_LIBS} -lmd" |
fi |
fi |
|
|
AC_CHECK_HEADERS(termio.h) |
AC_CHECK_HEADERS(termio.h) |
AC_CHECK_HEADERS(termios.h, AC_CHECK_FUNCS(tcgetattr)) |
AC_CHECK_HEADERS(termios.h, AC_CHECK_FUNCS(tcgetattr)) |
fi |
fi |
|
if test "$with_logincap" = "yes"; then |
|
AC_CHECK_HEADERS(login_cap.h) |
|
fi |
|
if test "$with_bsdauth" = "yes"; then |
|
AC_CHECK_HEADER(bsd_auth.h, AC_DEFINE(HAVE_BSD_AUTH_H) [with_passwd=no; AUTH_OBJS=bsdauth.o]) |
|
fi |
|
|
dnl |
dnl |
dnl typedef checks |
dnl typedef checks |
dnl |
dnl |
|
|
if test "$with_DCE" = "yes"; then |
if test "$with_DCE" = "yes"; then |
DCE_OBJS="${DCE_OBJS} dce_pwent.o" |
DCE_OBJS="${DCE_OBJS} dce_pwent.o" |
SUDO_LIBS="${SUDO_LIBS} -ldce" |
SUDO_LIBS="${SUDO_LIBS} -ldce" |
fi |
|
|
|
dnl |
|
dnl extra login capabilities libs and includes |
|
dnl |
|
if test "$with_logincap" = "yes"; then |
|
SUDO_LIBS="${SUDO_LIBS} -lutil" |
|
if test -f /usr/include/login_cap.h -a -f /usr/include/sys/types.h -a -f /usr/lib/libutil.a; then |
|
: |
|
else |
|
echo 'Unable to locate libutil.a and/or login_cap.h, you will have to edit the Makefile and add -L/path/to/libutil to SUDO_LDFLAGS and/or -I/path/to/login_cap.h to CPPFLAGS' |
|
fi |
|
fi |
fi |
|
|
dnl |
dnl |