Postings tagged with autotools
Finding the broken .la file
In case you wonder which .la pulls in /usr/lib/libglib-2.0.so, instead of /opt/gnome/lib/libglib-2.0.so, you can try this code snippet. The first pipeline retreives all .la files libtool reads, the second one scans that file for the unwanted .la file.
strace -f make 2>&1 | grep 'open(".*\.la".*) = [0-9]\+$' | cut -d\" -f2 | sort -u | tee /tmp/labber
...
Automake support for Vala
Using Vala together with automake was quite painful so far. When looking into libvala's Makefile.am for instance you'll see alot of duplication.
So I hacked a little script generating the automake rules needed for vala code. After adding the vala-support script to your autogen.sh script your Makefile.am can look as simple as this:
lib_LTLIBRARIES = libtest.la
libtest_la_CFLAGS = $(AM_CFLAGS) $(GTK_CFLAGS)
libtest_la_VALAFLAGS = --library=test --pkg=gtk+-2.0
libtest_la_LIBADD = $(GTK_LIBS)
...
Stripping down GNU make
After reading Thomas' rant about automake 1.10 rejecting GNU-makeism in its script I wondered if it wouldn't possible to ship GNU make with all tarballs, instead of all the autotools crap. So I did some experiments this morning.
Raw GNU make 3.81 as distributed by the FSF requires 1.1 MB. After unpacking 6.4 MB of disk space are used:
576 config/
1052 ...