tweak configure to ensure ssh support is enabled
[debian/amanda] / autogen
1 #! /bin/sh
2
3 # cd to the directory we're run from
4 cd `dirname $0`
5
6 # if you change this, please also change it in the root Makefile.am
7 includes="-I . -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive"
8
9 # clean up
10 rm -f aclocal.m4
11 rm -rf autom4te*.cache
12 rm -f configure
13
14 die() {
15     echo x"${@}" | sed s/^x//
16     exit 1
17 }
18
19 echo "See DEVELOPING for instructions on updating:"
20 echo " * gettext macros"
21 echo " * gnulib"
22 echo " * libtool files"
23
24 echo "..creating file lists"
25 (   cd config
26     for m4dir in amanda gettext-macros gnulib macro-archive; do
27         echo "## this file is automatically generated by autogen" > "$m4dir/file-list"
28         for f in $m4dir/*.m4; do echo "EXTRA_DIST += $f" >> "$m4dir/file-list"; done
29     done
30
31     echo "## this file is automatically generated by autogen" > "automake/file-list"
32     for f in automake/*.am; do echo "EXTRA_DIST += $f" >> "automake/file-list"; done
33 )
34
35 echo "..aclocal"
36 aclocal $includes || die "aclocal failed"
37
38 echo "...aclocal patches"
39 # See http://bugzilla.gnome.org/show_bug.cgi?id=418778
40 #
41 # The Glib developers are a bit over-eager in their version requirements, requiring
42 # an unnecessarily high verison of pkg-config at configure time, when they really
43 # only need it at autogen time.  This patch resets the version number in the file
44 # just generated by aclocal to the version we've been requiring all along.
45 sed --in-place -e  \
46      's/PKG_PROG_PKG_CONFIG(\[0\.16\])/PKG_PROG_PKG_CONFIG([0.7])/g' \
47      aclocal.m4
48
49 echo "..autoconf"
50 autoconf || die "autoconf failed"
51
52 echo "..autoheader"
53 autoheader || die "autoheader failed"
54 touch config/config.h.in
55
56 echo "..automake"
57 automake --force --copy --warnings=none || die "automake failed"