Autoconf/Build Comparison

Tuesday, November 21, 2017

Feeling sick today (stomach flu), so I spent a little time doing something not too hard on my brain, finished the 'build' Makefiles for spice-gtk, in preparation for the talk on 'build' I'm giving on December 7.

The makefile is a bit complicated, because there are several steps along the way, generated files, etc.

The build time results are promising (all numbers are times in seconds, best of 3):

Build (-j) Build Autoconf (-j) Autoconf
Clean build from git 25 45 95 143
Incremental build (log.h) 18.1 34.9 19.3 61.3
Incremental build (snd_codec.c) 1.9 1.9 3.0 3.9
Incremental build (spice-client.c) 1.7 1.7 3.3 3.8

The maintenance complexity is another aspect where there is a real difference:

Build Autoconf
Makefile 442 lines, 13K 939 linees, 26K
configure.ac (None) 710 lines, 24K
Total 442 lines, 13K 1649 lines, 50K