4 # a leftover cache from a different version will cause no end of headaches
7 ############################################################################
12 echo "Checking libtoolize version..."
13 libtoolize
--version 2>&1 > /dev
/null
15 if test $rc -ne 0 ; then
16 echo "Could not determine the version of libtool on your machine"
17 echo "libtool --version produced:"
21 lt_ver
=`libtoolize --version | awk '{print $NF; exit}'`
22 lt_maj
=`echo $lt_ver | sed 's;\..*;;g'`
23 lt_min
=`echo $lt_ver | sed -e 's;^[0-9]*\.;;g' -e 's;\..*$;;g'`
24 lt_teeny
=`echo $lt_ver | sed -e 's;^[0-9]*\.[0-9]*\.;;g'`
29 echo "You must have libtool >= 1.4.0 but you seem to have $lt_ver"
34 if test $lt_min -lt 4 ; then
35 echo "You must have libtool >= 1.4.0 but you seem to have $lt_ver"
41 echo "You are running a newer libtool than gerbv has been tested with."
42 echo "It will probably work, but this is a warning that it may not."
45 echo "Running libtoolize..."
46 libtoolize
--force --copy --automake ||
exit 1
48 ############################################################################
52 echo "Checking aclocal version..."
53 acl_ver
=`aclocal --version | awk '{print $NF; exit}'`
56 echo "Running aclocal..."
57 aclocal
$ACLOCAL_FLAGS ||
exit 1
58 echo "... done with aclocal."
60 ############################################################################
64 echo "Checking autoheader version..."
65 ah_ver
=`autoheader --version | awk '{print $NF; exit}'`
68 echo "Running autoheader..."
70 echo "... done with autoheader."
72 ############################################################################
76 echo "Checking automake version..."
77 am_ver
=`automake --version | awk '{print $NF; exit}'`
80 echo "Running automake..."
81 automake
--force --copy --add-missing ||
exit 1
82 echo "... done with automake."
84 ############################################################################
88 echo "Checking autoconf version..."
89 ac_ver
=`autoconf --version | awk '{print $NF; exit}'`
92 echo "Running autoconf..."
94 echo "... done with autoconf."