[svn] / branches / release-0_9_1-fixes / xvidcore / build / generic / bootstrap.sh Repository:
ViewVC logotype

Diff of /branches/release-0_9_1-fixes/xvidcore/build/generic/bootstrap.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 927, Mon Mar 17 23:09:27 2003 UTC revision 928, Mon Mar 17 23:24:21 2003 UTC
# Line 3  Line 3 
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  # NB: This script is adapted to Debian GNU/Linux SID program names  # $Id: bootstrap.sh,v 1.1.2.1 2003-03-17 23:24:20 edgomez Exp $
7  #     Perhaps you could have to modify program names to match your distro  
8    
9    ##############################################################################
10    # Detect the right autoconf script
11    ##############################################################################
12    
13    # Find a suitable autoconf
14    AUTOCONF="autoconf2.50"
15    $AUTOCONF --version 2>/dev/null 1>/dev/null
16    
17    if [ $? -ne 0 ] ; then
18        AUTOCONF="autoconf"
19            $AUTOCONF --version 2>/dev/null 1>/dev/null
20    
21        if [ $? -ne 0 ] ; then
22            echo "Autoconf not found"
23            exit -1
24        fi
25    fi
26    
27    # Tests the autoconf version
28    AC_VER=`$AUTOCONF --version | head -1 | sed 's/'^[^0-9]*'/''/'`
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    ##############################################################################
43    # Bootstraps the configure script
44    ##############################################################################
45    
46  echo "Creating ./configure"  echo "Creating ./configure"
47  autoconf2.50  $AUTOCONF
48    
49  echo "Copying files provided by automake"  echo "Copying files provided by automake"
50  automake -c -a 1>/dev/null 2>/dev/null  automake -c -a 1>/dev/null 2>/dev/null

Legend:
Removed from v.927  
changed lines
  Added in v.928

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4