Skip to content
Newer
Older
100755 29 lines (22 sloc) 748 Bytes
5df8876 Tidied up build system a bit.
Matthew Hancher authored Sep 12, 2006
1 #!/bin/sh
2
90068f7 @novas0x2a should have tested that better. stupid sort order.
novas0x2a authored Feb 26, 2010
3 # Make an ASCII-comparible copy of a version number by zero-padding it
4 # 1.20.3.4 becomes 01200304
5 # It removes letters
6 ugly_version() {
7 echo $1 | tr . ' ' | tr -d -c '[0-9 ]' | xargs -n1 printf "%03i"
8 }
9
5247be3 @novas0x2a work around m4_include problems with ancient automake
novas0x2a authored Feb 26, 2010
10 am_version=$(automake --version | head -n1 | cut -d ' ' -f 4)
90068f7 @novas0x2a should have tested that better. stupid sort order.
novas0x2a authored Feb 26, 2010
11
12 am_v2=$(ugly_version "$am_version")
13 am_broken=$(ugly_version "1.9.5b")
14
15 if test "$am_v2" \< "$am_broken" ; then
5247be3 @novas0x2a work around m4_include problems with ancient automake
novas0x2a authored Feb 26, 2010
16 topdir="$(cd `dirname $0` && pwd)"
17
18 echo "WARNING: automake < 1.9.5b doesn't know how to handle relative"
19 echo "m4_include paths. Working around it."
20 echo
21 set -x
22 mkdir -p "$topdir/m4/m4"
23 ln -sf $topdir/m4/fixups.m4 $topdir/m4/m4/fixups.m4
24 set +x
25 echo
6632602 @novas0x2a some fixes to make this work on old autotools
novas0x2a authored Jan 3, 2009
26 fi
27
5247be3 @novas0x2a work around m4_include problems with ancient automake
novas0x2a authored Feb 26, 2010
28 autoreconf --force --verbose --install -I m4 -I thirdparty/m4
Something went wrong with that request. Please try again.