[svn] / trunk / xvidcore / build / generic / bootstrap.sh Repository:
ViewVC logotype

Diff of /trunk/xvidcore/build/generic/bootstrap.sh

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

revision 1450, Sun May 9 21:21:31 2004 UTC revision 1451, Fri May 21 14:40:15 2004 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  #  #
3    # - Bootstrap script -
4    #
5    # Copyright(C) 2003-2004 Edouard Gomez <ed.gomez@free.fr>
6    #
7  # This file builds the configure script and copies all needed files  # This file builds the configure script and copies all needed files
8  # provided by automake/libtoolize  # provided by automake/libtoolize
9  #  #
10  # $Id: bootstrap.sh,v 1.5 2004-03-22 22:36:23 edgomez Exp $  # $Id: bootstrap.sh,v 1.6 2004-05-21 14:40:15 edgomez Exp $
11    
12    
13  ##############################################################################  ##############################################################################
# Line 12  Line 16 
16    
17  # Find a suitable autoconf  # Find a suitable autoconf
18  AUTOCONF="autoconf2.50"  AUTOCONF="autoconf2.50"
19  $AUTOCONF --version 2>/dev/null 1>/dev/null  $AUTOCONF --version 1>/dev/null 2>&1
20    
21  if [ $? -ne 0 ] ; then  if [ $? -ne 0 ] ; then
22      AUTOCONF="autoconf"      AUTOCONF="autoconf"
23      $AUTOCONF --version 2>/dev/null 1>/dev/null      $AUTOCONF --version 1>/dev/null 2>&1
24    
25      if [ $? -ne 0 ] ; then      if [ $? -ne 0 ] ; then
26          echo "'autoconf' not found"          echo "ERROR: 'autoconf' not found"
27          exit -1          exit -1
28      fi      fi
29  fi  fi
# Line 30  Line 34 
34  AC_MINORVER=`echo $AC_VER | cut -f2 -d'.'`  AC_MINORVER=`echo $AC_VER | cut -f2 -d'.'`
35    
36  if [ "$AC_MAJORVER" -lt "2" ]; then  if [ "$AC_MAJORVER" -lt "2" ]; then
37      echo "This bootstrapper needs Autoconf >= 2.50 (detected $AC_VER)"      echo "ERROR: This bootstrapper requires Autoconf >= 2.50 (detected $AC_VER)"
38      exit -1      exit -1
39  fi  fi
40    
41  if [ "$AC_MINORVER" -lt "50" ]; then  if [ "$AC_MINORVER" -lt "50" ]; then
42      echo "This bootstrapper needs Autoconf >= 2.50 (detected $AC_VER)"      echo "ERROR: This bootstrapper requires Autoconf >= 2.50 (detected $AC_VER)"
43      exit -1      exit -1
44  fi  fi
45    
46  LIBTOOLIZE="libtoolize"  LIBTOOLIZE="libtoolize"
47  $LIBTOOLIZE --version 1>/dev/null 2>/dev/null  $LIBTOOLIZE --version 1>/dev/null 2>&1
48    
49  if [ $? -ne 0 ] ; then  if [ $? -ne 0 ] ; then
50      LIBTOOLIZE="glibtoolize"      LIBTOOLIZE="glibtoolize"
51      $LIBTOOLIZE --version 1>/dev/null 2>/dev/null      $LIBTOOLIZE --version 1>/dev/null 2>&1
52    
53      if [ $? -ne 0 ] ; then      if [ $? -ne 0 ] ; then
54          echo "'libtoolize' not found"          echo "ERROR: 'libtoolize' not found"
55          exit -1          exit -1
56      fi      fi
57  fi  fi
58    
59    AUTOMAKE="automake"
60    $AUTOMAKE --version 1>/dev/null 2>&1
61    
62    if [ $? -ne 0 ] ; then
63        echo "ERROR: 'automake' not found"
64            exit -1
65    fi
66    
67  ##############################################################################  ##############################################################################
68  # Bootstraps the configure script  # Bootstraps the configure script
69  ##############################################################################  ##############################################################################
# Line 60  Line 72 
72  $AUTOCONF  $AUTOCONF
73    
74  echo "Copying files provided by automake"  echo "Copying files provided by automake"
75  automake -c -a 1>/dev/null 2>/dev/null  $AUTOMAKE -c -a 1>/dev/null 2>&1
76    
77  echo "Copying files provided by libtool"  echo "Copying files provided by libtool"
78  $LIBTOOLIZE -f -c 1>/dev/null 2>/dev/null  $LIBTOOLIZE -f -c 1>/dev/null 2>&1
79    
80  echo "Removing files that are not needed"  echo "Removing files that are not needed"
81  rm -rf autom4*  rm -rf autom4* 1>/dev/null 2>&1
82  rm -rf ltmain.sh  rm -rf ltmain.sh 1>/dev/null 2>&1

Legend:
Removed from v.1450  
changed lines
  Added in v.1451

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