Changeset 226


Ignore:
Timestamp:
Dec 4, 2009, 1:50:30 AM (8 years ago)
Author:
Sam Hocevar
Message:

Update bootstrap script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/bootstrap

    r161 r226  
    11#! /bin/sh
    2 # $Id: bootstrap 2005 2008-07-16 20:51:50Z sam $
     2# $Id$
    33
    44# bootstrap: generic bootstrap/autogen.sh script for autotools projects
     
    1313#
    1414# The latest version of this script can be found at the following place:
    15 #   http://sam.zoy.org/autotools/
     15#   http://caca.zoy.org/wiki/build
    1616
    1717# Die if an error occurs
     
    3030# Check for needed features
    3131auxdir="`sed -ne 's/^[ \t]*A._CONFIG_AUX_DIR *([[ ]*\([^] )]*\).*/\1/p' $conffile`"
     32pkgconfig="`grep '^[ \t]*PKG_PROG_PKG_CONFIG' $conffile >/dev/null 2>&1 && echo yes || echo no`"
    3233libtool="`grep '^[ \t]*A._PROG_LIBTOOL' $conffile >/dev/null 2>&1 && echo yes || echo no`"
    3334header="`grep '^[ \t]*A._CONFIG_HEADER' $conffile >/dev/null 2>&1 && echo yes || echo no`"
     
    9596fi
    9697
     98# Check for pkg-config
     99if test "$pkgconfig" = "yes"; then
     100  if ! pkg-config --version >/dev/null 2>&1; then
     101    echo "$0: you need pkg-config"
     102    exit 1
     103  fi
     104fi
     105
    97106# Remove old cruft
    98107for x in aclocal.m4 configure config.guess config.log config.sub config.cache config.h.in config.h compile libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh; do rm -f $x autotools/$x; if test -n "$auxdir"; then rm -f "$auxdir/$x"; fi; done
Note: See TracChangeset for help on using the changeset viewer.