[scponly] 3.1 configure glitch

Lupe Christoph lupe at lupe-christoph.de
Fri Oct 11 09:30:00 EDT 2002


Hi!

Another problem with the configure script, this is FreeBSD 4.6:

Can't find path to 'sftp-server'

This happens even with --disable-sftp. I somehow it is necessary to do
this ;-)

sftp-server is in /usr/libexec/sftp-server on FreeBSD, unless you are
using somem *ssh port. Then it is probably in
/usr/local/libexec/sftp-server. It is never in the PATH.

The workaround
  scponly_PROG_SFTP_SERVER=/usr/libexec/sftp-server ./configure ...
should be documented in INSTALL.

After this, I run into the "Can't find path to 'ls'" problem. The reason
is that configure uses $LINENO before it runs the LINENO substitution.
So this happens with /bin/sh:

	+ /bin/sh -x -c
	  as_lineno_1=$LINENO
	  as_lineno_2=$LINENO
	  as_lineno_3=`(expr $as_lineno_1 + 1) `
	  test "x$as_lineno_1" != "x$as_lineno_2" &&
	  test "x$as_lineno_3"  = "x$as_lineno_2"
	+ as_lineno_1=   
	+ as_lineno_2=
	+ expr + 1  
	expr: syntax error

... and this with bash:

	+ /usr/local/bin/bash -x -c
	  as_lineno_1=$LINENO
	  as_lineno_2=$LINENO
	  as_lineno_3=`(expr $as_lineno_1 + 1) `
	  test "x$as_lineno_1" != "x$as_lineno_2" &&
	  test "x$as_lineno_3"  = "x$as_lineno_2"
	+ as_lineno_1=2
	+ as_lineno_2=3
	++ expr 2 + 1
	+ as_lineno_3=3
	+ test x2 '!=' x3
	+ test x3 = x3

(I added the "-x" to the first line to see what really happens.) The
bash has a builtin LINENO variable.

I know too little about autoconf to follow this to the root.

HTH,
Lupe Christoph
-- 
| lupe at lupe-christoph.de       |           http://www.lupe-christoph.de/ |
| Big Misunderstandings #6398: The Titanic was not supposed to be        |
| unsinkable. The designer had a speech impediment. He said: "I have     |
| thith great unthinkable conthept ..."                                  |



More information about the scponly mailing list