On Wed, Aug 12, 2009 at 11:30:19AM +0200, Jim Meyering wrote:
+# In order to accommodate versions of automake that are older than
1.11
+# remove options that we find useful but that would otherwise not be recognized.
+v=$(automake --version | { read ver && echo ${ver#*) }; })
+case $v in
+ 1.1[1-9]*|[2-9]*) ;; # Good!
+ *) perl -pi -e 's/(AM_INIT_AUTOMAKE\(\[.*?)\s*color-tests\s*(.*)/$1 $2/'\
+ configure.ac daemon/configure.ac ;;
+esac
+
Eeee yuk. Is there not some other way to do this?
For example, could we redefine AM_INIT_AUTOMAKE macro so that it
ignores options which aren't supported and passes the remaining ones
to the real AM_INIT_AUTOMAKE? (I have no idea how to do this, so just
a suggestion).
Rich.
--
Richard Jones, Emerging Technologies, Red Hat
http://et.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://et.redhat.com/~rjones/libguestfs/
See what it can do:
http://et.redhat.com/~rjones/libguestfs/recipes.html