Parent Directory
|
Revision Log
Revision 877 - (view) (download) (as text)
1 : | edgomez | 825 | #!/bin/sh |
2 : | # | ||
3 : | # This file builds the configure script and copies all needed files | ||
4 : | # provided by automake/libtoolize | ||
5 : | # | ||
6 : | edgomez | 877 | # $Id: bootstrap.sh,v 1.2 2003-02-20 18:39:23 edgomez Exp $ |
7 : | edgomez | 825 | |
8 : | edgomez | 877 | |
9 : | ############################################################################## | ||
10 : | # Detect the right autoconf script | ||
11 : | ############################################################################## | ||
12 : | |||
13 : | # we first test Debian GNU/Linux autoconf for 2.50 series | ||
14 : | AUTOCONF=`which autoconf2.50` | ||
15 : | |||
16 : | if [ ! -x "$AUTOCONF" ] ; then | ||
17 : | |||
18 : | # Test failed, testing generic name -- many distros are shipping 2.13 with | ||
19 : | # that name, that's why we have to perform an additional test for version. | ||
20 : | AUTOCONF=`which autoconf` | ||
21 : | |||
22 : | if [ ! -x "$AUTOCONF" ] ; then | ||
23 : | echo "No autoconf binary found in PATH" | ||
24 : | exit -1 | ||
25 : | fi | ||
26 : | |||
27 : | # Tests the autoconf version | ||
28 : | AC_VER=`$AUTOCONF --version | head -1 | sed 's/^[^0-9]*//i'` | ||
29 : | AC_MAJORVER=`echo $AC_VER | cut -f1 -d'.'` | ||
30 : | AC_MINORVER=`echo $AC_VER | cut -f2 -d'.'` | ||
31 : | |||
32 : | if [ "$AC_MAJORVER" -lt "2" ]; then | ||
33 : | echo "This bootstrapper needs Autoconf >= 2.50 (detected $AC_VER)" | ||
34 : | exit -1 | ||
35 : | fi | ||
36 : | |||
37 : | if [ "$AC_MINORVER" -lt "50" ]; then | ||
38 : | echo "This bootstrapper needs Autoconf >= 2.50 (detected $AC_VER)" | ||
39 : | exit -1 | ||
40 : | fi | ||
41 : | |||
42 : | fi | ||
43 : | |||
44 : | ############################################################################## | ||
45 : | # Bootstraps the configure script | ||
46 : | ############################################################################## | ||
47 : | |||
48 : | edgomez | 825 | echo "Creating ./configure" |
49 : | edgomez | 877 | $AUTOCONF |
50 : | edgomez | 825 | |
51 : | echo "Copying files provided by automake" | ||
52 : | automake -c -a 1>/dev/null 2>/dev/null | ||
53 : | |||
54 : | echo "Copying files provided by libtool" | ||
55 : | libtoolize -f -c 1>/dev/null 2>/dev/null | ||
56 : | |||
57 : | echo "Removing files that are not needed" | ||
58 : | rm -rf autom4* | ||
59 : | rm -rf ltmain.sh |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |