Mailing List Archive

Patch to detect perl using autoconf
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
Re: Patch to detect perl using autoconf [ In reply to ]
On Tue, Dec 28, 1999 at 10:49:26AM -0500, David Rankin wrote:
> 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:

OK, I managed to screw this patch up. It looks like the AC_CHECK_PROG
wasn't doing an AC_SUBST automatically for me, so I forced it. Here's try two.


--- configure.in.orig Mon Dec 27 23:09:36 1999
+++ configure.in Tue Dec 28 12:31:31 1999
@@ -9,6 +9,8 @@
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_CHECK_PROG(AR, ar, ar)
+AC_PATH_PROG(PERL, perl)
+AC_SUBST(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