don't update min/max bounding box when drawing with CLEAR polarity
[geda-gerbv.git] / autogen.sh
blob28546b30bf0676322a386f75e9507f7476ccc6a0
1 #!/bin/sh
4 # a leftover cache from a different version will cause no end of headaches
5 rm -fr autom4te.cache
7 ############################################################################
9 # libtoolize (libtool)
12 echo "Checking libtoolize version..."
13 libtoolize --version 2>&1 > /dev/null
14 rc=$?
15 if test $rc -ne 0 ; then
16 echo "Could not determine the version of libtool on your machine"
17 echo "libtool --version produced:"
18 libtool --version
19 exit 1
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'`
25 echo " $lt_ver"
27 case $lt_maj in
29 echo "You must have libtool >= 1.4.0 but you seem to have $lt_ver"
30 exit 1
34 if test $lt_min -lt 4 ; then
35 echo "You must have libtool >= 1.4.0 but you seem to have $lt_ver"
36 exit 1
44 echo "You are running a newer libtool than gerbv has been tested with."
45 echo "It will probably work, but this is a warning that it may not."
47 esac
48 echo "Running libtoolize..."
49 libtoolize --force --copy --automake || exit 1
51 ############################################################################
53 # aclocal
55 echo "Checking aclocal version..."
56 acl_ver=`aclocal --version | awk '{print $NF; exit}'`
57 echo " $acl_ver"
59 echo "Running aclocal..."
60 aclocal $ACLOCAL_FLAGS || exit 1
61 echo "... done with aclocal."
63 ############################################################################
65 # autoheader
67 echo "Checking autoheader version..."
68 ah_ver=`autoheader --version | awk '{print $NF; exit}'`
69 echo " $ah_ver"
71 echo "Running autoheader..."
72 autoheader || exit 1
73 echo "... done with autoheader."
75 ############################################################################
77 # automake
79 echo "Checking automake version..."
80 am_ver=`automake --version | awk '{print $NF; exit}'`
81 echo " $am_ver"
83 echo "Running automake..."
84 automake --force --copy --add-missing || exit 1
85 echo "... done with automake."
87 ############################################################################
89 # autoconf
91 echo "Checking autoconf version..."
92 ac_ver=`autoconf --version | awk '{print $NF; exit}'`
93 echo " $ac_ver"
95 echo "Running autoconf..."
96 autoconf || exit 1
97 echo "... done with autoconf."