Changeset 1720
- Timestamp:
- 07/19/07 13:17:59 (3 years ago)
- Files:
-
- 1 modified
-
trunk/varnish-cache/autogen.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/varnish-cache/autogen.sh
r1399 r1720 4 4 # 5 5 6 if [ -d /usr/local/gnu-autotools/bin ] ; then 7 PATH=/usr/local/gnu-autotools/bin:${PATH} 8 export PATH 9 FIX_BROKEN_FREEBSD_PORTS="-I /usr/local/share/aclocal" 10 fi 6 warn() { 7 echo "WARNING: $@" 1>&2 8 } 9 10 case `uname -s` in 11 Darwin) 12 LIBTOOLIZE=glibtoolize 13 ;; 14 FreeBSD) 15 LIBTOOLIZE=libtoolize 16 if [ -d /usr/local/gnu-autotools/bin ] ; then 17 PATH=/usr/local/gnu-autotools/bin:${PATH} 18 export PATH 19 FIX_BROKEN_FREEBSD_PORTS="-I /usr/local/share/aclocal" 20 fi 21 ;; 22 Linux) 23 LIBTOOLIZE=libtoolize 24 ;; 25 esac 11 26 12 27 automake_version=$(automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+') 13 28 if [ -z "$automake_version" ] ; then 14 echo "unable to determine automake version" 15 exit 1 29 warn "unable to determine automake version" 16 30 else 17 31 case $automake_version in 18 32 0.*|1.[0-8]|1.[0-8][.-]*) 19 echo "your version of automake ($automake_version) is too old;" \ 20 "you need 1.9 or newer." 21 exit 1 33 warn "automake ($automake_version) detected; 1.9 or newer recommended" 22 34 ;; 23 35 *) … … 29 41 30 42 aclocal ${FIX_BROKEN_FREEBSD_PORTS} 31 libtoolize--copy --force43 $LIBTOOLIZE --copy --force 32 44 autoheader 33 45 automake --add-missing --copy --foreign
