[Xapian-discuss] AM_PROG_CC_C_O not found

Olly Betts olly at survex.com
Wed Oct 24 16:04:44 BST 2007


On Wed, Oct 24, 2007 at 06:15:16AM -0400, Jim wrote:
> Now, I'm getting
> configure: error: Can't find SWIG utility

Ah yes, I think there's a chicken and egg situation there.  The SVN tree
pulls in the appropriate version of the SWIG source and uses that for
xapian-bindings, but when configure is run we don't have SWIG so
xapian-bindings fails to find the as-yet-not-built swig binary.  I'm
suprised that's not been noticed before - perhaps swig's source tree
isn't fully cleaned by "make distclean".  Anyway, I'll try to fix it.

> When I do a ./configure at the same level as the bootstrap program, 
> however I don't give a hoot about swig, I just need the latest libraries 
> and omega.  Is there an option to say "just build those and ignore the 
> rest of the stuff?"  I found the --disable-documentation flag and am 
> using it.

The bootstrap script will ignore any directories without a configure.ac
or configure.in, so you can just delete swig and xapian-bindings if you
don't want them.  If you want to be able to update the tree without all
the files reappearing each time, then "svn rm" on the configure.ac and
configure.in files is simplest.  You can also play tricks with "svn
switch".

It's possible to do the work of bootstrap by hand, but it's fiddly and
somewhat error-prone (which is why I wrote the script to do it) so I'm
afraid you're on your own if you take that approach.

The easiest approach of all is to use the snapshot tarballs, especially
if you aren't wanting to update the code to SVN HEAD regularly.

Cheers,
    Olly



More information about the Xapian-discuss mailing list