W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2003

Make configure.in work with latest autoconf/automake / Fix inter-lib linking [patch]

From: Richard Atterer <richard@list03.atterer.net>
Date: Sat, 27 Sep 2003 19:34:35 +0200
To: www-lib@w3.org
Message-ID: <20030927173435.GC11473@nenya.lan>
Hi,

here are patches which make the following changes:

  - They make all the automake stuff work with automake 1.7 and autoconf 
    2.5x

  - They add -l switches in various Makefile.am's - for example, if some 
    object file in wwwapp.so contains a reference to some function in
    wwwcore.so, then "-lwwwcore" is added to libwwwapp_la_LDFLAGS in
    Makefile.am.  Apparently, this is the correct thing to do (a bug was
    filed about it against my Debian libwww package), and the resulting
    "prelinking" done by libtool can also reduce the startup time of libwww
    applications.

These patches are against the 5.4.0 release sources. I think parts of them
won't apply to the current CVS version, because expat was replaced with a
newer version in CVS.

The reason why I'm not applying this to CVS directly is that
--with-expat=/some/path was broken by the expat update, and I need to use
that switch. Hopefully I can fix this another sunny weekend, and then start
applying the backlog... :)

To apply everything:

  - Apply "0-configure-ac-in.diff" to configure.in
  - Rename configure.in to configure.ac
  - Apply "1-acinclude-m4.diff" to (guess what) acinclude.m4
  - Delete acconfig.h
  - Apply "2-Makefile-am.diff". This contains both further fixes to make 
    everything work with automake 1.7, and the -l switches mentioned above.

Then re-bootstrap the code. The commands assume a Debian system - on other 
Linux flavours, the utilities might be called differently:

  - perl config/winConfigure.pl
  - libtoolize -c -f
  - aclocal-1.7
  - autoheader2.50
  - automake-1.7 -a -c
  - autoconf2.50

Phew!

Another problem which I'm encountering with Debian's libtool 1.5-2: During
build, libtool suddenly wants to access "Library/src/.libs/.libs", which
isn't present. I guess this is a bug in libtool - my workaround, a simple
"mkdir -p Library/src/.libs; ln -s . Library/src/.libs/.libs" seems to work
fine.

Cheers,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  GnuPG key:
  | \/|  http://atterer.net  |  0x888354F7
   '` 



Received on Saturday, 27 September 2003 16:01:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:44 GMT