version 1.1.1.1, 2012/02/21 16:23:02
|
version 1.1.1.2, 2012/05/29 12:26:49
|
Line 189 case "$osversion" in
|
Line 189 case "$osversion" in
|
case "$osversion" in |
case "$osversion" in |
ubu*) |
ubu*) |
configure_opts="${configure_opts}${configure_opts+$tab}--enable-admin-flag${tab}--without-lecture" |
configure_opts="${configure_opts}${configure_opts+$tab}--enable-admin-flag${tab}--without-lecture" |
|
if [ $osrelease -ge 1004 ]; then |
|
export CFLAGS="-O2 -g $F_PIE" LDFLAGS="-pie" |
|
fi |
;; |
;; |
|
deb*) |
|
if [ $osrelease -ge 600 ]; then |
|
export CFLAGS="-O2 -g $F_PIE" LDFLAGS="-pie" |
|
fi |
|
;; |
esac |
esac |
# Note, must indent with tabs, not spaces due to IFS trickery |
# Note, must indent with tabs, not spaces due to IFS trickery |
if test "$flavor" = "ldap"; then |
if test "$flavor" = "ldap"; then |
Line 198 case "$osversion" in
|
Line 206 case "$osversion" in
|
fi |
fi |
configure_opts="--prefix=/usr |
configure_opts="--prefix=/usr |
--with-all-insults |
--with-all-insults |
--with-exempt=sudo |
|
--with-pam |
--with-pam |
--enable-zlib=system |
--enable-zlib=system |
--with-fqdn |
--with-fqdn |
Line 216 case "$osversion" in
|
Line 223 case "$osversion" in
|
--mandir=/usr/share/man |
--mandir=/usr/share/man |
--libexecdir=/usr/lib/sudo |
--libexecdir=/usr/lib/sudo |
--with-secure-path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin |
--with-secure-path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin |
|
$configure_opts" |
|
;; |
|
macos*) |
|
case "$osversion" in |
|
*i386|*x86_64) |
|
# Build intel-only universal binaries |
|
ARCH_FLAGS="-arch i386 -arch x86_64" |
|
;; |
|
esac |
|
if test "${osversion}" != "`$top_srcdir/pp --probe`"; then |
|
sdkvers=`echo "${osversion}" | sed 's/^macos\([0-9][0-9]\)\([0-9]*\)-.*$/\1.\2/'` |
|
SDK_FLAGS="-isysroot /Developer/SDKs/MacOSX${sdkvers}.sdk -mmacosx-version-min=${sdkvers}" |
|
fi |
|
export CFLAGS="-O2 -g $ARCH_FLAGS $SDK_FLAGS" |
|
export LDFLAGS="$ARCH_FLAGS $SDK_FLAGS" |
|
if [ $osrelease -ge 105 ]; then |
|
CFLAGS="$CFLAGS $F_PIE" |
|
LDFLAGS="$LDFLAGS -Wl,-pie" |
|
fi |
|
# Note, must indent with tabs, not spaces due to IFS trickery |
|
configure_opts="--prefix=$prefix |
|
--with-pam |
|
--without-tty-tickets |
|
--enable-zlib=system |
|
--with-ldap |
|
--with-insults=disabled |
|
--with-logging=syslog |
|
--with-logfac=authpriv |
|
--with-editor=/usr/bin/vim |
|
--with-env-editor |
$configure_opts" |
$configure_opts" |
;; |
;; |
*) |
*) |