Changeset 226
- Timestamp:
- Dec 4, 2009, 1:50:30 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/bootstrap
r161 r226 1 1 #! /bin/sh 2 # $Id : bootstrap 2005 2008-07-16 20:51:50Z sam$2 # $Id$ 3 3 4 4 # bootstrap: generic bootstrap/autogen.sh script for autotools projects … … 13 13 # 14 14 # 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 16 16 17 17 # Die if an error occurs … … 30 30 # Check for needed features 31 31 auxdir="`sed -ne 's/^[ \t]*A._CONFIG_AUX_DIR *([[ ]*\([^] )]*\).*/\1/p' $conffile`" 32 pkgconfig="`grep '^[ \t]*PKG_PROG_PKG_CONFIG' $conffile >/dev/null 2>&1 && echo yes || echo no`" 32 33 libtool="`grep '^[ \t]*A._PROG_LIBTOOL' $conffile >/dev/null 2>&1 && echo yes || echo no`" 33 34 header="`grep '^[ \t]*A._CONFIG_HEADER' $conffile >/dev/null 2>&1 && echo yes || echo no`" … … 95 96 fi 96 97 98 # Check for pkg-config 99 if 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 104 fi 105 97 106 # Remove old cruft 98 107 for 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.