centos*|rhel*)
prefix=/usr
if [ $osrelease -ge 50 ]; then
- # RHEL 5 and up build pies and have audit support
+ # RHEL 5 and up build pies, have audit support and use a
+ # separate PAM config file for "sudo -i".
export CFLAGS="-O2 $F_PIE" LDFLAGS="-pie"
configure_opts="${configure_opts}${configure_opts+$tab}--with-linux-audit"
+ configure_opts="${configure_opts}${configure_opts+$tab}--with-pam-login"
PPVARS="${PPVARS}${PPVARS+$space}linux_audit=1.4.0"
fi
# Note, must indent with tabs, not spaces due to IFS trickery
--with-logging=syslog
--with-logfac=authpriv
--with-pam
- --with-pam-login
--enable-zlib=system
--with-editor=/bin/vi
--with-env-editor