comparison bootstrap.sh @ 442:94c531f0c0a4

.. and more fixes. :|
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 06 Jan 2007 11:05:05 +0000
parents 7a1e7fac56c0
children 859011fe530b
comparison
equal deleted inserted replaced
441:7a1e7fac56c0 442:94c531f0c0a4
55 echo "or it is not in the PATH. Please install $4." 55 echo "or it is not in the PATH. Please install $4."
56 exit 1 56 exit 1
57 fi 57 fi
58 } 58 }
59 59
60 # Check and run autotools 60 # Check available m4 macro paths
61 aclocal_opts=$ACLOCAL_FLAGS
62 for i in /usr /usr/local /usr/sfw /opt/gnome; do
63 j="$i/share/aclocal"
64 if test -d "$j"; then
65 aclocal_opts="$aclocal_opts -I $j"
66 fi
67 done
68
69 # Check if gettext is used
61 for i in configure.ac configure.in; do 70 for i in configure.ac configure.in; do
62 if test -e "$i"; then 71 if test -e "$i"; then
63 k=`grep AM_GNU_GETTEXT $i` 72 k=`grep AM_GNU_GETTEXT $i`
64 fi 73 fi
65 done 74 done
69 ftest_package "autopoint" "-f" "gettext(-dev|-devel)" "GNU gettext 0.14.1 or later." 78 ftest_package "autopoint" "-f" "gettext(-dev|-devel)" "GNU gettext 0.14.1 or later."
70 else 79 else
71 echo "* GNU gettext not used by the package, skipping." 80 echo "* GNU gettext not used by the package, skipping."
72 fi 81 fi
73 82
74 aclocal_opts="" 83 # Check and run autotools
75 for i in /usr/share/aclocal /usr/local/share/aclocal; do
76 if test -d "$i"; then
77 aclocal_opts="$aclocal_opts -I $i"
78 fi
79 done
80
81 ftest_am_package "aclocal" "-I . $aclocal_opts" 84 ftest_am_package "aclocal" "-I . $aclocal_opts"
82 ftest_ac_package "libtoolize" "--automake --force" 85 ftest_ac_package "libtoolize" "--automake --force"
83 ftest_am_package "automake" "-a -c -f --foreign" 86 ftest_am_package "automake" "-a -c -f --foreign"
84 ftest_ac_package "autoconf" "" 87 ftest_ac_package "autoconf" ""
85 88
89 # Check if Glade is used and run it for each file
86 k=`echo *.glade` 90 k=`echo *.glade`
87 if test "x$k" != "x*.glade"; then 91 if test "x$k" != "x*.glade"; then
88 echo "* Glade XML files found, processing ..." 92 echo "* Glade XML files found, processing ..."
89 for i in *.glade; do 93 for i in *.glade; do
90 ftest_package "glade" "-w $i" "Glade" "Glade for Gtk+1 applications (Glade v0.6.4)" 94 ftest_package "glade" "-w $i" "Glade" "Glade for Gtk+1 applications (Glade v0.6.4)"