- (bal) Makfile day... Cleaned up multiple mantype support (Patch by

Mark D. Roth <roth+openssh@feep.net>), and fixed PIDDIR support.
This commit is contained in:
Ben Lindstrom 2001-04-18 18:04:21 +00:00
parent e2e66a27a7
commit bc70992058
3 changed files with 38 additions and 34 deletions

View File

@ -10,6 +10,8 @@
debug->debug3 debug->debug3
- (bal) renabled 'catman-do:' and fixed it. So now catman pages should - (bal) renabled 'catman-do:' and fixed it. So now catman pages should
be working again. be working again.
- (bal) Makfile day... Cleaned up multiple mantype support (Patch by
Mark D. Roth <roth+openssh@feep.net>), and fixed PIDDIR support.
20010417 20010417
- (bal) Add perl5 check for HP/UX, Removed GNUness from Makefile.in - (bal) Add perl5 check for HP/UX, Removed GNUness from Makefile.in
@ -5157,4 +5159,4 @@
- Wrote replacements for strlcpy and mkdtemp - Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1 - Released 1.0pre1
$Id: ChangeLog,v 1.1138 2001/04/18 15:46:01 mouring Exp $ $Id: ChangeLog,v 1.1139 2001/04/18 18:04:21 mouring Exp $

View File

@ -1,4 +1,4 @@
# $Id: Makefile.in,v 1.171 2001/04/18 15:46:03 mouring Exp $ # $Id: Makefile.in,v 1.172 2001/04/18 18:04:22 mouring Exp $
prefix=@prefix@ prefix=@prefix@
exec_prefix=@exec_prefix@ exec_prefix=@exec_prefix@
@ -6,6 +6,7 @@ bindir=@bindir@
sbindir=@sbindir@ sbindir=@sbindir@
libexecdir=@libexecdir@ libexecdir=@libexecdir@
mandir=@mandir@ mandir=@mandir@
mansubdir=@mansubdir@
sysconfdir=@sysconfdir@ sysconfdir=@sysconfdir@
piddir=@piddir@ piddir=@piddir@
srcdir=@srcdir@ srcdir=@srcdir@
@ -20,7 +21,8 @@ SFTP_SERVER=$(libexecdir)/sftp-server
PATHS= -DETCDIR=\"$(sysconfdir)\" \ PATHS= -DETCDIR=\"$(sysconfdir)\" \
-D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" \ -D_PATH_SSH_PROGRAM=\"$(SSH_PROGRAM)\" \
-D_PATH_SSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" \ -D_PATH_SSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" \
-D_PATH_SFTP_SERVER=\"$(SFTP_SERVER)\" -D_PATH_SFTP_SERVER=\"$(SFTP_SERVER)\" \
-D_PATH_SSH_PIDDIR=\"$(piddir)\"
CC=@CC@ CC=@CC@
LD=@LD@ LD=@LD@
@ -126,9 +128,9 @@ $(MANPAGES)::
manpage=$@; \ manpage=$@; \
fi; \ fi; \
if test "$(MANTYPE)" = "man"; then \ if test "$(MANTYPE)" = "man"; then \
$(FIXPATHSCMD) $(srcdir)/$${manpage} | $(PERL) $(srcdir)/mdoc2man.pl > $@.out; \ $(FIXPATHSCMD) $${manpage} | $(PERL) $(srcdir)/mdoc2man.pl > $@.out; \
else \ else \
$(FIXPATHSCMD) $(srcdir)/$${manpage} > $@.out; \ $(FIXPATHSCMD) $${manpage} > $@.out; \
fi fi
$(CONFIGFILES):: $(CONFIGFILES)::
@ -165,6 +167,8 @@ install-files:
$(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
$(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir)
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8
$(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir)
$(INSTALL) -m $(SSH_MODE) -s ssh $(DESTDIR)$(bindir)/ssh $(INSTALL) -m $(SSH_MODE) -s ssh $(DESTDIR)$(bindir)/ssh
$(INSTALL) -m 0755 -s scp $(DESTDIR)$(bindir)/scp $(INSTALL) -m 0755 -s scp $(DESTDIR)$(bindir)/scp
@ -175,22 +179,15 @@ install-files:
$(INSTALL) -m 0755 -s sshd $(DESTDIR)$(sbindir)/sshd $(INSTALL) -m 0755 -s sshd $(DESTDIR)$(sbindir)/sshd
@NO_SFTP@$(INSTALL) -m 0755 -s sftp $(DESTDIR)$(bindir)/sftp @NO_SFTP@$(INSTALL) -m 0755 -s sftp $(DESTDIR)$(bindir)/sftp
@NO_SFTP@$(INSTALL) -m 0755 -s sftp-server $(DESTDIR)$(SFTP_SERVER) @NO_SFTP@$(INSTALL) -m 0755 -s sftp-server $(DESTDIR)$(SFTP_SERVER)
if test "$(MANTYPE)" = "doc"; then \ $(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
mansubdir="man"; \ $(INSTALL) -m 644 scp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
else \ $(INSTALL) -m 644 ssh-add.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
mansubdir="$(MANTYPE)"; \ $(INSTALL) -m 644 ssh-agent.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1
fi; \ $(INSTALL) -m 644 ssh-keygen.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${mansubdir}1; \ $(INSTALL) -m 644 ssh-keyscan.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${mansubdir}8; \ $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
$(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/ssh.1; \ @NO_SFTP@$(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1
$(INSTALL) -m 644 scp.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/scp.1; \ @NO_SFTP@$(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8
$(INSTALL) -m 644 ssh-add.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/ssh-add.1; \
$(INSTALL) -m 644 ssh-agent.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/ssh-agent.1; \
$(INSTALL) -m 644 ssh-keygen.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/ssh-keygen.1; \
$(INSTALL) -m 644 ssh-keyscan.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/ssh-keyscan.1; \
$(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$${mansubdir}8/sshd.8; \
@NO_SFTP@$(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$${mansubdir}1/sftp.1; \
@NO_SFTP@$(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$${mansubdir}8/sftp-server.8;
-rm -f $(DESTDIR)$(bindir)/slogin -rm -f $(DESTDIR)$(bindir)/slogin
ln -s ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin ln -s ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin
-rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1

View File

@ -1,4 +1,4 @@
# $Id: configure.in,v 1.277 2001/04/17 17:57:11 mouring Exp $ # $Id: configure.in,v 1.278 2001/04/18 18:04:23 mouring Exp $
AC_INIT(ssh.c) AC_INIT(ssh.c)
@ -70,11 +70,9 @@ case "$host" in
AC_DEFINE(NO_X11_UNIX_SOCKETS) AC_DEFINE(NO_X11_UNIX_SOCKETS)
no_libsocket=1 no_libsocket=1
no_libnsl=1 no_libnsl=1
MANTYPE=doc
;; ;;
*-*-dgux*) *-*-dgux*)
AC_DEFINE(IP_TOS_IS_BROKEN) AC_DEFINE(IP_TOS_IS_BROKEN)
MANTYPE=doc
;; ;;
*-*-hpux10*) *-*-hpux10*)
if test -z "$GCC"; then if test -z "$GCC"; then
@ -124,7 +122,6 @@ case "$host" in
AC_DEFINE(DONT_TRY_OTHER_AF) AC_DEFINE(DONT_TRY_OTHER_AF)
AC_DEFINE(PAM_TTY_KLUDGE) AC_DEFINE(PAM_TTY_KLUDGE)
inet6_default_4in6=yes inet6_default_4in6=yes
MANTYPE=doc
;; ;;
mips-sony-bsd|mips-sony-newsos4) mips-sony-bsd|mips-sony-newsos4)
AC_DEFINE(HAVE_NEWS4) AC_DEFINE(HAVE_NEWS4)
@ -132,15 +129,12 @@ mips-sony-bsd|mips-sony-newsos4)
AC_CHECK_LIB(iberty, xatexit, AC_DEFINE(HAVE_XATEXIT), AC_CHECK_LIB(iberty, xatexit, AC_DEFINE(HAVE_XATEXIT),
AC_MSG_ERROR([*** libiberty missing - please install first or check config.log ***]) AC_MSG_ERROR([*** libiberty missing - please install first or check config.log ***])
) )
MANTYPE=doc
;; ;;
*-*-netbsd*) *-*-netbsd*)
need_dash_r=1 need_dash_r=1
MANTYPE=doc
;; ;;
*-*-freebsd*) *-*-freebsd*)
check_for_libcrypt_later=1 check_for_libcrypt_later=1
MANTYPE=doc
;; ;;
*-next-*) *-next-*)
conf_lastlog_location="/usr/adm/lastlog" conf_lastlog_location="/usr/adm/lastlog"
@ -153,7 +147,6 @@ mips-sony-bsd|mips-sony-newsos4)
AC_DEFINE(BROKEN_SAVED_UIDS) AC_DEFINE(BROKEN_SAVED_UIDS)
CPPFLAGS="$CPPFLAGS -I/usr/local/include" CPPFLAGS="$CPPFLAGS -I/usr/local/include"
CFLAGS="$CFLAGS" CFLAGS="$CFLAGS"
MANTYPE=doc
;; ;;
*-*-solaris*) *-*-solaris*)
CPPFLAGS="$CPPFLAGS -I/usr/local/include" CPPFLAGS="$CPPFLAGS -I/usr/local/include"
@ -1416,13 +1409,25 @@ AC_ARG_WITH(catman,
AC_MSG_ERROR(invalid man type: $withval) AC_MSG_ERROR(invalid man type: $withval)
;; ;;
esac esac
], [
if test -z "$MANTYPE" ; then
MANTYPE=man
fi
] ]
) )
if test -z "$MANTYPE"; then
AC_PATH_PROGS(NROFF, nroff awf, /bin/false, /usr/bin)
if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
MANTYPE=doc
elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
MANTYPE=man
else
MANTYPE=cat
fi
fi
AC_SUBST(MANTYPE) AC_SUBST(MANTYPE)
if test "$MANTYPE" = "doc"; then
mansubdir=man;
else
mansubdir=$MANTYPE;
fi
AC_SUBST(mansubdir)
# Check whether to enable MD5 passwords # Check whether to enable MD5 passwords
MD5_MSG="no" MD5_MSG="no"
@ -1896,7 +1901,7 @@ B=`eval echo ${bindir}` ; B=`eval echo ${B}`
C=`eval echo ${sbindir}` ; C=`eval echo ${C}` C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
F=`eval echo ${mandir}` ; F=`eval echo ${F}` F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
G=`eval echo ${piddir}` ; G=`eval echo ${G}` G=`eval echo ${piddir}` ; G=`eval echo ${G}`
H=`eval echo ${user_path}` ; H=`eval echo ${H}` H=`eval echo ${user_path}` ; H=`eval echo ${H}`