Patch to detect perl using autoconf

David Rankin drankin at bohemians.lexington.ky.us
Wed Dec 29 02:49:26 EST 1999


For systems that don't have perl at /usr/bin/perl, fixpaths doesn't run.
I've added a check in configure.in to find where perl is and use it to
run fixpaths. Here's the patch:


--- configure.in.orig	Mon Dec 27 23:09:36 1999
+++ configure.in	Tue Dec 28 10:16:05 1999
@@ -9,6 +9,7 @@
 AC_PROG_RANLIB
 AC_PROG_INSTALL
 AC_CHECK_PROG(AR, ar, ar)
+AC_CHECK_PROG(PERL, perl, perl)
 AC_PATH_PROG(xauth_path, xauth)
 
 dnl Use ip address instead of hostname in $DISPLAY
--- Makefile.in.orig	Tue Dec 28 10:22:27 1999
+++ Makefile.in	Tue Dec 28 10:23:54 1999
@@ -25,6 +25,7 @@
 AR=@AR@
 RANLIB=@RANLIB@
 INSTALL=@INSTALL@
+PERL=@PERL@
 LDFLAGS=-L. @LDFLAGS@
 
 GNOME_CFLAGS=`gnome-config --cflags gnome gnomeui`
@@ -89,7 +90,7 @@
 		*.1 *.8 sshd_config ssh_config
 
 manpages:
-	$(FIXPATHS) -Dsysconfdir=${sysconfdir} $(srcdir)/*.1.in $(srcdir)/*.8.in \
+	$(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} $(srcdir)/*.1.in $(srcdir)/*.8.in \
 		$(srcdir)/ssh_config.in $(srcdir)/sshd_config.in
 
 install: all





More information about the openssh-unix-dev mailing list