~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/autoconf/AutoRegen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
die() {
 
4
  echo "$@" 1>&2
 
5
  exit 1
 
6
}
 
7
 
 
8
clean() {
 
9
  echo $1 | sed -e 's/\\//g'
 
10
}
 
11
 
 
12
### NOTE: ############################################################
 
13
### These variables specify the tool versions we want to use.
 
14
### Periods should be escaped with backslash for use by grep.
 
15
###
 
16
### If you update these, please also update docs/GettingStarted.html
 
17
want_autoconf_version='2\.60'
 
18
want_autoheader_version=$want_autoconf_version
 
19
want_aclocal_version='1\.9\.6'
 
20
want_libtool_version='1\.5\.22'
 
21
### END NOTE #########################################################
 
22
 
 
23
outfile=configure
 
24
configfile=configure.ac
 
25
 
 
26
want_autoconf_version_clean=$(clean $want_autoconf_version)
 
27
want_autoheader_version_clean=$(clean $want_autoheader_version)
 
28
want_aclocal_version_clean=$(clean $want_aclocal_version)
 
29
want_libtool_version_clean=$(clean $want_libtool_version)
 
30
 
 
31
test -d autoconf && test -f autoconf/$configfile && cd autoconf
 
32
test -f $configfile || die "Can't find 'autoconf' dir; please cd into it first"
 
33
autoconf --version | grep $want_autoconf_version > /dev/null
 
34
test $? -eq 0 || die "Your autoconf was not detected as being $want_autoconf_version_clean"
 
35
aclocal --version | grep '^aclocal.*'$want_aclocal_version > /dev/null
 
36
test $? -eq 0 || die "Your aclocal was not detected as being $want_aclocal_version_clean"
 
37
autoheader --version | grep '^autoheader.*'$want_autoheader_version > /dev/null
 
38
test $? -eq 0 || die "Your autoheader was not detected as being $want_autoheader_version_clean"
 
39
libtool --version | grep $want_libtool_version > /dev/null
 
40
test $? -eq 0 || die "Your libtool was not detected as being $want_libtool_version_clean"
 
41
echo ""
 
42
echo "### NOTE: ############################################################"
 
43
echo "### If you get *any* warnings from autoconf below you MUST fix the"
 
44
echo "### scripts in the m4 directory because there are future forward"
 
45
echo "### compatibility or platform support issues at risk. Please do NOT"
 
46
echo "### commit any configure script that was generated with warnings"
 
47
echo "### present. You should get just three 'Regenerating..' lines."
 
48
echo "######################################################################"
 
49
echo ""
 
50
echo "Regenerating aclocal.m4 with aclocal $want_aclocal_version_clean"
 
51
cwd=`pwd`
 
52
aclocal --force -I $cwd/m4 || die "aclocal failed"
 
53
echo "Regenerating configure with autoconf $want_autoconf_version_clean"
 
54
autoconf --force --warnings=all -o ../$outfile $configfile || die "autoconf failed"
 
55
cd ..
 
56
echo "Regenerating config.h.in with autoheader $want_autoheader_version_clean"
 
57
autoheader --warnings=all -I autoconf -I autoconf/m4 autoconf/$configfile || die "autoheader failed"
 
58
exit 0