scsh-users
[Top] [All Lists]

problems w/ configure(.in) from CVS

To: scsh-news@zurich.ai.mit.edu
Subject: problems w/ configure(.in) from CVS
From: mmc@maruska.dyndns.org (Michal Maruška)
Date: 02 Feb 2002 16:13:43 +0100
[disclaimer: i don't know enough about autoconf]

on a freshly checkout cvs image, running autogen.sh, i get:

.....
checking for socklen_t... yes
checking for dlopen... yes
./configure: line 3969: syntax error near unexpected token `done'
./configure: line 3969: `done'


So i made some investigation and i don't understand several things:
|  cat <<\EOF
shouldn't it be
|  cat <<EOF 
? but it seems it is my autoconf installation, isn't it.



However the line from configure.in
|     AC_CHECK_FUNC(dlopen, AC_DEFINE(HAVE_DLOPEN),
|                          AC_CHECK_FUNC(nlist, [LIBOBJS="$LIBOBJS 
c/fake/libdl1.o"],
|                                               [LIBOBJS="$LIBOBJS 
c/fake/libdl2.o"]))

seems to screw the configure script, ie. the "<<_ACEOF" here strings are nested!

so i change to
| AC_CHECK_FUNC(dlopen, AC_DEFINE(HAVE_DLOPEN))
| AC_CHECK_FUNC(nlist, [LIBOBJS="$LIBOBJS c/fake/libdl1.o"],
|                                               [LIBOBJS="$LIBOBJS 
c/fake/libdl2.o"])


But then i get (autogen passes);
$ ./configure
....
./configure: line 5479: syntax error: unexpected end of file


I have no idea now.

<Prev in Thread] Current Thread [Next in Thread>