configure file missing!

Hello!

I’m trying to build OpenOCD at my Debian system, following the INSTALL file. This is an extraction from the file:

   The file `configure.in' is used to create `configure' by a program
called `autoconf'.  You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.

The simplest way to compile this package is:

  1. `cd' to the directory containing the package's source code and type
     `./configure' to configure the package for your system.  If you're
     using `csh' on an old version of System V, you might need to type
     `sh ./configure' instead to prevent `csh' from trying to execute
     `configure' itself.

My OpenOCD package was obtained using subversion. I guess the directory containing the package’s source code is meant to be src, but src doesn’t contain any configure file. It doesn’t contain any configure.in either, but trunc does. Running autoconf in trunc gives me the following messages:

configure.in:269: error: possibly undefined macro: AM_CONFIG_HEADER
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:270: error: possibly undefined macro: AM_INIT_AUTOMAKE
configure.in:272: error: possibly undefined macro: AM_CONDITIONAL

Then I tried autoconf a second time, then it didn’t complain for some reason. I got my configure file. But it is in the wrong directory! Do I have to move it to src, or am I doing something wrong? Anyway, I tried running ./configure now when it is still in the trunc directory, which gave me the following message:

configure: error: cannot find install-sh or install.sh in "." ".\.." ".\..\.."
``` (the backslashes should really have been common slashes, but this server couldn't handle it)

Can someone please help me? I can't figure out how this is meant to be done...

to build openocd from source.

./bootstrap

./configure …

make

Cheers

Spen

So bootstrap creates the configure file? I’ll have to wait with testing what you write.

bootstrap is a shell script that calls the usual autotools setup:

aclocal

autoheader

automake --foreign --add-missing --copy

autoconf

Cheers

Spen