2 # $Id: buildconf.sh,v 1.23 2006-10-29 17:19:07 adam Exp $
3 if automake --version|head -1 |grep '1\.[4-7]'; then
4 echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
5 if test -f /etc/debian_version; then
6 echo " sudo apt-get install automake1.9"
7 echo " sudo update-alternatives --config automake"
13 # I am tired of underquoted warnings for Tcl macros
14 aclocal -I m4 2>&1 | grep -v aclocal/tcl.m4
15 libtoolize --automake --force
19 if [ -f config.cache ]; then
23 enable_configure=false
29 sh_flags="-g -Wall -O0 -Wdeclaration-after-statement -Wstrict-prototypes"
35 sh_flags="-g -Wall -O3 -Wdeclaration-after-statement -Wstrict-prototypes"
48 if $enable_configure; then
49 if test -n "$sh_flags"; then
50 CFLAGS="$sh_flags" ./configure --disable-shared $*
58 Build the Makefiles with the configure command.
59 ./configure [--someoption=somevalue ...]
61 For help on options or configuring run
64 Build and install binaries with the usual
69 Build distribution tarball with
72 Verify distribution tarball with
75 Or just build the Debian packages without configuring
76 dpkg-buildpackage -rfakeroot
78 When building from a CVS checkout, you need these Debian packages:
79 docbook, docbook-xml, docbook-xsl, xsltproc,
80 libyaz-dev, libexpat1-dev, tcl8.4-dev, libbz2-dev
81 and if you want the Alvis/XSLT filter, you also need: