"Fossies" - the Fresh Open Source Software Archive

Member "rpm2html-1.11.2/autogen.sh" (16 Nov 2002, 1190 Bytes) of package /linux/privat/rpm2html-1.11.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 # Run this to generate all the initial makefiles, etc.
    3 
    4 srcdir=`dirname $0`
    5 test -z "$srcdir" && srcdir=. 
    6 
    7 THEDIR=`pwd`
    8 cd $srcdir
    9 DIE=0
   10 
   11 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
   12     echo
   13     echo "You must have autoconf installed to compile libxml."
   14     echo "Download the appropriate package for your distribution,"
   15     echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
   16     DIE=1
   17 }
   18 
   19 (automake --version) < /dev/null > /dev/null 2>&1 || {
   20     echo
   21     echo "You must have automake installed to compile libxml."
   22     echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
   23     echo "(or a newer version if it is available)"
   24     DIE=1
   25 }
   26 
   27 if test "$DIE" -eq 1; then
   28     exit 1
   29 fi
   30 
   31 test -f rpm2html.c || {
   32     echo "You must run this script in the top-level libxml directory"
   33     exit 1
   34 }
   35 
   36 if test -z "$*"; then
   37     echo "I am going to run ./configure with no arguments - if you wish "
   38         echo "to pass any to it, please specify them on the $0 command line."
   39 fi
   40 
   41 aclocal $ACLOCAL_FLAGS
   42 automake --add-missing
   43 autoconf
   44 
   45 cd $THEDIR
   46 
   47 if test x$OBJ_DIR != x; then
   48     mkdir -p "$OBJ_DIR"
   49     cd "$OBJ_DIR"
   50 fi
   51 
   52 $srcdir/configure "$@"
   53 
   54 echo 
   55 echo "Now type 'make' to compile rpm2html."