summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--configure.ac37
2 files changed, 34 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index fe0e60d5c..f6c273524 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120020317
2 - (tim) [configure.ac] Assume path given with --with-pid-dir=PATH is wanted,
3 warn if directory does not exist. Put system directories in front of
4 PATH for finding entorpy commands.
5
120020311 620020311
2 - (tim) [contrib/solaris/buildpkg.sh, contrib/solaris/README] Updated to 7 - (tim) [contrib/solaris/buildpkg.sh, contrib/solaris/README] Updated to
3 build on all platforms that support SVR4 style package tools. Now runs 8 build on all platforms that support SVR4 style package tools. Now runs
@@ -7834,4 +7839,4 @@
7834 - Wrote replacements for strlcpy and mkdtemp 7839 - Wrote replacements for strlcpy and mkdtemp
7835 - Released 1.0pre1 7840 - Released 1.0pre1
7836 7841
7837$Id: ChangeLog,v 1.1921 2002/03/12 04:55:53 tim Exp $ 7842$Id: ChangeLog,v 1.1922 2002/03/17 20:17:34 tim Exp $
diff --git a/configure.ac b/configure.ac
index 413deb4d9..670764f52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.25 2002/03/08 03:50:58 mouring Exp $ 1# $Id: configure.ac,v 1.26 2002/03/17 20:17:35 tim Exp $
2 2
3AC_INIT 3AC_INIT
4AC_CONFIG_SRCDIR([ssh.c]) 4AC_CONFIG_SRCDIR([ssh.c])
@@ -1006,6 +1006,20 @@ AC_ARG_WITH(entropy-timeout,
1006 1006
1007AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout) 1007AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout)
1008 1008
1009# We do this little dance with the search path to insure
1010# that programs that we select for use by installed programs
1011# (which may be run by the super-user) come from trusted
1012# locations before they come from the user's private area.
1013# This should help avoid accidentally configuring some
1014# random version of a program in someone's personal bin.
1015
1016OPATH=$PATH
1017PATH=/bin:/usr/bin
1018test -L /bin && PATH=/usr/bin
1019test -d /sbin && PATH=$PATH:/sbin
1020test -d /usr/sbin && PATH=$PATH:/usr/sbin
1021PATH=$PATH:/etc:$OPATH
1022
1009# These programs are used by the command hashing source to gather entropy 1023# These programs are used by the command hashing source to gather entropy
1010OSSH_PATH_ENTROPY_PROG(PROG_LS, ls) 1024OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1011OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat) 1025OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat)
@@ -1023,6 +1037,8 @@ OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat)
1023OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime) 1037OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime)
1024OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs) 1038OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs)
1025OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail) 1039OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail)
1040# restore PATH
1041PATH=$OPATH
1026 1042
1027# Where does ssh-rand-helper get its randomness from? 1043# Where does ssh-rand-helper get its randomness from?
1028INSTALL_SSH_PRNG_CMDS="" 1044INSTALL_SSH_PRNG_CMDS=""
@@ -2007,23 +2023,26 @@ AC_SUBST(SSHMODE)
2007 2023
2008# Where to place sshd.pid 2024# Where to place sshd.pid
2009piddir=/var/run 2025piddir=/var/run
2026# make sure the directory exists
2027if test ! -d $piddir ; then
2028 piddir=`eval echo ${sysconfdir}`
2029 case $piddir in
2030 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
2031 esac
2032fi
2033
2010AC_ARG_WITH(pid-dir, 2034AC_ARG_WITH(pid-dir,
2011 [ --with-pid-dir=PATH Specify location of ssh.pid file], 2035 [ --with-pid-dir=PATH Specify location of ssh.pid file],
2012 [ 2036 [
2013 if test "x$withval" != "xno" ; then 2037 if test "x$withval" != "xno" ; then
2014 piddir=$withval 2038 piddir=$withval
2039 if test ! -d $piddir ; then
2040 AC_MSG_WARN([** no $piddir directory on this system **])
2041 fi
2015 fi 2042 fi
2016 ] 2043 ]
2017) 2044)
2018 2045
2019# make sure the directory exists
2020if test ! -d $piddir ; then
2021 piddir=`eval echo ${sysconfdir}`
2022 case $piddir in
2023 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
2024 esac
2025fi
2026
2027AC_DEFINE_UNQUOTED(_PATH_SSH_PIDDIR, "$piddir") 2046AC_DEFINE_UNQUOTED(_PATH_SSH_PIDDIR, "$piddir")
2028AC_SUBST(piddir) 2047AC_SUBST(piddir)
2029 2048