mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Fix block to add -lutil for FreeBSD and NetBSD when logincap is in use.
This commit is contained in:
12
configure
vendored
12
configure
vendored
@@ -13534,6 +13534,11 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
||||
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
||||
_ACEOF
|
||||
LOGINCAP_USAGE='[-c class|-] '
|
||||
case "$OS" in
|
||||
freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
@@ -19756,13 +19761,6 @@ done
|
||||
LIBS="$_LIBS"
|
||||
fi
|
||||
|
||||
if test ${with_logincap-'no'} = "yes"; then
|
||||
case "$OS" in
|
||||
freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if test ${with_AFS-'no'} = "yes"; then
|
||||
|
||||
# looks like the "standard" place for AFS libs is /usr/afsws/lib
|
||||
|
17
configure.in
17
configure.in
@@ -1636,7 +1636,12 @@ if test "$OS" != "ultrix"; then
|
||||
fi
|
||||
fi
|
||||
if test ${with_logincap-'no'} != "no"; then
|
||||
AC_CHECK_HEADERS(login_cap.h, [LOGINCAP_USAGE='[[-c class|-]] '])
|
||||
AC_CHECK_HEADERS(login_cap.h, [LOGINCAP_USAGE='[[-c class|-]] '
|
||||
case "$OS" in
|
||||
freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
|
||||
;;
|
||||
esac
|
||||
])
|
||||
fi
|
||||
if test ${with_project-'no'} != "no"; then
|
||||
AC_CHECK_HEADER(project.h, AC_DEFINE(HAVE_PROJECT_H)
|
||||
@@ -2053,16 +2058,6 @@ if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
|
||||
LIBS="$_LIBS"
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl Some systems put login_cap(3) in libutil
|
||||
dnl
|
||||
if test ${with_logincap-'no'} = "yes"; then
|
||||
case "$OS" in
|
||||
freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl extra AFS libs and includes
|
||||
dnl
|
||||
|
Reference in New Issue
Block a user