]> git.ipfire.org Git - thirdparty/squid.git/blame - bootstrap.sh
changed a reference to the old 'authenticate_ip_ttl_is_strict' option
[thirdparty/squid.git] / bootstrap.sh
CommitLineData
74b984b6 1#!/bin/sh
a2794549 2# Used to setup the configure.in, autoheader and Makefile.in's if configure
3# has not been generated. This script is only needed for developers when
4# configure has not been run, or if a Makefile.am in a non-configured directory
5# has been updated
6
c3d3f1cf 7# Autotool versions required. To override either edit the script
8# to match the versions you want to use, or set the variables on
9# the command line like "env acver=.. amver=... ./bootstrap.sh"
10acver="${acver:-2.53}"
11amver="${amver:-1.5}"
96b8d5c3 12
13bootstrap() {
307aa7bb 14 if "$@"; then
15 true # Everything OK
16 else
96b8d5c3 17 echo "$1 failed"
18 echo "Autotool bootstrapping failed. You will need to investigate and correct" ;
19 echo "before you can develop on this source tree"
20 exit 1
b4468b69 21 fi
96b8d5c3 22}
23
24# Make sure cfgaux exists
25mkdir -p cfgaux
26
74b984b6 27# Adjust paths of required autool packages
c3d3f1cf 28if autoconf --version | grep -q "$acver"; then
29 acver=""
30fi
31if automake --version | grep -q "$amver"; then
32 amver=""
33fi
74b984b6 34acver=`echo $acver | sed -e 's/\.//'`
c3d3f1cf 35amver=`echo $amver | sed -e 's/\.//'`
74b984b6 36
96b8d5c3 37# Bootstrap the autotool subsystems
74b984b6 38bootstrap aclocal$amver
39bootstrap autoheader$acver
40bootstrap automake$amver --foreign --add-missing
41bootstrap autoconf$acver
b4468b69 42
96b8d5c3 43echo "Autotool bootstrapping complete."