Changeset 3915
- Timestamp:
- Nov 17, 2009, 5:00:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/bootstrap
r1832 r3915 1 1 #! /bin/sh 2 # $Id: bootstrap 3643 2009-08-25 14:23:08Z sam $ 2 3 3 # bootstrap: the ultimate bootstrap/autogen.sh script for autotools projects 4 # Copyright (c) 2002-2007 Sam Hocevar <sam@zoy.org> 4 # bootstrap: generic bootstrap/autogen.sh script for autotools projects 5 # 6 # Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net> 5 7 # 6 8 # This program is free software. It comes without any warranty, to … … 28 30 # Check for needed features 29 31 auxdir="`sed -ne 's/^[ \t]*A._CONFIG_AUX_DIR *([[ ]*\([^] )]*\).*/\1/p' $conffile`" 30 libtool="`grep -q '^[ \t]*A._PROG_LIBTOOL' $conffile && echo yes || echo no`" 31 header="`grep -q '^[ \t]*A._CONFIG_HEADER' $conffile && echo yes || echo no`" 32 aclocalflags="`sed -ne 's/^[ \t]*ACLOCAL_AMFLAGS[ \t]*=//p' Makefile.am`" 32 pkgconfig="`grep '^[ \t]*PKG_PROG_PKG_CONFIG' $conffile >/dev/null 2>&1 && echo yes || echo no`" 33 libtool="`grep '^[ \t]*A._PROG_LIBTOOL' $conffile >/dev/null 2>&1 && echo yes || echo no`" 34 header="`grep '^[ \t]*A._CONFIG_HEADER' $conffile >/dev/null 2>&1 && echo yes || echo no`" 35 makefile="`[ -f Makefile.am ] && echo yes || echo no`" 36 aclocalflags="`sed -ne 's/^[ \t]*ACLOCAL_AMFLAGS[ \t]*=//p' Makefile.am 2>/dev/null || :`" 33 37 34 38 # Check for automake 35 39 amvers="no" 36 for n in 10 9 8 7 6 5; do 37 for v in "-1.${n}" "1${n}"; do 38 if automake${v} --version >/dev/null 2>&1; then 39 amvers="${v}" 40 break 41 fi 42 done 40 for v in 11 10 9 8 7 6 5; do 41 if automake-1.${v} --version >/dev/null 2>&1; then 42 amvers="-1.${v}" 43 break 44 elif automake1.${v} --version >/dev/null 2>&1; then 45 amvers="1.${v}" 46 break 47 fi 43 48 done 44 49 … … 91 96 fi 92 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 93 106 # Remove old cruft 94 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 … … 118 131 autoheader${acvers} 119 132 fi 120 #add --include-deps if you want to bootstrap with any other compiler than gcc 121 #automake${amvers} --add-missing --copy --include-deps 122 automake${amvers} --foreign --add-missing --copy 133 if test "$makefile" = "yes"; then 134 #add --include-deps if you want to bootstrap with any other compiler than gcc 135 #automake${amvers} --add-missing --copy --include-deps 136 automake${amvers} --foreign --add-missing --copy 137 fi 123 138 124 139 # Remove cruft that we no longer want
Note: See TracChangeset
for help on using the changeset viewer.