~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr-util/xml/expat/buildconf.sh

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
#
 
4
# Find libtoolize
 
5
#
 
6
libtoolize=`conftools/PrintPath glibtoolize libtoolize libtoolize15 libtoolize14`
 
7
if [ "x$libtoolize" = "x" ]; then
 
8
    echo "libtoolize not found in path"
 
9
    exit 1
 
10
fi
 
11
 
 
12
#
 
13
# Create the libtool helper files
 
14
#
 
15
# Note: we copy (rather than link) the files.
 
16
#
 
17
# Note: This bundled version of expat will not always replace the
 
18
# files since we have a special config.guess/config.sub that we
 
19
# want to ensure is used.
 
20
echo "Copying libtool helper files ..."
 
21
 
 
22
# Remove any m4 cache and libtool files so one can switch between
 
23
# autoconf and libtool versions by simply rerunning the buildconf script.
 
24
#
 
25
(cd conftools ; rm -f ltconfig ltmain.sh)
 
26
rm -rf aclocal.m4 libtool.m4 ltsugar.m4 autom4te*.cache
 
27
 
 
28
$libtoolize --copy --automake
 
29
 
 
30
#
 
31
# Build aclocal.m4 from libtool's libtool.m4
 
32
#
 
33
if [ -f libtool.m4 ]; then
 
34
  ltfile=libtool.m4
 
35
else
 
36
  ltpath=`dirname $libtoolize`
 
37
  ltfile=${LIBTOOL_M4-`cd $ltpath/../share/aclocal ; pwd`/libtool.m4}
 
38
fi
 
39
echo "Incorporating $ltfile into aclocal.m4 ..."
 
40
echo "dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh" > aclocal.m4
 
41
echo "dnl edits here will be lost" >> aclocal.m4
 
42
cat $ltfile >> aclocal.m4
 
43
 
 
44
if [ -f ltsugar.m4 ]; then
 
45
  echo "Incorporating ltsugar.m4 into aclocal.m4 ..."
 
46
  cat ltsugar.m4 >> aclocal.m4
 
47
fi
 
48
 
 
49
# Clean up again
 
50
rm -f libtool.m4 ltsugar.m4
 
51
 
 
52
cross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
 
53
 
 
54
#
 
55
# Generate the autoconf header template (config.h.in) and ./configure
 
56
#
 
57
echo "Creating config.h.in ..."
 
58
${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"
 
59
 
 
60
echo "Creating configure ..."
 
61
### do some work to toss config.cache?
 
62
${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
 
63
 
 
64
# Remove autoconf caches
 
65
rm -rf autom4te*.cache
 
66
 
 
67
exit 0