3 |
# This file builds the configure script and copies all needed files |
# This file builds the configure script and copies all needed files |
4 |
# provided by automake/libtoolize |
# provided by automake/libtoolize |
5 |
# |
# |
6 |
# $Id: bootstrap.sh,v 1.4 2003-02-26 21:04:40 edgomez Exp $ |
# $Id: bootstrap.sh,v 1.5 2004-03-22 22:36:23 edgomez Exp $ |
7 |
|
|
8 |
|
|
9 |
############################################################################## |
############################################################################## |
19 |
$AUTOCONF --version 2>/dev/null 1>/dev/null |
$AUTOCONF --version 2>/dev/null 1>/dev/null |
20 |
|
|
21 |
if [ $? -ne 0 ] ; then |
if [ $? -ne 0 ] ; then |
22 |
echo "Autoconf not found" |
echo "'autoconf' not found" |
23 |
exit -1 |
exit -1 |
24 |
fi |
fi |
25 |
fi |
fi |
39 |
exit -1 |
exit -1 |
40 |
fi |
fi |
41 |
|
|
42 |
|
LIBTOOLIZE="libtoolize" |
43 |
|
$LIBTOOLIZE --version 1>/dev/null 2>/dev/null |
44 |
|
|
45 |
|
if [ $? -ne 0 ] ; then |
46 |
|
LIBTOOLIZE="glibtoolize" |
47 |
|
$LIBTOOLIZE --version 1>/dev/null 2>/dev/null |
48 |
|
|
49 |
|
if [ $? -ne 0 ] ; then |
50 |
|
echo "'libtoolize' not found" |
51 |
|
exit -1 |
52 |
|
fi |
53 |
|
fi |
54 |
|
|
55 |
############################################################################## |
############################################################################## |
56 |
# Bootstraps the configure script |
# Bootstraps the configure script |
57 |
############################################################################## |
############################################################################## |
63 |
automake -c -a 1>/dev/null 2>/dev/null |
automake -c -a 1>/dev/null 2>/dev/null |
64 |
|
|
65 |
echo "Copying files provided by libtool" |
echo "Copying files provided by libtool" |
66 |
libtoolize -f -c 1>/dev/null 2>/dev/null |
$LIBTOOLIZE -f -c 1>/dev/null 2>/dev/null |
67 |
|
|
68 |
echo "Removing files that are not needed" |
echo "Removing files that are not needed" |
69 |
rm -rf autom4* |
rm -rf autom4* |