Update to 24f58c58bb8d22c0e8e6c5ce43c536c47b719bc6
[gnt.git] / autogen.sh
blob5f4b9b3126fb64ce2c6782eae9e713835cfb26fc
1 #!/bin/sh
3 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
4 echo;
5 echo "You must have libtool installed to compile LibGNT";
6 echo;
7 exit;
10 (automake --version) < /dev/null > /dev/null 2>&1 || {
11 echo;
12 echo "You must have automake installed to compile LibGNT";
13 echo;
14 exit;
17 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
18 echo;
19 echo "You must have autoconf installed to compile LibGNT";
20 echo;
21 exit;
24 echo "Generating configuration files for LibGNT, please wait...."
25 echo;
27 echo "Running libtoolize, please ignore non-fatal messages...."
28 echo n | libtoolize --copy --force || exit;
30 # Add other directories to this list if people continue to experience
31 # brokennesses ... Obviously the real answer is for them to fix it
32 # themselves, but for Luke's sake we have this.
33 for dir in "/usr/local/share/aclocal" \
34 "/opt/gnome-1.4/share/aclocal"
36 if test -d $dir ; then
37 ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $dir"
39 done
41 libtoolize -c -f --automake
42 aclocal $ACLOCAL_FLAGS || exit;
43 autoheader || exit;
44 automake --add-missing --copy;
45 autoconf || exit;
46 automake || exit;
47 ./configure $@